If you're new here, you may want to subscribe to my RSS feed and if you have questions related to your ubuntu system post question to our forums. Thanks for visiting!
Network Proxy
Ubuntu has a setting in gnome for the Network Proxy, which should set gnome’s proxy.
First go to System--->Preferences--->Network Proxy

Once it opens click on “Proxy Configuration” and enter your proxy server,port number details click Close.

Synaptic Package Manager
Synaptic Package Manager must have the proxy set, in order to update your installation using the in-built Update Manager or Synaptic GUI.
Go to System--->Administration--->Synaptic Package Manager

Once Synaptic Package Manager opens click on Settings--->Preferences

Click on Network tab select Manual Proxy Configuration option and enter your proxy server,port details.If you have username,password click on Authentication to enter these details click on ok

Firefox proxy Configuration
Open your firefox browser go to Edit--->Preferences

Click on Advanced and select Network tab

Select Settings option

Now select Manual Proxy Configuration and enter your proxy server,port details click on ok

Terminal Proxy
If you want to configure proxy for apt-get,aptitude,wget use the following procedure
First you need to edit /etc/bash.bashrc file
gksudo gedit /etc/bash.bashrc
Add your proxy server details in the following format
export http_proxy=http://username:password@proxyhost:port/
export ftp_proxy=http://username:password@proxyhost:port/
Save and exit the file
Update the source list and you can restart your system
sudo apt-get update




Firefox uses system wide network/proxy settings by default, there is no need to edit them.
You shouldn’t need to touch the Firefox settings. Just leave it at “use system settings” and it will use whatever you’ve set in the system proxy dialogue.
Under Karmic/9.10 you won’t need to mess with the other settings either - just click “Apply system-wide” - no need to mess with exporting paths or fiddling with Synaptic.
This is very helpful, in 9.10 I had to fiddle with Synaptic and exporting paths because my HTTP proxy requires user authentication and it comes up with an error if I just set the Network Proxy Preferences under the System Menu (even when set to system-wide).
Yes, Firefox does use the Network Proxy Preference if set to System-Wide but only firefox asks you for your credentials, the others like Synaptic need you to configure it within their program
What if you’re going to and from the office, you have to set and unset this in three places every time? Not good enough!
@adam: you’d have to do that on windows if you used any non-microsoft programs (like firefox)
The easiest way is to go multi-user and have different settings for each user, i’d imagine. then use homeuser at home and workuser at work.
thanks for the article, it worked great, i think!
I’m wondering what fonts are you using. They look pretty.
Seems it should just be necessary to do it once at system wide.
I’ve followed the above instructions to configure my proxy at work and browsing the web only works partially.
For example, hitting “login” for Yahoo mail gives me an error, same for Hotmail. Gmail does not display at all. Other websites work fine. What could be the problem? I tried putting my Active Directory user name and password for the proxy authentication credentials but that doesn’t seem to help much. I’m on an Active Directory network .
Sounds like the proxy isn’t working for HTTPS sites. Make sure you ticked the “use this proxy server for all protocols” checkbox in the proxy config.
thanks, this fixed my problem!
This doesn’t work, nothing works, cannot do a commandline update getting 407 proxy Authentication errors, all websites same advice.