Configuration tested using Ubuntu 12.10.
Firefox, Chrome, Chromium, Thunderbird, Pidgin, Evolution, Banshee, Rhythmbox, etc., these clients take the proxy configuration from the system properties at the Network Proxy. It's only necessary to write the data of our proxy. The program will ask for username/password if requested by the proxy.
Firefox settings:
Network proxy (dconf-editor command):
wget, winetrics, add-apt-repository, etc. need the proxy configuration in the environment variables. It's necessary to open a terminal to make the following configurations.
sudo gedit /etc/environment
and add the following lines:
no_proxy="localhost,127.0.0.0/8,*.local,.sampledomain.com" (domain names indicated by a leading dot)
ftp_proxy=ftp://username:password@proxy.domain:port/
http_proxy=http://username:password@proxy.domain:port/
https_proxy=https://username:password@proxy.domain:port/
all_proxy=socks://username:password@proxy.domain:port/
e.g:
no_proxy="localhost,127.0.0.0/8,*.intranet.ibermatica"
ftp_proxy=ftp://ibermatica%5cbaromojm:haslo@ibproxy01.intranet.ibermatica:8080/
http_proxy=http://ibermatica%5cbaromojm:haslo@ibproxy01.intranet.ibermatica:8080/
https_proxy=https://ibermatica%5cbaromojm:haslo@ibproxy01.intranet.ibermatica:8080/
all_proxy=socks://ibermatica%5cbaromojm:haslo@ibproxy01.intranet.ibermatica:8080/
Ubuntu Software Center, or the install package assistants, like installatiion of codecs, language support, apt-get, aptitude, etc.
sudo gedit /etc/apt/apt.conf
and append the following lines:
Acquire::ftp::Proxy "ftp://username:password@proxy.domain:port/";
Acquire::http::Proxy "http://username:password@proxy.domain:port/"; Acquire::https::Proxy "https://username:password@proxy.domain:port/";
Acquire::socks::Proxy "socks://username:password@proxy.domain:port/";
Remark:
If using special characters you must use the URL encoding for the values, for example an "@" would be "%40"
e.g:
Acquire::ftp::Proxy "ftp://ibermatica%5cbaromojm:haslo@ibproxy01.intranet.ibermatica:8080/";
Acquire::http::Proxy "http://ibermatica%5cbaromojm:haslo@ibproxy01.intranet.ibermatica:8080/";
Acquire::https::Proxy "https://ibermatica%5cbaromojm:haslo@ibproxy01.intranet.ibermatica:8080/";
Acquire::socks::Proxy "socks://ibermatica%5cbaromojm:haslo@ibproxy01.intranet.ibermatica:8080/";
http://askubuntu.com/questions/23666/apt-get-does-not-work-with-proxy
http://danjared.wordpress.com/2011/03/09/configurar-el-proxy-en-ubuntu/