Forgot your password?
typodupeerror

Comment Laptop configuration (Score 1) 15

I am using my laptop
* At home with a wireless card
* At work
* Visiting other offices
* Visiting clients
* On the road (from hotels, etc)

I never reboot the laptop, only suspend/restore (it occasionally crashes, though, about once a month, but usually for some unrelated reason).

I run Debian (woody/2.2.17), and among the software I have installed is a dhcp client, divine, dnrd, wwwoffle, exim, imap, fetchmail, ntpdate, and some more.

There's a bunch of scripts that reconfigure the above packages as needed.

All my browsers (including apt-get) are pointed at the wwwoffle proxy.

/etc/resolv.conf points at localhost, and dnrd is restarted with new options on every connection. dnrd quits on suspend.

I download e-mail with fetchmail to my local imap and use it from whatever mail client pleases me. fetchmail starts in daemon mode when there's an ethernet connection, on PPP it just runs once. It quits on suspend.

I send all e-mail through the local forwarding exim. Exim is configured to send everything on to mailhost, and mailhost is remapped in /etc/hosts to a different IP for every configuration (a small script in /etc/setmailhost does that).

My wireless card is configured for only one IP address (in /etc/pcmcia/wireless.opts), because I currently only use it at home. It could, of course, use DHCP.

The ethernet card (pcmcia) is used both at work and elsewhere. Some of these places have DHCP, some do not. I use dhcpcd and divine (although divine doesn't work well with dhcp). Each divine config has a script attached to it that changes the configuration for the above daemons. Where there is no DHCP, I have to run the divine script by hand.

For PPP, there are similar scripts in /etc/ppp/ip-up.d that change settings based on the provider.

Samba is restarted on every restore and pcmcia network card insert, because it needs to rebind itself to the new interfaces. I haven't bothered changing the workgroup from the scripts yet, but that is something I plan to do.

The situation that I haven't figured out very well yet is when there are several interfaces active (2 ethernet cards in at the same time, or ethernet and PPP running simultaneously). For me that so rarely happens that I don't want to invest time in figuring out a good solution.

If you wish to know more details, drop me a mail at eero.raun@cyberdude.com.

Slashdot Top Deals

"This isn't brain surgery; it's just television." - David Letterman

Working...