Line 5: | Line 5: | ||
One such example might be that your server is headless (No VGA, Keyboard, or Monitor) | One such example might be that your server is headless (No VGA, Keyboard, or Monitor) | ||
The info on this page will help you enable console access via a serial port. | The info on this page will help you enable console access via a serial port. | ||
+ | |||
Line 17: | Line 18: | ||
init q | init q | ||
− | |||
− | |||
== Explanation == | == Explanation == | ||
− | |||
TTY-ID:RUN-LEVELS:respawn COMMAND -SWITCHES PORT TERMINAL-EMULATION | TTY-ID:RUN-LEVELS:respawn COMMAND -SWITCHES PORT TERMINAL-EMULATION | ||
+ | (For greater detail on inittab or agetty see the [[Serial_Console#References|References Section]] below) | ||
− | |||
== General Notes == | == General Notes == | ||
− | 1) In this HowTo I used 'agetty' but there are other getty packages, if you use one of the other getty packages keep in mind that the syntax will most likely be different. | + | 1) There will most likely already be a 6:12345, if that is the case comment out the old 6:12345 with a # like this #6:12345. |
+ | 2) In this HowTo I used 'agetty' but there are other getty packages, if you use one of the other getty packages keep in mind that the syntax will most likely be different. | ||
+ | 3) I prefer to redirect TTY6 so that if I do login locally TTY1 (the default console) is available. | ||
+ | |||
== References == | == References == | ||
− | + | [http://www.vanemery.com/Linux/Serial/serial-console.html Linux Serial Console HowTo] | |
− | + | [http://www.linuxjournal.com/article/2040 Linux Journal - Serial as a Console] | |
− | + | [http://www.netadmintools.com/html/5inittab.man.html inittab Man Pages] | |
− | + | [http://www.netadmintools.com/html/8agetty.man.html agetty Man Pages] | |
− | Linux | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
Revision as of 02:37, 22 May 2008
Serial Console HowTo
Overview
Sometimes it is handy to be able to redirect a TTY Console to a serial port. One such example might be that your server is headless (No VGA, Keyboard, or Monitor) The info on this page will help you enable console access via a serial port.
Instructions
To redirect a Linux Console to a serial port edit /etc/inittab
6:12345:respawn /usr/sbin/agetty -hL ttyS0 38400 vt100
When done issue this command to make the changes take effect:
init q
Explanation
TTY-ID:RUN-LEVELS:respawn COMMAND -SWITCHES PORT TERMINAL-EMULATION (For greater detail on inittab or agetty see the References Section below)
General Notes
1) There will most likely already be a 6:12345, if that is the case comment out the old 6:12345 with a # like this #6:12345. 2) In this HowTo I used 'agetty' but there are other getty packages, if you use one of the other getty packages keep in mind that the syntax will most likely be different. 3) I prefer to redirect TTY6 so that if I do login locally TTY1 (the default console) is available.
References
Linux Serial Console HowTo Linux Journal - Serial as a Console inittab Man Pages agetty Man Pages