Debian Linux: Set a Serial Console

Debian Linux: Set a Serial Console

To set up a serial console on Debian Linux, you will need to follow these steps:

  1. Connect your serial device to the system and determine the device name. You can use the dmesg command to view the system log and find the device name. For example, the device might be /dev/ttyS0 or /dev/ttyUSB0.

  2. Edit the /etc/inittab file and uncomment the following lines:

‮:ot refer‬lautturi.com
#SERIAL CONSOLES
#
#S0:2345:respawn:/sbin/getty -L ttyS0 9600 vt100
#S1:2345:respawn:/sbin/getty -L ttyS1 9600 vt100

Replace ttyS0 and ttyS1 with the device name of your serial device.

  1. Edit the /etc/securetty file and add the following line:
ttyS0

Again, replace ttyS0 with the device name of your serial device.

  1. Reboot the system to apply the changes.

After the system has rebooted, you should be able to use the serial console to access the system.

Created Time:2017-10-28 14:02:25  Author:lautturi