Configure Your Linux Login From Serial Port
1. /etc/grub/grub.conf
# Insert "serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1" in Globle Config .
# Insert "console=tty0 console=ttyS0,9600n8" in Kernel parameter .
# About 9600 Speed you can modified make to 38400 , 115200 , 230000.......any number..!!
default=0
timeout=5
serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1
terminal serial --timeout=10 serial console
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
title RH8.0 (2.4.18-14)
root (hd0,1)
kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/ console=tty0 console=ttyS0,9600n8
initrd /boot/initrd-2.4.18-14.img
2. /etc/inittab
# Insert "2:2345:respawn:/sbin/agetty ttyS0 9600 vt100"
# Because mingetty not support Serial Port
# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
# 2:2345:respawn:/sbin/mingetty tty2
2:2345:respawn:/sbin/agetty ttyS0 9600 vt100
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6
# Run xdm in runlevel 5
# xdm is now a separate service
x:5:respawn:/etc/X11/prefdm -nodaemon
3. /etc/securetty
# Insert "ttyS0"
4. Reboot
# Insert "serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1" in Globle Config .
# Insert "console=tty0 console=ttyS0,9600n8" in Kernel parameter .
# About 9600 Speed you can modified make to 38400 , 115200 , 230000.......any number..!!
default=0
timeout=5
serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1
terminal serial --timeout=10 serial console
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
title RH8.0 (2.4.18-14)
root (hd0,1)
kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/ console=tty0 console=ttyS0,9600n8
initrd /boot/initrd-2.4.18-14.img
2. /etc/inittab
# Insert "2:2345:respawn:/sbin/agetty ttyS0 9600 vt100"
# Because mingetty not support Serial Port
# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
# 2:2345:respawn:/sbin/mingetty tty2
2:2345:respawn:/sbin/agetty ttyS0 9600 vt100
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6
# Run xdm in runlevel 5
# xdm is now a separate service
x:5:respawn:/etc/X11/prefdm -nodaemon
3. /etc/securetty
# Insert "ttyS0"
4. Reboot
Comments
Post a Comment