1.安装ubuntu 14.04
2.下载必要的包
sudo apt-get update
sudo apt-get install ssh
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdksudo apt-get install lzop git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools\ build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils xsltproc libc6-dev \ schedtool g++-multilib gcc-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev libswitch-perl \libssl1.0.0 libssl-dev p7zip-full vim liblz4-tool
3.安装repo
repo可以从网上获得,也可以从.reopo/repo/repo目录中拷贝出来
至此,参考之前文档的脚本,运行run.sh即可将repo的仓库改成git的仓库