Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-25-2006, 06:27 PM   #1
LQ Newbie
Registered: Jul 2006
Posts: 7

Rep: Reputation: 0
Question Working with

I have a script that I would like to run when Knoppix 5 live-cd boots up in text mode. I have been looking at various examples but I can't seem to understand it. My script, and configs.tbz are on a USB thumb drive. At the boot options, I type knoppix lang=en myconfig=scan 2 so my file is scanned and executed from my usb drive. However, I don't understand how I can include a command in to run my script. Any help?


Last edited by branche_dude; 07-25-2006 at 06:35 PM.
Old 07-25-2006, 06:45 PM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
You should just be able to edit in a text editor on your USB drive.
Old 07-26-2006, 01:40 AM   #3
LQ Newbie
Registered: Jul 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Alright... I found how to do this.
If you want to run any of your own custom scripts once Knoppix finishes booting up, just place them in /home/knoppix/Desktop directory. Then from console, run "saveconfig" and a GUI dialog should pop up asking you which settings and files you want to save. Check 'Desktop' and uncheck everything else and save the files on some drive. This will generate a '' file and a 'configs.tbz' file, which contains all user-defined settings and scripts. Copy these files over to any portable medium you have (most likely a USB drive). Edit '' to include the following line at the end to run your script once Knoppix finishes booting up:

cp /home/knoppix/Desktop/ /
That code just copies your script over to / directory and then executes it. Use the following command as a boot-up option to ensure Knoppix searches for a '' file to execute when booting up:

knoppix myconfig=scan
The reason why my script wasn't booting off a USB drive because it wasn't mounted when Knoppix is booting up. If I try to mount the USB drive and then run the script, Knoppix simply assigns a different device name to the USB drive.

Hope this helps out anyone looking to accomplish something similar.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mouse not working with knoppix cmitch06 Linux - Newbie 5 03-09-2006 04:21 AM
knoppix hd installer not working Anubis Linux - Distributions 1 07-04-2005 04:39 PM
how will i know if my knoppix 3.7 cd is working? yobobski Linux - Distributions 6 04-11-2005 10:07 AM
scanner working with knoppix sharonlim Debian 4 10-18-2004 04:21 AM
X not working in Knoppix Wynd Linux - Distributions 2 11-08-2003 02:11 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration