DIR-to-ISO 2.0

Miscellaneous tools
Post Reply
Message
Author
User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

DIR-to-ISO 2.0

#1 Post by RSH »

Hello.

Before I've had written the LazY Puppy LazY Remaster Suite I did forget sometimes to keep files in /root or /etc. So, everytime then I had to choose, to make a new remaster to put these files into the os or to edit the sfs manually. Remastering needs time, editing manually results in a non-bootable iso, if the new iso would be made then via the right-click option dir-to-iso (script in /usr/bin).

So, to get a bootable iso one has to remaster anyway.

I have now refined the script dir-to-iso in /usr/bin in a way, that it is now usable to create bootable iso files.

It checks if the directory to build a iso from contains a bootloader like grldr and/or isolinux.bin. If, it creates a bootable iso, if not, it creates the standard iso as usual.

The attached .pet installs the new script, renames the old script to dir-to-iso-old and then renames the new script to dir-to-iso. It contains only the new dir-to-iso script. If your puppy doesn't have the right-click option to use this script with right-click action on a directory, you have to define this feature by youself.

I did not want this .pet to change anything else, but the dir-to-iso script.

Hope this works for you and your puppy.

RSH
Attachments
Dir-to-ISO-2.0.pet
Make bootable iso files with righ-click
(1.02 KiB) Downloaded 859 times
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

script DIR-to-ISO in my Right click pet package

#2 Post by don570 »

I put the script DIR-to-ISO in my Right click pet package.
http://murga-linux.com/puppy/viewtopic. ... 224#669224

I only checked a regular folder since I don't make bootable ISOs.

I made one small change to warn users...

After line 34 I put in a simple warning message

Code: Select all


Xdialog  --ok-label "OK" --backtitle "\n\n A bootable ISO will be created now. "  --msgbox  "" 0 0

______________________________________

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#3 Post by RSH »

I put the script DIR-to-ISO in my Right click pet package.
Yes, thanks. Nice Idea!
I only checked a regular folder since I don't make bootable ISOs
So, this means the original script was written by yourself? Then please, add your name at the top of the script. Original doesn't have that.
I made one small change to warn users...
Uuppss, I've had a "yaf-splash" in mind. Just overseen. :lol:

Never mind. All what's needed finds its way to "fit together", as we can see. :D
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#4 Post by don570 »

I've just noticed that there are still some puppy variants which don't
have gtkdialog-splash installed which can cause some confusion
when programmers use yaf-splash (which is often a link to gtkdialog-splash).

So it's a good procedure to make warning and info messages with
Xdialog instead!!! Avoid yaf-splash unless you know which puppy
where the script is installed.

...And gxmessage is even worse because only old versions are
installed in puppy ---> the old version doesn't support foreign
characters

It's easy to put color in the background of a Xdialog message box
It's explained at their site.

I just learned this by studying fatdog
http://murga-linux.com/puppy/viewtopic.php?t=82611

By the way I stole most of my utility scripts from Tazoc (Lighthouse)
because I didn't know anything about writing scripts :lol:

________________________________________________

Post Reply