From owner-freebsd-mobile Tue Mar 21 20:43:57 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from isds.duke.edu (davinci.isds.duke.edu [152.3.22.1]) by hub.freebsd.org (Postfix) with ESMTP id 0161137BC0C for ; Tue, 21 Mar 2000 20:43:53 -0800 (PST) (envelope-from sto@stat.Duke.EDU) Received: from cayenne.isds.duke.edu (cayenne.isds.duke.edu [152.3.22.11]) by isds.duke.edu (8.8.8/8.8.8) with ESMTP id XAA14068 for ; Tue, 21 Mar 2000 23:43:50 -0500 (EST) Received: (from sto@localhost) by cayenne.isds.duke.edu (8.8.8/8.8.8) id XAA09610 for freebsd-mobile@FreeBSD.ORG; Tue, 21 Mar 2000 23:43:50 -0500 (EST) Date: Tue, 21 Mar 2000 23:43:50 -0500 From: "Sean O'Connell" To: freebsd-mobile@FreeBSD.ORG Subject: Re: switching between connected/disconnected operation? Message-ID: <20000321234350.D9584@stat.Duke.EDU> Reply-To: "Sean O'Connell" Mail-Followup-To: freebsd-mobile@FreeBSD.ORG References: <14551.49718.603919.823550@hbo.isi.edu> <20000321233526.F85043@cc942873-a.ewndsr1.nj.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20000321233526.F85043@cc942873-a.ewndsr1.nj.home.com>; from cjc@cc942873-a.ewndsr1.nj.home.com on Tue, Mar 21, 2000 at 11:35:26PM -0500 X-Organization: Institute of Statistics and Decision Sciences Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi All- Way back in October, Mike Smith sent the following email to -mobile with a personality script that manipulates the computers environment. I have not played with it, but I have held on to it. Maybe it would fit the bill. I have given the relevant headers below (the email is quite large since it contains the script and such): To: Andreas Klemm Cc: mobile@FreeBSD.ORG Subject: Re: profile manager for FreeBSD working in different environments ? In-reply-to: Your message of "Thu, 21 Oct 1999 07:58:03 +0200." <19991021075803.A14781@titan.klemm.gtn.com> Date: Thu, 21 Oct 1999 08:56:46 -0700 From: Mike Smith Crist J. Clark stated: > On Tue, Mar 21, 2000 at 06:40:54PM +0000, Lars Eggert wrote: > > Hi, > > > > we're trying to come up with a way to configure our laptops so that we > > can easily switch between connected (i.e. we have a net) and > > disconnected (we have no net) states. This does not need to be > > automatic (would be nice though), having users type "net on|off" in a > > shell is perfectly fine. > > > > Looking at /etc, it seems that what we'd like requires non-trivial > > changes to the configuration; the laptops we'd like this for run a > > number of services that would need to be started/stopped: NIS, NFS > > (clients), inetd, sendmail, sshd, lpd, amd, named, etc. Some of these > > should be okay to leave running when disconnecting (e.g. inetd, sshd). > > Others (NIS, NFS, amd) must be stopped/restarted. > > > > Has anyone ever done this? How? Any pointers? This is for 4.0-RELEASE, > > btw. > > I am very interested in this too, and what I would like to do is even > more complicated. There are four basic network states I would have my > notebook in, > > 1) Ethernet on 192.168.x.0 LAN in my apartment > > 2) Ethernet on 192.168.y.0 LAN in my office > > 3) Dial-in, PPP, to the registered net in the office > > 4) Stand-alone > > Some states would preferably have NFS mounted volumes; some would even > want to run services like NIS or Samba. All networked states need to > have DNS handled from both the standpoint of different servers and > what the machine gives itself for the domain portion of the hostname. > > Right now, I need to get in there and do some serious tweaking as root > to get one setup to work after being in another. Ideally, I'd want to > make the computer figure out which net it is on during boot, but I > think this might not be the level to start at. My first goal is to > script or otherwise automate the changes root does to go from one > state to the other. > > I am sure others out there have wanted to use their notebooks in ways > like this. How have you all handled it? > -- > Crist J. Clark cjclark@home.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-mobile" in the body of the message ----------------------------------------------------------------------- Sean O'Connell Email: sean@stat.Duke.EDU Institute of Statistics and Decision Sciences Phone: (919) 684-5419 Duke University Fax: (919) 684-8594 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message