Page 1 of 1

Compression 2.2 - Utility program

Posted: Sat 09 Jun 2012, 19:31
by don570
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.

new version 1.3

Posted: Tue 19 Jun 2012, 20:55
by don570
New version 1.3-

Changed to a new icon in menu ---> harddrive.png
Since it should work with all Puppies

new version 1.4

Posted: Fri 29 Jun 2012, 00:16
by don570
Version 1.4 changed the XZ compression extension
to tar.xz rather than txz on the advice of a Slack expert.

___________________________________________

Posted: Fri 29 Jun 2012, 00:37
by technosaurus
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: Select all

yes "string" |prog 
(to always answer string)or

Code: Select all

echo "username
password" |prog
(if it asks for username then password)
, but it could as easily be any answer, like:

Code: Select all

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

Posted: Sun 08 Jul 2012, 02:27
by vicmz
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.

New version 1.5

Posted: Sat 14 Jul 2012, 17:52
by don570
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

Posted: Thu 23 May 2013, 19:19
by don570

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.

Posted: Sat 04 Jan 2014, 17:15
by don570
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

_____________________________________

Posted: Sat 18 Jan 2020, 18:51
by don570
version 1.9

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

Download in first post
______________________________

Posted: Sat 18 Jan 2020, 19:17
by slavvo67
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

Posted: Sat 18 Jan 2020, 19:52
by don570
I'll test to see if max compression makes any difference.
It would be simple to program and I could add a password.
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

________________________________________________

Posted: Sat 01 Feb 2020, 16:07
by don570
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
________________________________________________________

Compression 2.1 - Utility program

Posted: Thu 13 Feb 2020, 19:30
by don570
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.
________________________________________________________

compression 2.2

Posted: Sat 15 Feb 2020, 17:05
by don570
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. :cry:



However I was able to extract using command

Code: Select all

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

Posted: Sun 23 Feb 2020, 20:13
by don570
Be sure to use latest uextract --> version 4.0 to extract a RAR archive
(with links preserved)
__________________________