文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Linux Console Full Version

Linux Console Full Version

时间:2006-03-01  来源:wenzk

POST部分,主要看BIOS是否支持了,具体到BIOS配置里面找,如果支持POST信息也可以在Terminal上显示。

Grub:
==============================
[root@vpn ~]# more /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/hda2
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1
terminal --timeout=3 serial console
#splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.10-1.771_FC2)
        root (hd0,0)
        kernel /vmlinuz-2.6.10-1.771_FC2 ro root=LABEL=/ console=ttyS0,9600n8
        initrd /initrd-2.6.10-1.771_FC2.img
title Fedora Core (2.6.10-1.770_FC2)
        root (hd0,0)
        kernel /vmlinuz-2.6.10-1.770_FC2 ro root=LABEL=/ console=ttyS0,9600n8
        initrd /initrd-2.6.10-1.770_FC2.img
title Fedora Core (2.6.5-1.358)
        root (hd0,0)
        kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ console=ttyS0,9600n8
        initrd /initrd-2.6.5-1.358.img
[root@vpn ~]#
===================================================================

Login Linux from Console:

/etc/inittab:
增加
=============================================
# Run agetty
co:2345:respawn:/sbin/agetty ttyS0 9600 vt102
=============================================
让root能从Console登录:
/etc/securetty:
增加
========
ttyS0
========

pxelinux配置:
SERIAL port [baudrate [flowcontrol]] Enables a serial port to act as the console. "port" is a number (0 = /dev/ttyS0 = COM1, etc.); if "baudrate" is omitted, the baud rate defaults to 9600 bps. The serial parameters are hardcoded to be 8 bits, no parity, 1 stop bit.

"flowcontrol" is a combination of the following bits:
0x001 - Assert DTR
0x002 - Assert RTS
0x010 - Wait for CTS assertion
0x020 - Wait for DSR assertion
0x040 - Wait for RI assertion
0x080 - Wait for DCD assertion
0x100 - Ignore input unless CTS asserted
0x200 - Ignore input unless DSR asserted
0x400 - Ignore input unless RI asserted
0x800 - Ignore input unless DCD asserted

For this directive to be guaranteed to work properly, it should be the first directive in the configuration file.

$ more /tftpboot/pxelinux.cfg/default
default local

serial 0
prompt 1
timeout 300
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
F7 snake.msg

label FC4
  kernel fc/vmlinuz_FC4
  append vga=normal initrd=fc/initrd.img_FC4 ramdisk_size=9372 root=/dev/rd/0 devfs=mount,dall rw
label FC3
  kernel fc/vmlinuz_FC3
  append vga=normal initrd=fc/initrd.img_FC3 ramdisk_size=9372 root=/dev/rd/0 devfs=mount,dall rw
label FC2
  kernel fc/vmlinuz_FC2
  append vga=normal initrd=fc/initrd.img_FC2 ramdisk_size=9372 root=/dev/rd/0 devfs=mount,dall rw
label PlanetLab
  kernel fc/vmlinuz_PlanetLab
  APPEND vga=normal initrd=fc/initrd.img_PlanetLab load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=200744 root=/dev/ram0 rw
label local
  localboot 0
$

相关阅读 更多 +
排行榜 更多 +
弓箭手战士酷跑

弓箭手战士酷跑

飞行射击 下载
三角洲行动全面战场攀升A点进攻指南

三角洲行动全面战场攀升A点进攻指南

飞行射击 下载
僵尸射手世界大战

僵尸射手世界大战

飞行射击 下载