[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.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
howtos:general_admin:serial_console [2013/01/06 19:13 (UTC)] – general cleanup, added reviewed flag mfillpothowtos:general_admin:serial_console [2013/11/14 15:36 (UTC)] – [Setup GRUB boot loader] rename to grub-legacy fdonkers
Line 26: Line 26:
 the speed setting when required. the speed setting when required.
  
-<file>+<file - /etc/inittab>
 # Local serial lines: # Local serial lines:
 s1:12345:respawn:/sbin/agetty -L ttyS0 38400 vt100 s1:12345:respawn:/sbin/agetty -L ttyS0 38400 vt100
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.
-<file>+<file - /etc/securetty>
 # 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 ''/etc/lilo.conf''. Add a line to the general section: Edit ''/etc/lilo.conf''. Add a line to the general section:
-<file>+<file - /etc/lilo.conf>
 serial=0,38400n8 serial=0,38400n8
 </file> </file>
Line 51: Line 51:
  
 Add the following parameter to the kernel line: Add the following parameter to the kernel line:
-<file>+<file - /etc/lilo.conf>
 append="console=ttyS0,38400n8" append="console=ttyS0,38400n8"
 </file> </file>
  
 If the //append// line already exists, add the parameter as follows: If the //append// line already exists, add the parameter as follows:
-<file>+<file - /etc/lilo.conf>
 append="mem=1024M console=ttyS0,38400n8" append="mem=1024M console=ttyS0,38400n8"
 </file> </file>
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:
-<file>+<file - /etc/lilo.conf>
 append="console=tty0 console=ttyS0,38400" append="console=tty0 console=ttyS0,38400"
 </file> </file>
  
-===== Setup GRUB boot loader =====+===== Setup GRUB-legacy boot loader =====
 Edit ''/boot/grub/menu.lst'' and change it as follows: Edit ''/boot/grub/menu.lst'' and change it as follows:
  
 Add lines to the general section as follows: Add lines to the general section as follows:
-<file>+<file - /boot/grub/menu.lst>
 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:
-<file>+<file - /boot/grub/menu.lst>
 console=ttyS0,38400n8 console=ttyS0,38400n8
 </file> </file>
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):
-<file>+<file - /boot/grub/menu.lst>
 kernel /boot/vmlinuz root=/dev/sda2 ro vga=normal console=ttyS0,38400n8 kernel /boot/vmlinuz root=/dev/sda2 ro vga=normal console=ttyS0,38400n8
 </file> </file>
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:
-<file>+<file - /boot/grub/menu.lst>
 terminal --timeout=5 serial console terminal --timeout=5 serial console
 </file> </file>
-<file>+<file - /boot/grub/menu.lst>
 kernel xxx console=tty0 console=ttyS0,38400n8 kernel xxx console=tty0 console=ttyS0,38400n8
 </file> </file>
 howtos:general_admin:serial_console ()