PDA

View Full Version : Activate serial console or ssh at boot



jimmi
07-30-2007, 10:29 AM
Hi,

I use a headless server on which sometime, for maintenance purposes, I need to boot from a recovery or Live CD like Knoppix. Is it possible with Knoppix to activate a serial console or the ssh server at boot time?

Thanks in advance.
Jimmi

greenfly
07-31-2007, 06:07 AM
If your serial console is hooked up to COM1, for instance, you just use the standard kernel parameters to set the console to output to the serial console, just add:

console=tty0 console=ttyS0,9600n8

as "cheat codes".

To add the ssh server at boot, you would need to either set up a persistent image to start it, or add a knoppix.sh to the KNOPPIX/ directory on the cd that would start the ssh service and set the root password.

jimmi
07-31-2007, 12:12 PM
Thanks greenfly!

...just add:
console=tty0 console=ttyS0,9600n8
as "cheat codes".
In order to use this option I would need the boot screen on the serial console, that it is not activated by default. I must look if there is a grub or lilo menu file to add the option to.


To add the ssh server at boot, you would need to either set up a persistent image to start it, or add a knoppix.sh to the KNOPPIX/ directory on the cd that would start the ssh service and set the root password.
This seems easier: I will test it and come back with a feedback.

Jimmi