Ubuntu Installation Memo

Source: Internet
Author: User

One, upgrade and fallback kernel

1. Install Ubuntu

The Android development environment recommends using a stable kernel version, and it is recommended to install ubuntu12.04

2. Upgrading the kernel version

Since ubuntu12.04 is prone to deadlock, it is recommended to upgrade the kernel to kernel 3.5

Use the following command to upgrade:

Apt-get Install Linux-generic-lts-quantal Xserver-xorg-lts-quantal

3. Fallback kernel version

If you accidentally upgrade to an unstable, high-version kernel during kernel upgrade, you can remove unwanted

A. Viewing the installed kernel version

Dpkg--get-selections | grep linux-image

B. Removing unwanted kernels

sudo apt-get remove "unwanted kernel version"

Second, install the wireless card driver

1. Check the wireless card model to determine the driver version used

2. Install a different WiFi driver depending on the kernel version

3.2 Kernel Installation: http://download.csdn.net/detail/wlwl0071986/8811945

3.5 Kernel Installation: http://download.csdn.net/detail/wlwl0071986/8811919

3. Compile driver source, install driver

Make,make Install,insmod 8188.ko

Third, install Sogou input method under Ubuntu

1. Add a source

sudo add-apt-repository ppa:fcitx-team/nightly

2. Update the source

sudo apt-get update

3. Installing FCITX

sudo apt-get install FCITX

4. Installing the FCITX Configuration tool

sudo apt-get install FCITX-CONFIG-GTK

5. Installing the FCITX Table-all package

sudo apt-get install Fcitx-table-all

6. Install the Im-switch switch tool

sudo apt-get install Im-switch

7. Enter "FCITX" in the search field in the upper left corner, the input method icon appears, the installation is complete

8. In the system settings, set the system language to "Chinese-pinyin"

Iv. Installing the gcc4.4 in the ubuntu12.04

1. ubuntu12.04 The default installation of gcc4.6, we need to manually install gcc4.4

sudo apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib gcc-4.4-multilib

2. Set gcc4.4 as the default compiler

Update-alternatives--install/usr/bin/g++ g++/usr/bin/g++-4.4 100
Update-alternatives--install/usr/bin/g++ g++/usr/bin/g++-4.6 50
Update-alternatives--INSTALL/USR/BIN/GCC gcc/usr/bin/gcc-4.4 100
Update-alternatives--INSTALL/USR/BIN/GCC gcc/usr/bin/gcc-4.6 50
Update-alternatives--install/usr/bin/cpp cpp-bin/usr/bin/cpp-4.4 100
Update-alternatives--install/usr/bin/cpp cpp-bin/usr/bin/cpp-4.6 50

3. Check the GCC version to see if the installation was successful

Gcc-v

V. Installation of ADB tools

1. Install adb via Apt-get

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb

2. Copy the system's compiled ADB tool for installation

CP ~/android/out/host/linux-x86/bin/adb/usr/local/bin

3. Connect the Android device to the computer and view the USB device via LSUSB

Bus 001 Device 002:id 8087:0024 Intel Corp Integrated rate Matching Hub
Bus 002 Device 002:id 8087:0024 Intel Corp Integrated rate Matching Hub
Bus 003 Device 002:id 03f0:094a Hewlett-Packard
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
4. Create the Adb_usb.ini file, write the ID

sudo echo 0x1f3a > ~/.android/adb_usb.ini

5. Add Permissions

sudo vim/etc/udev/rules.d/70-android.rules

Add the following to note that the Red section corresponds to the ID that LSUSB gets

subsystem== "USB", attrs{idvendor}== "1f3a", attrs{idproduct}== "1002", mode= "0666"

6. Restart the USB service

sudo chmod a+rx/etc/udev/rules.d/70-android.rules

sudo service udev restart

7. Restart the ADB service

ADB kill-server

sudo adb start-server

ADB devices

Vi. ubuntu12.04 Related Problem solving

1. Solve the problem of txt text garbled

Gsettings set org.gnome.gedit.preferences.encodings auto-detected "[' utf-

8 ', ' GB18030 ', ' GB2312 ', ' GBK ', ' BIG5 ', ' current ', ' UTF-16 '] "

2. Exception error when installing package with Apt-get

E:sub-process/usr/bin/dpkg returned an error code (1)

Workaround:

sudo mv/var/lib/dpkg/info/var/lib/dpkg/info_old//renaming the Info folder now

sudo mkdir/var/lib/dpkg/info//re-create a new info folder

sudo apt-get update

sudo apt-get-f Install

sudo mv/var/lib/dpkg/info/*/var/lib/dpkg/info_old//After performing the previous step, some files are generated under the new Info folder and will now

These files are all moved to the Info_old folder

sudo rm-rf/var/lib/dpkg/info//delete your new info folder

sudo mv/var/lib/dpkg/info_old/var/lib/dpkg/info//Change the previous Info folder back to its name

3. VirtualBox appears kernel driver not installed (rc=-1908)

A. Joining the current user to the Vboxusers user group

sudo usermod-g vboxusers-a Andee

B. Install the following components

sudo apt-get install linux-headers-' uname-r '

sudo apt-get install virtualbox-dkms

sudo dpkg-reconfigure virtualbox-dkms)

C. Loading

ll/dev/| grep vboxdrv

sudo modprobe vboxdrv

D. Reinstall and start Vboxdrv

SUDO/ETC/INIT.D/VBOXDRV Setup

VirtualBox

Vii. Related Tools

1. VirtualBox official

Http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html#extpack

Ubuntu Installation Memo

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.