1. Linux中安装repo工具
-
repo工具的安装,按照:AOSP 镜像使用帮助 — USTC Mirror Help 文档 中的如下步骤执行命令即可:
mkdir ~/bin PATH=~/bin:$PATH curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo ## 如果上述 URL 不可访问,可以用下面的: ## curl -sSL 'https://gerrit-googlesource.proxy.ustclug.org/git-repo/+/master/repo?format=TEXT' |base64 -d > ~/bin/repo chmod a+x ~/bin/repo
安装过程及使用报错处理:
- python环境的问题:
- 在使用
repo init
指令初始化时,有可能碰到默认 python 版本不对的情况,按照该文章中的说明进行修改即可:Linux修改默认Python版本_KpNBtM的博客-CSDN博客_linux设置默认python版本
- 在使用
repo init
报错Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle- 这是由于每次使用
repo init
的时候,默认会去谷歌服务器同步最新版本的repo工具,而如果当前网络不支持翻墙,就会出现该报错,解决方法按文章中的 update 方式进行修改即可:repo init报错Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle_feiniao8651的博客-CSDN博客
- 这是由于每次使用
2. 配置samba
- 配置samba服务器,可以使得windows端与linux端建立网络映射,从而使得可以在windows端直接访问linux端的所有文件,具体配置过程可见文章:如何在Ubuntu配置Samba服务