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 Tue 29 Jul 2014, 07:19
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
RAR 4.2 with rightclick
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [14 Posts]  
Author Message
don570


Joined: 10 Mar 2010
Posts: 3215
Location: Ontario

PostPosted: Sat 29 Sep 2012, 16:34    Post subject:  RAR 4.2 with rightclick  

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

unrar-4.2c.pet
Description  unrar application with rightclick included
pet

 Download 
Filename  unrar-4.2c.pet 
Filesize  92.41 KB 
Downloaded  567 Time(s) 
rar-4.2c.pet
Description  rar 4.2 application with rightclick included
pet

 Download 
Filename  rar-4.2c.pet 
Filesize  199.79 KB 
Downloaded  462 Time(s) 

Last edited by don570 on Mon 15 Oct 2012, 20:12; edited 2 times in total
Back to top
View user's profile Send private message 
pemasu


Joined: 08 Jul 2009
Posts: 5463
Location: Finland

PostPosted: Sat 29 Sep 2012, 16:56    Post subject:  

don570. Regarding your comment to post my evaluation:
http://murga-linux.com/puppy/viewtopic.php?p=655172#655172
Back to top
View user's profile Send private message 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Sun 30 Sep 2012, 07:50    Post subject:  

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


Joined: 26 Oct 2011
Posts: 1043

PostPosted: Sun 30 Sep 2012, 08:49    Post subject:  

Hey Don.

Useful additions, thanks for these! Smile

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:
if [ ".""${RARFILE#*.}" !=  ".rar"   ];then

like this:
Code:
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!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3215
Location: Ontario

PostPosted: Wed 03 Oct 2012, 19:31    Post subject:  

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 Laughing

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.

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


Joined: 10 Mar 2010
Posts: 3215
Location: Ontario

PostPosted: Wed 03 Oct 2012, 19:47    Post subject:  

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.



_________________________
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1043

PostPosted: Wed 03 Oct 2012, 20:03    Post subject:  

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 Laughing

I am calling the new pet package 'Version b'


Thanks! Smile

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3215
Location: Ontario

PostPosted: Wed 03 Oct 2012, 20:35    Post subject:  

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. Crying or Very sad

____________________________________

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

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


Joined: 10 Mar 2010
Posts: 3215
Location: Ontario

PostPosted: Sat 06 Oct 2012, 11:29    Post subject: cracking rar passwords  

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/viewtopic.php?t=55050&sid=2afa107585645e4f4720757c5c996163

_________________________________________________
Back to top
View user's profile Send private message 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Thu 11 Oct 2012, 10:52    Post subject:  

The unrar seems to work perfectly for multi-archived files that end with *.part01.rar - thank you Smile

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

resevidam-xvid-sml.r00
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3215
Location: Ontario

PostPosted: Sat 13 Oct 2012, 13:16    Post subject:  

I just been reading about naming conventions with rar

Quote:


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.

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


Joined: 15 Jan 2009
Posts: 713

PostPosted: Sun 14 Oct 2012, 08:01    Post subject:  

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


Joined: 10 Mar 2010
Posts: 3215
Location: Ontario

PostPosted: Mon 15 Oct 2012, 20:16    Post subject: new version  

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

___________________________________________________________
Back to top
View user's profile Send private message 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Tue 16 Oct 2012, 07:55    Post subject:  

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

Great 'right click' option Smile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [14 Posts]  
Post new topic   Reply to topic 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.0862s ][ Queries: 13 (0.0091s) ][ GZIP on ]