1 Installing the Software
sudo apt-get install gedit git-core GNUPG Flex Bison gperf Libsdl1.2-dev libesd0-dev squashfs-tools build-essential Zip curl libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 L Ibxml2-utils xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev gcc-multilib maven tmux screen W 3m ncftp ccache
2 Installing Repo
mkdir ~/bin
git clone git://aosp.tuna.tsinghua.edu.cn/android/git-repo.git/
CP Git-repo/repo ~/bin/
3 Setting up the environment
Gedit ~/.BASHRC
Alias repo="~/bin/repo"export use_ccache=1export ccache_dir=/media/changyuet/cache/ CCache
4 Synchronous Source
Cd/media/changyuet/android/mkdir CM13cd CM13repo init-u https://github.com/cyanogenmod/ Android.git-b cm-13.0
Repo Sync--no-clone-bundle-c-j4
5 compiling
. build/Envsetup.shprebuilts/misc/linux-x86/ccache/ccache-M 50G
Brunch XXX
Or
Lunch
Make-j8 Otapackage
LinuxMint 18 Compiling cm notes