Build a series in Ubuntu environment-Chrome/JDK/Android

Source: Internet
Author: User

In fact, every time you reinstall the Ubuntu system, you have to perform a basic environment configuration, and every time you forget some environment configuration items, write this blog post, it is convenient for you to review the system in the future, and also serves as a reference for you to build the basic environment after reinstalling the system.

Because my system is 64-bit, I will use the 64-bit example below. For 32-bit, you only need to download the 32-bit installation package and perform the same steps to install it. For reference

I. Introduction to the Basic Environment

1. System: Ubuntu12.04 LTS x64

2.: http://www.ubuntu.org.cn/download

3. basic reasons:

1) depends on your needs

2) generally, we do not need the latest system because the development requires stability. The latest version is not as stable as the LTS version, and the LTS has a maintenance period of about 5 years.

3) We use Python2.7, while 13.04 comes with Pythoin3,

4. Set up users in this environment:

1) LAMP developers

2) Android basic application developers

3) Python developers

4) Buildbot continuous integration personnel

Ii. google-chrome Installation

1.: http://www.google.com/intl/zh-TW/chrome/browser/

2. Download the 32-bit or 64-bit files based on the system version. The files are 64-bit, so the 64-bit files are downloaded,

  

3. After the download is complete, you can use the terminal to reach the Save address of the google-chrome browser, which is generally :~ /Downloads, command:

4. Execute the command for installation, but this error will occur at the end. It doesn't matter. Continue to step 2.

 

5. Execute the command to fix the dependency. After the command is executed, we find that google-chrome is installed in the/opt directory, and you can enter it on the terminal to Open google-chrome,
6. If you want to lock it to the start column on the left for easy use, you must first open a website, such.

Iii. JDK Installation

1.: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

2. Note: if the local system downloads 32-bit 64-bit, the jdk of the .tar.gz compressed package is recommended.

3. After downloading ~ /Downloads

1) run the command to move jdk to the/usr directory.

2) use commands

Open the configuration file

export JAVA_HOME=/usr/local/lib/jdk1.7="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:$JAVA_HOME/bin:"=$JAVA_HOME/lib:$ClassPath

3) Save and return to the terminal. Execute the command to make the configuration take effect immediately.

4) enter the command. If the system version is displayed, the installation is successful.

Iv. Android Development Environment combination-SDK

1.: http://developer.android.com/sdk/index.html

2. Note: If you download a 32-bit or 64-bit version based on your system version, we recommend that you download the bound version. It already contains the tools required for development, such:

Select the required version.

3. After the download is complete, go ~ In the/Downloads directory, run the command to move it to the/usr/local/lib directory.

4. decompress the package using commands.

5. In this case, only the root user has the permission to perform operations on the file. Therefore, the user can use commands to modify the permission:

6. Because the file name is too long and inconvenient, we can use the command to modify the file name.

7.

Open the configuration file

export JAVA_HOME=/usr/local/lib/jdk1.7=/usr/local/lib/android_dev_tools/="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:$JAVA_HOME/bin:$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools"=$JAVA_HOME/lib:$ClassPath

3) Save and return to the terminal. Execute the command to make the configuration take effect immediately.

4) enter the command. If the output is correct on the terminal, the configuration is successful.

 

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.