[OLPC-AU] setting network proxy through gconf

Sridhar Dhanapalan sridhar at laptop.org.au
Fri Aug 27 00:49:41 EDT 2010


I have worked out how to script gconf to set up network proxy
information. This is the cli equivalent of using the Network Proxy
tool in GNOME.

This should work with os202 or greater. Most XO-1.5s in NT and all XOs
in Qld have os201 and so are not affected.

Basic setup:
$ gconftool-2 --set --type=bool /system/http_proxy/use_http_proxy 1
$ gconftool-2 --set --type=string /system/http_proxy/host <server>
$ gconftool-2 --set --type=int /system/http_proxy/port <port>
$ gconftool-2 --set --type=bool /system/http_proxy/use_same_proxy 1

Exclusions list:
$ gconftool-2 --set --type=list --list-type=string
/system/http_proxy/ignore_hosts [localhost,127.0.0.0/8]

Proxy authentication:
$ gconftool-2 --set --type=bool /system/http_proxy/use_authentication 1
$ gconftool-2 --set --type=string
/system/http_proxy/authentication_user <username>
$ gconftool-2 --set --type=string
/system/http_proxy/authentication_password <password>



Sridhar Dhanapalan
Technical Manager
One Laptop per Child (OLPC) Australia
p: +61 425 239 701
w: http://laptop.org.au


More information about the OLPC-AU mailing list