Proxydriver is little application wich handles Gnome or Kde proxy settings using Network Manager's informations.
Each network connection triggers a reconfiguration of Gnome/Kde proxy, based on network profile name.
Thanks to every contributors for their help.
Current version of application: 1.62
One configuration file is used by network name; this configuration file is /etc/proxydriver.d/${network}.conf
A first connection on a new network creates automatically a template of a configuration file with a proxyless configuration.
This script was tested under Ubuntu and Fedora with GNOME, Network Manager and nmcli. It needs Gnome or Kde, NetworkManager and nmcli.
If nmcli is not found, proxydriver uses iwgetid to identify current network profile; in this case only wifi connections are compliant with proxydriver.
Download and install .deb package of proxydiver.
Install package proxydiver from Arch User Repository.
If you can't or don't want to install a package, you can also manually install proxydriver by this way:
$ wget http://sourceforge.net/p/proxydriver/code/HEAD/tree/src/v1.62/proxydriver.sh?format=raw
$ sudo install -m 755 -o 0 -g 0 proxydriver.sh /etc/NetworkManager/dispatcher.d/99proxydriver.sh
To can check is nmcli is present, use this command line (nothing output = nmcli not installed):
$ which nmcli
You should install nmcli if you want to have a complete-working proxydriver.
Some distro packaged nmcli into Network-Manager's one, that's the case for Fedora 13, but not yet today for Debian or Ubuntu.
To install program manually:
$ ./configure 1
$ make
$ sudo make -C cli/ install
1 You may have some missing dependencies here, if you are running on Ubuntu, this command line could give you some help:
$ sudo apt-get install libdbus-1-dev libdbus-glib-1-dev libgcrypt11-dev libglib2.0-dev libgpg-error-dev
libgudev-1.0-dev libnl-dev libpolkit-gobject-1-dev libunique-1.0-0 uuid-dev ppp-dev libnss3-dev
Project is now on sourceforge, sources are available by SVN. You can also browse sources here.
To know what is the current network profile:
$ grep "proxydriver.*using" /var/log/syslog | tail -n 1
To edit configuration file of current wifi connection:
$ nano /etc/proxydriver.d/${network}.conf
$ grep proxydriver /var/log/syslog
$ groups
$ sudo addgroup ${user} dip