Ubuntu Development Notes

Source: Internet
Author: User
Tags bz2 gnupg

ubuntu12.04 Boot black screen solution

Experiment One: Troubleshoot hardware problems

CD-ROM boot, everything is OK, it is not a hardware problem, and the way to check the hard disk is not a problem.

Experiment two: Exclude version

Press the SHIFT key at startup to appear in the Grub menu.
Select another kernel version to start, still black screen.

Experiment three: viewing error hints

When the Grub menu is displayed, press E to adjust the kernel boot parameters to change the quiet splash to text splash.
After the F10 is started, enter command-line mode.
StartX into the graphics mode, reported ERROR:API mismatch:the NVIDIA kernel module ..., to find the cause of the failure, the NVIDIA graphics card driver is not fully installed resulting in the inability to enter the graphics mode.

Copy the code code as follows:

sudo apt-get purge nvidia*
sudo apt-get install Nvidia-current-updates-dev

Reboot.

First, install the ubuntu14.04.1 (LTS) version

Installation According to the advanced installation method, the system allocates 40G

As follows:

/dev/sda* ext4/14g

/dev/sda* ext4/work 20G

/dev/sda* Swap 2G

/dev/sda* Ext4/home 4G

Installing VMware Tools

Click Virtual Machine, click Install VMware Tools

The installation CD appears, copy the compressed package, unzip the package to a location, run vmware-install.pl

Command: sudo./vmware-install.pl

Modify Places

Starting with 13.04 or 13.10, the top of the Ubunt File Manager (Nautilus) sidebar appears as "location", mostly a folder that I don't need several times a year, and it's always annoying.

now install Ubuntu Kylin 14.04, unexpectedly still has not changed. Had to search, and sure enough I am not a person on this feel uncomfortable, the original text in this:

Http://jamesmcminn.com/2012/12/removing ... -6-places/

In simple terms, modify the User-dirs.dirs file under your personal directory ~/.config, commenting out or deleting what you don't want:

# This file was written by Xdg-user-dirs-update
# If you want-to-change or add directories, just edit the line you ' re
# Interested in. All local changes 'll be retained on the next run
# Format is xdg_xxx_dir= "$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or xdg_xxx_dir= "/yyy", Where/yyy is an
# Absolute path. No other format is supported.
#
#
xdg_desktop_dir= "$HOME/desktop"
#XDG_DOWNLOAD_DIR = "$HOME/downloads"
#XDG_TEMPLATES_DIR = "$HOME/templates"
#XDG_PUBLICSHARE_DIR = "$HOME/public"
#XDG_DOCUMENTS_DIR = "$HOME/documents"
#XDG_MUSIC_DIR = "$HOME/music"
#XDG_PICTURES_DIR = "$HOME/pictures"
#XDG_VIDEOS_DIR = "$HOME/videos"

Create another file: or in this directory command line input
echo "Enabled=false" > ~/.config/user-dirs.conf

Reboot to see if it's refreshing.

Install Google IME

>sudo Apt-get Install Ibus-googlepinyin

Log out and then restart the Add Input method.

QT210 Download the burn android2.3 process

Will install the required 4 files

Arm-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.tar

u-boot-samsung-dev.bz2

android-kernel-samsung-dev-full.bz2

android-samsung-dev-full-rtl81xx.bz2

Copy to Virtual machine local

Create a new Folder "QT210" in the/home/armzone/directory and copy the files to this directory

Under Terminal, enter the following content, create the arm directory in/usr/local, must add the directory command before you must add sudo

Cd/usr/local

sudo mkdir arm

Then go to the QT210 directory and unzip the tool chain to the/usr/local/arm directory

sudo tar jxvf arm-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.tar-c/usr/local/arm/

(Note: This command is on the same line, do not use carriage return!) the line wrap on the picture is text input that wraps over the width of the window, and all of the following actions are the same. )

The command is preceded by sudo, sometimes requires a user password, enter after the loss, followed by such operations, no longer prompt.

To see if the tool chain is installed correctly, enter

ls/usr/local/arm/arm-2009q3/bin/

Compiling u-boot

Make sure to return to the QT210 directory and unzip the U-boot source code:

The command is as follows:

Tar jxvf u-boot-samsung-dev.bz2

Enter the U-boot code directory:

The command is as follows:

CD u-boot-samsung-dev/

Clear the original compilation traces:

The command is as follows:

Make clean

Make Distclean

To configure a single board type:

Make Smdkv210single_config

Compile: Command:

Make

Finally, we will generate the target file we want to burn in the current directory ' U-boot.bin '

Compiling Kernel

Back to/home/armzone/qt210 Directory

cd/home/armzone/qt210

Pressure Core Source code package

Tar jxvf android-kernel-samsung-dev-full.bz2

CD Android-kernel-samsung-dev-full

Copy the Mkimage file from the Uboot directory to the/usr/bin

sudo cp/home/armzone/qt210/u-boot-samsung-dev/tools/mkimage/usr/bin/

Then execute the following command:

CP config_qt210_android. config

Start compiling kernel

The compile kernel command is as follows:

Make Uimage

After the completion of the compilation will generate the file ' Uimage ', compile the generated uimage located in the Arch/arm/boot directory!

Compiling Android

(1) Unzip the android2.3.1 source code file, the command is as follows:

Back to home/armzone/qt210 Directory

(2) Many library files required for installation, this step is important and requires patience:

Before installing the library, you need to add a download source and execute the following command at the terminal:

sudo gedit/etc/apt/sources.list

Open the Sources.list file with Gedit, and in the last New line, enter:

Deb Http://cz.archive.Ubuntu.com/ubuntu hardy-updates main Multiverse

Deb Http://cz.archive.Ubuntu.com/ubuntu trusty-updates main Multiverse

Click Save to save and then close Gedit

The compilation process takes two steps: The first step is to install the necessary libraries, and the second executes the compilation scripts.

After adding the source, make the source update, enter in the terminal:

sudo apt-get update

(a) in the first part of the library, execute the following command in the terminal interface:

sudo apt-get install Git-core GnuPG Flex Bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential Zip Curl LIBNC Urses5-dev Zlib1g-dev g++

(Note: This command is on the same line, do not insert carriage returns!) It is recommended to copy the Cmd.txt file from the CD to the virtual machine, and then copy the command, the following operations require the same, no longer repeat)

The download prompt will appear in the middle, enter Y, and enter to continue. (Follow the installation process, need to download will have this prompt, do this, no longer repeat)

"Library for online reference"

sudo apt-get install build-essential

sudo apt-get install make

sudo apt-get install gcc

sudo apt-get install g++

sudo apt-get install Libc6-dev

sudo apt-get install patch

sudo apt-get install Texinfo

sudo apt-get install Libncurses-dev

sudo apt-get install Git-core GnuPG

sudo apt-get install Flex Bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential Zip Curl

sudo apt-get install Ncurses-dev

sudo apt-get install Zlib1g-dev

sudo apt-get install Valgrind

sudo apt-get install python2.5

"Error found: Unable to find Libwxgtk2.6-dev, modified as follows:"

sudo apt-get install Flex Bison gperf Libsdl-dev libesd0-dev build-essential Zip Curl Libncurses5-dev Zlib1g-dev

(b) The second part of the library, execute the following command in the terminal interface

sudo apt-get install gcc-multilib g++-multilib libc6 Libc6-dev

Continue to install the library, in the terminal input

sudo apt-get install libncursesw5 libncursesw5-dev libncurses5-dev libncurses5

Continue to install the library, in the terminal input

(c) Install Java libraries, including SUN-JAVA5 and SUN-JAVA6:

The first is to install SUN-JAVA6

The terminal interface executes the following command:

sudo apt-get install SUN-JAVA6-JDK

In the installation process need to accept the Java protocol, will automatically jump out of the interface of the protocol, press the "tab" key to select "OK" when the red background.

Press Enter or space to confirm.

->java-version

Java Version "1.6.0_06"

Java (TM) SE Runtime Environment (build 1.6.0_06-b02)

Java HotSpot (TM) Client VMs (build 10.0-b22, mixed mode, sharing)

Then press "tab" key to select "Yes"

Press Enter or space to confirm.

Then install Sun-java5

In the terminal interface, execute the following command:

sudo apt-get install SUN-JAVA5-JDK

(3) Execute the Compile command

Go to andriod Directory

Under the Android code directory, execute the following command:

For 32-bit systems,

./build_android_32.sh

For 64-bit systems,

./build_android_64.sh

Ubuntu Development Notes

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.