run sshd on boot time? (DSL 7.2)


Forum: Networking
Topic: run sshd on boot time? (DSL 7.2)
started by: meorero

Posted by meorero on July 13 2004,17:39
How can I run SSHD automatically at boot time?
(so - I won't have to start it over again and again
via the DSLpanel after each reboot) ???  

I'm using DSL 7.2

Posted by ke4nt1 on July 13 2004,20:49
If from a HDinstall - edit your /home/dsl/.xinitrc file.
See the "dillo" line in the .xinitrc file for an example.
Open your menu file in .fluxbox to see how the
desktop menu starts ssh.
( sudo /etc/init.d/ssh start ) I think....

If from liveCD or poorman's install , after editing the
.xinitrc file, make sure you put a line to it's location
in your filetool.lst, so you can backup your changes
before rebooting.

Then reboot with the restore=hd?? command.
This will restore your edited copy of .xinitrc,
and run ssh automagically.

Or, build a simple .dsl extension with only that 1 file in it,
( /home/dsl/.xinitrc ) and place the extension in the root of your cdrom.
Then DSL will boot without intervention, and load and run it
automagically..

Since it needs to launch and run as root,
there are probably other ways to do this as well...

73
ke4nt

Posted by roberts on July 13 2004,22:56
.xinitrc is actually used to starting other X programs and is dependent on a particular user loging in and starting the X server. For system daemons it is preferred to use:

From liveCD:
At the first boot prompt:  boot: dsl ssh
This method is useful for occasionally starting ssh at boot.

Using Frugal select is as a daemon at the prompt when installing via frugal.
This method will start ssh eveytime the system boots.

For hard drive and liveCD to always boot with ssh daemon started, add the following line to your /opt/bootlocal.sh

/etc/init.d/ssh start

liveCD users would also need to add /opt/bootlocal.sh to the filetool.lst and backup. Then upon restore the ssh daemon will start.

Posted by meorero on July 15 2004,06:38
Worked. Thanks a lot!
(I'm using the hd.)

I have another question but that's for a seperate thread...

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.