Linux Mint installs, configures and builds Android source compilation environment

Source: Internet
Author: User
Tags linux mint

Linux Mint installs, configures and builds Android source compilation environment

Have used Ubuntu, now want to change Linux mint try. Here is the process I installed to configure Linux Mint13.
1. Installation

When I installed LinuxMint13, I tried several ways and failed. Finally, a hard disk installation is selected. Hard drive installs LinuxMint and installs Ubuntu like.
1.1. Preparatory work

1. Download Linux Mint 13 from the official website of Linux Mint http://www.linuxmint.com/.

2, download grub4dos,http://www.linuxidc.com/linux/2009-01/18027.htm.
1.2. Installation Steps

1, copy the downloaded Linuxmint-13-mate-dvd-64bit.iso to the C packing directory of the system.

2. Extract Vmlinuz, initrd.lz files from Linuxmint-13-mate-dvd-64bit.iso's Casper folder. Also put in the C packing directory.

3, Decompression Grub4dos compressed package, will get a folder named grub4dos-0.4.4, will be copied to the following files to C (where the first two files are required, after two files online some information said no need, in order to insure or put on it, anyway there is no harm ~):

Grldr menu.lst grldr.mbr Grub.exe

4. Modify the Menu.lst file to add the following content at the end of the file

Title Install Linux Mint

Root (hd0,0)

Kernel (hd0,0)/vmlinuz boot=casper iso-scan/filename=/linuxmint-13-mate-dvd-64bit.iso locale=zh_cn. UTF-8

INITRD (hd0,0)/initrd.lz

Which, after the title of the content is casually written, kernel behind the highlight is the Linux Mint image file, you need to match the file name in the C drive.

5, modify the C packing directory under the hidden boot. ini, after opening the file, add the following content at the end of the file

C:\grldr= "Linux Mint Install"

After the completion of the above work, restart the system to start the XP hard disk installation of Linux Mint process!



But I installed spent a long time, mainly wasted on the system partition, the operation of each partition will have to wait long ah, the egg hurts Ah!

Note: Uninstall isodevices after rebooting after you enter the Linux Mint interface

Umount-l/isodevices

This step is important, and the partition cannot be successful without this step.


2. Configuration

After the installation is complete, you can configure it, because the installation is not linked to the network, there is no download update package, language Pack. The first thing to do now is to install the language pack.

MINT 13 The default update source is really slow, so the first step is to deal with the problem of updating the source first.
2.1. Update source

LinuxMint's Mirror is based on the mirror station of China University of Science and Technology, China University of Science and Technology linuxmint:http://mirrors.ustc.edu.cn/linuxmint/This is the only and primary mirror.

Here's the exact steps.

1. Log in to Linux Mint and open the terminal.

2. Type the command sudo nano/etc/apt/sources.list, it is recommended to first back up.

3. It should look like this when you open the text
Deb Http://packages.linuxmint.com/maya main upstream import
Deb Http://archive.ubuntu.com/ubuntu/precise main restricted universe multiverse
Deb Http://archive.ubuntu.com/ubuntu/precise-updates main restricted universe multiverse
Deb Http://security.ubuntu.com/ubuntu/precise-security main restricted universe multiverse
Deb Http://archive.canonical.com/ubuntu/precise Partner
Deb Http://packages.medibuntu.org/precise free Non-free
You can see that there is no Chinese server shadow

4, below we will add the source of China
Add the following text
Deb Http://mirrors.ustc.edu.cn/linuxmint/maya main upstream import universe multiverse
Deb Http://mirrors.163.com/ubuntu/precise main restricted universe multiverse
Deb Http://mirrors.163.com/ubuntu/precise-security main restricted universe multiverse
Deb Http://mirrors.163.com/ubuntu/precise-updates main restricted universe multiverse
And the original source is all commented out (is sealed off, do not use)
Deb Http://packages.linuxmint.com/maya main upstream import
Deb Http://archive.ubuntu.com/ubuntu/precise main restricted universe multiverse
Deb Http://archive.ubuntu.com/ubuntu/precise-updates main restricted universe multiverse
Deb Http://security.ubuntu.com/ubuntu/precise-security main restricted universe multiverse
Deb Http://archive.canonical.com/ubuntu/precise Partner
Deb Http://packages.medibuntu.org/precise free Non-free
Note that you add a # number to the front.
Note: Here are the Linux Mint Maya For example, other extrapolate can be. Actually, it's just a link. After
The text of the polygon remains intact.

5. Update APT
In Terminal input command sudo apt-get update
Wait for the execution to complete. You'll find Linux Mint so light!


2.2. Install Input Method

Here, I'm installing FCITX.

Search for FCITX directly from the software manager and install.

After installation, go to control center---"Language support keyboard Input mode system Select Fictx

Restart the system to use.


2.3. Install QQ

1, to the following URL to download the Deb installation package, Http://www.longene.org/download/qq2011-for-wine_20120220.deb, has packaged the Deb package, the size of 150M or so;

Latest Release 6-1 update: Http://www.longene.org/download/WineQQ2012-20120531-Longene.deb Several bugs have been patched!

2. Open terminal input to the directory to run the command installation:

sudo dpkg-i *.deb

3, 64-bit systems also need to run the following command:

sudo apt-get install Ia32-libs

4, uninstall the words run the following command:

Dpkg-r Qq-for-wine


2.4. Install Google Chrome

1. Chrome

Download the latest installation package to https://www.google.com/intl/en/chrome/browser/index.html. You can also install it by using the following command

32-bit system:

Wget-o Google-chrome_i386.deb Http://goo.gl/itppy

sudo dpkg-i google-chrome_i386.deb

64-bit system:

Wget-o Google-chrome_amd64.deb Http://goo.gl/iXDWk

sudo dpkg-i google-chrome*.deb

2, Chromium

sudo apt-get install Chromium-browser

Chromium Flash Plugin Failure repair method:

Find Flash Plugins

$ sudo locate libflashplayer.so

/usr/lib/adobe-flashplugin/libflashplayer.so

Copy Flash plugin to chromium-browser plugin directory
$ sudo cp/usr/lib/adobe-flashplugin/libflashplayer.so/usr/lib/chromium-browser/plugins


2.5. Install the wireless card

My network card is BCM4312, in the online search for a long time, tried two or three ways can not. Finally find the following methods to solve:

1, first to Broadcom's official website to carefully see the specific link address as follows:
http://www.broadcom.com/support/802.11/linux_sta.php

You can check the model of your network card, download the corresponding driver. Under terminal input: "LSPCI | grep network confirms the NIC model.

2. Decompression
Tar-xzf hybrid-portsrc-x86_32-v5.60.48.36.tar.gz

3. Compiling
Make

The following error was encountered at compile time:

/home/lgq/hybrid_wl/src/wl/sys/wl_linux.c:388:2: Error: There is an unknown field ' ndo_set_multicast_list ' in the initializer
/home/lgq/hybrid_wl/src/wl/sys/wl_linux.c:388:2: Warning: Initializing from an incompatible pointer type [enabled by default]
/home/lgq/hybrid_wl/src/wl/sys/wl_linux.c:388:2: Warning: (near initialization of ' wl_netdev_ops.ndo_validate_addr ') [enabled by default]

After Google found Ndo_set_multicast_list was replaced by Ndo_set_rx_mode (mentioned on the following website http://www.mindwerks.net/2011/11/wireless-bcm4312-3-2-kernel/

Compile the pass again.

4. Sudo make install

5, sudo depmod

6. Sudo modprobe wl

Give Ubuntu a few seconds after loading the ' WL ' kernel module, then eventually the Network Manager would start looking for Wireless networks.



Reference Link: http://blog.csdn.net/cs090506/article/details/7300526


2.6, install dictionary star translation King

Install the star translation King StarDict through the software manager.

Dictionary Download path: http://abloz.com/huzheng/stardict-dic/


2.7. Compile and install the latest ALSA drive

Just install the Linux Mint, plug in the headset, the notebook's built-in speakers still have sound.

1. Check the codec model of your sound card.

Terminal input Alsamixer to view the displayed chip value. Or cat/proc/asound/card0/codec#0, view the first line of the displayed results.

2, to the official website to download the appropriate driver to install.


3. Build Android Source development environment

In this section is the Android4.0 of the source development environment.

The GNU make 3.81, Python 2.7.3, and Git 1.7.9.5 are already installed in Linux Mint 13.

So you also need to install JDK6.
3.1, Installation Jdk6

Linux Mint 13 comes with OPENJDK, but this is not what I want, we want sun-java6.

1. Before installing Sun's JDK, remove OPENJDK, open new stand, search openjdk, completely delete all the packages.

2. Http://www.oracle.com/technetwork/java/javase/downloads/jdk6-downloads-1637591.html on Sun's official website Download the latest installation files (for example: Jdk-6u34-linux-x64.bin).

Add Execute permission: sudo chmod u+x jdk-6u34-linux-x64.bin

Copy the installation files to the/usr/lib/java/directory

Executes the installation command./jdk-6u34-linux-x64.bin

After the JDK is successfully installed, we are going to configure the JDK, use the $ sudo gedit/etc/environment to modify the environment file and add the following code:

Path= "/usr/lib/java/jdk1.6.0_34/bin"

Classpath= "/usr/lib/java/jdk1.6.0_34/lib"

Java_home= "/usr/lib/java/jdk1.6.0_34"

If path already exists, use a colon as the interval to add the bin directory address of the JDK, so that the Java environment variable will be configured successfully, but the default use of the JDK may not be the one we just installed, because Ubuntu may also have a default JDK, such as OPENJDK; To make the default use of the JDK that we installed, we also need to execute the following command:

$ sudo update-alternatives--install/usr/bin/java Java/usr/lib/java/jdk1.6.0_34/bin/java 300

$ sudo update-alternatives--install/usr/bin/javac Javac/usr/lib/java/jdk1.6.0_34/bin/javac 300

$ sudo update-alternatives--config java

After successfully executing the command, we installed the JDK is the system default, execute the command $ java-version can successfully see the information about the JDK, such as:

Java Version "1.6.0_34"

Java (TM) SE Runtime Environment (build 1.6.0_34-b04)
Java HotSpot (TM) 64-bit Server VM (build 20.9-b04, Mixed mode)
3.2. Install the required packages

Install the toolkit required to compile Android, this step is critical and must be installed, otherwise the compilation will report inexplicably error!!!!!!!!!!!!!!!!

sudo apt-get install Git-core GnuPG Flex Bison gperf build-essential Zip curl zlib1g-dev Libc6-dev Lib32ncurses5-dev ia3 2-libs x11proto-core-dev libx11-dev lib32readline-gplv2-dev lib32z1-dev libgl1-mesa-dev gcc-multilib g++-multilib Ming W32 Tofrodos Python-markdown Libxml2-utils Xsltproc
3.3. Configure USB

Lgq-laptop Bin # Lsusb
Bus 001 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 002 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 003 Device 001:id 1d6b:0001 Linux Foundation 1.1 root Hub
Bus 004 Device 001:id 1d6b:0001 Linux Foundation 1.1 root Hub
Bus 005 Device 001:id 1d6b:0001 Linux Foundation 1.1 root Hub
Bus 006 Device 001:id 1d6b:0001 Linux Foundation 1.1 root Hub
Bus 007 Device 001:id 1d6b:0001 Linux Foundation 1.1 root Hub
Bus 002 Device 003:id 04f2:b008 chicony Electronics Co., LTD USB 2.0 Camera
Bus 006 Device 002:id 1ea7:000b
Bus 002 Device 004:id 05c6:9025 Qualcomm, Inc.

$sudo Vim/etc/udev/rules.d/70-android.rules

Add the following:

subsystem== "USB", attrs{idvendor}== "05c6", attrs{idproduct}== "9025", mode= "0666"

To run the command, restart Udev:

$sudo chmod a+rx/etc/udev/rules.d/70-android.rules
$sudo Service Udev Restart


3.4. Install SVN

1. Install Subversion

Apt-get Install Subversion

2, Installation Rabbitvcs

sudo add-apt-repository Ppa:rabbitvcs/ppa

sudo apt-get update

sudo apt-get install Rabbitvcs-nautilus3

Nautilus-q

Nautilus

Rabbitvcs interface is more customary, but, very card.

3, RAPIDSVN

sudo apt-get install RAPIDSVN

4, ESVN


3.5. Set CCache
① installation CCache
Download or apt install sudo apt-get install CCache

②$ which CCache
View the installation path,/usr/bin/ccache

③$ mkdir ~/.bin
④$ CD ~/.bin/
$ ln-s/usr/bin/ccache gcc
$ ln-s/usr/bin/ccache g++
$ ln-s/usr/bin/ccache ARM-LINUX-GCC
$ ln-s/usr/bin/ccache arm-linux-g++

⑤path settings, put ~/.bin/in front of path such as ARM-LINUX-GCC.
Original: Path=/usr/local/arm-linux_pre4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Now: Path=/home/<user>/.bin:/usr/local/arm-linux_pre4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin :/sbin:/bin
Gedit ~/.BASHRC Add Export path= "/home/<user>/.bin: $PAHT" and restart it

⑥$ which ARM-LINUX-GCC
/HOME/&LT;USER&GT;/.BIN/ARM-LINUX-GCC Confirmation

⑦$ ccache-m 30G


3.6. Install the latest eclipse

Eclipse Build Method Reference: http://www.cnblogs.com/tnxk/archive/2012/07/09/2583800.html

Eclipse is very slow to update and collects a way to speed up the update.

The solution can only be replaced to the mirror site, the specific steps:

1. Find a domestic site-North Jiaotong University Good Http://mirror.bjtu.edu.cn/eclipse

2. Replace the Eclipse update server download site Windows-Preferences-install/update-Available software Sites

3. Find all the lines that started with the eclipse, and note that all of them, because different versions of the Eclipse official project, such as Web Tools project, need to be changed to mirror sites, otherwise, only some of the plug-in sites will be updated, only partially solve the speed problem.

4. Click "Edit" to edit the location section and replace http://download.eclipse.org to Http://mirror.bjtu.edu.cn/eclipse



Reference Link: http://blog.csdn.net/chenxihua/article/details/6423168


4, Problems and solutions
4.1. Waiting for network configuration problem after reboot
Now when dialing in the Ubuntu 12.04 environment, if you use the sudo pppoeconf command to configure dialing, the waiting for network configuration is displayed first after restarting the computer, and then the waiting to Mor e seconds for network configuration, finally the booting system without full network configuration is displayed. And the network Connection status icon disappears when you go to the desktop.
Cause of the problem:

When you use the sudo pppoeconf command, there is information written to the/etc/network/interfaces file, which directly results in the above problem.

Problem solving:

sudo gedit/etc/network/interfaces after opening the file, remove the

Auto Lo

Iface Lo inet Loopback
After all other content is deleted, reboot the system.

Linux Mint installs, configures and builds Android source compilation environment

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.