unrar in 2n

Discussions regarding FON's WiFi routers

Re: unrar in 2n

Postby Nvdias » Sat Apr 21, 2012 1:13 am

try /opt/bin/unrar ....
Then, if it works ok, put /opt/bin in path in .profile
Nvdias
 
Posts: 15
Joined: Fri Apr 09, 2010 6:47 pm

Re: unrar in 2n

Postby tman » Sat Apr 21, 2012 2:26 pm

Nvdias wrote:try /opt/bin/unrar ....
Then, if it works ok, put /opt/bin in path in .profile


Nope :?

Code: Select all
root@Fonera:/# pwd
/
root@Fonera:/#
root@Fonera:/# /opt/bin/unrar
-ash: /opt/bin/unrar: not found
root@Fonera:/# ./opt/bin/unrar
-ash: ./opt/bin/unrar: not found

root@Fonera:/# cd bin
root@Fonera:/bin# ls
ash           factory.sh    login         ping          tar
busybox       false         ls            ping6         thinclient
cat           fgrep         mkdir         ps            touch
chgrp         firstboot     mknod         pwd           true
chmod         fon_image.sh  mktemp        rm            umount
chown         grep          mount         rmdir         uname
cp            gunzip        mv            sed           unrar
date          gzip          netmsg        sh            vi
dd            ipcalc.sh     netstat       sleep         zcat
df            jj_image.sh   nice          smbd
dmesg         kill          nmbd          smbpasswd
echo          ln            opkg          stty
egrep         lock          pidof         sync
root@Fonera:/bin# /bin/unrar
-ash: /bin/unrar: not found
root@Fonera:/bin# unrar
-ash: unrar: not found
root@Fonera:/bin#
root@Fonera:/bin# ls -l
lrwxrwxrwx    1 root     0               7 Sep 27  2011 ash -> busybox
-rwxr-xr-x    1 root     0          547015 Sep 27  2011 busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 cat -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 chgrp -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 chmod -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 chown -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 cp -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 date -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 dd -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 df -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 dmesg -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 echo -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 egrep -> busybox
-rwxr-xr-x    1 root     0              59 Sep 27  2011 factory.sh
lrwxrwxrwx    1 root     0               7 Sep 27  2011 false -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 fgrep -> busybox
-rwxr-xr-x    1 root     0            2621 Sep 27  2011 firstboot
-rwxr-xr-x    1 root     0            3473 Sep 27  2011 fon_image.sh
lrwxrwxrwx    1 root     0               7 Sep 27  2011 grep -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 gunzip -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 gzip -> busybox
-rwxr-xr-x    1 root     0             688 Sep 27  2011 ipcalc.sh
-rwxr-xr-x    1 root     0            1271 Oct  8  2011 jj_image.sh
lrwxrwxrwx    1 root     0               7 Sep 27  2011 kill -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 ln -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 lock -> busybox
-rwxr-xr-x    1 root     0             379 Sep 27  2011 login
lrwxrwxrwx    1 root     0               7 Sep 27  2011 ls -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 mkdir -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 mknod -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 mktemp -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 mount -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 mv -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 netmsg -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 netstat -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 nice -> busybox
lrwxrwxrwx    1 root     0               4 Sep 27  2011 nmbd -> smbd
-rwxr-xr-x    1 root     0            2303 Sep 27  2011 opkg
lrwxrwxrwx    1 root     0               7 Sep 27  2011 pidof -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 ping -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 ping6 -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 ps -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 pwd -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 rm -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 rmdir -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 sed -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 sh -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 sleep -> busybox
-rwxr-xr-x    1 root     0         1312747 Sep 27  2011 smbd
-rwxr-xr-x    1 root     0           13523 Sep 27  2011 smbpasswd
lrwxrwxrwx    1 root     0               7 Sep 27  2011 stty -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 sync -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 tar -> busybox
-rwxr-xr-x    1 root     0            1641 Sep 27  2011 thinclient
lrwxrwxrwx    1 root     0               7 Sep 27  2011 touch -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 true -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 umount -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 uname -> busybox
-rwxrwxrwx    1 root     0          287292 Apr 20 21:34 unrar
lrwxrwxrwx    1 root     0               7 Sep 27  2011 vi -> busybox
lrwxrwxrwx    1 root     0               7 Sep 27  2011 zcat -> busybox
root@Fonera:/bin# unrar
-ash: unrar: not found
root@Fonera:/bin#


I see that other executables are redirected to busybox...but unrar is not. Should I copy (compile?) unrar to 'busybox' ?
User avatar
tman
 
Posts: 166
Joined: Thu May 20, 2010 4:15 pm

Re: unrar in 2n

Postby Nvdias » Sat Apr 21, 2012 2:33 pm

it is not 'inside' busybox.
it should be installed in /opt/bin
you can do a: find / -name unrar*
to validate.

how have you installed-it ?

the best way is (provided you have the right files):
opkg install libuclibc\+\+_0.2.2-9_mipsel.ipk
opkg install unrar_3.9.8-1_mipsel.ipk

there is no trick to install unrar. is quite straight forward !
Nvdias
 
Posts: 15
Joined: Fri Apr 09, 2010 6:47 pm

Re: unrar in 2n

Postby tman » Sun Apr 22, 2012 8:12 pm

find / -name unrar*
it finds the name unrar in /opt/bin
but it does not execute

i have installed it like this:
opkg install libuclibc\+\+_0.2.2-9_mipsel.ipk
opkg install unrar_4.1.3-1_mipsel.ipk

because I did not found anywhere the ipk you mentioned. at least not in the first 20 google hits.
maybe this is the cause that i tried the newer ipk ?
if you have unrar_3.9.8-1_mipsel.ipk could you please share it ?
thanks !
User avatar
tman
 
Posts: 166
Joined: Thu May 20, 2010 4:15 pm

Re: unrar in 2n

Postby Matthijs » Mon Apr 23, 2012 11:15 am

What does "ls -l /opt/bin/unrar" say? I see that the file exists, but still the shell says it does not. Perhaps it is a dead symlink or something?
User avatar
Matthijs
 
Posts: 418
Joined: Fri Apr 09, 2010 6:47 pm

Re: unrar in 2n

Postby tman » Mon Apr 23, 2012 5:45 pm

Matthijs wrote:What does "ls -l /opt/bin/unrar" say? I see that the file exists, but still the shell says it does not. Perhaps it is a dead symlink or something?

I have deleted it already. But I think it was not symlink, the file size was much greater then a symlink.
Btw...Matthijs, I have opened a ticket to add unrar to fonera. Maybe you could check in to see if you could do something about it, you are more experienced with fonera that I am. Thanks!
User avatar
tman
 
Posts: 166
Joined: Thu May 20, 2010 4:15 pm

Re: unrar in 2n

Postby tman » Mon Apr 30, 2012 7:06 pm

Thanks to Nvdias I got the right files to install unrar :geek:.
If interested you can grab them from this ticket:
http://trac.fonosfera.org/fon-ng/attach ... cket/1164/

How to install:
opkg update
opkg install libuclibc++_0.2.2-9_mipsel.ipk
opkg install unrar_3.9.8-1_mipsel.ipk

- it will install in /opt/bin/ as executable file 'unrar'
- how to run: /opt/bin/unrar e file.rar , from the current directory of file.rar

- it works for multiple packed files !! like file.part01.rar, file.part02.rar..., or even with file.rar, file.r00, file.r01...

- what I could not achieve: to run unrar from any directory without path. It works only by executing /opt/bin/unrar.
User avatar
tman
 
Posts: 166
Joined: Thu May 20, 2010 4:15 pm

Previous

Return to Fonera Routers

Who is online

Users browsing this forum: No registered users and 1 guest