RAR 4.2 with rightclick

Miscellaneous tools
Post Reply
Message
Author
User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

RAR 4.2 with rightclick

#1 Post 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
Attachments
unrar-4.2c.pet
unrar application with rightclick included
(92.41 KiB) Downloaded 1192 times
Last edited by don570 on Tue 16 Oct 2012, 00:12, edited 2 times in total.

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#2 Post by pemasu »

don570. Regarding your comment to post my evaluation:
http://murga-linux.com/puppy/viewtopic. ... 172#655172

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#3 Post 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.

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#4 Post 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!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#5 Post 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.

___________________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#6 Post 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

_________________________

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#7 Post 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!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#8 Post 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

__________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

cracking rar passwords

#9 Post 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

_________________________________________________

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#10 Post 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

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#11 Post 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.

________________________________________________

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#12 Post 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.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

new version

#13 Post 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

___________________________________________________________

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#14 Post by chrome307 »

Just tested build 'C' with a multi-archived set with old style names and it extracts perfectly :)

Great 'right click' option :)

Post Reply