On 4/27/07, Liam O'Toole <[EMAIL PROTECTED]> wrote:
On Thu, 26 Apr 2007 20:33:35 +0100
Julian Gilbey <[EMAIL PROTECTED]> wrote:
> I use my laptop in two locations, one which has an HTTP proxy (work),
> the other which doesn't (home). Is there an easy way to set up GNOME
> to understand multiple locations which are easy to switch between, or
> do I have to do everything manually?
I don't know of a dedicated tool for the purpose, but you could script
it yourself without too much difficulty. If you set the variable
$USE_HTTP_PROXY to 'true' or 'false' as appropriate, then you would
invoke:
/usr/bin/gconftool --set /system/http_proxy/use_http_proxy \
--type boolean $USE_HTTP_PROXY
You could then arrange to call the script in /etc/network/interfaces
when your home and work interface settings (assuming they differ) are
activated. Because of the way gconf works, epiphany will instantly
respect the new setting.
With firefo ... oops ... iceweasel it would be a bit more complicated.
With iceweasel, I like to use the "automatic proxy configuration" and
make it point to a URL that will generate the appropriate
autoconfiguration script.
http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
describes what must be present at the autoconfig URL.
--
Kushal
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]