How to add global proxy settings to xfce4

This entry was posted by on Wednesday, 11 May, 2011

I keep having this problem so I decided to write it down here, after following the instructions from

To add global proxy settings to xfce4, run the following code in order to add a few lines to /etc/environment:


sudo echo http_proxy=http://proxyaddress:port >>/etc/environment
sudo echo ftp_proxy=http://proxyaddress:port >>/etc/environment
sudo echo https_proxy=http://proxyaddress:port >>/etc/environment

Replace proxyaddress and port with the ip address and port (usually 3128 or 8080) where the proxy server is running.
If you need to add username and password authentication, you will need to replace all the commands with

http://user:[email protected]:port


3 Responses to “How to add global proxy settings to xfce4”

  1. Pat

    Great demo

  2. guyguy

    Ehm… do I need to restart the comp after doing this? Because if so – then this is very unhelpful.

    I switch networks twice a day (home->office->back home), and I need to change the proxy settings each time. Obviously I don’t want to restart my computer each time – as I have documents open etc.

    Is there a way to change the proxy settings without restarting the computer?

  3. Zia

    I tried the “dconf-tools” Gnome package in Xfce and it works.

Leave a Reply