[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: netenv configuration

On Tue, 2003-09-02 at 23:48, Emma Jane Hogbin wrote:
> I'm trying to work my way through the configuration examples for netenv
> with my laptop:
> 	http://netenv.sourceforge.net/netenv-en.html#config
> but I'm not sure how to configure my system from these examples.
> I currently have two configurations:
> 	- DHCP ethernet (typically wireless)
> 	- CUPS connection to the printer
> Config file looks like this:
> netenv_id=At_home
> export IPADDR=
> export NETWORK=
> export NETMASK=
> export BROADCAST=
> export GATEWAY=
> export PROFILE=default
> (This is the default install from when I installed debian, I think. My
> router is DHCP, but it seems to have no problems with me picking my own IP
> address.)
> 	- no ethernet
> 	- no printer
> Config file looks like this:
> netenv_id=No_Ethernet
> # there is not internet/ethernet connection in this mode
> STARTMODE=manual
> This is what I'm confused about:
> 	- When I'm "at home" netenv is the first thing that loads when I boot 
> 	  my computer--but my wireless card isn't loaded so netenv wastes 
> 	  time trying to find a connection to the internet. What do I need to add to the
> 	  configuration to get my wireless card (which is an orinoco card using
> 	  the pcmcia-cs packages) to load so that netenv can find the internet?

Actually its wierd that it gets stuck on the conection to the internet
since netenv doesn't do anything. I ran into that problem.
Its more probably /etc/init.d/networking thats getting stuck, check
whats in /etc/network/interfaces
To make netenv do anything you need to pass a script to run that can
actually do something with the variables. Check the docs about that.
It also creates a file in /etc/netenv/netenv which you are supposed to
source if you want the variables to be defined for something that uses
do . /etc/netenv/netenv wherever you want the variables, and defined
only those needed outside the script with export.
you can look at /sbin/netenv, that the program and its a shell script so
you can see exactly what it does.
If you want some example scripts or more help, email me I can send you
me script as starters (I got to go to sleep now, since I am barely
functional, so sorry if I am a bit incoherent at the moment >;-) )

> 	- I currently start fetchmail by hand depending on whether or not I
> 	  have an internet connection. I would like to add this variable to the
> 	  netenv config files so that fetchmail starts picking up mail IF I'm "at home".
> 	  Right now I'm not using a system-wide fetchmail, just one that's
> 	  configured through my home directory ~/.fetchmailrc (I'm not sure if that makes
> 	  sense...).
> 	- When I'm "away" I don't want the CUPS server running. It's not that
> 	  it's a bad thing, I just don't need it. How do I tell netenv not to
> 	  bother starting the CUPS server if I'm "away"? I also don't want 
> 	  fetchmail running if there isn't an internet connection (which is my 
> 	  current default).
> Thanks for your suggestions on this configuration problem,
> emma :)
> -- 
> Emma Jane Hogbin
> [[ 416 417 2868 ][ www.xtrinsic.com ]]

Reply to: