Install Ubuntu 3 on a hard disk in Windows-configure the android development environment and common settings in ubuntu

Source: Internet
Author: User
Tags android sdk manager


Install Ubuntu 3 on a hard disk in Windows-configure the android development environment and common settings in ubuntu

Related links:
Install Ubuntu on a hard disk in Windows-install Ubuntu11.10http in XP: // www.bkjia.com/ OS /201205/130282.html;
Ubuntu II for Windows hard drive-install Ubuntu11.10 for Win7 http://www.bkjia.com/os/201205/130285.html After ubuntu is installed, You need to configure the development environment and some system settings. Directory: 1. Set root Password 2. Install JDK 3. Install eclipse 4. Install android SDK 5. Install NDK 6. Install ADT 7. Install SVN 8. modify the system font www.2cto.com 9. Install Chinese Characters input Method 1. Set the root password. For security purposes, ubuntu generally uses common users to access the system. To run some commands, you need the root permission. If you have not set the root password, you only need to run the: sudo passwd root command on the terminal. You need to enter the password twice and the password will not be displayed. Ii. Install JDK 1) first download JDK. Download the page: http://www.oracle.com/technetwork/java/javase/downloads/index.html (JDK6: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u32-downloads-1594644.html ), The downloaded binfile (my system is 64-bit, so the Linux 64-bit installation package is used ). Create a new java directory under the/usr/lib directory, copy the file to the java directory, grant the executable permission, and then install the file. The following command is used: [plain] cd/usr/lib sudo mkdir java cd java cp ~ /Jdkxxx. bin/usr/lib/java/sudo chmod a + x jdkxxx. bin sudo./jdkxxx. bin jdkxxx. bin is the downloaded file name ,~ /Jdkxxx. bin is the path to save the downloaded file. Enter the root password when executing sudo for the first time. A Done is displayed at the end, indicating that the installation is complete. 2) configure the environment variable: Open the/etc/profile file and add the following content at the bottom of the file: [plain] export JAVA_HOME =/usr/lib/java/jdk1.6.0 _ 29 export PATH = $ JAVA_HOME/bin: $ PATH www.2cto.com export CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar: $ CLASSPATH where/usr/lib/java/jdk1.6.0 _ 29 is the JDK installation root directory. Command: [plain] sudo gedit/etc/profile ctrl + s save close, then: [plain] sudo source/etc/profile make the environment variable configuration take effect, so you do not need to restart. It is valid only on the current terminal. If you open another terminal, you need to execute it again. Finally, enter the command to check whether the configuration is successful: [plain] java-version if the configuration is successful, the JDK version is displayed, as shown in: 3. Install eclipse: http://www.eclipse.org/downloads/ Because the system is 64-bit, you can download linux64-bit. If JDK is installed with 64-bit, it is best to use 64-bit, otherwise eclipse will not run. After downloading the file, decompress it and double-click the eclipse file. If the file cannot run, it may be that the java environment does not work. Change the terminal (if multiple terminals are enabled, the terminal that has run the sudo source/etc/profile command. If not, run it once.) run the following command in the decompressed directory of eclipse :. /eclipse ). 4. Install android SDK 1) download the SDK ,: http://developer.android.com/sdk/index.html Select Linux (i386 ). Because the SDK is only 32-bit, if it is installed with a 64-bit system, you need to install the ia32-libs to run the 32-bit program. Installation command: sudo apt-get install ia32-libs. After the download is complete, decompress the package, go to the SDK root directory on the terminal, and execute: tools/android update sdk-no-ui to start the same update as in windows. Www.2cto.com 2) configure the environment variables after the update is complete. Open the/etc/profile file, and add the following content below: [plain] export ANDROID_HOME =/home/mayliang/programs/android-sdk-linux4.0 export PATH = $ ANDROID_HOME/tools: $ ANDROID_HOME/platform-tools: $ PATH/home/mayliang/programs/android-sdk-linux4.0 is the root directory of the SDK. After this configuration, You need to execute the commands in android in the future. Instead of entering this directory, you can directly enter the commands in the terminal. After the modification is complete, save and close the file to take effect: sudo source/etc/profile. Input: android. If the Android SDK Manager window is displayed, the Environment configuration is successful. 5. Install NDK 1) download NDK ,: http://developer.android.com/sdk/ndk/index.html Select the Linux version. Decompress the package, configure the environment, open the/etc/profile file, and enter the following content at the bottom: [plain] export NDK_HOME =/home/mayliang/programs/android-ndk-r7 export PATH = $ NDK_HOME: $ PATH/home/mayliang/programs/android-ndk-r7 is the root directory of NDK. After saving and disabling, sudo source/etc/profile takes effect and enter ndk-build in the command line. If the following content is output, the configuration is successful. Android NDK: cocould not find application project directory! Android NDK: Please define the NDK_PROJECT_PATH variable to point to it. /home/mayliang/programs/android-ndk-r7/build/core/build-local.mk: 102: *** Android NDK: Aborting. stop. go to www.2cto.com and enter the samples/hello-jni directory under the NDK directory, and enter: ndk-build. If the directory appears, the NDK runs OK. Finally, the configuration file/etc/profile: 6. Install ADT to open eclipse, "Help" ---> "Install New Software... ", click the" Add "button, the page will appear, as shown in: Enter" adt "in" Name: ", and enter in" Location: https://dl-ssl.google.com/android/eclipse/ , Click OK, and then install the SDK all the way to Next. Finally, click "Windows" ---> "preferences" to display the interface shown in, click android on the left, and select the SDK root directory in "SDK Location, click "Apply" below to display the interface, that is, OK. 7. The installation steps for installing SVN are similar to those for installing ADT. Update the address: http://subclipse.tigris.org/update_1.8.x We recommend that you use the address of version 1.6: http://subclipse.tigris.org/update_1.6.x After the installation of version 1.8 is complete, you are prompted to install javaHL after restarting eclipse. After all the preparations are completed, eclipse will exit without reason. Finally, we installed the SVN plug-in 1.6. Www.2cto.com 8. modify the system font to install gnome-tweak-tool. Enter sudo apt-get install gnome-tweak-tool on the terminal to start installation, after that, search for "advance" in Dash Home (similar to a Windows menu) and the page shown in is displayed:

Finally, press enter to display the interface shown in: click "Fonts" to change the font at each position of the system to what you think is nice. All fonts on my system interface have been modified and can be seen above. 9. Install the Chinese input method because I have installed an English system. Enter "System Setting" in "Bash Home" and press enter to display the following interface: click "Language Support", and a page appears, select "ibus" in the "keybord input method system:" drop-down box under the "Language" tab, and click "Install/Remove ages... "button, a" Installed Language "interface will pop up, select" Chinese (simplified) "in it, and click" Apply Changes "below to complete the installation of the Chinese Language Pack, there are also Chinese Input, Pinyin, and five strokes. On www.2cto.com, a keyboard icon is displayed in the top row of the status bar. After you click it, a menu is displayed. Select "preferences" and click it. An interface shown in is displayed. Add the input method. Okay, I'm done. I don't need to search around the Internet in the future. It's because it was sorted out later, and there may be some omissions. Please forgive me. From jacpy's column

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.