[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howtos:general_admin:serial_console [2013/01/06 19:13 (UTC)] – general cleanup, added reviewed flag mfillpot | howtos:general_admin:serial_console [2014/11/14 09:18 (UTC)] (current) – add GRUB2 section fdonkers | ||
---|---|---|---|
Line 26: | Line 26: | ||
the speed setting when required. | the speed setting when required. | ||
- | < | + | < |
# Local serial lines: | # Local serial lines: | ||
s1: | s1: | ||
Line 36: | Line 36: | ||
login via the serial console. You can omit this step if you will access the | login via the serial console. You can omit this step if you will access the | ||
machine with a normal user id. | machine with a normal user id. | ||
- | < | + | < |
# These are some remote ttys, and uncommenting them might be less than fully secure: | # These are some remote ttys, and uncommenting them might be less than fully secure: | ||
ttyS0 | ttyS0 | ||
Line 44: | Line 44: | ||
===== Setup LILO boot loader ===== | ===== Setup LILO boot loader ===== | ||
Edit ''/ | Edit ''/ | ||
- | < | + | < |
serial=0, | serial=0, | ||
</ | </ | ||
Line 51: | Line 51: | ||
Add the following parameter to the kernel line: | Add the following parameter to the kernel line: | ||
- | < | + | < |
append=" | append=" | ||
</ | </ | ||
If the //append// line already exists, add the parameter as follows: | If the //append// line already exists, add the parameter as follows: | ||
- | < | + | < |
append=" | append=" | ||
</ | </ | ||
Line 64: | Line 64: | ||
To have the console on normal tty as well as serial port, adjust the | To have the console on normal tty as well as serial port, adjust the | ||
kernel line as follows: | kernel line as follows: | ||
- | < | + | < |
append=" | append=" | ||
</ | </ | ||
- | ===== Setup GRUB boot loader ===== | + | ===== Setup GRUB-legacy |
Edit ''/ | Edit ''/ | ||
Add lines to the general section as follows: | Add lines to the general section as follows: | ||
- | < | + | < |
serial --speed=38400 | serial --speed=38400 | ||
terminal serial | terminal serial | ||
Line 78: | Line 78: | ||
Add the following parameter to the kernel line: | Add the following parameter to the kernel line: | ||
- | < | + | < |
console=ttyS0, | console=ttyS0, | ||
</ | </ | ||
Line 84: | Line 84: | ||
The complete kernel line might look like this (substitute your root | The complete kernel line might look like this (substitute your root | ||
partition and vmlinuz file): | partition and vmlinuz file): | ||
- | < | + | < |
kernel / | kernel / | ||
</ | </ | ||
Line 90: | Line 90: | ||
To have the console on normal tty as well as serial port, adjust the | To have the console on normal tty as well as serial port, adjust the | ||
terminal and kernel lines as follows: | terminal and kernel lines as follows: | ||
- | < | + | < |
terminal --timeout=5 serial console | terminal --timeout=5 serial console | ||
</ | </ | ||
- | < | + | < |
kernel xxx console=tty0 console=ttyS0, | kernel xxx console=tty0 console=ttyS0, | ||
</ | </ | ||
Line 100: | Line 100: | ||
will be chosen as the console. The normal bootloader timeout will start | will be chosen as the console. The normal bootloader timeout will start | ||
when the terminal timeout ends. | when the terminal timeout ends. | ||
+ | |||
+ | ===== Setup GRUB2 boot loader ===== | ||
+ | Edit file ''/ | ||
+ | <file . grub> | ||
+ | GRUB_CMDLINE_LINUX_DEFAULT=" | ||
+ | </ | ||
+ | |||
+ | Add the following lines to define the console settings: | ||
+ | <file . grub> | ||
+ | GRUB_TERMINAL=serial | ||
+ | GRUB_SERIAL_COMMAND=" | ||
+ | </ | ||
+ | |||
+ | Now rebuild the GRUB2 configuration: | ||
+ | < | ||
+ | # grub-mkconfig -o / | ||
+ | </ | ||
====== Connect from a remote computer ====== | ====== Connect from a remote computer ====== |