How to compress lz4? (with gui if possible)

Talk about and post software packages known to work or packaged for Puppy.
Post Reply
Message
Author
zagreb999
Posts: 567
Joined: Fri 11 Apr 2014, 06:39
Location: Yugoslavija

How to compress lz4? (with gui if possible)

#1 Post by zagreb999 »

lz4 -how compress?

who knows to compress to lz4

in gui?

thanks

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#2 Post by musher0 »

Hello zagreb999.

Easy enough.

Check if you have lz4 installed by typing in console:

Code: Select all

which lz4
If not, install it through the PPM.

Then install the latest version of PackIt, by forum member SFR.

You have to install lz4 before PacKIt, otherwise PackIt will not list ( recognize ) lz4.

IHTH.
Attachments
PackIt-with-lz4.jpg
(133.63 KiB) Downloaded 714 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

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

#3 Post by zagreb999 »

mr. musher0 thank you!!!

which .pet i need to install for lz4?

i have debiandog 32bit

please see screenshot


thanks...
Attachments
Screenshot_2019-06-01_05-27-57.png
(122.71 KiB) Downloaded 629 times

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

#4 Post by fredx181 »

zagreb999 wrote:mr. musher0 thank you!!!

which .pet i need to install for lz4?

i have debiandog 32bit

please see screenshot


thanks...
That should be liblz4-tool, btw, here's also a deb for Packit (named it pack-it because otherwise it would conflict with a network tool named "packit"):
https://fred181.gitlab.io/devuandog/i38 ... .1_all.deb
(perhaps you need to restart X to have Packit displayed in the filemanager right-click actions)

Fred

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

#5 Post by zagreb999 »

fred, thank you for your excellence!

i made lz4 of initrd in stretchdog (deblive with mklive script-works
great) for old laptop with 1gb of ram...

because that have to be faster.
but, initrd can work only with xz and gz compression

can we do something to work also with lz4?
thanks

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

#6 Post by fredx181 »

Ah, initrd yes, can be done from terminal:
Don't know if you extracted the initrd1.xz already, anyway below will extract it and create new initrd.lz4 in same directory as initrd1.xz
Open a terminal in directory where initrd1.xz is located and run the following:

Code: Select all

# extract initrd1.xz in newinitrd folder and create new initrd.lz4:
mkdir newinitrd        # make dir where the extracted files go
cd newinitrd         # go inside newinitrd directory
xz -dc ../initrd1.xz | cpio -i        # extract  ../initrd1.xz
find | cpio -o -H newc | lz4 -l > ../initrd.lz4        # make new ../initrd.lz4
To extract the initrd.lz4 (maybe you need to do later), something like:
Open a terminal in directory where initrd.lz4 is located

Code: Select all

mkdir extract-initrd-lz4
cd extract-initrd-lz4
lz4 -dc ../initrd.lz4 | cpio -id
Not sure if initrd.lz4 will boot, did not test that.

Fred
Last edited by fredx181 on Sat 01 Jun 2019, 12:47, edited 1 time in total.

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

initrd-lz4

#7 Post by zagreb999 »

thanks fred
initrd1.lz4 can not boot...
what we can do?

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

Re: initrd-lz4

#8 Post by fredx181 »

zagreb999 wrote:thanks fred
initrd1.lz4 can not boot...
what we can do?
Should work !
I now tested and boots fine, I thought already that the kernel supports lz4, but wasn't 100% sure, probably you did something wrong, just try again and check if everything is correct.
Did you rename in your menu.lst (or whatever) initrd1.xz to initrd.lz4 ? Name correct ? (is it initrd1.lz4 or initrd.lz4)

EDIT: Btw, note that you get only a little bit faster boot with initrd.lz4, do not expect that the system will run faster.

Fred

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

#9 Post by zagreb999 »

fred ok,
thanks!
your welcome!

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#10 Post by musher0 »

Next time, zagreb999,

please specify if your question is for a Dog or a Puppy,
and which version it is. Thanks in advance.

I wasted my time answering you.

Best regards.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply