To record of setting up the Android system in Ubuntu,
1, enable the copy in and out of XTerm,copy and paste is different with other command line terminal, copy just select the text, when paste you need to Shift + Insert or click the middle button of your mouse.
sudo apt-get install parcellite
2, install Java 7
sudo apt-get install openjdk-7-jdk
3, install Git 1.7
sudo apt-get install git
4, install gcc and make
sudo apt-get install build-essential
5, install required package
$ sudo apt-get install git gnupg flex bison gperf build-essential \ zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \ libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \ libgl1-mesa-dev g++-multilib mingw32 tofrodos \ python-markdown libxml2-utils xsltproc zlib1g-dev:i386 $ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so