Friday, August 6, 2010

Set Proxy For Apt-Get in Ubuntu Server

Here is how to configure a proxy, so you can do apt-get behind proxy server. You need to add these lines into /etc/apt/apt.conf, create a new file if you don't find it.
Acquire {
http {
Proxy::ppa.launchpad.net "http://your-proxy:port/";
Proxy::security.ubuntu.com "http://your-proxy:port/";
Proxy::packages.medibuntu.org "http://your-proxy:port/";
Proxy::id.archive.ubuntu.com "http://your-proxy:port/";
};
}

No comments:

Post a Comment

Hi, for all of those who already put comments on my blog post, thanks.. really appreciate it. And for those who have not, just put your comments here :)