Binary package hint: gnome-control-center
I have a http and https proxy configured with a required user name and password for the proxy by gnome-network-properties from the package gnome-control-center.
I applied the settings in gnome-network-properties system wide. Now in bash I get these environment variables:
$ set | grep proxy
ftp_proxy=ftp://192.168.1.1:3128/
http_proxy=http://bonsai:vvvv@192.168.1.1:3128/
https_proxy=https://192.168.1.1:3128/
no_proxy='localhost,127.0.0.0/8,*.local,'
The last comma in the environment variable no_proxy is a *BIG* major problem ( and should prompt swift corporal punishment for the programmer responsible please ;) ) because it excludes the use of any proxy with wget. Example:
$ wget -4 -d www.google.com
DEBUG output created by Wget 1.12 on linux-gnu.
--2010-05-16 22:38:39-- http://www.google.com/
Auflösen des Hostnamen »www.google.com«.... 209.85.135.99, 209.85.135.103, 209.85.135.105, ...
Caching www.google.com => 209.85.135.99 209.85.135.103 209.85.135.105 209.85.135.104 209.85.135.147 209.85.135.106
Verbindungsaufbau zu www.google.com|209.85.135.99|:80... Closed fd 3
fehlgeschlagen: Connection refused.
Verbindungsaufbau zu www.google.com|209.85.135.103|:80... Closed fd 3
fehlgeschlagen: Connection refused.
Verbindungsaufbau zu www.google.com|209.85.135.105|:80... Closed fd 3
fehlgeschlagen: Connection refused.
Verbindungsaufbau zu www.google.com|209.85.135.104|:80... Closed fd 3
fehlgeschlagen: Connection refused.
Verbindungsaufbau zu www.google.com|209.85.135.147|:80... Closed fd 3
fehlgeschlagen: Connection refused.
Verbindungsaufbau zu www.google.com|209.85.135.106|:80... Closed fd 3
fehlgeschlagen: Connection refused.
Releasing 0x0862f100 (new refcount 1).
So no connection to google or any other web site at all.
But then, and please note the removal of the last comma in no_proxy
$ export no_proxy='localhost,127.0.0.0/8,*.local'
$ wget -4 www.google.com
--2010-05-16 22:40:08-- http://www.google.com/
Verbindungsaufbau zu 192.168.1.1:3128... verbunden.
Proxy Anforderung gesendet, warte auf Antwort... 302 Moved Temporarily
Platz: http://www.google.de/ [folge]
--2010-05-16 22:40:08-- http://www.google.de/
Verbindungsaufbau zu 192.168.1.1:3128... verbunden.
Proxy Anforderung gesendet, warte auf Antwort... 200 OK
Länge: nicht spezifiziert [text/html]
In »»index.html.1«« speichern.
[ <=> ] 8.948 --.-K/s in 0,06s
2010-05-16 22:40:08 (140 KB/s) - »»index.html.1«« gespeichert [8948]
Now it works.
So gnome-network-properties should set no_proxy *WITHOUT* a trailing comma.
$ apt-cache showpkg gnome-control-center
Package: gnome-control-center
Versions:
1:2.30.1-0ubuntu1 (/var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_lucid-updates_main_binary-i386_Packages) (/var/lib/dpkg/status)
Description Language:
File: /var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_lucid-updates_main_binary-i386_Packages
MD5: 841ec7130e7cda8d105ccf44ab60b8fa
1:2.30.0-0ubuntu4 (/var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_lucid_main_binary-i386_Packages)
Description Language:
File: /var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_lucid_main_binary-i386_Packages
MD5: 841ec7130e7cda8d105ccf44ab60b8fa
Reverse Depends:
ubiquity-frontend-gtk,gnome-control-center
totem,gnome-control-center 2.15.90
rhythmbox,gnome-control-center 2.15.90
rhythmbox,gnome-control-center
gnome-settings-daemon,gnome-control-center 1:2.21.5
gnome-settings-daemon,gnome-control-center 1:2.21.5
capplets-data,gnome-control-center 1:2.30.1-0ubuntu1
capplets-data,gnome-control-center 1:2.30.1-0ubuntu1
ubuntustudio-desktop,gnome-control-center
sawfish,gnome-control-center
ontv,gnome-control-center
mutter,gnome-control-center 1:2.5.4
icewm-gnome-support,gnome-control-center 1:2.0
gpe-conf,gnome-control-center
gnome-core,gnome-control-center 1:2.28
brdesktop-gnome,gnome-control-center
xscreensaver,gnome-control-center 1:2
ubuntu-netbook,gnome-control-center
ubuntu-desktop,gnome-control-center
ubiquity-frontend-gtk,gnome-control-center
totem,gnome-control-center 2.15.90
rhythmbox,gnome-control-center 2.15.90
rhythmbox,gnome-control-center
metacity,gnome-control-center 1:2.5.4
libgnome-desktop-2-17,gnome-control-center 1:2.23.5
gnome-system-tools,gnome-control-center
gnome-settings-daemon,gnome-control-center 1:2.21.5
gnome-settings-daemon,gnome-control-center 1:2.21.5
gnome-panel,gnome-control-center 1:2.8.2-3
gnome-desktop-data,gnome-control-center 1:2.0.3.2-2
capplets-data,gnome-control-center 1:2.30.0-0ubuntu4
capplets-data,gnome-control-center 1:2.30.0-0ubuntu4
Dependencies:
1:2.30.1-0ubuntu1 - libappindicator0 (2 0.0.19) libatk1.0-0 (2 1.29.3) libc6 (2 2.4) libcairo2 (2 1.2.4) libcanberra-gtk0 (2 0.2) libcanberra0 (2 0.2) libdbus-glib-1-2 (2 0.78) libebook1.2-9 (2 2.28.3.1) libfontconfig1 (2 2.8.0) libfreetype6 (2 2.2.1) libgconf2-4 (2 2.27.0) libglib2.0-0 (2 2.23.5) libgnome-desktop-2-17 (2 1:2.29.92) libgnome-menu2 (2 2.27.92) libgnome-window-settings1 (5 1:2.30.1-0ubuntu1) libgnomekbd4 (2 2.29.5) libgtk2.0-0 (2 2.18.0) libmetacity-private0 (2 1:2.26.0) libpango1.0-0 (2 1.17) librsvg2-2 (2 2.26.0) libunique-1.0-0 (2 1.0.0) libx11-6 (2 0) libxcomposite1 (2 1:0.3-1) libxcursor1 (4 1.1.2) libxft2 (4 2.1.1) libxi6 (2 2:1.2.0) libxklavier16 (2 5.0) libxml2 (2 2.7.4) libxss1 (0 (null)) capplets-data (2 1:2.30.1-0ubuntu1) capplets-data (3 1:2.31) gnome-settings-daemon (2 2.26) gnome-menus (2 2.12.0) gnome-desktop-data (0 (null)) gnome-icon-theme (2 2.24) desktop-file-utils (0 (null)) gconf2-common (2 2.23.2-0ubuntu3) ubuntu-system-service (2 0.1.10) libcanberra-gtk-module (0 (null)) gnome-screensaver (16 (null)) xscreensaver (0 (null)) x11-xserver-utils (0 (null)) gstreamer0.10-alsa (16 (null)) gstreamer0.10-audiosink (0 (null)) bzip2 (0 (null)) evolution-data-server (0 (null)) gnome-user-guide (0 (null)) gnome-session (0 (null)) policykit-1-gnome (0 (null)) mousetweaks (0 (null)) screen-resolution-extra (0 (null)) iso-codes (0 (null)) gnome-session (3 2.22.0)
1:2.30.0-0ubuntu4 - libappindicator0 (0 (null)) libatk1.0-0 (2 1.29.3) libc6 (2 2.4) libcairo2 (2 1.2.4) libcanberra-gtk0 (2 0.2) libcanberra0 (2 0.2) libdbus-glib-1-2 (2 0.78) libebook1.2-9 (2 2.28.3.1) libfontconfig1 (2 2.8.0) libfreetype6 (2 2.2.1) libgconf2-4 (2 2.27.0) libglib2.0-0 (2 2.23.5) libgnome-desktop-2-17 (2 1:2.29.92) libgnome-menu2 (2 2.27.92) libgnome-window-settings1 (5 1:2.30.0-0ubuntu4) libgnomekbd4 (2 2.29.5) libgtk2.0-0 (2 2.18.0) libmetacity-private0 (2 1:2.26.0) libpango1.0-0 (2 1.17) librsvg2-2 (2 2.26.0) libunique-1.0-0 (2 1.0.0) libx11-6 (2 0) libxcomposite1 (2 1:0.3-1) libxcursor1 (4 1.1.2) libxft2 (4 2.1.1) libxi6 (2 2:1.2.0) libxklavier16 (2 5.0) libxml2 (2 2.7.4) libxss1 (0 (null)) capplets-data (2 1:2.30.0-0ubuntu4) capplets-data (3 1:2.31) gnome-settings-daemon (2 2.26) gnome-menus (2 2.12.0) gnome-desktop-data (0 (null)) gnome-icon-theme (2 2.24) desktop-file-utils (0 (null)) gconf2-common (2 2.23.2-0ubuntu3) ubuntu-system-service (2 0.1.10) libcanberra-gtk-module (0 (null)) gnome-screensaver (16 (null)) xscreensaver (0 (null)) x11-xserver-utils (0 (null)) gstreamer0.10-alsa (16 (null)) gstreamer0.10-audiosink (0 (null)) bzip2 (0 (null)) evolution-data-server (0 (null)) gnome-user-guide (0 (null)) gnome-session (0 (null)) policykit-1-gnome (0 (null)) mousetweaks (0 (null)) screen-resolution-extra (0 (null)) iso-codes (0 (null)) gnome-session (3 2.22.0)
Provides:
1:2.30.1-0ubuntu1 -
1:2.30.0-0ubuntu4 -
Reverse Provides: