Modify the Raspberry Pi Update source and set the agent configuration

Source: Internet
Author: User

Update source

The default Raspberry Pi update source uses the British source, the speed is very slow; change to the domestic Raspberry Pi Update source method, see below:

    • Backing Up source list files

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

Here to find suitable for domestic update source, I generally use is the source of Tsinghua

    • Edit Source List

sudo nano/etc/apt/sources.list

    • Delete the original content

Deb Http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian wheezy main contrib non-free RPI

    • Modify to the following content

Deb Http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/wheezy main contrib Non-free RPI

Ctrl + x confirm and save

    • System Update (see if the speed is up)

sudo apt-get update

sudo apt-get upgrade

?

Proxy settings

Sometimes the internet needs to set up agents, methods to look this way:

    • to the following path

Cd/etc/apt/apt.conf.d

    • Create a new file named 10proxy

sudo nano 10proxy

    • Edit the contents of

sudo nano/etc/apt/apt.conf.d/10proxy

    • If authentication is not required, the following formats can be

Acquire::http::P Roxy "http://web-proxy.corp.xx.com:8080";

    • If authentication is required, follow the format below

Acquire::http::P Roxy "Http://username:[email protected]address:proxyport/";

Ctrl + x confirm and save and see if the Raspberry Pi can surf the internet under the agent

?

Andy Yang

2015.09.22

Modify the Raspberry Pi Update source and set the agent configuration

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.