November 8, 2009 · General · Email This Post
Share

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!

If you are having ubuntu desktop/laptop in your office or home behind proxy this tutorial is for you.This tutorial will explain How to Configure Ubuntu desktop/laptop to use your proxy server.

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

1

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

2

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

3

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

4

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

5

Firefox proxy Configuration

Open your firefox browser go to Edit--->Preferences

6

Click on Advanced and select Network tab

7

Select Settings option

8

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

9

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

  • Share/Bookmark

Related Articles

11 Comments to “How to Configure Ubuntu desktop to use your proxy server”

  1. qwerty says:

    Firefox uses system wide network/proxy settings by default, there is no need to edit them.

  2. SonniesEdge says:

    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.

  3. Dan says:

    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

  4. Adam says:

    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!

  5. genewitch says:

    @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!

  6. Mayo2000 says:

    I’m wondering what fonts are you using. They look pretty.

  7. simon says:

    Seems it should just be necessary to do it once at system wide.

  8. georgi says:

    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 .

  9. SonniesEdge says:

    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.

  10. georgi says:

    thanks, this fixed my problem!

  11. Adriaan says:

    This doesn’t work, nothing works, cannot do a commandline update getting 407 proxy Authentication errors, all websites same advice.

Leave a Reply