You are viewing an article about an obsolete product. Information on this page is provided as-is and not supported.

How to Configure a Linux System Serial Port for Console Management Using Grub.

The linux box won't have console turned on by default, you will need to spawn a getty at ttyS0 (the first serial port).

Here is an example of the /etc/inittab file entry:

0:12345:respawn:/sbin/agetty 9600 ttyS0

Configure /etc/grub.conf:

serial --unit=0 --speed=9600
terminal --timeout=15 serial console
default=0
timeout=10
#title Linux
# root (hd0,0)
# kernel /vmlinuz ro root=/dev/hda2 hdd=ide-scsi console=tty0
# use whatever you have for the above, add the line below
console=ttyS0
# initrd /initrd.img

Add the serial port to /etc/securetty, for example:
ttyS0
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8

Last updated: Jan 16, 2024

Filed Under

Network

Recently Viewed

No recently viewed articles

Did you find this article helpful?