Re: How to Manage Linux laptops on and off the network?
On Mon, Nov 26, 2001 at 12:50:12PM +0100, Goran Ristic wrote: > In /etc/pcmcia/network.opts: A question on best-practices. My laptop has a built-in ethernet port (not controlled by cardmgr) and a PCMCIA wireless card. Currently I have the wireless card setup under /etc/network/interfaces. Is it better to define the wireless card network settings there, or in the network.opts file? -pete -- (peter.royal|osi)@pobox.com - http://pobox.com/~osi jabber/ [EMAIL PROTECTED] - icq/ 153025 - aim/ osifx - yahoo/ osi_fx your brain on life - http://fotap.org - incubating pgpfRfpVevRnW.pgp Description: PGP signature
Re: How to Manage Linux laptops on and off the network?
On Fri, Nov 23, 2001 at 05:58:06AM -0800, David Roundy wrote: > As an alternative to divine, I'd recommend intuitively, which was > originally based on divine, but has a somewhat nicer configuration file > format. It also has some other features, but since I use it as a plugin to > whereami, I don't really use them. If you want to stick as close as the standard /etc/network/interfaces network configuratin as possible, you could have a look at guessnet. It uses the same detection routines as divine, intuitively, laptop-netconf and (probably) the arping-based script in whereami and hands over system reconfiguration to ifupdown. Be aware that guessnet only performs detection by checking that an IP address exist on the ethernet network and that it matches a given macaddress. For more complicate detection and reconfiguration tasks, I strongly suggest you try whereami. Bye, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]>
Re: How to Manage Linux laptops on and off the network?
On Mon, Nov 26, 2001 at 12:50:12PM +0100, Goran Ristic wrote: > In /etc/pcmcia/network.opts: A question on best-practices. My laptop has a built-in ethernet port (not controlled by cardmgr) and a PCMCIA wireless card. Currently I have the wireless card setup under /etc/network/interfaces. Is it better to define the wireless card network settings there, or in the network.opts file? -pete -- (peter.royal|osi)@pobox.com - http://pobox.com/~osi jabber/ [EMAIL PROTECTED] - icq/ 153025 - aim/ osifx - yahoo/ osi_fx your brain on life - http://fotap.org - incubating msg05326/pgp0.pgp Description: PGP signature
Re: How to Manage Linux laptops on and off the network?
On Fri, Nov 23, 2001 at 05:58:06AM -0800, David Roundy wrote: > As an alternative to divine, I'd recommend intuitively, which was > originally based on divine, but has a somewhat nicer configuration file > format. It also has some other features, but since I use it as a plugin to > whereami, I don't really use them. If you want to stick as close as the standard /etc/network/interfaces network configuratin as possible, you could have a look at guessnet. It uses the same detection routines as divine, intuitively, laptop-netconf and (probably) the arping-based script in whereami and hands over system reconfiguration to ifupdown. Be aware that guessnet only performs detection by checking that an IP address exist on the ethernet network and that it matches a given macaddress. For more complicate detection and reconfiguration tasks, I strongly suggest you try whereami. Bye, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to Manage Linux laptops on and off the network?
Quoting Karl E. Jorgensen on Thu, Nov 22, 2001 at 11:50:54PM +: > On Thu, Nov 22, 2001 at 12:40:00PM -0800, Boutet, Jeff wrote: > > I know this is more a sys admin thing. But it is somewhat relavent. > > > > My company is currently in the process of replacing all the Linux > > development desktops for laptops, as to increase our developers mobility. > > Thus the laptop will have to perform in 3 modes no network, our network, > > someone else's network (using DHCP). Other than custom scripts, run levels, > > rysc, anyone have any idea's? > > For the network configuration, schemes work well for me: > PCMCIA slot 0 -> Home network (fixed ip) > PCMCIA slot 1 -> DHCP config > (and off course: no pcmcia card inserted = no network) > > a bit of editing in /etc/pcmcia/network.opts did the trick > > Hope this helps > The only thing I would add to both this email and the one following it with really great scheme support in /etc/pcmcia/wireless.opts and network.opts (thanks!), is to check out if you want to boot a different scheme in your /etc/lilo.conf by using "append" statements which will select the scheme you want. Alternately, a simple "cardctl scheme work" does the trick also! -- Michael Perry | "Do or do not; there is no try" Master Yoda [EMAIL PROTECTED] | http://www.lnxpowered.org
Re: How to Manage Linux laptops on and off the network?
Quoting Karl E. Jorgensen on Thu, Nov 22, 2001 at 11:50:54PM +: > On Thu, Nov 22, 2001 at 12:40:00PM -0800, Boutet, Jeff wrote: > > I know this is more a sys admin thing. But it is somewhat relavent. > > > > My company is currently in the process of replacing all the Linux > > development desktops for laptops, as to increase our developers mobility. > > Thus the laptop will have to perform in 3 modes no network, our network, > > someone else's network (using DHCP). Other than custom scripts, run levels, > > rysc, anyone have any idea's? > > For the network configuration, schemes work well for me: > PCMCIA slot 0 -> Home network (fixed ip) > PCMCIA slot 1 -> DHCP config > (and off course: no pcmcia card inserted = no network) > > a bit of editing in /etc/pcmcia/network.opts did the trick > > Hope this helps > The only thing I would add to both this email and the one following it with really great scheme support in /etc/pcmcia/wireless.opts and network.opts (thanks!), is to check out if you want to boot a different scheme in your /etc/lilo.conf by using "append" statements which will select the scheme you want. Alternately, a simple "cardctl scheme work" does the trick also! -- Michael Perry | "Do or do not; there is no try" Master Yoda [EMAIL PROTECTED] | http://www.lnxpowered.org -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to Manage Linux laptops on and off the network?
Hi Karl! On Thu, 22 Nov 2001, Karl E. Jorgensen wrote: > For the network configuration, schemes work well for me: > PCMCIA slot 0 -> Home network (fixed ip) > PCMCIA slot 1 -> DHCP config > (and off course: no pcmcia card inserted = no network) > > a bit of editing in /etc/pcmcia/network.opts did the trick I'd suggest another 'trick'. In /etc/pcmcia/wireless.opts: case "$ADDRESS" in work,*,*,00:60:1D:*|work,*,*,00:02:2D:*) INFO="Wireless LAN @ Work Setup" ESSID="FIRM_NETWORK" MODE="managed" KEY="s:Wireless_WORK [1]" ;; home,*,*,00:60:1D:*|home,*,*,00:02:2D:*) INFO="Wireless LAN @ Home Setup" ESSID="HOME_NETWORK" MODE="managed" KEY="s:Wireless_HOME [1]" ;; dhcp,*,*,00:60:1D:*|dhcp,*,*,00:02:2D:*) INFO="Generic Wireless LAN without Encryption" ESSID="any" MODE="managed" KEY="off [1]" ;; esac In /etc/pcmcia/network.opts: case "$ADDRESS" in work,*,*,*) INFO="Network @ Work Setup" IPADDR="10.70.123.100" NETMASK="255.255.255.0" BROADCAST="10.70.123.255" GATEWAY="10.70.123.1" ;; home,*,*,*) INFO="Network @ Home Setup" IPADDR="192.168.5.100" NETMASK="255.255.255.0" BROADCAST="192.168.5.255" GATEWAY="192.168.5.1" ;; dhcp,*,*,*) INFO="DHCP Network Setup" DHCP="y" ;; esac > Hope this helps Me, too. ;) -- Regards, GR | GnuPG-key on keyservers available Muck, Dickbaer, Nane... | or mail -s 'get gpg-key' Linux: Undefinierte Welten jenseits von YAST(2) Was? Es gibt Google? Und man-pages? _Und_ HOWTO's? - Seit wann?
Re: How to Manage Linux laptops on and off the network?
Hi Karl! On Thu, 22 Nov 2001, Karl E. Jorgensen wrote: > For the network configuration, schemes work well for me: > PCMCIA slot 0 -> Home network (fixed ip) > PCMCIA slot 1 -> DHCP config > (and off course: no pcmcia card inserted = no network) > > a bit of editing in /etc/pcmcia/network.opts did the trick I'd suggest another 'trick'. In /etc/pcmcia/wireless.opts: case "$ADDRESS" in work,*,*,00:60:1D:*|work,*,*,00:02:2D:*) INFO="Wireless LAN @ Work Setup" ESSID="FIRM_NETWORK" MODE="managed" KEY="s:Wireless_WORK [1]" ;; home,*,*,00:60:1D:*|home,*,*,00:02:2D:*) INFO="Wireless LAN @ Home Setup" ESSID="HOME_NETWORK" MODE="managed" KEY="s:Wireless_HOME [1]" ;; dhcp,*,*,00:60:1D:*|dhcp,*,*,00:02:2D:*) INFO="Generic Wireless LAN without Encryption" ESSID="any" MODE="managed" KEY="off [1]" ;; esac In /etc/pcmcia/network.opts: case "$ADDRESS" in work,*,*,*) INFO="Network @ Work Setup" IPADDR="10.70.123.100" NETMASK="255.255.255.0" BROADCAST="10.70.123.255" GATEWAY="10.70.123.1" ;; home,*,*,*) INFO="Network @ Home Setup" IPADDR="192.168.5.100" NETMASK="255.255.255.0" BROADCAST="192.168.5.255" GATEWAY="192.168.5.1" ;; dhcp,*,*,*) INFO="DHCP Network Setup" DHCP="y" ;; esac > Hope this helps Me, too. ;) -- Regards, GR | GnuPG-key on keyservers available Muck, Dickbaer, Nane... | or mail -s 'get gpg-key' Linux: Undefinierte Welten jenseits von YAST(2) Was? Es gibt Google? Und man-pages? _Und_ HOWTO's? - Seit wann? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to Manage Linux laptops on and off the network?
On Thu, Nov 22, 2001 at 12:40:00PM -0800, Boutet, Jeff wrote: > I know this is more a sys admin thing. But it is somewhat relavent. > > My company is currently in the process of replacing all the Linux > development desktops for laptops, as to increase our developers mobility. > Thus the laptop will have to perform in 3 modes no network, our network, > someone else's network (using DHCP). Other than custom scripts, run levels, > rysc, anyone have any idea's? For the network configuration, schemes work well for me: PCMCIA slot 0 -> Home network (fixed ip) PCMCIA slot 1 -> DHCP config (and off course: no pcmcia card inserted = no network) a bit of editing in /etc/pcmcia/network.opts did the trick Hope this helps -- Karl E. Jørgensen [EMAIL PROTECTED] www.karl.jorgensen.com Today's fortune: Actually, typing random strings in the Finder does the equivalent of filename completion. -- Discussion on file completion vs. the Mac Finder pgplJGual9sqD.pgp Description: PGP signature
Re: How to Manage Linux laptops on and off the network?
On Thu, Nov 22, 2001 at 12:40:00PM -0800, Boutet, Jeff wrote: > I know this is more a sys admin thing. But it is somewhat relavent. > > My company is currently in the process of replacing all the Linux > development desktops for laptops, as to increase our developers mobility. > Thus the laptop will have to perform in 3 modes no network, our network, > someone else's network (using DHCP). Other than custom scripts, run levels, > rysc, anyone have any idea's? For the network configuration, schemes work well for me: PCMCIA slot 0 -> Home network (fixed ip) PCMCIA slot 1 -> DHCP config (and off course: no pcmcia card inserted = no network) a bit of editing in /etc/pcmcia/network.opts did the trick Hope this helps -- Karl E. Jørgensen [EMAIL PROTECTED] www.karl.jorgensen.com Today's fortune: Actually, typing random strings in the Finder does the equivalent of filename completion. -- Discussion on file completion vs. the Mac Finder msg05307/pgp0.pgp Description: PGP signature
Re: How to Manage Linux laptops on and off the network?
On Thu, Nov 22, 2001 at 11:39:38PM +, Steve McIntyre wrote: > On Thu, Nov 22, 2001 at 02:54:28PM -0800, Michael Perry wrote: > >Quoting Boutet, Jeff on Thu, Nov 22, 2001 at 12:40:00PM -0800: > >> I know this is more a sys admin thing. But it is somewhat relavent. > >> > >> My company is currently in the process of replacing all the Linux > >> development desktops for laptops, as to increase our developers mobility. > >> Thus the laptop will have to perform in 3 modes no network, our network, > >> someone else's network (using DHCP). Other than custom scripts, run levels, > >> rysc, anyone have any idea's? > > I'd heartily recommend divine - I've got it set up on a work laptop. > It seamlessly detects several different company networks and my home > networks and with some local scripting it's very powerful. As an alternative to divine, I'd recommend intuitively, which was originally based on divine, but has a somewhat nicer configuration file format. It also has some other features, but since I use it as a plugin to whereami, I don't really use them. -- David Roundy http://civet.berkeley.edu/droundy/
Re: How to Manage Linux laptops on and off the network?
On Thu, Nov 22, 2001 at 11:39:38PM +, Steve McIntyre wrote: > On Thu, Nov 22, 2001 at 02:54:28PM -0800, Michael Perry wrote: > >Quoting Boutet, Jeff on Thu, Nov 22, 2001 at 12:40:00PM -0800: > >> I know this is more a sys admin thing. But it is somewhat relavent. > >> > >> My company is currently in the process of replacing all the Linux > >> development desktops for laptops, as to increase our developers mobility. > >> Thus the laptop will have to perform in 3 modes no network, our network, > >> someone else's network (using DHCP). Other than custom scripts, run levels, > >> rysc, anyone have any idea's? > > I'd heartily recommend divine - I've got it set up on a work laptop. > It seamlessly detects several different company networks and my home > networks and with some local scripting it's very powerful. As an alternative to divine, I'd recommend intuitively, which was originally based on divine, but has a somewhat nicer configuration file format. It also has some other features, but since I use it as a plugin to whereami, I don't really use them. -- David Roundy http://civet.berkeley.edu/droundy/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to Manage Linux laptops on and off the network?
On Thu, 22 Nov 2001, Jeff Boutet wrote: > I know this is more a sys admin thing. But it is somewhat relavent. > > My company is currently in the process of replacing all the Linux > development desktops for laptops, as to increase our developers > mobility. Thus the laptop will have to perform in 3 modes no network, > our network, someone else's network (using DHCP). Other than custom > scripts, run levels, rysc, anyone have any idea's? Sure. The `whereami' package is a *great* way to achieve this sort of mobility. I have it configured to: * use the CRT or LCD based on monitor attachment * work out where I am via DHCP * auto-discover SOCKS servers on the network[1] * set mail to queue or deliver based on network connection * kick-start a couple of daemons when going from connected to roaming All of this can be done by writing some trivial shell scripts; whereami simply provides a framework for doing it. It's *really* easy to configure to do this stuff. There are a number of other packages that deal with the network discovery; whereami tries to address the issue of configuration as well. Other package, such as divine, are actually useful as *part* of the whereami system -- they can find what network you are on without needing a DHCP server running. Oh, and the last time I advertised his package here, the author asked if there were more features desired, which made me feel all loved and stuff. ;) Daniel Footnotes: [1] via hostname probe only, but you could extend this. :) -- The true way to overcome the evil of class distinctions is not to denounce them as revolutionists denounce them, but to ignore them as children ignore them. -- Charles Dickens
Re: How to Manage Linux laptops on and off the network?
On Thu, Nov 22, 2001 at 02:54:28PM -0800, Michael Perry wrote: >Quoting Boutet, Jeff on Thu, Nov 22, 2001 at 12:40:00PM -0800: >> I know this is more a sys admin thing. But it is somewhat relavent. >> >> My company is currently in the process of replacing all the Linux >> development desktops for laptops, as to increase our developers mobility. >> Thus the laptop will have to perform in 3 modes no network, our network, >> someone else's network (using DHCP). Other than custom scripts, run levels, >> rysc, anyone have any idea's? I'd heartily recommend divine - I've got it set up on a work laptop. It seamlessly detects several different company networks and my home networks and with some local scripting it's very powerful. -- Steve McIntyre, Cambridge, UK. [EMAIL PROTECTED] "It's actually quite entertaining to watch ag129 prop his foot up on the desk so he can get a better aim." [ seen in ucam.chat ]
Re: How to Manage Linux laptops on and off the network?
Quoting Boutet, Jeff on Thu, Nov 22, 2001 at 12:40:00PM -0800: > I know this is more a sys admin thing. But it is somewhat relavent. > > My company is currently in the process of replacing all the Linux > development desktops for laptops, as to increase our developers mobility. > Thus the laptop will have to perform in 3 modes no network, our network, > someone else's network (using DHCP). Other than custom scripts, run levels, > rysc, anyone have any idea's? > > I don't have such a complex setup but there are a few things I have tried which have worked pretty well. First thing I did and the one that I still do is write schemes for pcmcia that allow me to use the same kernel I am booting but with different labels in lilo.conf which will switch on different network settings. As an example, at work, I boot to a dhcp-managed network, so I have a theme called "work" in my /etc/pcmcia/network.opts file which has some network settings I need for there. Then I often take the same laptop home and use it wireless with a orinoco Gold card and a RG1000. I have a pcmcia theme and a label in my lilo.conf called "home" which allows me to boot a set of network settings for that environment. This has worked very well for me and you can setup your lilo.conf file to include label statements which will fire the corresponding section in /etc/pcmcia/network.opts for the settings you need. I also used this little program called netenv which you can apt-get which will allow a lot of flexibility with regard to network settings. I prefer the lilo.conf labels and the schemes in my /etc/pcmcia/network.opts file. BTW, I boot a debian unstable laptop which uses the 2.4.13 kernel for both settings with no problems. HTH. -- Michael Perry | "Do or do not; there is no try" Master Yoda [EMAIL PROTECTED] | http://www.lnxpowered.org
Re: How to Manage Linux laptops on and off the network?
Hi, On Thu, Nov 22, 2001 at 12:40:00PM -0800, Boutet, Jeff wrote: > My company is currently in the process of replacing all the Linux > development desktops for laptops, as to increase our developers mobility. > Thus the laptop will have to perform in 3 modes no network, our network, > someone else's network (using DHCP). Other than custom scripts, run levels, > rysc, anyone have any idea's? You can try the netenv package, which works great for this purpose. Gruss Ulli -- \ Ulli HochholdingerE-Mail: [EMAIL PROTECTED] \ / / \ Sometimes I think the surest sign that intelligent life exists elsewehre \ / in the universe is that none of it has tried to contact us. (Calvin) /
Re: How to Manage Linux laptops on and off the network?
On Thu, 22 Nov 2001, Jeff Boutet wrote: > I know this is more a sys admin thing. But it is somewhat relavent. > > My company is currently in the process of replacing all the Linux > development desktops for laptops, as to increase our developers > mobility. Thus the laptop will have to perform in 3 modes no network, > our network, someone else's network (using DHCP). Other than custom > scripts, run levels, rysc, anyone have any idea's? Sure. The `whereami' package is a *great* way to achieve this sort of mobility. I have it configured to: * use the CRT or LCD based on monitor attachment * work out where I am via DHCP * auto-discover SOCKS servers on the network[1] * set mail to queue or deliver based on network connection * kick-start a couple of daemons when going from connected to roaming All of this can be done by writing some trivial shell scripts; whereami simply provides a framework for doing it. It's *really* easy to configure to do this stuff. There are a number of other packages that deal with the network discovery; whereami tries to address the issue of configuration as well. Other package, such as divine, are actually useful as *part* of the whereami system -- they can find what network you are on without needing a DHCP server running. Oh, and the last time I advertised his package here, the author asked if there were more features desired, which made me feel all loved and stuff. ;) Daniel Footnotes: [1] via hostname probe only, but you could extend this. :) -- The true way to overcome the evil of class distinctions is not to denounce them as revolutionists denounce them, but to ignore them as children ignore them. -- Charles Dickens -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to Manage Linux laptops on and off the network?
On Thu, Nov 22, 2001 at 02:54:28PM -0800, Michael Perry wrote: >Quoting Boutet, Jeff on Thu, Nov 22, 2001 at 12:40:00PM -0800: >> I know this is more a sys admin thing. But it is somewhat relavent. >> >> My company is currently in the process of replacing all the Linux >> development desktops for laptops, as to increase our developers mobility. >> Thus the laptop will have to perform in 3 modes no network, our network, >> someone else's network (using DHCP). Other than custom scripts, run levels, >> rysc, anyone have any idea's? I'd heartily recommend divine - I've got it set up on a work laptop. It seamlessly detects several different company networks and my home networks and with some local scripting it's very powerful. -- Steve McIntyre, Cambridge, UK. [EMAIL PROTECTED] "It's actually quite entertaining to watch ag129 prop his foot up on the desk so he can get a better aim." [ seen in ucam.chat ] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to Manage Linux laptops on and off the network?
Quoting Boutet, Jeff on Thu, Nov 22, 2001 at 12:40:00PM -0800: > I know this is more a sys admin thing. But it is somewhat relavent. > > My company is currently in the process of replacing all the Linux > development desktops for laptops, as to increase our developers mobility. > Thus the laptop will have to perform in 3 modes no network, our network, > someone else's network (using DHCP). Other than custom scripts, run levels, > rysc, anyone have any idea's? > > I don't have such a complex setup but there are a few things I have tried which have worked pretty well. First thing I did and the one that I still do is write schemes for pcmcia that allow me to use the same kernel I am booting but with different labels in lilo.conf which will switch on different network settings. As an example, at work, I boot to a dhcp-managed network, so I have a theme called "work" in my /etc/pcmcia/network.opts file which has some network settings I need for there. Then I often take the same laptop home and use it wireless with a orinoco Gold card and a RG1000. I have a pcmcia theme and a label in my lilo.conf called "home" which allows me to boot a set of network settings for that environment. This has worked very well for me and you can setup your lilo.conf file to include label statements which will fire the corresponding section in /etc/pcmcia/network.opts for the settings you need. I also used this little program called netenv which you can apt-get which will allow a lot of flexibility with regard to network settings. I prefer the lilo.conf labels and the schemes in my /etc/pcmcia/network.opts file. BTW, I boot a debian unstable laptop which uses the 2.4.13 kernel for both settings with no problems. HTH. -- Michael Perry | "Do or do not; there is no try" Master Yoda [EMAIL PROTECTED] | http://www.lnxpowered.org -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to Manage Linux laptops on and off the network?
Hi, On Thu, Nov 22, 2001 at 12:40:00PM -0800, Boutet, Jeff wrote: > My company is currently in the process of replacing all the Linux > development desktops for laptops, as to increase our developers mobility. > Thus the laptop will have to perform in 3 modes no network, our network, > someone else's network (using DHCP). Other than custom scripts, run levels, > rysc, anyone have any idea's? You can try the netenv package, which works great for this purpose. Gruss Ulli -- \ Ulli HochholdingerE-Mail: [EMAIL PROTECTED] \ / / \ Sometimes I think the surest sign that intelligent life exists elsewehre \ / in the universe is that none of it has tried to contact us. (Calvin) / -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

