Android ubuntu 开发环境安装
Setup android ubuntu develope enviroment
1. Prepare
1.1 Hardware environment prepare:
I suggest that the computer has:
CPU: Intel core2 E serials / AMD Phenom II X2 serials
Memory: 2GB
HardDisk: 50G
If you install the operating system with an virtual machine, I suggest the computer should have:
CPU: Intel core2 Q serials / AMD Phenom II X4 serials
Memory: 4GB
HardDisk: 200GB
Then the virtual machine should have:
CPU: Dual-core processors
Memory: 2GB
HardDisk: 50GB
Make sure you computer connect with internet.
1.2 Download:
Ubuntu operating system:
You can switch which version you like by this link:
http://mirror.mcs.anl.gov/pub/ubuntu-iso/DVDs/ubuntu/
Notice:
a. Google suggest you use version 8.04, so your choosed version should newer than 8.04.
b. I preferred use 9.04.
1.3 Burn CD/DVD
Burn the ubuntu operating system.
2. Install
2.1 Setup ubuntu system:
Insert the prepared CD/DVD. Setup ubuntu follow the setup steps.
2.2 Setup user environment:
a. confirm the network.
open a terminal, type:
$ ifconfig
Make sure your machine has been allocated a address. Otherwise, you should allocate the address
by yourself. Type in the terminal:
$ sudo gedit /etc/network/interfaces
If your NIC is eth0, static IP address style is:
auto eth0
iface eth0 inet static
address 10.0.1.100
netmask 255.255.255.0
gateway 10.0.1.1
If your NIC is eth0, dynamic IP address style is:
auto eth0
iface eth0 inet dhcp
Save the file and exit, then type in the terminal:
$ sudo /etc/init.d/networking restart
If you use a network agent, you have to modify the bash file, type in the terminal:
$ sudo gedit /etc/bash.bashrc
Append these text to this file:
export http_proxy="http://10.0.0.1:1000@username:password"
Save the file and exit, then restart the computer.
b. update the source list.
open a terminal, type:
$ sudo gedit /etc/apt/sources.list
You should modify the content in the file. Usually, it needs more source.
Search your need under, and paste them to your source list file. If your ubuntu version is higher than 9.04, you should add
9.04 source list to your source list also. Because 9.04 or lower version has jdk 5 source.
Then save it, type in the terminal:
$ sudo apt-get update
This process will cost some time, you can a rest.