The time now is Wed 20 Feb 2019, 21:49
All times are UTC - 4 |
Author |
Message |
pa_mcclamrock

Joined: 03 Jun 2005 Posts: 692 Location: Fort Wayne, Indiana, USA
|
Posted: Sat 15 May 2010, 11:04 Post subject:
remasterpup3: new version of Puppy live-CD remaster script |
|
Just not in time for official Puppy 5.0 . . . I volunteered to keep up and (I hope) improve the Puppy live-CD remastering script; playdayz said "Great"; I made basically the following changes:
Code: | # 2010 May 15 DMcC (remasterpup3):
# changed one or two "OK" dialog boxes to "Yes/No" boxes;
# clarified and/or expanded language in several dialog boxes;
# added comments, whitespace, slight reorganization for readability of code;
# removed a bit of needless duplicated code (approx. lines 427-443 of original);
# added some user files to be automatically copied to /tmp/root and /tmp/etc;
# added progress display in rxvt during creation of /tmp/root. |
The script still works the same as it did before. The big changes are in the text of dialog messages; I also added an rxvt window to show progress while /tmp/root is being squashed, since that takes longer than it used to. Here are some screenshots of the most-changed dialogs, and here are a few explanations:
In the box shown in "repup01.gif" (and a few places later on), I added explicit references to saving the ISO as a file rather than burning it to CD/DVD, if desired; added the clarifying expression "except for mounted external directories under /mnt" after "contains the entire Puppy filesystem, everything from '/' down"; made some other language more concise and (I hope) more comprehensible; and substituted "Do you want to continue?" [YES/NO] for "Click OK button to continue (or close window to quit)".
In "repup02.gif," the warning about using a lot of memory is based on my experience with Remaster Express (RemaX), which I wrote for Puppy 4.2. (After Puppy 4.2.1, Remaster Express went out when Tcl and Gnocl, which it required, were re-dumped.) A few users complained that Remaster Express crashed because it was using too much memory. I found that this would also be true for the original remaster script, since the memory-hogging culprit was "mksquashfs," which both scripts invoked. I also substituted the actual (calculated) size of the ISO file for "an extra 100 - 200 MB space (whatever the size of the ISO file is going to be)."
In "repup03.gif," I substituted myself for Barry as the person to notify if users want to suggest more stuff to be automatically copied. (Somebody let me know if it turns out that Barry still really wants to be the one to be notified, but my best guess is he doesn't!) I also added "your favorite file manager" as what to use to examine /tmp/root and copy files to it.
In "repup04.gif," I added some more examples of additional content that users might want to put into the puppycdbuild directory before burning the CD or creating the ISO.
In "repup05.gif," I changed the former language, which seemed a bit strange and confusing to me, to some language that didn't. Same goes for "repup06.gif," where I also added what I thought was a nice ending touch: "Have fun with Puppy, the personal computer user's best friend!"
If you want to test the script and verify that, yes, it does still work the same as before, just untar it, put "remasterpup3" in /usr/sbin along with remasterpup2, run /usr/sbin/remasterpup3 from the command line, and (if you're satisfied) change your Setup --> Remaster Puppy live-CD menu item to point to remasterpup3 instead of remasterpup2. Any comments or questions, please let me know.
 |
Description |
|

Download |
Filename |
remasterpup3.tar.gz |
Filesize |
11.88 KB |
Downloaded |
1324 Time(s) |
Description |
|
Filesize |
40.49 KB |
Viewed |
3077 Time(s) |

|
Description |
|
Filesize |
19.22 KB |
Viewed |
3079 Time(s) |

|
Description |
|
Filesize |
42.48 KB |
Viewed |
3158 Time(s) |

|
Description |
|
Filesize |
19.11 KB |
Viewed |
3092 Time(s) |

|
Description |
|
Filesize |
23.45 KB |
Viewed |
3068 Time(s) |

|
Description |
|
Filesize |
14.39 KB |
Viewed |
3052 Time(s) |

|
_________________ It's stupid to use inferior software for ideological reasons.
--Linus Torvalds
Last edited by pa_mcclamrock on Thu 17 Jun 2010, 17:46; edited 2 times in total
|
Back to top
|
|
 |
shinobar

Joined: 28 May 2009 Posts: 2674 Location: Japan
|
Posted: Fri 04 Jun 2010, 05:23 Post subject:
Two corrections |
|
Great work.
There are 2 corrections:
- 'LANG=C' at line 49 should be moved to after I18N settings, say line 212-.
- at line 64, ''DISTRO_FILE_PREFIX was missing. It should be:
Code: | PREFIX1CHAR="`echo -n "$DISTRO_FILE_PREFIX" | cut -c 1`" |
|
Back to top
|
|
 |
pa_mcclamrock

Joined: 03 Jun 2005 Posts: 692 Location: Fort Wayne, Indiana, USA
|
Posted: Sat 05 Jun 2010, 14:20 Post subject:
|
|
Thanks! I'm glad someone here is more detail-oriented than me. Changes made, new tarball uploaded--let me know if you find any more changes that need to be made.
_________________ It's stupid to use inferior software for ideological reasons.
--Linus Torvalds
|
Back to top
|
|
 |
tlchost
Joined: 05 Aug 2007 Posts: 2105 Location: Baltimore, Maryland USA
|
Posted: Sat 05 Jun 2010, 17:20 Post subject:
Remaster Confusion |
|
Will this script remaster and include the changes/additons I have made to /root and etc?
I think Barry's version did not, and one had to use Dougal's version ....but I am old and confused.
Thanks
Thom
|
Back to top
|
|
 |
pa_mcclamrock

Joined: 03 Jun 2005 Posts: 692 Location: Fort Wayne, Indiana, USA
|
Posted: Sat 05 Jun 2010, 18:18 Post subject:
Re: Remaster Confusion |
|
tlchost wrote: | Will this script remaster and include the changes/additions I have made to /root and /etc? |
Yes. When you get to those stages, the dialog box tells you to open your favorite file manager and copy whatever you want from /root to /tmp/root and from /etc to /tmp/etc. If you want to automate the identification of your add-ons, you can edit the /usr/sbin/remasterpup3 script yourself, using lines like these (starting around line 485 or so) as templates (the first one is for copying all files in a directory, the second for copying an individual file):
Code: | # Copy all of my-applications/
cp -af /root/my-applications/* /tmp/root/my-applications/
[ . . . ]
# ROX desktop settings:
cp -af /root/Choices/ROX-Filer/PuppyPin /tmp/root/Choices/ROX-Filer/ |
Just make a backup copy of /usr/sbin/remasterpup3 first, so you can restore it in case the script won't work after you modify it!
_________________ It's stupid to use inferior software for ideological reasons.
--Linus Torvalds
|
Back to top
|
|
 |
leotan
Joined: 02 Sep 2013 Posts: 4
|
Posted: Tue 03 Sep 2013, 00:12 Post subject:
|
|
There's a little bug in remasterpup versions 2 & 3 that causes it to abort with an Xdialog usage error message whenever there is an ISO image mounted.
In particular, there's a botched regex in the handling of the VIRTUALCD variable. To fix it, replace where it says:
Code: |
sed -e 's/on[ ].*+//'
|
with this:
Code: |
sed -e 's/on [ ]*//'
|
(mind the blanks).
|
Back to top
|
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|