Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: run sshd on boot time? (DSL 7.2), How to run sshd automatically at startup< Next Oldest | Next Newest >
meorero Offline





Group: Members
Posts: 5
Joined: Dec. 2003
Posted: July 13 2004,17:39 QUOTE

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
Back to top
Profile PM 
ke4nt1 Offline





Group: Members
Posts: 2329
Joined: Oct. 2003
Posted: July 13 2004,20:49 QUOTE

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
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: July 13 2004,22:56 QUOTE

.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.
Back to top
Profile PM WEB 
meorero Offline





Group: Members
Posts: 5
Joined: Dec. 2003
Posted: July 15 2004,06:38 QUOTE

Worked. Thanks a lot!
(I'm using the hd.)

I have another question but that's for a seperate thread...
Back to top
Profile PM 
3 replies since July 13 2004,17:39 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: run sshd on boot time? (DSL 7.2)

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code