[comp.os.minix] Login from tty1

paul@ukpoit.co.uk (Paul Wood) (01/23/91)

In article <42317@nigel.ee.udel.edu> drl@vuse.vanderbilt.edu writes:
>gettydefs is System V, MINIX is version 7.  To start a getty on
>/dev/tty01 change the 0f1 to 1f1.

Thanks for the information. The manual is decidedly lacking in this area. I have
just printed out getty.c and was about to study it to check what the format of
/etc/gettydefs is under minix compared with System V.x, when I saw this message.

I'll continue to study getty.c, but why not ask the "net" as well ... Does 
anybody have a working /etc/gettydefs? Preferably for MacMinix on a MacPlus
running a Racal-Vadic VI2422S, but not necessarily for that combination. What
problems did you encounter? /etc/gettydefs can be a pain on any unix!

Paul Wood                                 | UUCP Mail:  paul@ukpoit.co.uk
31 Buttermere Drive, Dronfield Woodhouse, | Bang-Style: ...!ukc!ukpoit!paul
Sheffield, England, S18 5PX               | Voice:      +44 246 418031

waltje@uwalt.nl.mugnet.org (Fred 'The Rebel' van Kempen) (01/24/91)

In article <42317@nigel.ee.udel.edu>, drl@vuse.vanderbilt.edu wrote:
> gettydefs is System V, MINIX is version 7.  To start a getty on
> /dev/tty01 change the 0f1 to 1f1.
> 
MINIX _was_ V7, you mean.  Ever since V1.3, MINIX has been leaning
more and more towards SystemV.  Did you ever count the number of
non-V7 utils in MINIX?

To use getty(1M) on MINIX, do:

# ln /etc/getty /etc/uugetty

and change "Xf1" to "2f1" in /etc/ttys
	    ^        ^

or use the new INIT I posted, which uses (yes, also non-V7) /etc/inittab .

Fred.

A.M.Zanker@newcastle.ac.uk (Mike Zanker) (01/28/91)

> The manual is decidedly lacking in this area. I have
> just printed out getty.c and was about to study it to check what the format of
> /etc/gettydefs is under minix compared with System V.x, when I saw this message.

This is exactly what I did and I now have a working /etc/gettydefs. I have
not tried it with a modem yet but it certainly works with a terminal on tty1.
The format is as follows:

label_1# flags1# flags2# login_prompt# label_2#
#
label_2# flags1# flags2# login_prompt# label_3#
#
etc.
etc.

Lines beginning # are ignored. I had to make a few changes to getty.c as
well but then I always do things the hard way :-)

If you want any more details, email me direct.

Mike Zanker
Dept of Mathematics
University of Newcastle upon Tyne
England