This write-up is actually two tips in one, but its main focus is enabling login via serial cable on a Linux machine.
In order to log in via the serial port you need to make sure your system recognizes the ports themselves, so see if it talks about having device files for them while booting by issuing the command:
dmesg | grep tty
You can get more detailed information by issuing the command:
setserial -g /dev/ttyS[01]
You have to run a getty at boot up time to listen on these ports and provide a login prompt. Do that by adding these lines to the inittab:
# agetty listening for serial logins on COM1 and COM2
s0:2345:respawn:/sbin/agetty -L -f /etc/issueserial 9600 ttyS0 vt100
s1:2345:respawn:/sbin/agetty -L -f /etc/issueserial 38400 ttyS1 vt100
Look at the man page for agetty to figure out what’s going on with the switches and baud rates, etc. Last but not least, reinitialize the inittab. This is the second portion of the hint that may be very useful in other scenarios. For instance, after you’ve installed the TSM client and added lines to inittab for startup you can use the following command to test whether or not your changes have succeeded:
/sbin/init q
That’s it. Now test the login with a serial cable and a your terminal client of choice. If minicom is your preference, launch it first with the -s option and set the serial settings to match your COM1 with the following values:
x A - Serial Device: /dev/ttyS0
x E - Bps/Par/Bits : 9600 8N1
x F - Hardware Flow Control : No
Also note that you can disable the troublesome modem initialization process by starting minicom with the -o option.