I. Build the compilation environment
Ubuntu Linux (64-bit x86)
This has not been as well tested. Please send success or failure reports to android-porting@googlegroups.com. The Android build requires a 32-bit build environment as well as some other tools:
- Required packages:
- Git, JDK, flex, And the other packages as listed abve in the i386 instructions:
- JDK 5.0, update 12 or higher. Java 6 is not supported, because of incompatibilities with @ override.
- Pieces from the 32-bit cross-building environment
- X11 Development
$ Sudo apt-Get install Git-core GnuPG flex bison gperf build-essential zip curl sun-java5-jdk zlib1g-dev gcc-multilib g ++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev
Note: here there will be a few installed packages, and cannot find the package (sun-java5-jdk), remove in the command line and so on to install your own offline.
Note: currently, the main Android code compilation requires jdk1.6.
Export classpath =/opt/jdk1.5.0 _ 22/lib
Export android_java_home = $ java_home
2. remote connection
1. Terminal Tool Access (Open SSH)
Run the following command on the Ubuntu server terminal to install the SSH server tool:
$ Sudo apt-Get Install SSH
Download a terminal tool under XP, such as putty, and log on directly using SSH.
2. Access the Ubuntu server (Samba) as a Resource Manager)
Run the following command to install Samba:
$ Apt-Get install samba
$ Apt-Get install smbfs
Add users to the Samba server:
Note: users logging on to Samba must already be users in Linux.
# Smbpasswd-a username
Configure Samba:
Modify the samba configuration file/etc/samba/smb. conf.
[Global]
Workgroup = workgroup
Server String = Ubuntu
Security = Share
[Ubuntu]
Path =/home/xxx
Valid users = xxx
Public = Yes
Writable = Yes
Restart Samba after the configuration is complete:
$ Service smbd restart
After this simple configuration, you can start using it.
Appendix:
1. There is also a graphical Samba Configuration tool in Ubuntu: System-config-samba
2. Configure Samba refer to http://www.linuxidc.com/Linux/2008-01/10763.htm