Results 1 to 7 of 7

Thread: automatically after boot run a bash file

  1. #1
    Junior Member registered user
    Join Date
    Oct 2004
    Posts
    12

    automatically after boot run a bash file

    Can you change some setting that after the booting a bash file automatically starts? It must be on CD.

    tnx

  2. #2
    Senior Member registered user
    Join Date
    Dec 2003
    Location
    Sunnyvale,CA,USA
    Posts
    118

    Re: automatically after boot run a bash file

    Quote Originally Posted by ska_p_te
    Can you change some setting that after the booting a bash file automatically starts? It must be on CD.

    tnx
    Im assuming that you want to run a script just after booting.yes you can.
    Goto the menu Knoppix--->Configure and do a save knoppix configuration.
    Two files will be created
    1>knoppix.sh
    2>configs.tbz

    Edit the first file knoppix.sh and call your script from this file.

    The other option is just create a file named knoppix.sh with all your script code in it.Save it on any partition.
    run knoppix with the cheatcode myconf=scan
    and your file will be executed

    -------------------------------------------------------------
    Free Software,Free Speech,Free Society

    http://bhavesh.freeshell.org

  3. #3
    Junior Member registered user
    Join Date
    Oct 2004
    Posts
    12
    but can you also place it on the cd? that it automatically starts ?

  4. #4
    Senior Member registered user
    Join Date
    Dec 2003
    Location
    Salt Lake City, UT, U.S.A.
    Posts
    1,338
    Quote Originally Posted by ska_p_te
    but can you also place it on the cd? that it automatically starts ?
    Unless you want to create your own Knoppix Live CD distribution disc, the answer is NO...

    Simple fact is, that, the CD is read-only, you cant write anything to it, thats why when you boot it, it uses a ramdisk ( memory being used as a drive ), when the system reboots, or is powered down, the ramdisk gets evaporated, and thus, so does any changes or configurations that you have made. UNLESS, you use the save configs and / or the save Persistant Home ( which will use a hard drive, writtable media source for storing between boots ).

    The other way around this "read-only" issue, is that you create your own Live CD, with your changes in the configs, and boot that. Hence, create your own Knoppix Distro... You might want to check in the other forum, maybe see if someone hasnt already done this, or has tips on how one would do it, I have no clue on the subject, I run a hard drive install, and dont think I need to create my own Distro to get what I need... See what the forum "Customizing & Remastering" has to say... You should be able to get what you want, and hopefully, it isnt that difficult to do

  5. #5
    Senior Member registered user
    Join Date
    Dec 2003
    Location
    Sunnyvale,CA,USA
    Posts
    118
    Quote Originally Posted by ska_p_te
    but can you also place it on the cd? that it automatically starts ?
    I think you can do that.I have never done it.
    But here is the forum which can help you
    http://www.knoppix.net/forum/viewforum.php?f=2

  6. #6
    Member registered user
    Join Date
    Mar 2004
    Posts
    58
    Yes you can put it on the CD.
    My config.tbz and knoppix.sh are both on the CD
    and it detects them without any cheatcodes
    or altering the isolinux.cfg.

    Place the in the /knoppix/ directory

  7. #7
    Junior Member registered user
    Join Date
    Oct 2004
    Posts
    12
    thanks for the reply's and if it works I'll let you know.

    It is for a school project and I hope it works .

    tnx

Similar Threads

  1. Running commands & shell scripts automatically at boot
    By sunburnt in forum Tips and Tricks
    Replies: 5
    Last Post: 05-28-2005, 05:39 PM
  2. knoppix.sh can't execute bash in the boot sequence?
    By slowhand in forum Customising & Remastering
    Replies: 1
    Last Post: 04-17-2005, 10:48 PM
  3. Don't boot automatically from Knoppix-CD
    By elax in forum Customising & Remastering
    Replies: 0
    Last Post: 02-26-2005, 04:10 PM
  4. How to make apache 1.3 automatically start at boot?
    By Zero_1984 in forum Hdd Install / Debian / Apt
    Replies: 6
    Last Post: 09-28-2004, 04:57 AM
  5. chroot: /bin/bash: no such file or directory
    By kevinonknoppix in forum Customising & Remastering
    Replies: 0
    Last Post: 02-24-2004, 08:45 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
  •  


Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p picture

Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p

$499.88



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb

$374.99



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD

$169.99



Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO picture

Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO

$488.00



Dell Poweredge R810 4x Xeon X7560 2.26ghz 32-Cores | 256GB | 3x Trays | H700 picture

Dell Poweredge R810 4x Xeon X7560 2.26ghz 32-Cores | 256GB | 3x Trays | H700

$289.99



Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W picture

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W

$409.99



Dell PowerEdge R640 10SFF 2x Gold 6140 2.3GHz 36-Cores 64gb H730p 2x 1.2TB picture

Dell PowerEdge R640 10SFF 2x Gold 6140 2.3GHz 36-Cores 64gb H730p 2x 1.2TB

$559.99



Dell PowerEdge R740 E38S001 Server E38S picture

Dell PowerEdge R740 E38S001 Server E38S

$660.00



8W81F Dell PowerEdge R840 24x SFF 4x Xeon Gold 6252 H730P 2x 1100W PSU picture

8W81F Dell PowerEdge R840 24x SFF 4x Xeon Gold 6252 H730P 2x 1100W PSU

$1100.00