Re: Galeon and switchproxy or several proxies
Mişu Moldovan <[email protected]> Wed, 05 Apr 2006 18:26:39 +0300
| Newsgroups | gmane.comp.web.galeon.user |
|---|---|
| Message-ID | <1144250805l.4161l.12l@dumitrum> |
În data de Mi, 05 apr 06 la 16:31, wwp a scris:
> I've installed the switchproxy add-on to firefox and mozilla, it
> works fine w/ both. I wonder is it's possible to use it in galeon
> too? FYI: proxy prefs in GNOME don't allow several proxies to be
> configured, this plug-in does it.
> Or maybe there's another galeon-way to setup and use several proxies?
>
> References:
> https://addons.mozilla.org/extensions/moreinfo.php?application=firefox&id=125
> http://tor.eff.org/docs/tor-switchproxy.html.en
>
I use the following script to set a new proxy. It takes two arguments:
the proxy host and the port.
---- script start ----
#!/bin/sh
gconftool-2 --set /system/http_proxy/host --type string "$1"
gconftool-2 --set /system/http_proxy/port --type integer "$2"
gconftool-2 --set /system/proxy/ftp_host --type string "$1"
gconftool-2 --set /system/proxy/ftp_port --type integer "$2"
gconftool-2 --set /system/proxy/secure_host --type string "$1"
gconftool-2 --set /system/proxy/secure_port --type integer "$2"
---- script end ----
Save the above lines to a script named "sp.sh" in your $PATH, and then
invoke it like this "sp.sh $proxy_host $proxy_port"
It works quite fine and I like it more than the "switchproxy" firefox
extension. Beware that this will change the proxy for all gnome apps.
--
.
/^)/_/(/
'
signature.asc
(application/pgp-signature, 191 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEM+G1WGHETwLAB1ERAkWxAJ4p1hYCgaJJ/moWjWv/qcGjttwVIgCdGL5X 4r/DEcDHX2mqY9TaAxXT2UY= =wXK7 -----END PGP SIGNATURE-----