From owner-freebsd-questions Fri May 10 08:10:50 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA25024 for questions-outgoing; Fri, 10 May 1996 08:10:50 -0700 (PDT) Received: from fslg8.fsl.noaa.gov (fslg8.fsl.noaa.gov [137.75.131.171]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id IAA25017 for ; Fri, 10 May 1996 08:10:42 -0700 (PDT) Received: by fslg8.fsl.noaa.gov (5.57/Ultrix3.0-C) id AA09167; Fri, 10 May 96 15:10:40 GMT Message-Id: <9605101510.AA09167@fslg8.fsl.noaa.gov> Received: by emu.fsl.noaa.gov (1.40.112.3/16.2) id AA223771042; Fri, 10 May 1996 09:10:42 -0600 Date: Fri, 10 May 1996 09:10:42 -0600 From: Sean Kelly To: eharley@lightside.com Cc: questions@freebsd.org In-Reply-To: (eharley@lightside.com) Subject: Re: Can I use a mac as a serial terminal Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >>>>> "Eric" == eharley writes: Eric> I have FBSD going on a pc and I also own a mac. Can I use Eric> the mac and a null modem cable to get a terminal session to Eric> pop up on the mac out of the pc? Hmmm. Tell you what, I'll answer the question in the `Subject:' line because I don't understand what's in the body of your message. Yes, get null modem cable and connect it between the serial port of your mac and a serial port of your PC running FreeBSD. On your mac, run your favorite terminal software. One with vt100 terminal emulation should do nicely. Set up some nice communications parameters, say 38400bps, no parity, one stop bit, etc. Now, on the FreeBSD side of things, edit your /etc/ttys file. You want to add (or edit if already present) an entry for the serial port to which the null modem cable is connected. You want to enable a login session on that port. For example, if I connected the null modem cable to my second serial port (COM2 in DOS parlance, ttyd1 in more familiar terms), I need this line: ttyd1 "/usr/libexec/getty std.38400" vt100 on insecure This says on the second serial port (ttyd1), start a program /usr/libexec/getty (which provides login sessions) giving it the argument std.38400 (which tells it what terminal settings and bps rate to use, from the file /etc/gettytab), and what the default terminal type is (vt100). The port is ``on'' and is ``insecure'' meaning root cannot log in on that port. If you want root to log in, change ``insecure'' to ``secure.'' Now, you just have to tell the init process to reread /etc/ttys so it will pick up the changes you made: kill -1 1 does just that. Now go back to your Mac. You should have a login: prompt! -- Sean Kelly NOAA Forecast Systems Laboratory kelly@fsl.noaa.gov Boulder Colorado USA http://www-sdd.fsl.noaa.gov/~kelly/