Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 23 Sep 2014, 10:47
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
remasterpup3: new version of Puppy live-CD remaster script
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
pa_mcclamrock


Joined: 03 Jun 2005
Posts: 657
Location: Fort Wayne, Indiana, USA

PostPosted: 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 . . . Rolling Eyes 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.
remasterpup3.tar.gz
Description 
gz

 Download 
Filename  remasterpup3.tar.gz 
Filesize  11.88 KB 
Downloaded  951 Time(s) 
repup06.gif
 Description   
 Filesize   40.49 KB
 Viewed   2498 Time(s)

repup06.gif

repup01.gif
 Description   
 Filesize   19.22 KB
 Viewed   2500 Time(s)

repup01.gif

repup02.gif
 Description   
 Filesize   42.48 KB
 Viewed   2483 Time(s)

repup02.gif

repup03.gif
 Description   
 Filesize   19.11 KB
 Viewed   2484 Time(s)

repup03.gif

repup04.gif
 Description   
 Filesize   23.45 KB
 Viewed   2493 Time(s)

repup04.gif

repup05.gif
 Description   
 Filesize   14.39 KB
 Viewed   2484 Time(s)

repup05.gif


_________________
It's stupid to use inferior software for ideological reasons.
--Linus Torvalds

Visit Pa Penguin's Icebox: http://www.pa-mcclamrock.com/icebox.html

Last edited by pa_mcclamrock on Thu 17 Jun 2010, 17:46; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2630
Location: Japan

PostPosted: Fri 04 Jun 2010, 05:23    Post subject: Two corrections  

Great work.

There are 2 corrections:
  1. 'LANG=C' at line 49 should be moved to after I18N settings, say line 212-.
  2. at line 64, ''DISTRO_FILE_PREFIX was missing. It should be:
    Code:
     PREFIX1CHAR="`echo -n "$DISTRO_FILE_PREFIX" | cut -c 1`"

Back to top
View user's profile Send private message Visit poster's website 
pa_mcclamrock


Joined: 03 Jun 2005
Posts: 657
Location: Fort Wayne, Indiana, USA

PostPosted: Sat 05 Jun 2010, 14:20    Post subject:  

Thanks! I'm glad someone here is more detail-oriented than me. Very Happy 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

Visit Pa Penguin's Icebox: http://www.pa-mcclamrock.com/icebox.html
Back to top
View user's profile Send private message Visit poster's website 
tlchost

Joined: 05 Aug 2007
Posts: 1701
Location: Baltimore, Maryland USA

PostPosted: 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
View user's profile Send private message Visit poster's website 
pa_mcclamrock


Joined: 03 Jun 2005
Posts: 657
Location: Fort Wayne, Indiana, USA

PostPosted: 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

Visit Pa Penguin's Icebox: http://www.pa-mcclamrock.com/icebox.html
Back to top
View user's profile Send private message Visit poster's website 
leotan

Joined: 02 Sep 2013
Posts: 4

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

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
[ Time: 0.0853s ][ Queries: 13 (0.0231s) ][ GZIP on ]