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 Wed 11 Dec 2019, 08:48
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
Precise-light - 17March2019 - for older hardware
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 7 of 17 [251 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, ..., 15, 16, 17 Next
Author Message
perdido


Joined: 09 Dec 2013
Posts: 1429
Location: ¿Altair IV , Just north of Eeyore Junction.?

PostPosted: Sat 13 Apr 2019, 02:32    Post subject:  

Hi jrb,

Thanks for turning the iso_delta2pet script into a pet with ROX right-click option.Smile

Got some good news first.
The pet installs and the script runs properly in the bionicpup32 I was testing in. The right-click options work fine.

Now the not-so-good news.
The script still does not run properly in precise 5.7.1 or precise-light
That is not your fault, it was not running properly in precise since the script was developed. The right-click options worked fine.

After testing the pet in precise it is giving me the same results as my first testing of the script, there is a difference in the size of the resulting pet
between precise 5.7.1/light and bionicpup32. I am using peebee's upupbb-18.05.iso and upupbb-18.05.iso___upupbb-18.05+22.iso.delta to test with.
--------------------------
Tested with
upupbb-18.05.iso - the iso is 258MB
upupbb-18.05.iso___upupbb-18.05+22.iso.delta - the delta is 58MB

After running the script in bionicpup32 results in a pet that is 41.1MB
After running the script in precise 5.7.1 & precise-light results in a pet that is 8085KB.

I have attached the output from terminal for both precise and bionic as text files in case you are curious.
Have also included a tree of the directories that were created from both precise and bionic as txt files in case you wished to compare output.

I suspect it could be something different between the bionic / precise versions of any of the following deps
Code:
# depends: bash, isoinfo, xdelta3, md5sum, unsquashfs, dir2pet (also diff, find)



I ran the script about 20 times total trying to get different results, what is the definition of crazy? Smile

All the txt files are attached to this post as a tar.gz
D2P-Comparison-Output.tar.gz
Description  Contains all terminal output from both precise & bionic32 plus directory tree listings of the generated .PET files including total file count.
gz

 Download 
Filename  D2P-Comparison-Output.tar.gz 
Filesize  9.11 KB 
Downloaded  61 Time(s) 
Back to top
View user's profile Send private message 
perdido


Joined: 09 Dec 2013
Posts: 1429
Location: ¿Altair IV , Just north of Eeyore Junction.?

PostPosted: Sat 13 Apr 2019, 13:10    Post subject:  

Hi jrb,

Found the iso_delta2pet_v1.sh fix for precise-light.
Now getting the same results in bionic32 and precise-light Smile

in precise replace
/bin/find
/usr/bin/diff

with the attached files from bionicpup32
diff-find-bionicpup32.tar.gz
Description  Contains "find" and "diff" & info.txt
gz

 Download 
Filename  diff-find-bionicpup32.tar.gz 
Filesize  197.76 KB 
Downloaded  65 Time(s) 
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1327
Location: Smithers, BC, Canada

PostPosted: Sat 13 Apr 2019, 13:20    Post subject:  

perdido wrote:
Hi jrb,

Found the iso_delta2pet_v1.sh fix for precise-light.
Now getting the same results in bionic32 and precise-light Smile

in precise replace
/bin/find
/usr/bin/diff

with the attached files from bionicpup32

Excellent! I had tracked the problem down to /usr/bin/diff and come up with a solution of replacing /bin/busybox with an updated one from slitzaz and linking diff to it. Worked but changing busybox could introduce problems elsewhere so I'm glad you found this. I never would have expected Bionic binaries to work in Precise. Good find. Cool

Edit: Just tried your fix and it worked perfectly Very Happy
Back to top
View user's profile Send private message 
perdido


Joined: 09 Dec 2013
Posts: 1429
Location: ¿Altair IV , Just north of Eeyore Junction.?

PostPosted: Sat 13 Apr 2019, 15:04    Post subject:  

jrb wrote:


Edit: Just tried your fix and it worked perfectly Very Happy


Good to hear that Smile

[deleted the rest of reply as it did not apply to the new version of the script in your pet]
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14533
Location: Gatineau (Qc), Canada

PostPosted: Sat 13 Apr 2019, 18:28    Post subject:  

Please guys,

Devise something simple?

Something regular user Joe Bloe doesn't have to do contortions over?
IMO delta files require that the user do contortions.

Delta Is really a fragile format and procedure.
You give any wrong parameter and your original file becomes unusable.
Somewhat scary.

Thanks in advance.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1327
Location: Smithers, BC, Canada

PostPosted: Sat 13 Apr 2019, 19:32    Post subject:  

musher0 wrote:
Please guys,

Devise something simple?

Let's see, you download the original .iso into a folder. You download the .delta file into the same folder. You click once on the .delta and then click "Generate".

Sorry musher0, I don't think I can come up with anything much simpler. Wink

The only time I ever had trouble with the process was when I had a bad download of the original .iso file and the Xdelta file difference manager told me I had an md5sum mismatch.

Seriously, just try it my way one time and if it doesn't work for you I'll eat up my restricted bandwidth uploading new .iso's.

Cheers, J
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14533
Location: Gatineau (Qc), Canada

PostPosted: Sat 13 Apr 2019, 19:49    Post subject:  

Hi jrb.

Fine. I'll take your word for it.

But top of this page, perdido says:
Quote:
Thanks for turning the iso_delta2pet script into a pet with ROX right-click option.
To me that's confusing. Do you already have a delta for your new iso?
And that delta can be changed into a pet?

Please enlighten me.
I'm certainly not going to "delta" anything every second day.

TIA.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
perdido


Joined: 09 Dec 2013
Posts: 1429
Location: ¿Altair IV , Just north of Eeyore Junction.?

PostPosted: Sat 13 Apr 2019, 20:26    Post subject:  

musher0 wrote:
Hi jrb.

Fine. I'll take your word for it.

But top of this page, perdido says:
Quote:
Thanks for turning the iso_delta2pet script into a pet with ROX right-click option.
To me that's confusing. Do you already have a delta for your new iso?
And that delta can be changed into a pet?

Please enlighten me.
I'm certainly not going to "delta" anything every second day.

TIA.

Hi musher0,

For the record I also wrote the following directly after the line you just quoted. As you can see, I was testing
with an iso & delta from bionicpup32 in two different OS to test the pet jrb made.
Quote:


Got some good news first.
The pet installs and the script runs properly in the bionicpup32 I was testing in. The right-click options work fine.

Now the not-so-good news.
The script still does not run properly in precise 5.7.1 or precise-light
That is not your fault, it was not running properly in precise since the script was developed. The right-click options worked fine.

After testing the pet in precise it is giving me the same results as my first testing of the script, there is a difference in the size of the resulting pet
between precise 5.7.1/light and bionicpup32. I am using peebee's upupbb-18.05.iso and upupbb-18.05.iso___upupbb-18.05+22.iso.delta to test with.
--------------------------
Tested with
upupbb-18.05.iso - the iso is 258MB
upupbb-18.05.iso___upupbb-18.05+22.iso.delta - the delta is 58MB





I didn't mean for it to be so boring that only the first sentence would get read.

jrb will be creating a whole new .iso for the updates but only needs to provide the actual differences between the
new and old .iso with the .delta file, it will be up to the user to either apply them as .delta or make a .pet and load with PPM

For those of us not on unlimited bandwidth plans it is much more efficient to upload a 10MB .delta than a 100MB .iso

The delta2pet utility can create a .pet from a .delta file if you prefer a .pet. . jrb simplified that process by turning the script into a ROX right-click utility.
You will have to have the original .iso (available in first post) and the (yet to be created) delta file in the same directory before right-clicking on the .delta
file and choosing "iso_delta2pet" in the right-click menu.

.
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14533
Location: Gatineau (Qc), Canada

PostPosted: Sat 13 Apr 2019, 23:23    Post subject:  

Ah.

Clarity, finally.

Thank you very much, perdido.

(BTW, I have a cap on my bandwidth too.)

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1327
Location: Smithers, BC, Canada

PostPosted: Sat 13 Apr 2019, 23:50    Post subject:  

perdido wrote:
jrb will be creating a whole new .iso for the updates but only needs to provide the actual differences between the
new and old .iso with the .delta file, it will be up to the user to either apply them as .delta or make a .pet and load with PPM

Nicely explained perdido.

I would like to add that update .pets created by iso_delta2pet should only be used by people who boot from live CD's and DVD's and don't want to make a new one. Or people who use a full install, which I really discourage. The great strength of Puppy is the frugal install with its read-only files. Only the save files can be corrupted and if you back those up you're covered. Cool

Many people who come to Puppy from other distros do not understand this and use fragile full installs because that's what they're used to. We need to educate them.

Enough preaching. Cheers, J
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14533
Location: Gatineau (Qc), Canada

PostPosted: Sun 14 Apr 2019, 02:54    Post subject:  

No, no, jrb, you're doing quite fine as a PuppyLinux preacher!!! Smile
We actually need more like you!!! Very Happy

~~~~~~~~~
Where was I?

Ah, yes.

I unsquashed the zdrv sfs of your latest iso, and managed to shave off
4Mb's off it resquashing it using this formula:
Code:
mksquashfs "$1" "$1".sfs -noappend -all-root -b 1048576 -comp xz -Xdict-size 100%
Source : https://techoverflow.net/blog/2013/01/11/create-highly-compressed-squashfs-from-folder

Don't bother trying the above on the full puppy sfs, it will ADD 2 Mb's.
But on the zdrv, it shaved quite a few bytes. Why? "God knows and the
Devil has a hunch!" Wink

BFN.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Volhout

Joined: 28 Dec 2008
Posts: 547

PostPosted: Sun 14 Apr 2019, 03:37    Post subject: Wallpaper setter and feh  

@jrb
Using your script for feh, a copy is made of the default wallpaper as a background for conky. If you change wallpaper using the menu, default is not updated. So you end up with conky backgound of default wallpaper always.
This is something that should change in the wallpaper chooser. Or the feh script should be adapted in some way to use the current wallpaper as a background.

Any idea where I can find what the current wallpaper is ?

Regards,

Volhout
Back to top
View user's profile Send private message 
666philb


Joined: 07 Feb 2010
Posts: 3510
Location: wales

PostPosted: Sun 14 Apr 2019, 07:16    Post subject:  

hi Volhout,

/root/.config/wallpaper/bg_img

_________________
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1327
Location: Smithers, BC, Canada

PostPosted: Sun 14 Apr 2019, 07:47    Post subject: Re: Wallpaper setter and feh  

Volhout wrote:
@jrb
Using your script for feh, a copy is made of the default wallpaper as a background for conky. If you change wallpaper using the menu, default is not updated. So you end up with conky backgound of default wallpaper always.
This is something that should change in the wallpaper chooser. Or the feh script should be adapted in some way to use the current wallpaper as a background.

Any idea where I can find what the current wallpaper is ?

Regards,

Volhout

I never noticed that. Rolling Eyes Thanks for pointing it out. Precise uses an older wallpaper chooser, pwallpaper. It doesn't play well with conky. Here is the newer wallpaper chooser, Nathan wallpaper setter. It works well with conky and will definitely be in the next update.

Still no answer for .svg images, haven't really looked yet, but I will.

P.S. Thanks @666philb for the info.

Cheers, J
wallpaper-0.6.6.pet
Description  newer wallpaper setter
pet

 Download 
Filename  wallpaper-0.6.6.pet 
Filesize  9.2 KB 
Downloaded  64 Time(s) 
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1327
Location: Smithers, BC, Canada

PostPosted: Sun 14 Apr 2019, 07:57    Post subject:  

musher0 wrote:
I unsquashed the zdrv sfs of your latest iso, and managed to shave off 4Mb's off it resquashing it using this formula:
Code:
mksquashfs "$1" "$1".sfs -noappend -all-root -b 1048576 -comp xz -Xdict-size 100%
Source : https://techoverflow.net/blog/2013/01/11/create-highly-compressed-squashfs-from-folder
Don't bother trying the above on the full puppy sfs, it will ADD 2 Mb's.
But on the zdrv, it shaved quite a few bytes. Why?

Thanks musher, but sadly Crying or Very sad the compressed size of the .sfs's doesn't matter in terms of computer performance. As a matter of fact, the more compressed they are the slower the bootup. What really affects the computer is the amount of ram they use once uncompressed. On a low ram computer if they take too much it really slows things down. But a nice piece of code anyway.

It's interesting that some files compress a lot and some hardly at all. Maybe how they're coded?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 7 of 17 [251 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, ..., 15, 16, 17 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Derivatives
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.0825s ][ Queries: 12 (0.0256s) ][ GZIP on ]