I want to use a pac-file-url to set the web proxy rules for chromium in lubuntu. Chromium reads its settings from the system wide OS settings. I read How do I set systemwide proxy servers in Xubuntu, Lubuntu or Ubuntu Studio? but I am not clear on the following question.
How do I specify the pac-file-url in the system wide settings in lubuntu?
Here a several ways to do this.
Network based configurations
DHCP
If you are using DHCP, you can set here an option configuring your clients. For this specify in your dhcpd configuration:
DNS
An alternate possibility is to use the DNS to specify the pac file.
See e.g. wikipedia
(Note: These are examples and may not be live URLs.)
Notes:
wpad.dat
file may be an symbolic link to the file used in the DHCP configuration.System / user based configurations
system (or user) based configuration via environment variable
To use the pac file for
curl
and other programs you can set the environment variableauto_proxy
. E.g.:user based configuration for applications using gconf
For adding the autoconfig url to your gconf settings you can use the following command:
lxproxy Utility for Lubuntu
Please see the community wiki. Here is the ppa for
lxproxy
referenced. Lxproxy claims to be a smlall gui to set a proxy server.Application specific configuration
chromium
You may enforce that all chromium browser instances on a machine use the autoconfig url. Place a file (e.g. proxyConfig) below
/etc/chromium-browser/policies/managed/
with the following contentNote: Placing this file below
/etc/chromium-browser/policies/recommended
will make this setting a default. The user is able to change this setting afterwards in his own chromium configuration.firefox
Edit the file
/etc/firefox/syspref.js
and add the following linesAlternate way: Set this values as user preferences via about:config.
thunderbird
Edit the file
/etc/thunderbird/syspref.js
and add the following linesNote: Due to bug #1081015 you can't lock down this setting. So it is here only possible to set a default. Ensure that this values are note overwritten by
prefs.js
in your active profile.