You can remove it with:Code:su update-rc.d ssh defaults
Code:update-rc.d -f ssh remove
Hi. I'm new to the whole linux / Knoppix scene and wanted to know how I can automatically startup a ssh server after booting. I have already successfully installed to my Hard Drive. I'm using Knoppix 3.4 I think.
Thanks a bunch!
CJackson0
You can remove it with:Code:su update-rc.d ssh defaults
Code:update-rc.d -f ssh remove
It worked perfectly. Thanks a bunch!
So what did that do and why?
update-rc.d is the debian way of managing services and daemons started by the init scripts. defaults sets up services to start and stop at certain points when changing runlevels. For ssh update-rc.d ssh defaults is the same as typing: update-rc.d ssh start 20 2 3 4 5 . stop 20 0 1 6 .
man update-rc.d will give you a better explanation.
ls -l /etc/rc5.d shows you what services are started and stopped and in which order at the graphical runlevel.
You can also manually edit this stuff although update-rc.d is easier.
/etc/rc5.d is the run control directory for run level 5 (graphical boot)
There are shortcuts in there which link to startup scripts usually in /etc/init.d. They are anme beginning with a capitol S or K (s for start and k for kill) folowwed by a two-digit number. The number determines the order in which the scripts are executed, highes number goes last.
You can create new links in this folder with the ln -s command like this.
ln -s /etc/init.d/ssh /etc/rc5.d/S90ssh
other runlevels-
rc2.d is for text mode boot without networking
rc3.d is for text mode boot with networking
rc1.d is single user (maintenance) mode and generally not much is run at this run level
I think 6 is for shutdown, not too sure about 4.
One of the things I always liked about Linux/Open Source is that it always is about learning. Check the /etc/inittab file for details on what each level does. It contains a lot more information. Check also the man page: man inittab, which will help you iinterpret each line.Originally Posted by arkaine23
If you are not sure what those levels are, just check the directories and a simple ls should reveal what services are started and which ones are stoped upon exit.
Once you learn to read the scripts, it is a very educating exercise.
--GN
Thanks for the help all! I might just be inquisitive enough to try and figure all this out. And then when I wreck it, I'll be re-installing but it'll be a fun ride.
Been there, crashed that. For a good fundamental understanding of Linux, try rute: http://www.icon.co.za/~psheer/book/index.html.gzOriginally Posted by cjackson0

Corsair CMK32GX4M2B3000C15 Vengeance LPX DDR4 3000mhz Memory Kit - 32GB (2x16GB)
$164.95
Corsair Vengeance DDR3 8GB 16GB 32GB 1866MHz PC3-14900 Desktop RAM Memory DIMM
$85.00
RAMAXEL Lenovo 32GB LPDDR5X CAMM2 7500MHz Laptop RAM | UNTESTED
$445.00
Crucial DDR4 Pro 128GB (4x32GB) DDR4-3200 UDIMM 288-Pin CP32G4DFRA32A
$640.00
G.Skill Trident Z RGB 128GB (32GBx4) DDR4 RAM 3600 (F4-3600C18Q-128GTZR)
$775.00
G.SKILL Trident Z 16GB (2x8GB) DDR4-3200 PC4-25600 288-Pin DIMM XMP 2.0
$69.00
Lot of 6 Mixed DDR3 DDR4 RAM 4GB 16GB 32GB HyperX Micron Samsung Untested
$25.00
Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC
$29.99
G.SKILL Ripjaws 64GB (2x32GB) DDR4-3200 SO-DIMM CL22 260-Pin XMP
$260.00
G.SKILL Ripjaws V 16GB (2x8GB) DDR4-3600 DIMM Intel XMP 2.0 F4-3600C18D-16GVK
$75.00