On 23/11/06, Sonia Hamilton <[EMAIL PROTECTED]> wrote:
On my laptop (Ubuntu Edgy), I want to change various settings when I'm
on different networks. A couple of questions:

* how would I change the proxy used by Firefox 2.0 thru scripts?

A few possibilities to explore:

1. use "-remote" (http://www.mozilla.org/unix/remote.html) to make
Firefox open a file which contains JavaScript code (or an XPI module?)
that will change the settings.
2. Point Firefox to always use a proxy on localhost (e.g. tinyproxy)
which will then be configurable to the right onward proxy/network.


* what's the best way *in general* to handle changing network related
settings on a laptop? At the moment I'm just writing scripts that are
called from cron that detect which n/w I'm on and adjust things. For
example, for postfix I do stuff like this:

Stick the scripts in /etc/network/if-{up,down}.d/ to catch the
ifup/ifdown events and act accordingly. Maybe it can be combined with
(1) from above to automatically update a
running firefox instance.

(This is based on Debian Etch, I'm pretty sure this advice it right
for Ubuntu as well).

I'd be curious to hear how it went...

--P
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to