Some of the configurations under Ubuntu

Source: Internet
Author: User

The exchange of the source under Ubuntu ....

Because their hands cheap, all of a sudden six months of painstaking efforts to destroy all, my entire embedded learning Process code AH, project AH, the problem ah, all lost ... and the evil disposition ...




No way, also reload the system ...


Installed in VMware under the Ubuntu, there are many problems ah, today began to record in the learning process throughout the configuration process ... Safekeeping .....

1, Change Source

In the shell when the command to use the Apt-get command, always prompt: Could not open file '/etc/apt/sources.list ', this is the source was deleted, this is OK, the entire configuration process as follows:;

A, first back up the file:

sudo cp/etc/apt/sources.list/etc/apt/sources.list_backup

B, add Source:

Gedit/etc/apt/sources.list

Copy the source list to the Sources.list file, and then save. Some sources are provided below:

Official Source: Amount, super slow

Deb Http://archive.ubuntu.com/ubuntu/precise main restricted universe Multiverse
Deb http://archive.ubuntu.com/ Ubuntu/precise-security main restricted universe Multiverse
Deb http://archive.ubuntu.com/ubuntu/ Precise-updates main restricted universe Multiverse
Deb Http://archive.ubuntu.com/ubuntu/precise-proposed main Restricted universe Multiverse
Deb Http://archive.ubuntu.com/ubuntu/precise-backports main restricted universe Multiverse
deb-src http://archive.ubuntu.com/ubuntu/precise main restricted universe Multiverse deb-src
http ://archive.ubuntu.com/ubuntu/precise-security main restricted universe multiverse
deb-src http:// Archive.ubuntu.com/ubuntu/precise-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com /ubuntu/precise-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ Precise-backports Main restricted Universe multiverse
Source of Hangzhou, Zhejiang: This speed is still very strong.

Deb Http://mirror.lupaworld.com/ubuntu precise main restricted universe Multiverse
Deb http:// Mirror.lupaworld.com/ubuntu precise-security main restricted universe Multiverse
Deb Http://mirror.lupaworld.com /ubuntu precise-updates main restricted universe Multiverse
Deb Http://mirror.lupaworld.com/ubuntu Precise-backports main restricted universe Multiverse
Deb Http://mirror.lupaworld.com/ubuntu precise-proposed Main restricted universe Multiverse
deb-src http://mirror.lupaworld.com/ubuntu precise main restricted universe Multiverse
deb-src http://mirror.lupaworld.com/ubuntu precise-security main restricted
universe multiverse DEB-SRC http://mirror.lupaworld.com/ubuntu precise-updates main restricted universe multiverse deb-src http://
Mirror.lupaworld.com/ubuntu precise-backports main restricted universe multiverse deb-src
Mirror.lupaworld.com/ubuntu precise-proposed main restricted universe multiverse

C, UPDATE:

Apt-get Update this process takes a certain amount of time, the only thing we can do is to knock a yes,no, and then just wait .... Patience....

2, the installation of the cross-compilation environment

This is very simple, download the installation package: ARM-LINUX-GCC 4.3.2.tgz

First unpack this installation package,

Tar xvzf ARM-LINUX-GCC 4.3.2.taz-c/(-c/This will automatically extract this file to/usr/locl/this folder)

This command will add an arm folder under/usr/local, enter this folder, and then locate the bin file, note the path at this point, such as the route.

Finally, add the path path to the path:

Edit the/ROOT/.BASHRC file to add a line like this:

Export path= $PATH:p ath

Then save, restart the shell terminal, and then ARM-LINUX-GCC This command can be used ...

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.