Page 1 of 1

RAR 4.2 with rightclick

Posted: Sat 29 Sep 2012, 20:34
by don570
RAR 4.2 with rightclick

two packages rar and unrar.

Just download on package and install. unrar is smaller
but limited to uncompressing the archive. It is freeware.

Rar is shareware but allows evalution by user.

Instructions: Just right click on a .rar package.
A terminal will pop up if the package is password protected.
just enter password and tap <ENTER>

It should be useable in many puppies. Here is a
screenshot of it in use in Saluki.

Note: Saluki requires rightclick of 'Send to' menu

Image

Posted: Sat 29 Sep 2012, 20:56
by pemasu
don570. Regarding your comment to post my evaluation:
http://murga-linux.com/puppy/viewtopic. ... 172#655172

Posted: Sun 30 Sep 2012, 11:50
by chrome307
@ don570

Thanks for the app, I have tried 'right click unrar' but I could not get it to working with an archive set ie:

filename.r00
filename.rar

I saw a dialog box which prompted me to choose a 'rar' file but neither file worked in this instance; btw I am using Lucid 5.28.

Posted: Sun 30 Sep 2012, 12:49
by SFR
Hey Don.

Useful additions, thanks for these! :)

I have two suggestions regarding multipart archives:

1. I created multipart archive and the names of each part was like:
archive.part01.rar, archive.part02.rar, and so on.
The behaviour of the app was the same as described by Chrome307, but it was caused by the another . (dot) in the filename.
The solution would be to amend this line:

Code: Select all

if [ ".""${RARFILE#*.}" !=  ".rar"   ];then
like this:

Code: Select all

if [ ".""${RARFILE##*.}" !=  ".rar"   ];then
2. Another thing is that only the first part of the multipart archive is being decompressed.
It's because the working directory is set to /extracted-rar and unrar can't find the rest of files...
The workaround could be, for instance, to resign of this folder and extract files directly into the current dir or maybe to pass full path of the archive name to the unrar utility..?

Greetings!

Posted: Wed 03 Oct 2012, 23:31
by don570
Note to SFR:

Yes I noticed last night that I was having problems with file names
that had a dot. I had not taken that into consideration.

... but it's not too difficult to correct the problem so I did it last nite.

Also I tested on multi-part rar archives and found that
a few extra lines were needed to handle them :lol:

I am calling the new pet package 'Version b'

Instructions to re- assemble multi-part rar archive:
Just put all parts in same folder and then right click
on one of the parts. The program should work automatically.
There is a message of completion.

At the top of your computer screen there is an orange message
showing that work is being done.

Warning ---> you need adequate space on your hard drive
You could get a false message of completion because
there was not enough space for the assembled file.
When you look for the assembled file you will not be able to
see it.

It's too much of a hassle to warn users at the beginning
that they don't have enough free hard disk space.

___________________________________________________

Posted: Wed 03 Oct 2012, 23:47
by don570
I posted the new versions ---> Version b

I would appreciate reports - both good and bad
so I can track down bugs.

It should handle dots in name , whitespace in name, passwords,
and multi-part archives.

Also works in Saluki which uses Thunar.

I got it to work in Porteus linux XFCE as well.

Image

_________________________

Posted: Thu 04 Oct 2012, 00:03
by SFR
don570 wrote:Note to SFR:

Yes I noticed last night that I was having problems with file names
that had a dot. I had not taken that into consideration.

... but it's not too difficult to correct the problem so I did it last nite.

Also I tested on multi-part rar archives and found that
a few extra lines were needed to handle them :lol:

I am calling the new pet package 'Version b'
Thanks! :)

Greetings!

Posted: Thu 04 Oct 2012, 00:35
by don570
I just googled 'rar password' and I see that
people have found a way to strip an archive of
it's password. That's not very good protection. :cry:

____________________________________

Some useful examples of rar and unrar usage .
To create a rar archive archive.rar containing directory called dir use the following command.


rar a archive.rar dir/

____________________________________________

To create a rar archive archive.rar containing files file1.dat, file2.dat, file3.dat use:

rar a archive.rar file1.dat file2.dat file3.dat
or, more general:

rar a archive.rar file?.dat
rar a archive.rar *.*
_____________________________________________

To create a password protected rar archive archive.rar with password set to password use:

rar a -ppassword archive.rar dir/


______________________________________________
To extract rar archive archive.rar use:

unrar e archive.rar

__________________________________________

cracking rar passwords

Posted: Sat 06 Oct 2012, 15:29
by don570
There is a program that claims it can crack rar passwords

Someone posted this pet on the forum. I will try it and report back.

http://www.murga-linux.com/puppy/viewto ... 7c5c996163

_________________________________________________

Posted: Thu 11 Oct 2012, 14:52
by chrome307
The unrar seems to work perfectly for multi-archived files that end with *.part01.rar - thank you :)

But for some reason it fails to work with sets like these:

resevidam-xvid-sml.r00

Posted: Sat 13 Oct 2012, 17:16
by don570
I just been reading about naming conventions with rar

Filename.000.rar
Filename.001.rar
Filename.002.rar
etc.


Filename.part01.rar
Filename.part02.rar
Filename.part03.rar
etc.

Multi-volume RAR files following older style naming conventions indicate part numbers in the extension beginning with .r00 but WinZip always expects the first volume name to have the extension of .RAR and all volume names to have the same first name. Here is an example.

Older style
Filename.rar
Filename.r00
Filename.r01
etc.
My script will only work with multi part archives like

'Filename.part01.rar' etc.

I'll change the code to look thru all the file names inside the folder .

(I'll use 'find' command.)

That way it can be decompressed automatically. It shouldn't be too
hard.

________________________________________________

Posted: Sun 14 Oct 2012, 12:01
by chrome307
Thank you for doing this, as I have stated before it works perfectly ( with my registered WinRAR ) except for this exception.

btw, I have not tried the 'rar' application as I was unsure if it would allow me to specify the sizes/old style names/ recovery file etc options.

new version

Posted: Tue 16 Oct 2012, 00:16
by don570
New version


I made a version c

1) changed to Xdialog (from xmessage) to show messages

2) I check for non-rar files a different way

3) I do multi-part archives differently for more compatibility

___________________________________________________________

Posted: Tue 16 Oct 2012, 11:55
by chrome307
Just tested build 'C' with a multi-archived set with old style names and it extracts perfectly :)

Great 'right click' option :)