Results 1 to 7 of 7

Thread: Auto run of programs.

  1. #1
    Junior Member registered user
    Join Date
    Feb 2003
    Posts
    12

    Auto run of programs.

    Is it possible to setup Knoppix so that it will auto run a console based program as soon as the machine boots? Please use details on any methods described. Thanks.

  2. #2
    Member registered user
    Join Date
    Dec 2002
    Location
    Thousand Oaks, CA
    Posts
    96
    I'm sure there are better and more efficient ways of doing this but this should work. And I assume this is after a HD install.
    Creat a text file that begins with #! /bin/sh and follow with the commands you want executed.
    Save your file in the /etc/rc5.d directory.
    Make sure your file name starts with S99
    Make sure it is executable by root (I believe).
    It will now be one of the last scripts to be executed when your computer to boots (at least to the KNOPPIX default run level 5).

    Good Luck,

    Mike

  3. #3
    Junior Member registered user
    Join Date
    Feb 2003
    Posts
    12
    I gave your suggestion a shot and it gives me a permission error. I have made sure that it and the file to executed by the script are executable by all users.

    Is there anything else that I need to place in the script file? I placed the text you gave mean and the following command:

    "/cdrom/program/program"

    Thanks again for the help.

  4. #4
    Member registered user
    Join Date
    Dec 2002
    Location
    Thousand Oaks, CA
    Posts
    96
    What are you trying to do? More specifics might help.

  5. #5
    Member registered user
    Join Date
    Feb 2003
    Posts
    43
    Quote Originally Posted by mmaki
    I'm sure there are better and more efficient ways of doing this but this should work. And I assume this is after a HD install.
    Creat a text file that begins with #! /bin/sh and follow with the commands you want executed.
    Save your file in the /etc/rc5.d directory.
    Make sure your file name starts with S99
    Make sure it is executable by root (I believe).
    It will now be one of the last scripts to be executed when your computer to boots (at least to the KNOPPIX default run level 5).
    This assumes that one is using the Knoppix off of the hard drive, and that the user is entering run level 5.

    If you are using a console-based program, you might be entering run level 2, in which case the program should be put into /etc/rc2.d. Make sure the program has permissions of 755 (rwxr-xr-x).

    Better yet is to put the program into /etc/init.d and put a link in /etc/rc2.d:

    cd /etc/rc2.d
    ln -s ../init.d/myprog S99myprog

    Notice that the link starts with S99 but the standard program does not.

    Another way which works with the Knoppix CD is to put a shell script on a floppy and enter "floppyconfig" at the command line. With a console-based program, you probably want to use the "2" option also.

  6. #6
    Junior Member registered user
    Join Date
    Feb 2003
    Location
    Guayaquil, Ecuador
    Posts
    14

    And persistent home??

    And persistent-home, what level run ??
    1,2, 5???
    /home/knoppix in /ramdisk is mounted in that level??

  7. #7
    Junior Member registered user
    Join Date
    Feb 2003
    Posts
    12
    Thanks for everyones help. I had the permissions wrong before I compressed the Knoppix file but when I looked at them on the cd they appeared differently. Stupid mistake #542.

Similar Threads

  1. Auto Log-in issues
    By darksky in forum General Support
    Replies: 1
    Last Post: 02-20-2005, 03:50 AM
  2. No auto-connection in 3.4
    By necokop in forum Networking
    Replies: 9
    Last Post: 05-25-2004, 05:14 PM
  3. auto starting NIS
    By fkbangun in forum Networking
    Replies: 1
    Last Post: 06-27-2003, 08:33 AM
  4. More about : Auto Run of programs
    By KnoppIXuser in forum Customising & Remastering
    Replies: 1
    Last Post: 04-30-2003, 09:55 AM
  5. auto: auto: no such file or directory
    By maddany in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 04-16-2003, 02:19 AM

Posting Permissions

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


Lot of 2 Seagate Constellation ES.3 ST2000NM0023 2TB 7200RPM SAS 6Gb/s 3.5

Lot of 2 Seagate Constellation ES.3 ST2000NM0023 2TB 7200RPM SAS 6Gb/s 3.5" HDD

$34.99



Seagate 14TB Exos X14 7200RPM SATA 6Gb/s 256MB 3.5

Seagate 14TB Exos X14 7200RPM SATA 6Gb/s 256MB 3.5" Enterprise HDD ST14000NM0408

$354.99



HUS726060ALA640 HGST Ultrastar  6TB SATA 6Gbps 7.2K 3.5

HUS726060ALA640 HGST Ultrastar 6TB SATA 6Gbps 7.2K 3.5" Hard Drive OF21860

$129.99



Western Digital WD Black 500GB WD5000LPLX 7200RPM 2.5” SATA HDD Lot of 4 Tested picture

Western Digital WD Black 500GB WD5000LPLX 7200RPM 2.5” SATA HDD Lot of 4 Tested

$64.00



Seagate ST6000NM0115 6TB 256MB 7200RPM 3.5

Seagate ST6000NM0115 6TB 256MB 7200RPM 3.5" SATA 6.0Gb/s Enterprise Hard Drive

$159.99



Hitachi  / HGST Travelstar HTS541010B7E610 1TB 2.5

Hitachi / HGST Travelstar HTS541010B7E610 1TB 2.5" SATA III HDD

$29.99



HGST HUS724040ALA640 4TB 7200 RPM SATA 3.5

HGST HUS724040ALA640 4TB 7200 RPM SATA 3.5" Internal Desktop Drive 100% Health

$78.00



Seagate Barracuda ST500DM002 500 GB SATA III 3.5 in Desktop Hard Drive picture

Seagate Barracuda ST500DM002 500 GB SATA III 3.5 in Desktop Hard Drive

$14.99



Seagate Exos X16 ST10000NM010G 10TB 7200RPM SAS 12Gb/s 3.5

Seagate Exos X16 ST10000NM010G 10TB 7200RPM SAS 12Gb/s 3.5" 512e/4Kn HDD

$199.00



Seagate BarraCuda ST1000DM010 1TB 7200 RPM 64MB Cache SATA 6.0Gb/s Hard Drive picture

Seagate BarraCuda ST1000DM010 1TB 7200 RPM 64MB Cache SATA 6.0Gb/s Hard Drive

$63.99