Whole document tree
    

Whole document tree

agetty

6.3. agetty

agetty is an “alternative getty”. It takes all of its parameters on the command line, with no use of /etc/gettydefs or any other configuration file. agetty is documented in the manual page agetty(8).

Figure 6-5 shows how to invoke agetty for use with a serial console.

Figure 6-5. /etc/inittab entry for agetty

s0:2345:respawn:/sbin/agetty -h -t 60 ttyS0 9600 vt102

ttyS0 refers to the serial device /dev/ttyS0.

9600 is the bits per second of the serial link. agetty will support multiple values, using the modem's CONNECT message or the RS-232 Break signal to select between them. Only use one value, as serial consoles only have only one data rate.

vt102 sets the TERM environment variable to indicate that a VT100 terminal is connecting.

-h activates CTS/RTS handshaking.

-t 60 allows 60 seconds for someone to attempt to log in before the modem is hung up.

agetty uses escape sequences in /etc/issue to insert information. For example, \n.\o \l will appear as remote.example.edu.au ttyS0.