(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 30 Sep 2020, 06:21
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Compression 2.2 - Utility program
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 1 of 1 [15 Posts]  
Author Message
don570


Joined: 10 Mar 2010
Posts: 5524
Location: Ontario

PostPosted: Sat 09 Jun 2012, 15:31    Post subject:  Compression 2.2 - Utility program
Subject description: Added as right-click menu option
 

Compression 2.2 - Utility program
Compression of a folder .

It works in puppies with Rox as the file manager
The big advantage is the right click feature. Just right click
on a folder and choose to compress folder (See image)

Checked with precise 5.7.1 linux and more recent as well.
32bit or 64 bit

NOTES:
RAR and ZIP compression replaces links with the real files.
However newest version of compression.sh has option to preserve links.(see image)
This can add significantly to the size of an archive.
RAR uses 'a' option ---> to add to an already existing archive

4 foreign languages supported with gettext

Updated compression.sh script with password (if zip, rar or 7z compression used)
yaf-splash screen should work if compression takes 5 seconds or more.


The time to compress the folder is an estimate based
on the size of the folder.

The folder name that you compress can have a blank space in the name
but not the password.

The most recent version of gtkdialog is needed for this feature.
The time field will be blank otherwise.
screenshot-compression.png
 Description   
 Filesize   45.68 KB
 Viewed   118 Time(s)

screenshot-compression.png

compression-2.2.pet
Description 
pet

 Download 
Filename  compression-2.2.pet 
Filesize  21.37 KB 
Downloaded  173 Time(s) 

Last edited by don570 on Sat 15 Feb 2020, 13:01; edited 21 times in total
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5524
Location: Ontario

PostPosted: Tue 19 Jun 2012, 16:55    Post subject: new version 1.3  

New version 1.3-

Changed to a new icon in menu ---> harddrive.png
Since it should work with all Puppies
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5524
Location: Ontario

PostPosted: Thu 28 Jun 2012, 20:16    Post subject: new version 1.4  

Version 1.4 changed the XZ compression extension
to tar.xz rather than txz on the advice of a Slack expert.

___________________________________________
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4878
Location: Blue Springs, MO

PostPosted: Thu 28 Jun 2012, 20:37    Post subject:  

fyi for future development, if you have a prog that prompts you for a password or y/n you can use yes | prog (to always answer y)
Code:
yes "string" |prog
(to always answer string)or
Code:
echo "username
password" |prog

(if it asks for username then password)
, but it could as easily be any answer, like:
Code:
echo "y
y
/usr/share/Opera
/usr/lib/mozilla/plugins" | ./Opera-installer
if you wanted to automate an install (btw, those are totally made up examples, I don't even know how Opera installs these days)

-HTH
Brad

_________________
Check out my github repositories. I may eventually get around to updating my blogspot.
Back to top
View user's profile Send private message Visit poster's website 
vicmz


Joined: 15 Jan 2012
Posts: 1268

PostPosted: Sat 07 Jul 2012, 22:27    Post subject:  

Thanks for this. For some reason, drag and drop function of XArchive desktop icon doesn't work for me, I drag and drop my files but get an empty window where I must create the archive and add the files manually.
I made a separate Spanish version, so that the symlink appears in Spanish when user right-click, my translation is inside the PET.
compression-1.4-spanish.pet
Description 
pet

 Download 
Filename  compression-1.4-spanish.pet 
Filesize  4.51 KB 
Downloaded  643 Time(s) 
compression-1.4-spanish.png
 Description   
 Filesize   24.76 KB
 Viewed   1201 Time(s)

compression-1.4-spanish.png


_________________
Puppy Linux en español
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5524
Location: Ontario

PostPosted: Sat 14 Jul 2012, 13:52    Post subject: New version 1.5  

New version 1.5

I made various changes like

1) new Icon choice for menu

2) Changes inside .desktop file

3) splash screen added when compressing to warn user to wait

4) Changed how gtkdialog version was selected using
Shinobar's method which should be full proof

5) Put in underscore character if folder had whitespace in it's name

6) Removal of final slash character in path if user accidently put
it in

7) A couple of new local messages were added for internationalizing

8 ) A warning if folder empty

I have put this version in my right clicks package
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5524
Location: Ontario

PostPosted: Thu 23 May 2013, 15:19    Post subject:  


Version 1.6

- I corrected bug ---> if user had typed a bad folder name
no warning would show. Now there will be at least some warning.

- Added the Spanish translation by vicz

-Changed . desktop file for German, Spanish and French names

-Thunar is now properly supported.
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5524
Location: Ontario

PostPosted: Sat 04 Jan 2014, 13:15    Post subject:  

New version 1.8

New version 1.8 has 7z library which is popular on Windows
platform. Also UExtract 2.7
is installed as well for an integrated
solution to compress and decompress.

It was tested on Precise and Carolina.
Both Rox filer and Thunar were tested.

It should work on most Puppies that Barry Kauler has created.

Gettext --> French German Spanish

_____________________________________
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5524
Location: Ontario

PostPosted: Sat 18 Jan 2020, 14:51    Post subject:  

version 1.9

-Should work properly with 7z installed or not....
-32 bit or 64 bit

Download in first post
______________________________
Back to top
View user's profile Send private message 
slavvo67

Joined: 12 Oct 2012
Posts: 1625
Location: The other Mr. 305

PostPosted: Sat 18 Jan 2020, 15:17    Post subject:  

Hi Don,

It would be cool if you had a default "Maximum Compression" button. I'm guessing you know which gives the max compression, of course you do.

Haven't been around much lately; hoping to change that in 2020.

All the best,

Slavvo67
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5524
Location: Ontario

PostPosted: Sat 18 Jan 2020, 15:52    Post subject:  

I'll test to see if max compression makes any difference.
It would be simple to program and I could add a password.

Quote:
The zip command allows you to specify a compression level using number prefixed with a dash from 0 to 9. The default compression level is -6 . When using -0 , all files will be stored without compression. -9 will force the zip command to use an optimal compression for all files



________________________________________________
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5524
Location: Ontario

PostPosted: Sat 01 Feb 2020, 12:07    Post subject:  

Compression 2.0 - Utility program

Checked with precise 5.7.1 linux and more recent as well.
32bit or 64 bit

Updated compression.sh script with password (if zip or 7z compression used)
yaf-splash screen should work if compression takes 5 seconds or more.


Available ---> first post
________________________________________________________
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5524
Location: Ontario

PostPosted: Thu 13 Feb 2020, 15:30    Post subject: Compression 2.1 - Utility program  

New Version 2.1

Added RAR compression if rar is installed.

Note that 'a' option is used so if there is already an archive with same name,
the files will be added. Also a link will be replaced with the real file.
________________________________________________________
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5524
Location: Ontario

PostPosted: Sat 15 Feb 2020, 13:05    Post subject: compression 2.2  

New version
Compression 2.2 - Utility program

Note: Both zip and rar will normally substitute a link with the real file.

New Feature
- preserve links when compressing using RAR

Warning --> current version of uextract won't extract the link.
Link will be totally ignored. Crying or Very sad



However I was able to extract using command

Code:

# unrar e -ola New_Dir.rar

UNRAR 5.50 freeware      Copyright (c) 1993-2017 Alexander Roshal


Extracting from New_Dir.rar


Would you like to replace the existing file Script
    51 bytes, modified on 2020-01-21 03:25
with a new one
    51 bytes, modified on 2020-01-21 03:25

[Y]es, [N]o, [A]ll, n[E]ver, [R]ename, [Q]uit a

Extracting  Script                                                    OK
Extracting  zzzzzz                                                    OK
Extracting  DIRNAME_CORRECTED.tar.gz.gpg                              OK
Extracting  DIRNAME_CORRECTED.tar.xz.gpg                              OK
Extracting  binney55.mp4                                              OK
Extracting  NewDir.tar.gz                                             OK
All OK
#
_______________________________________________
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5524
Location: Ontario

PostPosted: Sun 23 Feb 2020, 16:13    Post subject:  

Be sure to use latest uextract --> version 4.0 to extract a RAR archive
(with links preserved)
__________________________
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [15 Posts]  
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. 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.0675s ][ Queries: 12 (0.0074s) ][ GZIP on ]