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 Thu 14 Nov 2019, 21:16
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff)
How to compress lz4? (with gui if possible)
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
zagreb999

Joined: 11 Apr 2014
Posts: 518
Location: Yugoslavija

PostPosted: Fri 31 May 2019, 16:18    Post subject:  How to compress lz4? (with gui if possible)
Subject description: For Debiandog 32bit
 

lz4 -how compress?

who knows to compress to lz4

in gui?

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

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

PostPosted: Fri 31 May 2019, 20:24    Post subject:  

Hello zagreb999.

Easy enough.

Check if you have lz4 installed by typing in console:
Code:
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.
PackIt-with-lz4.jpg
 Description   
 Filesize   133.63 KB
 Viewed   277 Time(s)

PackIt-with-lz4.jpg


_________________
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 
zagreb999

Joined: 11 Apr 2014
Posts: 518
Location: Yugoslavija

PostPosted: Sat 01 Jun 2019, 01:37    Post subject:  

mr. musher0 thank you!!!

which .pet i need to install for lz4?

i have debiandog 32bit

please see screenshot


thanks...
Screenshot_2019-06-01_05-27-57.png
 Description   
 Filesize   122.71 KB
 Viewed   193 Time(s)

Screenshot_2019-06-01_05-27-57.png

Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4157
Location: holland

PostPosted: Sat 01 Jun 2019, 04:42    Post subject:  

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/i386/Packages/Extra/pack-it_1.0.1_all.deb
(perhaps you need to restart X to have Packit displayed in the filemanager right-click actions)

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
zagreb999

Joined: 11 Apr 2014
Posts: 518
Location: Yugoslavija

PostPosted: Sat 01 Jun 2019, 07:44    Post subject:  

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
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4157
Location: holland

PostPosted: Sat 01 Jun 2019, 08:35    Post subject:  

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

_________________
Dog Linux website
Tinylinux blog by wiak

Last edited by fredx181 on Sat 01 Jun 2019, 08:47; edited 1 time in total
Back to top
View user's profile Send private message 
zagreb999

Joined: 11 Apr 2014
Posts: 518
Location: Yugoslavija

PostPosted: Sat 01 Jun 2019, 08:47    Post subject: initrd-lz4  

thanks fred
initrd1.lz4 can not boot...
what we can do?
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4157
Location: holland

PostPosted: Sat 01 Jun 2019, 09:05    Post subject: Re: initrd-lz4  

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

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
zagreb999

Joined: 11 Apr 2014
Posts: 518
Location: Yugoslavija

PostPosted: Sat 01 Jun 2019, 09:19    Post subject:  

fred ok,
thanks!
your welcome!
Back to top
View user's profile Send private message 
musher0

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

PostPosted: Sat 01 Jun 2019, 11:04    Post subject:  

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
~~~~~~~~~~
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 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff)
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.0397s ][ Queries: 12 (0.0051s) ][ GZIP on ]