unrar in 2n

Discussions regarding FON's WiFi routers

unrar in 2n

Postby Nvdias » Wed Sep 15, 2010 5:45 pm

Hi:

I've been trying to install unrar in my fonera2N.

Using the distribution found at http://ipkg2.nslu2-linux.org/feeds/optw ... ss/stable/ , editing opkg.conf and updating opkg (opkg update) makes it possible to install unrar.
But when I try to run-it, I always get a "not found error".


Note that I install unrar with
opkg install -dest hdd unrar,
in which "hdd" is a link to an external usb disk where I have other applications install.
Also the PATH variable is pointing to /tmp/mounts/hdd/usr/bin.

Oddly, unrar is installed in /tmp/mounts/hdd/opt/bin
but even running /tmp/mounts/hdd/opt/bin/unrar gives the same "not found" error (and unrar file is there !)

does anyone have any thoughts about this ?

Thanks a lot
Nvdias
 
Posts: 15
Joined: Fri Apr 09, 2010 6:47 pm

Re: unrar in 2n

Postby Jazzy2 » Fri Sep 17, 2010 6:34 pm

I had that sort of problem when the program was compiled for the wrong architecture (Not sure if that's the right term, I'm new to all this stuff)
I've compiled unrar for the fonera N and you can download it here http://cid-98d3e9acab16d266.skydrive.live.com/redir.aspx?resid=98D3E9ACAB16D266!120&Bpub=SDX.Docs&Bsrc=GetSharingLink (the unrar file).
If you copy that to a folder on your external hard disk and then go in to that folder and run
Code: Select all
opkg install unrar_3.8.5-1_mipsel.ipk -dest hdd

it should set up unrar for you. I tried it and it worked although I needed this line in my opkg.conf so it could download some dependencies
Code: Select all
src snapshots2 http://downloads.openwrt.org/kamikaze/8.09.2/rb532/packages
Jazzy2
 
Posts: 104
Joined: Thu Jul 15, 2010 9:34 pm

Re: unrar in 2n

Postby Nvdias » Fri Sep 17, 2010 8:26 pm

good idea. thanks.
Nvdias
 
Posts: 15
Joined: Fri Apr 09, 2010 6:47 pm

Re: unrar in 2n

Postby Skynetbbs » Mon Sep 20, 2010 9:31 am

Nvdias wrote:good idea. thanks.

the opkg.conf will be fixed in a next firmware release
there is a plugin (unofficial) that fixes it partly though

thnx for the unrar!
perhaps it should be added to the plugin list on the wiki?
Skynetbbs
 
Posts: 564
Joined: Fri Apr 09, 2010 6:47 pm

Re: unrar in 2n

Postby tman » Wed Nov 10, 2010 5:02 pm

Anybody wrote a "plugin" for unrar? It would be nice to install it through web interface, not terminal.
User avatar
tman
 
Posts: 166
Joined: Thu May 20, 2010 4:15 pm

Re: unrar in 2n

Postby Skynetbbs » Wed Nov 10, 2010 5:21 pm

tman wrote:Anybody wrote a "plugin" for unrar? It would be nice to install it through web interface, not terminal.

or a "market" plugin that will choose between the 10.000 openwrt applications and a "destination" where to install like the Torrent plugin does :-)
Skynetbbs
 
Posts: 564
Joined: Fri Apr 09, 2010 6:47 pm

Re: unrar in 2n

Postby Nvdias » Wed Nov 10, 2010 5:47 pm

but .... why do you want an unrar installation via web interface if unrar is to be used via terminal ?
Nvdias
 
Posts: 15
Joined: Fri Apr 09, 2010 6:47 pm

Re: unrar in 2n

Postby tman » Wed Nov 10, 2010 8:21 pm

I'm using fonera from a mobile phone with mobile putty, it's pretty hard to type a lot of characters for the install. With web interface I could upload the file and activate. Pretty stupid reason...could say ...why I don't use a PC? Because I'm 99% of time 'on the go'.
Another reason could be to be ...just like other plugins...intallable in the webui. Just for keeping the basic idea of a 'standard plugin'.
User avatar
tman
 
Posts: 166
Joined: Thu May 20, 2010 4:15 pm

Re: unrar in 2n

Postby tman » Wed Nov 10, 2010 10:00 pm

should I edit opkg.conf or it's already fixed? i have 2.3.6.1
thanks!

edit: running the install returns:

Colleted errors: *Could not obtain administrative lock
:-(
User avatar
tman
 
Posts: 166
Joined: Thu May 20, 2010 4:15 pm

Re: unrar in 2n

Postby Matthijs » Fri Nov 12, 2010 9:07 pm

This is probably the easiest way to get opkg working: http://wiki.fon.com/wiki/Plugin_opkgfix

2.3.7.0 will have this working out of the box.
User avatar
Matthijs
 
Posts: 418
Joined: Fri Apr 09, 2010 6:47 pm

Re: unrar in 2n

Postby tman » Sat Nov 13, 2010 9:16 pm

Ok, then i will better wait for 2.3.7.0 instead of fixing things...
When 2.3.7.0 will come out ?

Thanks for the hint!
User avatar
tman
 
Posts: 166
Joined: Thu May 20, 2010 4:15 pm

Re: unrar in 2n

Postby Nvdias » Sat Nov 13, 2010 10:09 pm

you don't need to wait !
to solve the administrative lock issue you just need to create the directory.
just type in:

mkdir /usr/lib/opkg
Nvdias
 
Posts: 15
Joined: Fri Apr 09, 2010 6:47 pm

Re: unrar in 2n

Postby tman » Sun Nov 14, 2010 7:05 am

Ok I have installed the opkgfix plugin and the folder /opkg showed up (or maybe it was alredy there...dont know)
but now how to execute this?

opkg install unrar_3.8.5-1_mipsel.ipk -dest hdd

should I replace 'hdd' with some path ?
User avatar
tman
 
Posts: 166
Joined: Thu May 20, 2010 4:15 pm

Re: unrar in 2n

Postby tman » Sun Nov 14, 2010 7:20 am

ERROR: unknown dest name ...
Tried with 'hdd' and '/tmp/run/mountd/sda1/unrar' , does not work :-(

edit: tried also Disc-A1, or full path , with or without quotes ... same error :-(
User avatar
tman
 
Posts: 166
Joined: Thu May 20, 2010 4:15 pm

Re: unrar in 2n

Postby Nvdias » Sun Nov 14, 2010 12:12 pm

hdd is the destination I've defined in opkf.cfg
You must define your own destination or omit-it to install in fonera internal memory (if you have enough available)
Nvdias
 
Posts: 15
Joined: Fri Apr 09, 2010 6:47 pm

Re: unrar in 2n

Postby tman » Mon Nov 15, 2010 10:19 pm

where is located opkg.cfg ? (btw... Find -name opkg.cfg does not work on fonera....?)
thanks!
User avatar
tman
 
Posts: 166
Joined: Thu May 20, 2010 4:15 pm

Re: unrar in 2n

Postby Jazzy2 » Mon Nov 15, 2010 10:27 pm

My first reply was to the person that wrote the ushare wiki so I didn't give the relevant details.
It's worth checking out. the wiki helped me a lot http://wiki.fon.com/wiki/Ushare. The file is /etc/opkg.conf
Thanks Nvdias.
Jazzy2
 
Posts: 104
Joined: Thu Jul 15, 2010 9:34 pm

Re: unrar in 2n

Postby tman » Thu Apr 19, 2012 9:22 pm

Jazzy2, please post a new link to download unrar, the skydrive link you mentioned is dead by now. Thanks !

Upppsss! Now I see that Jazzy is banned. Anybody have the unrar downloaded to upload it again somewhere ?
Thanks !
User avatar
tman
 
Posts: 166
Joined: Thu May 20, 2010 4:15 pm

Re: unrar in 2n

Postby Nvdias » Fri Apr 20, 2012 3:46 pm

These are the files you need. You may get them from any distribution across the web, download them into your fonera hdd and install with "opkg -install filename ...":

libuclibc++_0.2.2-9_mipsel.ipk
unrar_3.9.8-1_mipsel.ipk
Nvdias
 
Posts: 15
Joined: Fri Apr 09, 2010 6:47 pm

Re: unrar in 2n

Postby tman » Fri Apr 20, 2012 9:25 pm

Nvdias wrote:libuclibc++_0.2.2-9_mipsel.ipk
unrar_3.9.8-1_mipsel.ipk


Thanks for replying. I found libuclibc++_0.2.2-9_mipsel.ipk here:
http://ipkg.nslu2-linux.org/feeds/optwa ... ss/stable/
But unrar is a newer version on this site:
unrar_4.1.3-1_mipsel.ipk

I guess is ok if it's newer....or ?

Edit:
installed unrar 4.1.3-1, then I try to run it but I have this error:
root@Fonera:~/run/mountd/sda1# unrar e log.rar
-ash: unrar: not found
root@Fonera:~/run/mountd/sda1# ./unrar l log.rar
-ash: ./unrar: not found
root@Fonera:~/run/mountd/sda1#

what am I doing wrong ? the unrar file is in the /opt/bin folder. I tried also to copy it to /bin, same error... :(
User avatar
tman
 
Posts: 166
Joined: Thu May 20, 2010 4:15 pm

Next

Return to Fonera Routers

Who is online

Users browsing this forum: No registered users and 1 guest

cron