Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 need to set a system wide proxy setting to automatically search the proxy settings like it's possible in windows.
I use Linux Mint Xfce and don't find any place in the GUI where I'm able to set my proxy settings. I'd also use a terminal to configure some proxy config files if there are any.

Important is, that the proxy settings apply to browsers (chromium, firefox) and apt-get (which also uses http, right?) and are set to auto search for proxy.

I know about the http_proxy, ftp_proxy etc. variables. But I don't know yet how to configure my system to autodiscover proxy settings.

share|improve this question
  1. Create a script file under /etc/profile.d/

export http_proxy=$proxyserver
export ftp_proxy=$proxyserver

  1. chmod +x
  2. after reboot/relogin the settings are systemwide
share|improve this answer
thanks for the idea to create a proxy script. But I do also need to autodiscover proxy settings. – Denis ME Aug 17 '12 at 10:07
Only way to autodiscover the proxy is WPAD or a PAC file. If you use DHCP and the environment is correctly set up, you could read the proxy option from /var/lib/dhclient/ | /var/lib/dhcpcd/*.lease . If the enviroment use fixed client ips you should check if a PAC file is used. – patricks Aug 17 '12 at 11:50

All of these tools should honor the http_proxy environment variable. Just set it in your profile script. Like this:

export http_proxy
share|improve this answer
Sadly, there's no profile script. I don't know the proxy ip and port. In windows it's possible to automatically discover the proxy settings without script. Is that possible in linux? – Denis ME Aug 17 '12 at 9:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .