Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like some recommendations for setting up the proxy server settings for Xubuntu 11.10.

I tried searching on Google and I got 2 common results that made use of command line stating that I should put these texts:

export http_proxy="http://server:portnumber"
export https_proxy="http://server:portnumber"
export ftp_proxy="http://server:portnumber"
export HTTP_PROXY="http://server:portnumber"
export HTTPS_PROXY="http://server:portnumber"
export FTP_PROXY="http://server:portnumber"


1) .bashrc file
2) /etc/environment

...therefore, what/where's the best way to put the codes then? Is the .bashrc file a user config or a system-wide config?

Lastly, can a GUI be installed to make such reconfiguration easier for students? I'm actually teaching them how to use Xubuntu (because Ubuntu's having a hard time with our workstations).


share|improve this question

As far i know, you only need the first 3 lines:

 export http_proxy="http://server:portnumber"
 export https_proxy="http://server:portnumber"
 export ftp_proxy="http://server:portnumber"

.bashrc is a file in your home directory (~/.bashrc) that contains user specific configuration. You'll use it to configure the proxy for only one user.

If you want the configuration to apply system wide (to all users), put the code in /etc/environment. Note that this requires root access.

Unfortunately, i don't know of any GUI that can be used in xubuntu.

Note: these could also read:

  export http_proxy="http://username:password@" 
  export https_proxy="http://username:password@" 
  export ftp_proxy="http://username:password@" 

in case you need to add the username and password to the proxy server address.

share|improve this answer

I believe you can also add a "no_proxy" entry for addresses and subnets you know can be accessed without going through the proxy, like so:

export no_proxy=",localhost,"

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.