CentOS / RHEL v6.x: Install And Configure Serial Console

www.lautt‮oc.iru‬m
CentOS / RHEL v6.x: Install And Configure Serial Console

To install and configure a serial console on CentOS or Red Hat Enterprise Linux (RHEL) version 6.x, you can follow these steps:

  1. Connect a serial cable from the serial port of your system to the desired device (e.g., a terminal or a computer).

  2. Edit the /etc/inittab file and add the following line at the end of the file:

S0:2345:respawn:/sbin/agetty -L ttyS0 115200 vt100

This will configure the system to start a login prompt on the serial console (ttyS0) at a baud rate of 115200.

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

This will allow root login on the serial console.

  1. Reboot the system to apply the changes.

  2. On the device connected to the serial port, set the terminal emulator to connect to the serial port at a baud rate of 115200.

  3. You should now be able to access the login prompt on the serial console.

Note: These steps assume that you are using the first serial port (ttyS0) on your system. If you are using a different serial port, you will need to adjust the device name and configuration files accordingly. Consult the documentation for your system and terminal emulator for more information on how to configure a serial console.

Created Time:2017-10-16 14:38:40  Author:lautturi