[xubuntu-users] System-wide Proxy settings - where?

Radomir Dopieralski xubuntu at sheep.art.pl
Sun Jun 10 20:53:05 UTC 2007

Dnia Sun, Jun 10, 2007 at 04:38:30PM -0400, napisale(a)s: 
> On Jun 10, 2007, at 3:46 PM, Radomir Dopieralski wrote:
> > Nice to see you again :)
> >
> > I can only repeat what I already told you on the channel:
> > you need to set the environment variable http_proxy to the url of the
> > proxy (including the 'http://' and port number).
> Radomir:
> You must have me mixed up with someone else, I haven't been on the  
> channel.

Yeah, I must have.
> How do I do that, exactly?

There is a number of possible ways, but to do it globally I'd do the

Edit the file /etc/environment, for example with this command:

 gksu /etc/environment

(it will ask you for your password, because you need to do it as a root)

now, add the following line to that file:


where 'my.proxy.address' and 'port' need to be replaced with the
respective values you wish to use. Save the file and relog -- make sure
the setting is there by opening a terminal and ussuing the command:

 export | grep http_proxy

You might be also interested in the fact that apt (the application that
performs the installation of packages in Ubuntu) has some support for
proxy. For details, open a terminal and issue the command:

 man apt.conf

then search for the word 'proxy' by typing '/proxy'.

Radomir `The Sheep' Dopieralski 

More information about the xubuntu-users mailing list