zero-sys.net
Software Engineering, Administration, IT-Services & Consulting
serial console


inittab:
T0:23:respawn:/sbin/getty -L ttyS2 9600 vt100
securetty:
ttyS2

now you can login in on this machine using a nullmodem-cable and a terminalemulator.
A suitable config-file for minicom:
pu port             /dev/ttyS0
pu baudrate         9600
pu minit
pu mreset
pu mdialpre
pu mdialsuf
pu mdialpre2
pu mdialsuf2
pu mdialpre3
pu mdialsuf3
pu mconnect
pu mhangup
pu mdialcan
Erstellt: 16.06.2006 17:19
Letzte Änderung: 17.06.2006 14:47


requires: CONFIG_SERIAL_CONSOLE=y
kernel options: console=tty0 console=ttyS2,9600
Erstellt: 17.06.2006 14:54
Letzte Änderung: 17.06.2006 14:54


Requires that GRUB is compiled with serial support!
grub/menu.lst
serial --unit=1 --speed=9600 --word=8 --parity=no --stop=1
terminal --timeout=10 serial console
serial configures the serial line

--unit=x
configures the serial interface number x (starting from 0)
--port=x
configure serial interface found at I/O port x (has higher precedence as unit!)
--speed=x
set speed to x bps (9600 is OK and default)
--word=x
databits to x (8)
--stop=x
stop bits to x (1)
--parity=p
set parity to no, odd, even
 
terminal settings
--timeout=x
set timeout befor displaying menu to x
serial | console
select terminal for interaction. if both serial and console are configured, grub will use the one where a key press is recordet first first or the first after timeout
Attention: grub sees the serial ttys in the order of appearance. A ttyS2 under linux may be unit=1 for grub if ttyS1 is missing. --port may be the better option.
Erstellt: 17.06.2006 15:19
Letzte Änderung: 17.06.2006 15:21


A grub mneu entry for serial console output of xen dom0:
kernel          /xen-3.0.3-1-amd64.gz com1=9600,8n1 console=com1,vga
module          /vmlinuz-2.6.18-6-xen-vserver-amd64 root=/dev/sda3 ro console=tty0 console=ttyS0,9600
Erstellt: 18.02.2008 11:10
Letzte Änderung: 18.02.2008 11:11