editediteditedit

Výstup konzole na Com port


v /etc/grub.conf na začátku:
serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1
terminal --timeout=10 serial console

a do každého řádku začínající slovem kernel:
console=tty0 console=ttyS0,9600n8

(This tells Grub to direct console output to both the standard ttys (the ones you get with a keyboard and monitor) as well as the serial port (ttySx).)

Na konec /etc/inittab:
S0:12345:respawn:/sbin/getty ttyS0 9600 linux

(the S0 is just a unique identifier; no two entries in inittab can start with the same thing. 12345 means all run levels (they correspond to /etc/rc2.d, rc3.d, etc) and respawn will ensure that it will accept another login after you log out.)

If you want to allow root to login over the console (versus logging in as a normal user and su-ing), add „ttyS0“ to the bottom of /etc/securetty:
echo ttyS0 >> /etc/securetty
Wiki engine by dan. Content by marv.