*BSD News Article 5590


Return to BSD News archive

Path: sserve!manuel!munnari.oz.au!spool.mu.edu!uwm.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!drycas.club.cc.cmu.edu!ghod
From: ghod@drycas.club.cc.cmu.edu
Newsgroups: comp.unix.bsd
Subject: Re: More questions about 386BSD...
Message-ID: <1992Sep24.235142.2139@drycas.club.cc.cmu.edu>
Date: 24 Sep 92 18:51:41 GMT
Article-I.D.: drycas.1992Sep24.235142.2139
References: <1992Sep23.040721.4834@minyos.xx.rmit.oz.au> <1141@galileo.rtn.ca.boeing.com>
Organization: Carnegie Mellon Computer Club
Lines: 67

In article <1141@galileo.rtn.ca.boeing.com>, dmp3592@galileo.rtn.ca.boeing.com (Dean M. Phillips) writes:
> In article <1992Sep23.040721.4834@minyos.xx.rmit.oz.au> rcskb@minyos.xx.rmit.oz.au (Kendall Bennett) writes:
>> 1. I have two serial ports on my machine. One has my mouse attached to
>>it, and I want to use the other one to connect to my second PC so I can
>>log in remotely (to do things like kernel rebuilds so I don't have to
>>sit around :-). I can't figure out how I go about setting things up so
>>that I can run Telix on my second PC via a null modem cable to my 486
>>box...
> 
> Solution 1: Run make in the background.  The following command will run
> make in the background and record all output in make.output.
> 
> If you use csh:
> nice make -k >& make.output &
> 
> If you use ash (called sh under 386bsd):
> nice make -k 1>make.output 2>&1 &
> 
> Solution 2: Set up getty for your com port.
> 
> Edit /etc/ttys and /etc/gettytab to define the terminal.  I have a
> Televideo model 925 that I scavenged from my Cro-Magnon CP/M system
> and hooked up to com1.  Since the terminal is hard wired, I specified
> its type in the tables and tvi925 automagically appears in the TERM
> environment variable.  You will want to changes these to specify
> whatever type of terminal your other PC emulates.
> 
> Add a line to /etc/ttys that looks something like this:
> com1	"/usr/libexec/getty tvi925.9600"	tvi925	on secure
>  ^          ^                   ^                  ^    ^   ^
>  `--Device  `--Program to run   `--getttytab name  |    |   |
>                                     Terminal type--'    |   |
>                                       Terminal enabled--'   |
>                                         Root login allowed--'
> 
> Add a line to /etc/gettytab that looks something like this:
> tvi925.9600|televideo-925-9600-baud:sp#9600:cl=\E*:
>  ^           ^                      ^       ^
>  |           `--Description         |       |
>  `--name      RS232 port baud rate--'       |
>            Sequence to use to clear screen--'
> 
> see the man pages on ttys, gettytab and getty for more information.
> 
> After you have edited the files, shut down and reboot.  When your real
> computer comes back up you should see a login prompt on both systems.

You don't have to shutdown the machine and reboot to enable logins. Once you
have set up gettytab and ttys to your liking, do the following:

# kill -1 1

This sends a -1 signal to init (process 1), which forces init to re-read the
ttys file and start up the getty processes as needed. Note however, that you
have to be logged in as root to do this.

--Bill Paul
Assistant System Administrator
New Windsor Associates L.P.

	ghod@drycas.club.cc.cmu.edu  -or-  ghod@drycas.bitnet

> -- 
> ----------------------------------------------------------------------
> #include <standard_disclaimer.h>
> Dean M. Phillips                                        (206) 393-9333
> Boeing Commercial Airplane Group            dmp3592@galileo.boeing.com