LoveUnix » 其他UNIX & Linux » 串口维护linux
让LU留住您的每

一天 让LU博客留住您的每一天
2007-3-13 10:39 luweinet
串口维护linux

单位的linux显示器烧掉了,[u][b]linux[/b][/u]维护只能远程,万一在启动ssh前挂起不久麻烦了,想想hp/aix那可爱的串口管理。我也查了下资料给linux也允许串口登陆
Console login
step1 grub配置
edit grub.conf
#splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1
terminal --timeout=10 serial console
====>
kernel /vmlinuz-2.4.20-24.9 ro root=LABEL=/ console=tty0 console=ttyS0,9600
====>

step2 起进程
/etc/inittab
S0:12345:respawn:/sbin/agetty ttyS0 9600 linux

S1:12345:respawn:/sbin/agetty ttyS1 9600 linux   //you can add more :)

step3 允许登陆
/etc/securetty
ttyS0

step4
/etc/sysconfig/init
BOOTUP=color   修改为==> BOOTUP=serial

step5
/etc/sysconfig/kudzu  修改为===>SAFE=yes



ps:懒人风格,txt,加最简单的描述

2007-3-13 11:28 lghhr
学习!

页: [1]
查看完整版本: 串口维护linux


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.