Linux proxy

== proxy for apt ==


$ sudo vi /etc/apt/apt.conf.d/60proxy
Acquire::http::Proxy “http://x.x.x.x:port”;

Don’t miss the trailing “;”.

The proxy can be in pac form:


== proxy for wget ==

wget -e http_proxy=http://x.x.x.x:port -c -m -np -k URL 

One thought on “Linux proxy

  1. $ wget -e http_proxy="http://proxyhost:8080/accelerated.pac" -O- | sudo apt-key add —2012-12-18 10:08:53– proxyhost (proxyhost)… to proxyhost (proxyhost)||:8080… connected.Proxy request sent, awaiting response… 200 OKLength: 1734 (1.7K) [text/plain]Saving to: `STDOUT'100%[=====================================================================================================================>] 1,734 5.41K/s in 0.3s 2012-12-18 10:08:54 (5.41 KB/s) – written to stdout [1734/1734]OK

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s