Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-17-2016, 07:26 PM   #1
Registered: Apr 2009
Posts: 390

Rep: Reputation: 3
Creating a Portable Disk to Run Linux Shell Scripts


I've been toying with the idea of creating a self-sufficient portable disk for running some Linux show-and-tell shell scripts I've created and debugged. If my idea is feasible, then I'll be able to distribute my scripts to others on a disk. I'll place the scripts as well as the jpg, mp3 and mov files used by the scripts and assume that the Linux host machine has vlc and shotwell installed.

My question is how to tell Linux the specific locations of these files, assuming that I'll place them in some appropriate directories on the disk to simplify file maintenance.

Any advice will be greatly appreciated.


Last edited by julianvb; 01-17-2016 at 07:32 PM. Reason: to complete coposition of this post.
Old 01-17-2016, 08:42 PM   #2
Senior Member
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 4,714

Rep: Reputation: 2302Reputation: 2302Reputation: 2302Reputation: 2302Reputation: 2302Reputation: 2302Reputation: 2302Reputation: 2302Reputation: 2302Reputation: 2302Reputation: 2302
One idea, perhaps not the best, but it will work.

Respin a live-cd image using Fedora, TinyCore, or DSL containing your scripts and the resources they need to run properly. Burn that to your CD or USB drive. You should then be able to boot almost any PC and demo your scripts.
Old 01-17-2016, 08:52 PM   #3
LQ Guru
Registered: Apr 2008
Distribution: PCLinux, Slackware, Ubuntu
Posts: 9,898

Rep: Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287
If you are referring to a flash drive you can use on different machines, you can probably do an install on the flash drive with persistence. You could actually do a full install to a flash drive and put your scripts on the filesystem. Not really sure what your final goal is?


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
Which shebang to use for portable shell scripts dugan Programming 10 11-25-2014 09:46 PM
How do you run shell scripts? shadowdrums Slackware 5 05-15-2006 12:02 PM
Can't run shell scripts even as root nitrousoxide82 Linux - Newbie 2 04-24-2005 05:47 PM
Can't run shell scripts I write? JustinCoyan Slackware 2 08-06-2004 01:50 PM
How to? Run Shell scripts jmr0311 Mandriva 2 07-14-2004 10:24 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:42 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
Open Source Consulting | Domain Registration