1: Ubuntu10.04 first, choose OS based on your machine hardware. The current machine is Xeon E5620, so here we 64bitUbuntu10. 04server system. 2: download from the official Ubuntu website and burn it to a boot CD. You can also use other modes, such as USB flash drives. 3: on the CD, select start from the CD and use English as the system language, because multi-byte display is not supported in command line mode. Although you can add a new branch
1: Ubuntu 10.04 first selects OS based on your machine hardware. The current machine is Xeon E5620, so here we are 64bit Ubuntu 10.04 server system.
2: download from the official Ubuntu website and burn it to a boot CD. You can also use other modes, such as USB flash drives.
3: on the CD, select start from the CD and use English as the system language, because multi-byte display is not supported in command line mode. Although you can add a new multi-byte shell, or the futty we will use later, we can support the display encoding selection. In order to better use Linux in the future, we select the English version.
4: select the partition. This is very important. We have two sata disks here. Here, we will allocate GB to/for use. 8 GB to/swap, 800 to/Home. If there are other disks, You can manually set the mount point to/Disk1,/Disk2. The benefits are obvious: the system OS and user data are separated. Even if the system crashes, it will not affect our data.
5: After the installation, you will be prompted which services will be installed by the system. You can also add these services later. Here we can choose OpenSSH-Server. Other installation steps are easy to understand, which is saved here. However, you must remember the account and password.
6: Follow the prompts to remove the disc and restart the system. After startup, the default character interface is used. If you need a desktop similar to Ubuntu-desktop, you need to install a desktop. The default Server does not have a desktop.
Input:
Startx
You are prompted to install startx through sudo apt-get install. Follow the prompts and enter:
Sudo apt-get install startx
After startx is started, it is only a white-black interface, not what we really want. We also need to install
Sudo apt-get install ubuntu-desktop
This process is very long. You must have a large bandwidth and need to download more than 200 MB of things in total. Small Water Pipes can only flow through the water.
After installation, enter:
Startx can be included in the GNOME interface, that is, the default Ubuntu desktop.
7. After the installation is complete, some tools need to be installed because we need to compile the Android source code.
If the following errors occur during compilation, install the software in sequence.
Error 1:
/Usr/include/gnu/stubs. h: 7: 27: error: gnu/stubs-32.h: No such file or directory
Solution:
Sudo apt-get install libc6-dev-i386
Error 2:
Host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp)
/Usr/bin/ld: skipping incompatible/usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc ++. so when searching for-lstdc ++
/Usr/bin/ld: skipping incompatible/usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc ++. a when searching for-lstdc ++
/Usr/bin/ld: skipping incompatible/usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc ++. so when searching for-lstdc ++
/Usr/bin/ld: skipping incompatible/usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc ++. a when searching for-lstdc ++
Solution:
Sudo apt-get install g ++-multilib
Error 3:
/Usr/bin/ld: skipping incompatible/usr/lib/gcc/x86_64-linux-gnu/4.4.3/.../../libz. so when searching for-lz
/Usr/bin/ld: skipping incompatible/usr/lib/gcc/x86_64-linux-gnu/4.4.3/.../../libz. a when searching for-lz
/Usr/bin/ld: skipping incompatible/usr/lib/libz. so when searching for-lz
/Usr/bin/ld: skipping incompatible/usr/lib/libz. a when searching for-lz
/Usr/bin/ld: cannot find-lz
Solution:
Sudo apt-get install lib32z1-dev
Error 4:
/Usr/bin/ld: skipping incompatible/usr/lib/gcc/x86_64-linux-gnu/4.4.3/.../../libncurses. so when searching for-lncurses
/Usr/bin/ld: skipping incompatible/usr/lib/gcc/x86_64-linux-gnu/4.4.3/.../../libncurses. a when searching for-lncurses
/Usr/bin/ld: skipping incompatible/usr/lib/libncurses. so when searching for-lncurses
/Usr/bin/ld: skipping incompatible/usr/lib/libncurses. a when searching for-lncurses
/Usr/bin/ld: cannot find-lncurses
Solution:
Sudo apt-get install lib32ncurses5-dev
Error 5:
In file encoded ded from external/qemu/android/skin/window. c: 19:
Prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h: 55: 22: error: X11/Xlib. h: No file or directory
Prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h: 56: 23: error: X11/Xatom. h: No file or directory
Solution:
Sudo apt-get install libx11-dev
We can use which modulename to determine whether the device is installed. It will display the location of modulename.
Example: which java
It will display:
/Usr/lib/jvm/jdk1.5.0 _ 22/bin/java
In addition to installing the above basic components, we also need to install JDK. We recommend that you install JDK 5 here, which is recommended on the official website of JDK 6. We can download: http://java.sun.com/javase/downloads/5u22/jdk from Sun
Note that we need to select linux 64. Otherwise, problems may occur during installation.
The installation process is actually the decompression process. Generally, it is to decompress the package to the current JDK directory. Generally, we install the software in/usr/lib.
For detailed procedures see http://www.linuxidc.com/Linux/2010-08/27821.htm
The JDK installation is the same.