LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Simple scripts for making isos and burning them on cd! (https://www.linuxquestions.org/questions/linux-general-1/simple-scripts-for-making-isos-and-burning-them-on-cd-150885/)

jlturbos 02-26-2004 03:53 PM

Simple scripts for making isos and burning them on cd!
 
I am learning to write bash scripts and I made some simple scripts for newbies and gurus alike for making and burning isos onto cds.

You will need cdr-tools installed and please put them in /usr/local/bin on your hard drive for all users to use:

Get them here:
http://freebsd.turbocharging.net/subdir/scripts.html

Comments and suggestions are welcome,
Thanks!

vsj 02-27-2004 01:00 AM

Hi, jlturbos;

I just d/l'd your scripts. Do I save these as .sh or .txt?

Will let you know about them as soon as I use them. TYVM for the help.

jlturbos 02-27-2004 01:17 AM

Files in Linux need no extension. Linux determines what file type a file is simply by looking at the contents of a file. Hence the "#!/bin/bash" at the start of the script.

the ".sh" ext. is good for you in order to recognize the script, so go ahead and add that if you like. I recommend logging in as root and place them in /usr/local/bin like this:
# su
<your_passwd>
# mv ./iso-* /usr/local/bin
# chmod 755 /usr/local/bin/iso-*"
# exit

If you wish to burn cd's as regular user do a:
# which cdrecord
/usr/local/bin/cdrecord
# chmod +s /usr/local/bin/cdrecord

JL

natalinasmpf 02-27-2004 06:52 AM

ISO? Bah, I write my cd's using a dd'ed reiserfs partition. :p

Although its kind of sad you can't use "mkreiserfs" to convert a directory into raw input file like "mkisofs". :(


Uh, do you mind having these scripts in ncurses? Then you could include a general newbie mounting guide! That also interprets /etc/fstab as well, or perhaps read comments to differentiate. It would save my non very command line friendly sibling a lot of trouble.


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