```shell
安装一些必要的依赖sudo apt install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5 libncurses5-dev libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev git
可选 这两个工具是为了可以刷入手机sudo apt install adb fastboot
123456789101112131415161718 3. 配置git(如果你没有配置过请配置) 1. 3. 下载 repo 工具。 1. 使用清华源安装 [教程](https://mirrors.tuna.tsinghua.edu.cn/help/git-repo/) 1. ```shell # 下载 curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo chmod +x repo mv repo ~/usr/bin/ #or mv repo ~/bin/ # 将以下内容写入 ~/.bashrc 文件内 export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo' # 重启终端模拟器
查看 PATH 可使用 echo $PATH 命令
.bashrc 文件(bash rc-running configuration)这个文件主要保存个人的一些个性化设置,如命令别名、路径等。也即在同一个服务器上,只对某个用户的个性化设置相关。普通用户为 /home/用户名/ 目录,root 为 /root/ 。改文件在==每次启动bash==都会被加载