Rasp Pi

PI and the Proxy

So we need to connect a pi on the network to update and stuff with apt-get or aptitude.  This is blagged from http://askubuntu.com/questions/23666/apt-get-does-not-work-with-proxy

http://%5Busername%5D:%5Bpassword%5D@%5Bproxy-webaddress%5D:%5Bport%5D – assume this is Windows based

For our Windows network our username is in the format:


For example:


This was added to the following NEW file (it doesnt exist by default):

gksudo gedit /etc/apt/apt.conf.d/01proxy

The following text was added:

Acquire::http::Proxy "http://mywindowsdomain\fossfreedom:password@askubuntu-proxy.com:8080";

If you are using an anonymous proxy then you don’t need your login credentials:

Acquire::http::Proxy "http://askubuntu-proxy.com:8080";

Save the file and then checked that all was ok with:

sudo apt-get update