agetty command examples

agetty command examples

agetty – alternative Linux getty

This section shows examples for the process field of an entry in the /etc/inittab file. You’ll have to prependĀ appropriate values for the other fields.

For a hard-wired line or a console tty:

/sbin/agetty 9600 ttyS1

For a directly connected terminal without proper carriage detect wiring: (try this if your terminal just sleeps instead of giving you a password: prompt.)

/sbin/agetty -L 9600 ttyS1 vt100

For a old style dial-in line with a 9600/2400/1200 baud modem:

/sbin/agetty -mt60 ttyS1 9600,2400,1200

For a Hayes modem with a fixed 115200 bps interface to the machine: (the example init string turns off modem echo and result codes, makes modem/computer DCD track modem/modem DCD, makes a DTR drop cause a dis-connection and turn on auto-answer after 1 ring.)

/sbin/agetty -w -I 'ATE0Q1&D2&C1S0=1\015' 115200 ttyS1


Leave a Reply

Your email address will not be published. Required fields are marked *