This is what is required to connect a DEC VT320 serial terminal to a Sun 3/60 running SunOS 4.1.1 and enable login.
/etc/ttytab
To enable a login prompt on the serial port, edit /etc/ttytab
:
#
# @(#)ttytab 1.6 89/12/18 SMI
#
# name getty type status comments
#
console "/usr/etc/getty std.9600" sun on local secure
ttya "/usr/etc/getty std.19200" vt220 on local secure
ttyb "/usr/etc/getty std.9600" unknown off local secure
tty00 "/usr/etc/getty std.9600" unknown off local secure
tty01 "/usr/etc/getty std.9600" unknown off local secure
My terminal defaults to 19200, so I am using that gettytab entry & notice that I have modified the type & status fields. The man page describes what these mean, but you probably want the same settings I chose.
/etc/gettytab
The VT320 is expecting 8n1 (as most are for the last few decades), but SunOS seems to default to something else. To fix this, edit (or create a new entry for and update ttytab to match):
#
# Fixed speed entries
#
# The "std.NNN" names are known to the special case
# portselector code in getty, however they can
# be assigned to any table desired.
# The "NNN-baud" names are known to the special case
# autobaud code in getty, and likewise can
# be assigned to any table desired (hopefully the same speed).
#
a|std.110|110-baud:\
:nd#1:cd#1:uc:sp#110:
b|std.134|134.5-baud:\
:ep:nd#1:cd#2:fd#1:td#1:sp#134:ht:nl:
1|std.150|150-baud:\
:ep:nd#1:cd#2:td#1:fd#1:sp#150:ht:nl:lm=\E\72\6\6\17login\72 :
c|std.300|300-baud:\
:nd#1:cd#1:sp#300:
d|std.600|600-baud:\
:nd#1:cd#1:sp#600:
f|std.1200|1200-baud:\
:fd#1:sp#1200:
6|std.2400|2400-baud:\
:sp#2400:ht:
7|std.4800|4800-baud:\
:sp#4800:ht:
2|std.9600|9600-baud:\
:sp#9600:
g|std.19200|19200-baud:\
:p8:sp#19200:
h|std.38400|38400-baud:\
:sp#38400:
Notice the entry for std.19200 has a :p8
at the beginning. This sets 8 bit mode. Without it, the terminal will give you some funky characters.