Build Ubuntu Android compilation Server

Source: Internet
Author: User
Tags ssh server

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.

  • Set the system to use the right version of Java by default:

    $ Sudo Update-Java-alternatives-s Java-1.5.0-sun

Note: currently, the main Android code compilation requires jdk1.6.

  • X11: Ubuntu doesn' t have packages for the X11 libraries, but that can be worked around with the following command:

    $ Sudo ln-S/usr/lib32/libx11.so. 6/usr/lib32/libx11.so

  • Configure environment variables:
    In ~ /. Add the following content to the bashrc file:

    Export Path = $ java_home/bin:/usr/local/ARM/4.2.2-Eabi/usr/bin: $ path

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.