Results 1 to 7 of 7

Thread: start KNOPPIX customized with nfs, samba and ssh (as a serve

  1. #1
    Junior Member
    Join Date
    Jun 2005
    Posts
    1

    start KNOPPIX customized with nfs, samba and ssh (as a serve

    Hi,

    I investigated a lot of time for a solution, hopefully you can give me some hints how to proceede...

    My challenge:

    Have an old P166 which I want to use as a storage server (one CD./ one CDRW drive and floppy
    I could have NO screen at the place of the computer.

    How can I start the computer with an automatic start of nfs, samba and ssh deamon (including all customized configurations run as server)?
    I only want to put the CD inside and thats it. All further access I wand to do via ssh or vnc.

    Is there any other solution to start a (deamon)script automaticly after starting knoppix without typing some boot prompt? Maybe via floppy?


    Thank you for your ideas
    v-lee

  2. #2
    You can start system daemon by editing /etc/inittab

  3. #3
    Junior Member
    Join Date
    Jun 2005
    Posts
    3
    enlightened_j
    Would you mind commenting on what needs to be done with /etc/inittab ?
    I tried adding "# Start ssh on startup
    ss:4:wait:/etc/init.d/ssh start" (from http://www.knoppix.net/wiki/Configuration_Howto ), but it didn't work
    Thanks!

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    Don't edit /etc/inittab
    It only defines the runlevels & is not used to start or stop services. If you wish to have specific thing happen upon boot up of the Knoppix CDROM, then google or search the forums for knoppix.sh. One such website I found is http://staff.washington.edu/gray/kserver.html "Building a Silent PC: My Quest for Quiet Chapter 5: A Nearly Noiseless Knoppix Server"

    If you have a HD installed system and you want specifc services to be run by default then read http://www.debian.org/doc/FAQ/ch-customizing.en.html "The Debian GNU/Linux FAQ Chapter 10 - Customizing your installation of Debian GNU/Linux"

    I hope this helps.
    James

  5. #5
    Junior Member
    Join Date
    Jun 2005
    Posts
    3
    Thanks, James!

    I have HDD installed system. -- Here is what I did - and it worked for running SSH server at start-up (that's what I was interested in):
    [quote="Markus"]
    Code:
    su
    update-rc.d ssh defaults
    {More interesting stuff here http://www.knoppix.net/forum/viewtop...ht=ssh+startup }

    Off: Chapter 10 seems to be very useful, particularly, 10.6 - except I have no clue what any of these scripts should look like

  6. #6
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    Unless you have written a truly custom program or service (something not normal like sshd) then you do not need to understand or edit scripts.
    Code:
    my-test-system:~ # cd /etc
    my-test-system:/etc # grep default inittab
    # The default runlevel is defined here
    id:5:initdefault:
    # runlevel 0  is  System halt   (Do not use this for initdefault!)
    # runlevel 6  is  System reboot (Do not use this for initdefault!)
    my-test-system:/etc # cd rc5.d/
    my-test-system:/etc/rc5.d # ls
    .               K10running-kernel  S01hotplug       S12fbset
    ..              K10sshd            S01isdn          S12ldap
    K07splash_late  K12nfs             S01random        S12running-kernel
    K07xdm          K12nfsboot         S02coldplug      S12sshd
    K08cron         K14portmap         S05network       S13kbd
    K08hwscan       K14resmgr          S06syslog        S13postfix
    K08nscd         K14slpd            S08portmap       S13powersaved
    K08xinetd       K14smbfs           S08resmgr        S13splash
    K09postfix      K14splash_early    S08slpd          S14cron
    K09powersaved   K16syslog          S08smbfs         S14hwscan
    K09splash       K17network         S08splash_early  S14nscd
    K10alsasound    K20coldplug        S10nfs           S14xinetd
    K10arpwatch     K21hotplug         S10nfsboot       S15splash_late
    K10fbset        K21isdn            S12alsasound     S15xdm
    K10ldap         K21random          S12arpwatch
    my-test-system:/etc/rc5.d # ls -l S12arpwatch
    lrwxrwxrwx  1 root root 7 Aug 11  2004 S12arpwatch -> ../init.d/arpwatch
    my-test-system:/etc/rc5.d #
    In the above example I use grep to identify the default runlevel which is runlevel 5. This means that on every boot the system runs the services defined under runlevel 5. Then I do a ls to see all the services in runlevel 5. Then I do a ls -l on S12arpwatch and I find that it is really a link (or a pointer) to a script that resides at /etc/init.d/arpwatch.

    In Debian runlevels are named conventionally (0-6 and S). They are represented by directories in /etc/ called rc*.d.

    * /etc/rc0.d
    * /etc/rc1.d
    * /etc/rcS.d
    * /etc/rc2.d
    * /etc/rc3.d
    * /etc/rc4.d
    * /etc/rc5.d
    * /etc/rc6.d

    If I wanted to run CUPS which is the printing system, in runlevel 5, I would first identify the services name and in this case it is cupsys.
    I could manually create a link to make cupsys run in runlevel5.
    # cd /etc/rc5.d/
    # ln -s ../init.d/cupsys S16cupsys
    # ls -l S16cupsys
    rwxrwxrwx 1 root root 7 Aug 11 2004 S16cupsys -> ../init.d/cupsys

    The "S16" is necessary because it identifies the function and the order to start or stop the services. All the links to services have a this prefix where S is for start, K is for kill or stop and the number sets the order.

    To remove cupsys from runlevel 5
    # cd /etc/rc5.d/
    # rm S16cupsys

    Or I can use the update-rc.d command to deal with all the details. I would enter the command:
    # update-rc.d cupsys defaults

    To remove Remove cupsys from all runlevels:

    # update-rc.d -f cupsys remove

    This post was written based on the following links:
    http://gentoo-wiki.com/TIP_Converting_from_or_to_Debian
    http://linux.rice.edu/help/tips-services.html

  7. #7
    Junior Member
    Join Date
    Jun 2005
    Posts
    3
    Thanks, UnderScore! Now I think I get it - though I probably don't

Similar Threads

  1. how to start samba server in knoppix 6?
    By cct3000 in forum Networking
    Replies: 12
    Last Post: 12-22-2010, 02:30 AM
  2. Cant start samba
    By ben1440 in forum Networking
    Replies: 2
    Last Post: 02-23-2006, 07:25 AM
  3. Cannot Start Samba from Menu
    By jMon54 in forum Networking
    Replies: 2
    Last Post: 03-28-2005, 03:23 PM
  4. Can I start KNOPPIX Samba service from the commandline
    By pau1knopp in forum General Support
    Replies: 5
    Last Post: 01-29-2005, 02:40 AM
  5. auto start samba?
    By InstallScript in forum General Support
    Replies: 2
    Last Post: 02-09-2003, 10:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1TB Samsung 840 EVO Internal 2.5

1TB Samsung 840 EVO Internal 2.5" SATA III SSD MZ7TE1T0HMHP Solid State Drive

$69.83



960GB Samsung M.2 PM983 SSD PCIe NVMe 22110 Solid State Drive MZ1LB960HAJQ-00007 picture

960GB Samsung M.2 PM983 SSD PCIe NVMe 22110 Solid State Drive MZ1LB960HAJQ-00007

$74.68



HPGYT DELL 960GB SATA 6Gb/s 2.5in Internal SSD 0HPGYT MTFDDAK960TCB picture

HPGYT DELL 960GB SATA 6Gb/s 2.5in Internal SSD 0HPGYT MTFDDAK960TCB

$59.00



SM883 HXM7404Q 2.5 Samsung 960GB SATA6.0Gbps MZ7KH960HAJR-00005 MZ-7KH9600 SSD picture

SM883 HXM7404Q 2.5 Samsung 960GB SATA6.0Gbps MZ7KH960HAJR-00005 MZ-7KH9600 SSD

$95.00



Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5

Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot

$14.99



Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture

Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot

$13.99



Fanxiang SSD 512GB 1TB 2TB 4TB 2.5'' SSD SATA III Internal Solid State Drive lot picture

Fanxiang SSD 512GB 1TB 2TB 4TB 2.5'' SSD SATA III Internal Solid State Drive lot

$13.99



Samsung - Geek Squad Certified Refurbished 980 PRO 1TB Internal SSD PCIe Gen ... picture

Samsung - Geek Squad Certified Refurbished 980 PRO 1TB Internal SSD PCIe Gen ...

$71.99



Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot picture

Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot

$209.99



Fanxiang 256GB 512GB 1TB 2TB 4TB Internal SSD 2.5

Fanxiang 256GB 512GB 1TB 2TB 4TB Internal SSD 2.5" SATA III 6GB/s for PC/MAC Lot

$178.19