Puppy Remaster Program needs updated from 18th Century

What features/apps/bugfixes needed in a future Puppy
Message
Author
User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#81 Post by fredx181 »

ITSMERSH wrote:I think the difference in speed of remastering is mainly caused by -comp gzip (in my script) and -comp gzip -Xcompression-level 1 (your script). I never saw that option -Xcompression-level 1
Indeed, it's only for when using lzo compression, from mksquashfs --help:

Code: Select all

	lzo
	  -Xalgorithm <algorithm>
		Where <algorithm> is one of:
			lzo1x_1
			lzo1x_1_11
			lzo1x_1_12
			lzo1x_1_15
			lzo1x_999 (default)
	  -Xcompression-level <compression-level>
		<compression-level> should be 1 .. 9 (default 8)
		Only applies to lzo1x_999 algorithm
Fred

ITSMERSH

#82 Post by ITSMERSH »

Ok,

I see.

In my LazY Puppy Art Studio I have installed a mksquashfs binary that was compiled a few years ago by a forum member. This binary squashes by default at lowest compression, but doesn't have any -Xcompression-level option. So, no wonder I couldn't find it.

I have added a spin button to LazY Remaster to set -Xcompression-level to the installed mksquashfs binary of newer Puppies (e.g. Artful, Bionic) and made a test remaster using my Studio2Go which is a derivative based on Smithy's Music2Go based on Artful Puppy.

Remastering now is as fast as the mksquashfs binary mentioned before and returns a .sfs in equal size - both at 504MB.

A question:

Is there any possibility to check for Xcompression ability of a Puppy / mksquashfs binary from within bash code?


Edit: I will update LazY Remaster Suite after I've sorted this out...

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#83 Post by fredx181 »

Hi RSH,
First, correction, earlier I was wrong about -Xcompression-level only available for lzo compression, it's also one of the options for gzip (with mksquashfs version 4.3), sorry !
Is there any possibility to check for Xcompression ability of a Puppy / mksquashfs binary from within bash code?
This works for me (mksquashfs version 4.3) to check if -Xcompression-level is available for gzip:

Code: Select all

XCOMPR=$(mksquashfs --help 2>&1 | grep -A1 gzip | grep Xcompression-level)
[ "$XCOMPR" ] && echo "Yes, -Xcompression-level option available" || echo "No, Xcompression-level option not available" 
EDIT: Someone suggested via PM, that a oneliner would be handy (however probably makes no difference for you), so here goes:

Code: Select all

XCOMPR=$(mksquashfs --help 2>&1 | grep -A1 gzip | grep Xcompression-level) && [ "$XCOMPR" ] && echo "Yes, -Xcompression-level option available" || echo "No, Xcompression-level option not available"
Fred

ITSMERSH

#84 Post by ITSMERSH »

fredx181 wrote:This works for me (mksquashfs version 4.3) to check if -Xcompression-level is available for gzip:

Code: Select all

XCOMPR=$(mksquashfs --help 2>&1 | grep -A1 gzip | grep Xcompression-level)
[ "$XCOMPR" ] && echo "Yes, -Xcompression-level option available" || echo "No, Xcompression-level option not available" 
I tried something similar, though couldn't get it to work. Need to expand my skills...

This one works very well.

Thanks a lot! :D
fredx181 wrote:EDIT: Someone suggested via PM, that a oneliner would be handy (however probably makes no difference for you), so here goes:

Code: Select all

XCOMPR=$(mksquashfs --help 2>&1 | grep -A1 gzip | grep Xcompression-level) && [ "$XCOMPR" ] && echo "Yes, -Xcompression-level option available" || echo "No, Xcompression-level option not available"
He he, I think, I know him... :wink:

ITSMERSH

#85 Post by ITSMERSH »

mfb wrote:EDIT(2)
.....RSH

I've now tried it using pupmode=13 (with a separate z drv and with z drv included in the main sfs) and I remain extremely impressed.

It looks like a major success which retains your most recent settings - and it is likely to gain huge popularity if more extensive testing goes as well as anticipated.

An xz option - would be a nice addition for those who are happy to wait (perhaps 5 times longer) if they want maximum compression.
Uncheck the gz compression checkboxes and it will squash the .sfs by -comp xz -Xbcj x86.

Code: Select all

# RSH Compression to be used
if [ "$USELOWSQUASHFS" = "true" ]; then
	[[ "$USELOWGZSQUASHFS" = "false" ]] && COMP="-comp gzip -Xcompression-level $USEDXCOMPRESSION" || COMP="-comp gzip"
	else
	COMP="-comp xz -Xbcj x86"
fi
echo "COMP=${COMP}"

zagreb999
Posts: 567
Joined: Fri 11 Apr 2014, 06:39
Location: Yugoslavija

quick remaster-lz4 debiandog

#86 Post by zagreb999 »

IN PUPPY WORLD THE BEST IS
quick remaster-lz4 debiandog...

REGARDS.

oui

#87 Post by oui »

ITSMERSH wrote:
mfb wrote:EDIT(2)
.....RSH

I've now tried it using pupmode=13 (with a separate z drv and with z drv included in the main sfs) and I remain extremely impressed.

It looks like a major success which retains your most recent settings - and it is likely to gain huge popularity if more extensive testing goes as well as anticipated.

An xz option - would be a nice addition for those who are happy to wait (perhaps 5 times longer) if they want maximum compression.
Uncheck the gz compression checkboxes and it will squash the .sfs by -comp xz -Xbcj x86.

Code: Select all

# RSH Compression to be used
if [ "$USELOWSQUASHFS" = "true" ]; then
	[[ "$USELOWGZSQUASHFS" = "false" ]] && COMP="-comp gzip -Xcompression-level $USEDXCOMPRESSION" || COMP="-comp gzip"
	else
	COMP="-comp xz -Xbcj x86"
fi
echo "COMP=${COMP}"
your app gives definitively to the users the most possibilities to define which kind of remaster he wants.

but the old receipt of manual remasterisation in Puppy linux stay until today the best!

hamoudoudou

user's requests are answered one by one..

#88 Post by hamoudoudou »

"your app gives definitively to the users the most possibilities to define which kind of remaster he wants. "
user's requests are answered one by one.. what would be nice is to list existing apps or scripts, to avoid to brainstorm something yet solved.
Our main problem in not how to do, but what to include.. and i made my opinion, different pupsaves specialised are better than remasterization.. for Puppy Linux i mean.
Of course SFS load on the fly is nice... On the fly meaning unloaded before shutdown.. One task, one Sfs..

ITSMERSH

#89 Post by ITSMERSH »

Manually remastering is for experts only.

If one doesn't know what is needed and where it is placed, one will fail to remaster his own Puppy.

It took months for me to be able to remaster a Puppy for DE users without to keep unnecessary files...

The remasterpup2 script has option to to customize /etc, so one can have a remaster in DE language. But this option keeps some stuff that isn't needed for to have a DE Puppy only and this stuff customizes the new Puppy for the machine it is running on.

Only those files marked green are needed to remaster a e.g. DE localized Puppy.
cp -af /etc/codepage /tmp/etc/
cp -af /etc/fontmap /tmp/etc/
cp -af /etc/keyboardtype /tmp/etc/
cp -af /etc/keymap /tmp/etc/
cp -af /etc/mousebuttons /tmp/etc/
cp -af /etc/mousedevice /tmp/etc/
cp -af /etc/videomode /tmp/etc/
cp -af /etc/eth0mode /tmp/etc/
cp -af /etc/eth1mode /tmp/etc/
cp -af /etc/resolv.conf /tmp/etc/
rm -f /tmp/etc/localtime #a symlink
cp -af /etc/localtime /tmp/etc/
cp -af /etc/TZ /tmp/etc/
cp -af /etc/cdburnerdevice /tmp/etc/
cp -af /etc/dvddevice /tmp/etc/
cp -af /etc/modemdevice /tmp/etc/
cp -af /etc/securetelnetrc /tmp/etc/
cp -af /etc/modules.conf /tmp/etc/
cp -af /etc/modprobe.d /tmp/etc/ #101020
cp -af /etc/rdesktoprc /tmp/etc/
cp -af /etc/windowmanager /tmp/etc/
cp -af /etc/xextraoptions /tmp/etc/
cp -af /etc/X11/xorg.conf /tmp/etc/X11
cp -af /etc/network-wizard /tmp/etc/
cp -af /etc/simple_network_setup/* /tmp/etc/simple_network_setup/
In my LazY Remaster Suite I've sorted this out to be able to remaster a e.g. DE localized Puppy, that will run on different machines.

If one has installed a different Window Manager to use, it may fail also to keep the related stuff, since mean files usually placed in sub-directories in /root/.config, that won't be kept on a remaster. To keep /etc/windowmanager as the only file related to a new installed Window Manager almost leads to a Puppy not booting into X or booting with a broken Window Manager.

If one has made modifications to the Menu (I prefer to have menu categories in alphabetical order), these modifications are not kept on a remaster using remasterpup2.

Next version of LazY Remaster Suite keeps all this stuff either automatically or will have a option within the GUI to activate/deactivate.

Yes, people usually won't like to have personal files placed in a new remastered puppy. But to keep settings made for e.g. LxTerminal, LxPanel, Tint2 Panel, Geany, VLC etc.pp. would be a nice option, though one needs to keep those files from /root/.config manually.

So, I can see an urgent need to have a remaster program that will give all those options to a user, just by activating/deactivating them within a GUI.

l0wt3ch
Posts: 182
Joined: Thu 24 Apr 2014, 01:30

#90 Post by l0wt3ch »

Hey RSH, I know the new username is you, but for some reason every time I see it I read it as "it's Mersh". And I'm like, who's this Mersh person? Oh ya, that says me RSH.

ITSMERSH

#91 Post by ITSMERSH »

l0wt3ch wrote:Hey RSH, I know the new username is you, but for some reason every time I see it I read it as "it's Mersh". And I'm like, who's this Mersh person? Oh ya, that says me RSH.
Yes, it's me RSH. :wink:
http://murga-linux.com/puppy/viewtopic.php?t=113272
Post No. 8

l0wt3ch
Posts: 182
Joined: Thu 24 Apr 2014, 01:30

#92 Post by l0wt3ch »

That's crazy.

Good luck with N.E.M.E.S.I.S.! (Love the name.)

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#93 Post by Puppyt »

Thank goodness! I was reading your new moniker as "I.T. SMERSH" (Also noted in the Bond movies From Russia with Love and Living Daylights)
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

l0wt3ch
Posts: 182
Joined: Thu 24 Apr 2014, 01:30

#94 Post by l0wt3ch »

Ok, well let's think about this for a moment. If he really was the I.T. guy for SMERSH, do you think he'd admit it? No. Of course not.

But then again, everybody knows RSH mysteriously went missing. If SMERSH was involved, that would fit their modus operandi perfectly. Is it possible they assumed his identity on this forum, to steal our advanced technological secrets? Have the Russian spies replaced our friend RSH?

Russian interference in the Puppy forum. I never would have imagined.

But what does this mean for the N.E.M.E.S.I.S. Project?

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#95 Post by Puppyt »

Well, if he comes out with S.P.E.C.T.R.E. or K.A.O.S. down the track, then we'll know. So long as he uses his genius for the side of Good, and never the side of Evil, we should be OK...
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#96 Post by fredx181 »

You must be K.I.D.D.I.N.G :lol: :lol:

Or... I.T.S.R.E.A.L ?! :roll: :?: :twisted:

ITSMERSH

#97 Post by ITSMERSH »

Beware of the mind...

I could come up with M.E.R.K.E.L.

Of course this works in DE only: M. erkel E. rlaubt R. eichsbürgern K. ein E. igenes L. and.

That says Merkel will not allow the Reichsbürger to get their own Country/Territory. :lol:

User avatar
Burn_IT
Posts: 3650
Joined: Sat 12 Aug 2006, 19:25
Location: Tamworth UK

#98 Post by Burn_IT »

My Uncle has been sleeping around and got Thrush
"Just think of it as leaving early to avoid the rush" - T Pratchett

ITSMERSH

#99 Post by ITSMERSH »

I had to have a look about "I.T. SMERSH", as I think I never heard of it. That's really funny, though I'm not a Russian (or whatever) Spy-Assassin and I've got nothing to do with "Skripal" and other issues...

I SWEAR! :D :lol:

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#100 Post by greengeek »

Puppyt wrote:Thank goodness! I was reading your new moniker as "I.T. SMERSH" (Also noted in the Bond movies From Russia with Love and Living Daylights)
...and another wikipedia link even mentions "SMERSH" is James Bond's "nemesis" :

https://en.wikipedia.org/wiki/SMERSH_(James_Bond)

The forum wouldnt allow that url to be livened so maybe this will live link: https://tinyurl.com/y84ag66l
SMERSH is a fictional Soviet counterintelligence agency featured in Ian Fleming's early James Bond novels as agent 007's nemesis.
Spooky!

Does this mean N.E.M.E.S.I.S is the end of jamesbond's Fatdog?? Surely not!!!!

Post Reply