PDA

View Full Version : automatically after boot run a bash file



ska_p_te
10-20-2004, 04:32 PM
Can you change some setting that after the booting a bash file automatically starts? It must be on CD.

tnx

patelbhavesh
10-20-2004, 07:02 PM
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

ska_p_te
10-25-2004, 04:54 PM
but can you also place it on the cd? that it automatically starts ?

Cuddles
10-25-2004, 05:17 PM
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 :D

patelbhavesh
10-25-2004, 06:10 PM
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

SunnyB
10-25-2004, 09:33 PM
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

ska_p_te
10-26-2004, 04:52 PM
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