*New 11.4 series Release:
2020-07-03: XigmaNAS 11.4.0.4.7633 - released!

*New 12.1 series Release:
2020-04-17: XigmaNAS 12.1.0.4.7542 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

unrar

XigmaNAS Scripts and shell tips
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
niccav
NewUser
NewUser
Posts: 10
Joined: 22 Sep 2012 00:01
Status: Offline

unrar

#1

Post by niccav »

Hi.
Not sure if this is the best place to post my question in but..
What's the best way to unrar? I have tried unpacking initiating unpacking via my laptop and it works but it is so slow. Is there a better way?

PS, I'm using an embedded version of n4f


Thank you

fsbruva
Advanced User
Advanced User
Posts: 378
Joined: 21 Sep 2012 14:50
Status: Offline

Re: unrar

#2

Post by fsbruva »

Sorry for the delay in this reply...

I ended up finding the unrar package on the FreeBSD ftp server, downloading it and extracting just the unrar program to a safe place. I have a folder for utilities on my zfs pool, and so any programs that are not part of the embedded install are stored there and survive reboot. The only wrinkle is that I have to specify their full pathname when using them:

Code: Select all

/mnt/poolie/bin/unrar e myrarball.rar
So, you would need to:

Code: Select all

mkdir -p /tmp/unrar
cd /tmp/unrar
fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-stable/archivers/unrar-4.20_1,5.tbz
tar xf unrar-4.20_1,5.tbz
cd bin
mv unrar /mnt/poolie/bin/
Last edited by fsbruva on 17 Dec 2012 15:14, edited 1 time in total.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5119
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: unrar

#3

Post by raulfg3 »

you can copy to /mnt/usr/local/sbin too ( for full install)
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

ghuber
NewUser
NewUser
Posts: 9
Joined: 18 Oct 2012 17:55
Status: Offline

Re: unrar

#4

Post by ghuber »

raulfg3 wrote:you can copy to /mnt/usr/local/sbin too ( for full install)
Hi,

I downloaded RAR from the RARLABS page and copied the executable rar file to /usr/local/bin (in the PATH). when I try to run it, I get:

Code: Select all

[#@nas4free ~]$ rar
ELF interpreter /libexec/ld-elf.so.1 not found
Abort trap: 6
 
although /libexec/ld-elf.so.1 exists.

Do you have an idea, why it won't work?

Thanks

Georg

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5119
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: unrar

#5

Post by raulfg3 »

please use fetch or download version that fsbruva recomended NOT from RARLAB!!!!
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

ghuber
NewUser
NewUser
Posts: 9
Joined: 18 Oct 2012 17:55
Status: Offline

Re: unrar

#6

Post by ghuber »

raulfg3 wrote:please use fetch or download version that fsbruva recomended NOT from RARLAB!!!!
cool thanks!

just to know: why does the rarlab version not work?

Georg

fsbruva
Advanced User
Advanced User
Posts: 378
Joined: 21 Sep 2012 14:50
Status: Offline

Re: unrar

#7

Post by fsbruva »

Simple answer: Because you extracted just the binary.

Longer answer: Because you didn't follow instructions :-), neither mine nor rarlabs'.

If you were interested in rar (which is different than your subject line), the fetch command would be:

Code: Select all

fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-stable/archivers/rar-4.2.0,3.tbz

ghuber
NewUser
NewUser
Posts: 9
Joined: 18 Oct 2012 17:55
Status: Offline

Re: unrar

#8

Post by ghuber »

fsbruva wrote:Simple answer: Because you extracted just the binary.

Longer answer: Because you didn't follow instructions :-), neither mine nor rarlabs'.

If you were interested in rar (which is different than your subject line), the fetch command would be:

Code: Select all

fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-stable/archivers/rar-4.2.0,3.tbz
you're totally correct, I didn't and for that I bow in shame :-)

I had pkg_add'd the unrar port and had it running for a while so I just didn't bother too much with 'rar'.

But thanks for the info!

Georg

Post Reply

Return to “Scripts and shell tips”