ENV:Ubuntu 10.04 on VMware Workstation 9.0
PC ENV:Win7
JAVA:JDK1.6u35
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev
sudo apt-get install lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev
sudo apt-get install lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc
2.Something about Repo
Download & Installation
cd ~
mkdir bin
chmod a+x ~/bin/repo
alias repo="~/bin/repo"
# (or do this
# gedit .bashrc
# then add alias repo="~/bin/repo" at the end of the file, then save & close it.
# source .bashrc)
3.Download the CM codes
mkdir cm9
cd cm9
repo init -u git://github.com/CyanogenMod/android.git -b ics #(or jellybean for cm10)
#(then u should enter ur name & email in use)
repo sync
#(for sync maybe breaks, use the following shell script)
********************************************
Shell Script for repo sync:
Provide later!~
********************************************
4.Preparation for ur device
(No need to add & edit USB Configuration file on VMware Ubuntu)
lunch shooteru #(for not supported devices, i'll tell u what to do later!You need to write some files urself, like extract-files.sh ,ect.)
# after downloading the specific projects for ur device, connect ur device to ubuntu(better using default roms from the manufacter)
cd ~/cm9/device/htc/shooteru
sh extract-files.sh
cd ~/cm9
vendor/cm/get-prebuilts
# then
brunch shooteru
# wait for it & it may take prenty time.