Author |
Message |
SirDuncan

Joined: 09 Dec 2006 Posts: 836 Location: Ohio, USA
|
Posted: Fri 25 Jul 2008, 14:17 Post subject:
Unrar and 7zip packages |
|
Many files on the internet come in either .rar or .7z format. Puppy 2.17 (the last Puppy I stuck with for any period of time) had unrar by default, but Dingo does not. Nor do we have 7zip support. Well, I had some free time and decided to compile and package them.
These have been compiled under Puppy 4.00 from the source on the T2 Project website. Since the 7z executable and the 7za executable handle multiple formats that Puppy already has programs for, I replaced them with symlinks to the 7zr executable which should only handle .7z files.
These are recognized by XAarchive, but you have to open XArchive and then open the files, I can't figure out how to make XArchive open them by default (it tries to add them to a new archive).
If these give you trouble, you can also look for PeaZip which will handle both formats.
Description |
for .rar files, executable is "unrar"
|

Download |
Filename |
unrar-3.7.8.pet |
Filesize |
88.12 KB |
Downloaded |
16424 Time(s) |
_________________ Be brave that God may help thee, speak the truth even if it leads to death, and safeguard the helpless. - A knight's oath
|
Back to top
|
|
 |
Dark_Fire
Joined: 22 Jun 2008 Posts: 22
|
Posted: Mon 04 Aug 2008, 11:09 Post subject:
|
|
lol, seem to keep bumping into your stuff...
Thanks man
|
Back to top
|
|
 |
SirDuncan

Joined: 09 Dec 2006 Posts: 836 Location: Ohio, USA
|
Posted: Mon 04 Aug 2008, 11:40 Post subject:
|
|
Glad to be of service.
_________________ Be brave that God may help thee, speak the truth even if it leads to death, and safeguard the helpless. - A knight's oath
|
Back to top
|
|
 |
catepa
Joined: 30 Jan 2007 Posts: 3
|
Posted: Mon 17 Nov 2008, 01:19 Post subject:
a very little contribution Subject description: how to get xarchive to open rar files by default |
|
Right click over a rar file, then select the option "Set run action", then at the line at the bottom enter the command
xarchive "$1"
thats all. Next time you click on a rar file, puppy will open xarchive.
|
Back to top
|
|
 |
Botanic

Joined: 05 Sep 2007 Posts: 241 Location: Toulouse, France
|
Posted: Tue 30 Dec 2008, 15:27 Post subject:
Re: a very little contribution Subject description: how to get xarchive to open rar files by default |
|
catepa wrote: | Right click over a rar file, then select the option "Set run action", then at the line at the bottom enter the command
xarchive "$1"
thats all. Next time you click on a rar file, puppy will open xarchive. |
_________________ Puppy 2.16 on HP Vectra VL400 - PIII 800 MHz - 320M RAM
Wary on Acer Aspire X3200 - Phenom X4 - 2.2GHz - 4G RAM
|
Back to top
|
|
 |
idrak3
Joined: 08 Sep 2008 Posts: 3
|
Posted: Fri 21 Aug 2009, 23:24 Post subject:
|
|
thanks a lot, now i more like puppylinux..viva puppy
|
Back to top
|
|
 |
Vyse

Joined: 15 Aug 2009 Posts: 30
|
Posted: Sat 22 Aug 2009, 08:07 Post subject:
|
|
Thanks for the .pets. I hope that in future versions of Puppy Xarchiver will be tweaked to extract files from these archives...
I have been using Peazip for a long time now.
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 11193 Location: Ontario Canada,Sydney Australia
|
Posted: Sat 22 Aug 2009, 11:42 Post subject:
|
|
Vyse wrote: | Thanks for the .pets. I hope that in future versions of Puppy Xarchiver will be tweaked to extract files from these archives...
I have been using Peazip for a long time now. |
Those 2 pets do work with xarchiver, but not with xarchive
download which ever pet from above and install xarchiver from http://www.murga-linux.com/puppy/viewtopic.php?t=37276
Or if you want to replace xarchive with xarchiver I also have a pet for that
http://distro.ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-4/xarchiver-0.5.2-PupZip-v5.pet
ttuuxxx
_________________ http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games 
|
Back to top
|
|
 |
zandarian
Joined: 14 Oct 2009 Posts: 117
|
Posted: Mon 26 Oct 2009, 12:01 Post subject:
|
|
(Specially for beginners, but also for everybody else)
(Problem at bottom: specially for experienced, but also for everybody else)
1. To extract from .rar files in just one click:
+ Download + install unrar
+ In /root/my-applications/bin create a new file, called for example rar_xtrct
+ Make it executable (right click -> File .... -> Permissions -> a+x ...... -> Yes)
+ Open it as text
+ Copy and paste this:
Code: | #! /bin/sh
xterm -e unrar e "$@" |
+ Save it
+ Right click on any .rar file - File .... - Set Run Action...
+ Replace the text in "Enter a shell command" with rar_xtrct "$1"
+ Click on "Use Command"
Problem: It always extracts to /root , no matter where the .rar is.
(continues 2 messages down)
Last edited by zandarian on Mon 26 Oct 2009, 16:51; edited 1 time in total
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4786 Location: Kingwood, TX
|
Posted: Mon 26 Oct 2009, 15:15 Post subject:
|
|
There are wrapper scripts in /usr/local/lib/xarchive/wrappers that control these functions. I recently patched the tar wrapper to accept 'xz' and 'lzma' tarballs. I just used the gz and bz2 as a template. For 7z and rar the zip may be a better model. They are just bash scripts - so if you are decent at bash you may be better able to fix it.
I also compiled the latest 7za and 7zDec in the 4.4 CE phase 1 pet test thread (7zDec is the best bang for the buck at <20kb pet) The latest 7za supports more formats but is a bit larger, so I will probably go with 7zDec only in the release... better to just convert them to .tar.xz after extraction anyways.
To extract
Code: | 7zDec -e 7zarchived_file.7z |
To list
Code: | 7zDec -l 7zarchived_file.7z |
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
zandarian
Joined: 14 Oct 2009 Posts: 117
|
Posted: Mon 26 Oct 2009, 16:37 Post subject:
|
|
Thanks, technosaurus. Unfortunately I think my knowledge in these areas is much lower than yours. I'm quite newbie with Puppy ...
(I continue with my previous message)
(Specially for beginners, but also for everybody else)
(Problem and questions at bottom: specially for experienced, but also for everybody else)
2. To extract from .rar files using the context menu (compatible with 1.):
+ If not done already, the first 6 stepts of 1 have to be done (from Download ... to Save ..., both included)
+ In ROX-Filer (file manager), while holding shift key right click on any file or folder - click on Customise - click on OK
+ In that path ( /root/.config/rox.sourceforge.net/OpenWith ) create a directory and name it .application_x-rar
+ Go into the new folder (before click on the eye to show it -it's hidden because it begins by the dot-)
+ Open ROX-Filer again (it will open in a new window)
+ Go to /root/my-applications/bin
+ While holding Ctrl and shift keys drag rar_xtrct to the other ROX-Filer window (the one in /root/.config/rox.sourceforge.net/OpenWith/.application_x-rar ). This way a symbolic link will be created
To open the .rar file with the context menu:
a) Fastest: while holding shift right click on the .rar file and click on rar_xtrct (top)
b) Other option: right click on the .rar file - File .... - Open With... - rar_xtrct (top)
Problem: the same as in 1.: it always extracts to /root , independently of where the .rar file is located. I know why: xterm (in the code of rar_xtrct) opens the console, and this one (rxvt) opens by default in ~ ( /root in other words). I've had a look to http://linux.die.net/man/1/xterm to try to find how to open the console in the path you want; but I found nothing. ROX-Filer knows how to do that: right click-Window-Terminal Here. I hope somebody knows how to do it or can look into ROX code to find the "secret".
|
Back to top
|
|
 |
amigo
Joined: 02 Apr 2007 Posts: 2641
|
Posted: Mon 26 Oct 2009, 16:56 Post subject:
|
|
Find the name of the directory where the archive is located, cd into that dir, then unpack there:
DIRNAME=$(dirname /path/to archive)
cd $DIRNAME
commands to run xterm/archiver or whatever
|
Back to top
|
|
 |
zandarian
Joined: 14 Oct 2009 Posts: 117
|
Posted: Mon 26 Oct 2009, 17:23 Post subject:
|
|
Thanks, amigo. I'm not sure if I understand well the stated by you. I think you are outlining how the solution could be found. Yes? Please, if you have found the solution, if you could say step-by-step (for newbies like me) how to execute it it would be appreciated. Thank you
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4786 Location: Kingwood, TX
|
Posted: Mon 26 Oct 2009, 21:49 Post subject:
|
|
amigo was just saying to put
Code: | DIRNAME=$(dirname /path/to archive)
cd $DIRNAME
|
before
Code: | xterm -e unrar e "$@" |
or whatever code so that it will go in the current directory
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
zandarian
Joined: 14 Oct 2009 Posts: 117
|
Posted: Tue 27 Oct 2009, 10:30 Post subject:
|
|
Thanks.
I've tried it but doesn't work. Searching in Google:
http://www.google.com/search?hl=es&client=mozilla&rls=com.puppylinux%3Aen-US%3Aunofficial&q=%22DIRNAME%3D%24%28dirname+%2Fpath%2Fto+archive%29%22&btnG=Buscar&lr=&aq=f&oq=
Only 1 result shows that "strange code" (this post). No other page.
Anybody knows the real code?
|
Back to top
|
|
 |
|