Optware (aditional installable packages for DD-WRT)

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4 ... 16, 17, 18  Next
Author Message
oleo
DD-WRT User


Joined: 25 Jul 2006
Posts: 120

PostPosted: Fri Oct 27, 2006 6:19    Post subject: Reply with quote
If you look careful, you could see that download is wrom openwrt.org and not from nslu2-linux.org. The reason is that you did not follow instructions step by step and you did not changed ipg.conf to point to the right repository!
Sponsor
Alberto
DD-WRT User


Joined: 07 Jun 2006
Posts: 198
Location: Parma - Italy

PostPosted: Fri Oct 27, 2006 7:15    Post subject: Reply with quote
vlahos wrote:

Im very suspicious to all you that report that you have the programs running


Ahh you got me! Excuse me, if I were too know that a genius like you has been lurking this forum, I would have never never tried to impress people with my lies.
oleo
DD-WRT User


Joined: 25 Jul 2006
Posts: 120

PostPosted: Fri Oct 27, 2006 11:45    Post subject: Reply with quote
Try manual install:
Code:
~ # cd /jffs
/jffs # rm -rf *
/jffs # mkdir /jffs/opt
/jffs # mount -o bind /jffs/opt /opt
/jffs # mount
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
/dev/mtdblock/4 on /opt type jffs2 (rw)
/jffs #
/tmp # ipkg install uclibc_0.9.28-4_mipsel.ipk
ERROR: File not found: //jffs/usr/lib/ipkg/lists/whiterussian
       You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/non-free
       You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/backports
       You probably want to run `ipkg update'
Unpacking uclibc...Done.
Configuring uclibc...Updating /opt/etc/ld-opt.so.cache
/jffs//jffs/usr/lib/ipkg/info/uclibc.postinst: /jffs//jffs/usr/lib/ipkg/info/uclibc.postinst: 6: /opt/sbin/ldconfig: not found
/tmp # df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/root                 1920      1920         0 100% /
/dev/mtdblock/4           1280       540       740  42% /jffs
/dev/mtdblock/4           1280       540       740  42% /opt
/tmp # wget http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ncftp_3.2.0-1_mipsel.ipk
Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80
ncftp_3.2.0-1_mipsel 100% |*****************************|   513 KB 00:00:00 ETA
/tmp # ipkg install ncftp_3.2.0-1_mipsel.ipk
ERROR: File not found: //jffs/usr/lib/ipkg/lists/whiterussian
       You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/non-free
       You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/backports
       You probably want to run `ipkg update'
Unpacking ncftp...ipkg_install_file: ERROR unpacking data.tar.gz from ncftp_3.2.0-1_mipsel.ipk
/tmp # df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/root                 1920      1920         0 100% /
/dev/mtdblock/4           1280       700       580  55% /jffs
/dev/mtdblock/4           1280       700       580  55% /opt
/tmp # ipkg install ncftp_3.2.0-1_mipsel.ipk
ERROR: File not found: //jffs/usr/lib/ipkg/lists/whiterussian
       You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/non-free
       You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/backports
       You probably want to run `ipkg update'
Unpacking ncftp...ipkg_install_file: ERROR unpacking data.tar.gz from ncftp_3.2.0-1_mipsel.ipk
/tmp # df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/root                 1920      1920         0 100% /
/dev/mtdblock/4           1280      1280         0 100% /jffs
/dev/mtdblock/4           1280      1280         0 100% /opt
/tmp # ipkg remove ncftp
/tmp # ipkg remove ncftp
/tmp # wget http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/bc_1.06-2_mipsel.ipk
Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80
bc_1.06-2_mipsel.ipk 100% |*****************************|   133 KB 00:00:00 ETA
/tmp # ipkg install bc_1.06-2_mipsel.ipk
ERROR: File not found: //jffs/usr/lib/ipkg/lists/whiterussian
       You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/non-free
       You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/backports
       You probably want to run `ipkg update'
Unpacking bc...Done.
Configuring bc...Done.

vlahos
DD-WRT User


Joined: 27 Oct 2006
Posts: 118

PostPosted: Fri Oct 27, 2006 12:09    Post subject: Reply with quote
SO what ?
what did you prove ?
did you run anything ?
as i can see Uclibc DIDNT install correctly
and after the command
tmp # ipkg install uclibc_0.9.28-4_mipsel.ipk

the answer is NOT what you say but File not found .... UNLESS you have manualy downloaded the file in /tmp BUT nowhere says so...you 'instructions' are a joke

my guess is theres possibility 1% that you have made it (but you DONT describe how)
and 99% that you are joking

PS i edit the post to correct the percentage...100% b&ll$hit...if you try to install manually
you get the warning that base-files is missing...

/tmp/ttemp # ipkg install uclibc*
ipkg_install_file: ERROR: uclibc depends on the following uninstalled programs:
base-files libgcc
ipkg_install_file: You may want to use `ipkg install' to install these.
/tmp/ttemp #

this whole screen output is fake
i tried it...give the answer in an undisputable way IF you can
oleo
DD-WRT User


Joined: 25 Jul 2006
Posts: 120

PostPosted: Fri Oct 27, 2006 13:13    Post subject: Reply with quote
oops mistake with my cut and paste: There is missing
Code:
wget http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc_0.9.28-4_mipsel.ipk


ldconfig is not neccessary to complete without an error. All packages have built in /opt/lib search path. ldconfig is used just for shared libraries in nonstandard path. Errors about not found packages list are also OK as we did not run update.

Can you describe what is your hardware and hom mouch free space does df command returns? Release date of your dd-wrt sp2 would be helpful.


I must say that running optware was never ment for packages with high memory requirements unless you attach hard disk to the router. I am running wl500g deluxe in such way. If somebody is interested tha have a peek in my router, send me RSA key for ssh access in private message or if want to look at my web page, just send me a PM with a wish. Or you can give me access to your ruouter in similar way.
ikarus
DD-WRT Novice


Joined: 12 Oct 2006
Posts: 8

PostPosted: Fri Oct 27, 2006 14:22    Post subject: Reply with quote
Okay, after lots and lots of trying and finally a little bit of success i'm stating my path:

i have a wrt54gl --> no jffs space, but mmc mod w/ 64mb mmc card

so i unmounted /mmc and /jffs mountpoints, mounted /dev/mmc/disc0/part1 to /jffs, mounted /jffs/opt to /opt

then i opened the packages list with my browser and manually downloaded the ipk files and their dependencies with wget to /opt. then i installed them one by one using : ipkg -d root install [ipk-file]. it outputs
Code:
ERROR: File not found: //jffs/usr/lib/ipkg/lists/whiterussian
       You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/non-free
       You probably want to run `ipkg update'
ERROR: File not found: //jffs/usr/lib/ipkg/lists/backports
       You probably want to run `ipkg update'
but that doesnt matter, it installs the software anyways

so every application is installed in the right way to /opt and running without problems. installed irssi, lighttpd so far, trying screen now.
vlahos
DD-WRT User


Joined: 27 Oct 2006
Posts: 118

PostPosted: Sat Oct 28, 2006 2:55    Post subject: Reply with quote
I tell you what i did tell me whats wrong:

1. I unmounted /jffs and mounted a samba share from an 80 MB ext2 disk on /jffs
umount -l /jffs
smbmount //sambashare /jffs -o username=root,password=<i leave it blank>
(mounted with 755 permissions)
or you can mount an sd card on /jffs (i dont have it)

i unmounted /opt
umount -l /opt
and mounted with
mount -o bind /jffs/opt /opt
(there must exist an directory named /opt on the mounted disk or else it fails)


2. i had to manually create /opt/etc and put the edited ipkg.conf in it
and create an empty /jffs/tmp/ipkg/ directory or else ipkg update doesnt start

the ipkg.conf is : (/opt/etc/ipkg.conf)
-----------------
src unslung http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable
dest root /jffs
-----------------
and i gave
export IPKG_CONF_DIR=/opt/etc

after that i installed uclibc without error with
ipkg install uclibc (this command is issued from ROOT directory)
and
after that i installed ncftp without error with
ipkg install ncftp (this command is issued from ROOT directory)

i even remembered to give export PATH=/opt/bin:/opt/sbin:$PATH
to be able to run executables from /opt/bin and /opt/sbin directory

Allright....i f*ckin did it....im a mean bastard...yeah...i have in /jffs these files:

drwxr-xr-x 1 root root 4096 Oct 29 06:43 .
drwxr-xr-x 15 root root 145 Sep 15 19:41 ..
drwxr-xr-x 1 root root 4096 Oct 29 05:27 bin
drwxr-xr-x 1 root root 4096 Mar 27 2006 dev
drwxr-xr-x 1 root root 4096 Oct 29 05:27 etc
drwxr-xr-x 1 root root 4096 Mar 27 2006 jffs
drwxr-xr-x 1 root root 4096 Oct 29 05:57 lib
drwxr-xr-x 1 root root 4096 Mar 27 2006 mnt
drwxr-xr-x 1 root root 4096 Oct 29 05:38 opt
drwxr-xr-x 1 root root 4096 Mar 27 2006 proc
drwxr-xr-x 1 root root 4096 Oct 29 05:27 rom
drwxr-xr-x 1 root root 4096 Oct 29 05:27 sbin
drwxr-xr-x 1 root root 4096 Mar 27 2006 tmp
drwxr-xr-x 1 root root 4096 Oct 29 05:27 usr
drwxr-xr-x 1 root root 4096 Mar 27 2006 www

3. all fine...i cd to /opt/bin
/opt/bin # ls -alg
drwxr-xr-x 1 root root 4096 Oct 29 05:31 .
drwxr-xr-x 1 root root 4096 Oct 29 05:38 ..
-rwxr-xr-x 1 root root 5660 Jul 28 16:21 clear
-rwxr-xr-x 1 root root 52808 Jul 28 16:21 infocmp
-rwxr-xr-x 1 root root 336140 Aug 12 14:08 ncftp
-rwxr-xr-x 1 root root 207372 Aug 12 14:08 ncftpbatch
-rwxr-xr-x 1 root root 156928 Aug 12 14:08 ncftpbookmarks
-rwxr-xr-x 1 root root 202676 Aug 12 14:08 ncftpget
-rwxr-xr-x 1 root root 172424 Aug 12 14:08 ncftpls
-rwxr-xr-x 1 root root 203272 Aug 12 14:08 ncftpput
-rwxr-xr-x 1 root root 56860 Jul 28 16:21 tic
-rwxr-xr-x 1 root root 35264 Jul 28 16:21 toe
-rwxr-xr-x 1 root root 14328 Jul 28 16:21 tput
-rwxr-xr-x 1 root root 43992 Jul 28 16:21 tset
/opt/bin # ./ncftp
-sh: ./ncftp: not found
and the same applies to EVERY executable installed

this way i do it ldconfig doesnt show up in /opt/sbin (like it does with manual install)

ONLY thing i observe and i dont know why is that file uclibc.list (\jffs\jffs\usr\lib\ipkg\info\uclibc.info)

reports that i should have these files:

/lib
/lib/ld-uClibc.so.0
/lib/ld-uClibc-0.9.27.so
/lib/libc.so.0
/lib/libcrypt.so.0
/lib/libcrypt-0.9.27.so
/lib/libdl.so.0
/lib/libdl-0.9.27.so
/lib/libm.so.0
/lib/libm-0.9.27.so
/lib/libnsl.so.0
/lib/libnsl-0.9.27.so
/lib/libresolv.so.0
/lib/libresolv-0.9.27.so
/lib/librt.so.0
/lib/librt-0.9.27.so
/lib/libuClibc-0.9.27.so
/lib/libutil.so.0
/lib/libutil-0.9.27.so

and i have these (8 files less)

ld-uClibc-0.9.27.so
libcrypt-0.9.27.so
libdl-0.9.27.so
libgcc_s.so.1
libm-0.9.27.so
libnsl-0.9.27.so
libresolv-0.9.27.so
librt-0.9.27.so
libuClibc-0.9.27.so
libutil-0.9.27.so

the ones that are missing were the ones that ldconfig (in manual install) was reporting
as error to create the link (Permission denied)
By the way i tried to make the samba share chmod 777 but it remains 755
does samba has a problem with symbolic links ?
is it because i havent defined a password ?
is this the f*cking case that is tainting me for over a week now (over 100 hours)...?

???

f&ck

somebody is it possible to install on samba mount ?
instructions say it is

UPDATE -> also i found out that manual install installs libraries version ...0.9.28
and auto install ...0.9.27 (as in my case)
so i was right initially you have fooked up with the links ...
thanips
DD-WRT Novice


Joined: 29 Oct 2006
Posts: 1

PostPosted: Sun Oct 29, 2006 15:20    Post subject: Optware Coreutils Reply with quote
I followed all the steps and am able to install the ulibc. But I need the mknod executable which is in coreutils package which I installed. At the end after configuring message, it gave an error as follows
Configuring coreutils.../jffs//jffs/usr/lib/ipkg/info/coreutils.postinst: /jffs/ /jffs/usr/lib/ipkg/info/coreutils.postinst: 6: update-alternatives: not found
/jffs//jffs/usr/lib/ipkg/info/coreutils.postinst: /jffs//jffs/usr/lib/ipkg/info/ coreutils.postinst: 7: update-alternatives: not found
/jffs//jffs/usr/lib/ipkg/info/coreutils.postinst: /jffs//jffs/usr/lib/ipkg/info/ coreutils.postinst: 8: update-alternatives: not found
Done.

I can see all the binaries in the /opt/bin directory. When I try to execute them it gives an error " -sh: ./cat: not found.

Can someone help me resolve this?
Thanks for any help
vlahos
DD-WRT User


Joined: 27 Oct 2006
Posts: 118

PostPosted: Mon Oct 30, 2006 1:11    Post subject: Reply with quote
are you using samba share like me ?
i think you must forget it...samba doesnt like symbolic links ???
i will install sd mode card
well i was able to run ncftp when instead of the symbolic links i copied the libraries
with the links name
vlahos
DD-WRT User


Joined: 27 Oct 2006
Posts: 118

PostPosted: Wed Nov 01, 2006 12:11    Post subject: Reply with quote
i did it ... i installed in /tmp
i was right it was a problem with samba not able to create the symbolic links
after i can copy to samba mount (the links are replaced by a copy of the file)
nobody mentioned that in the instructions (it said you could use samba)
so it wasnt my fault and i was right to question the instructions
anybody writing instructions should try to guess possible problems from users
with smaller experience

now another problem i installed and run ncftp
but when i try enhanced ctorrent i fail
('cant load library libbsssl.so.0.9.7')
but i have (manually) installed all dependencies for this program
(libstdc++, openssl, libuclibc++)
and such a library doesnt exist in them

has anyone else manage to install and run it ?
JohnnyPrimus
DD-WRT User


Joined: 26 Oct 2006
Posts: 369

PostPosted: Wed Nov 01, 2006 13:09    Post subject: Reply with quote
Installing on samba is a pain, but it's perfectly feasible.

If, after you install on samba, you run ldconfig and notice the lack on symbolic links, you can simply copy the file to the new name instead. As you can probably guess, this gets old pretty fast. An easy solution is to save a script as /jffs/bin/ln, and then make sure that appears first in the path when you're upating. The next thing most users will notice and/or complain about is the fact that when dealing with optware, it's not always pleasant to have /opt/bin (or /jfffs/bin) appear before the stock system paths. I've noticed this too. My solution was to save the script to /jffs/bin/ln/ln, and then to
export PATH=/jffs/bin/ln:$PATH:/opt/sbin:/opt/bin

and so on.



The script could read something like this:

#!/bin/sh
cp $2 $3

That should be it. ldconfig will still complain occasionally, but the installaed applications will all run happily. (Leave out $1, as it will contain the '-s' part of the command.)
vlahos
DD-WRT User


Joined: 27 Oct 2006
Posts: 118

PostPosted: Wed Nov 01, 2006 14:10    Post subject: Reply with quote
I havent the SLIGHTEST idea what you are talking about... Shocked

i JUST wanted to run bittorent on WRT54G nothing else
I DONT like linux (or Unix) or programming Evil or Very Mad i just like (implementing and using ) embedded
solutions...nowadays this road goes through linux inevitably

Thanks anyway (for nothing...) Very Happy
JohnnyPrimus
DD-WRT User


Joined: 26 Oct 2006
Posts: 369

PostPosted: Wed Nov 01, 2006 14:22    Post subject: Reply with quote
quite sorry if i was unclear. i meant that if before you install any packages on your samba jffs, you save a script called /jffs/bin/ln/ln with the contents:

Code:
#!/bin/sh
cp $2 $3


Then run the following command once:

chmod +x /jffs/bin/ln/ln

Then run this command whenver you open a terminal/ssh to install new stuff:

export PATH=/jffs/bin/ln:$PATH



Then you'll find things work quite a bit better.
trey504
DD-WRT User


Joined: 02 Oct 2006
Posts: 220

PostPosted: Wed Nov 01, 2006 17:37    Post subject: Reply with quote
has anyone got the httpd to work for the torrent package
vlahos
DD-WRT User


Joined: 27 Oct 2006
Posts: 118

PostPosted: Wed Nov 01, 2006 17:43    Post subject: Reply with quote
i replaced busybox_httpd with httpd in config file and it worked but with syntax error
and ONLY the initial page (all other missing)
Goto page Previous  1, 2, 3, 4 ... 16, 17, 18  Next Display posts from previous:    Page 3 of 18
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
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 can attach files in this forum
You can download files in this forum