Posted: Fri Sep 19, 2014 20:49 Post subject: ipkg install not working.
I am not able to install "libc" by ipkg as described in the manual. I always get:
root@WDR3600:/tmp# ipkg install libc_0.9.33.2-1_ar71xx.ipk
ERROR: File not found: //usr/local/lib/ipkg/lists/whiterussian
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/non-free
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/backports
You probably want to run `ipkg update'
Unpacking libc...Done.
Configuring libc.../jffs//usr/local/lib/ipkg/info/libc.postinst: .: line 3: can't open '/lib/functions.sh'
root@WDR3600:/tmp#
r
a small, quick doubt! could you please tell why you chose the FS as NTFS, instead of ext3, in your guide posted on the first page of this thread? i wish to prepare a fresh flash-drive/optware installation, and was thinking on what FS to choose this time (as the fsck checks/mount-counts had given me a headache with ext3 in my existing optware-drive).
I chose NTFS because I wanted my flashdrive being accessible on Windows. At the beginning, I didn't know of "side effects" related not to use EXT3.
Feel free to make those improvements and share them with us.
Posted: Sat Sep 20, 2014 14:40 Post subject: Re: ipkg install not working.
olili wrote:
I am not able to install "libc" by ipkg as described in the manual. I always get:
root@WDR3600:/tmp# ipkg install libc_0.9.33.2-1_ar71xx.ipk
ERROR: File not found: //usr/local/lib/ipkg/lists/whiterussian
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/non-free
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/backports
You probably want to run `ipkg update'
Unpacking libc...Done.
Configuring libc.../jffs//usr/local/lib/ipkg/info/libc.postinst: .: line 3: can't open '/lib/functions.sh'
root@WDR3600:/tmp#
r
a small, quick doubt! could you please tell why you chose the FS as NTFS, instead of ext3, in your guide posted on the first page of this thread? i wish to prepare a fresh flash-drive/optware installation, and was thinking on what FS to choose this time (as the fsck checks/mount-counts had given me a headache with ext3 in my existing optware-drive).
I chose NTFS because I wanted my flashdrive being accessible on Windows. At the beginning, I didn't know of "side effects" related not to use EXT3.
Feel free to make those improvements and share them with us.
Yours sincerely, Marcelo.
alright. i don't know the advantages of one over the other. i have been using EXT3 formatted flash-drives. one thing that i can tell is that, theoretically, and may be practically too, EXT3 drives either don't get or get less fragmented than NTFS. i need to run fsck on them once-in-a-while. apart from that, don't know of any other advantage/disadvantage. so i think i'll then use EXT3 format again for my new drive too.
Posted: Wed Sep 24, 2014 16:03 Post subject: total desperate :-(
guys can anybody help me to set this DNLA servur up. i can't even install with the ipkg command it olways gives me the message file not found/
I just don't know what to do. i am willing to give remote access via TEamviewer
pls help.
thanks
Posted: Fri Sep 26, 2014 13:53 Post subject: Re: total desperate :-(
Telo79 wrote:
guys can anybody help me to set this DNLA servur up. i can't even install with the ipkg command it olways gives me the message file not found/
I just don't know what to do. i am willing to give remote access via TEamviewer
pls help.
thanks
did you follow Marcelo's guide on the 1st page of this thread? at which step(s) are you encountering the error?
Posted: Sat Sep 27, 2014 13:46 Post subject: Re: ipkg install not working.
olili wrote:
olili wrote:
I am not able to install "libc" by ipkg as described in the manual. I always get:
root@WDR3600:/tmp# ipkg install libc_0.9.33.2-1_ar71xx.ipk
ERROR: File not found: //usr/local/lib/ipkg/lists/whiterussian
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/non-free
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/backports
You probably want to run `ipkg update'
Unpacking libc...Done.
Configuring libc.../jffs//usr/local/lib/ipkg/info/libc.postinst: .: line 3: can't open '/lib/functions.sh'
root@WDR3600:/tmp#
r
could you find a solution to this functions.sh? i found the file on the net (wasn't there on my router), but unable to copy it to /lib. read-only FS, plus, mounting it as rw and then trying to copy functions.sh gives 'permission denied' error. pathetic!
@msantos2007 - pls let us know if/when you find Optware installation up again. i will also keep checking. presently, this 'error: line 3: can't open /lib/functions.sh' thing is proving to be an obstacle in everything! unable to install anything now due to this, neither on my old Optware flash-drive, nor on a new flash-drive!
Posted: Sat Sep 27, 2014 22:47 Post subject: Re: ipkg install not working.
Ok. I'll keep you guys posted and please tell us any other file directory like I wrote above.
Quote:
could you find a solution to this functions.sh? i found the file on the net (wasn't there on my router), but unable to copy it to /lib. read-only FS, plus, mounting it as rw and then trying to copy functions.sh gives 'permission denied' error. pathetic!
You should bind "/lib" to a directory on your HDD (like "/etc" - see Step 1.1). BUT, even if you pass the "function.sh" error, you would get stuck on a new error. I tried it...
Posted: Sat Sep 27, 2014 23:35 Post subject: Same functions.sh problem
I'm stuck in the same line 3: can't open '/lib/functions.sh' error.
I've tried it many times using this tutorial and another one from here http://www.dd-wrt.com/phpBB2/viewtopic.php?t=268205
I have a question: what does (unallocated space) from the partition creation means? how can you create a partition with a filesystem without allocating space?
Please help, I bought WDR3600 and 1TB HDD only to do this for home DLNA.
I have almost 10 hours trying to make work.
HEEELPPP!
Posted: Sun Sep 28, 2014 4:59 Post subject: Re: ipkg install not working.
msantos2007 wrote:
Ok. I'll keep you guys posted and please tell us any other file directory like I wrote above.
Quote:
could you find a solution to this functions.sh? i found the file on the net (wasn't there on my router), but unable to copy it to /lib. read-only FS, plus, mounting it as rw and then trying to copy functions.sh gives 'permission denied' error. pathetic!
You should bind "/lib" to a directory on your HDD (like "/etc" - see Step 1.1). BUT, even if you pass the "function.sh" error, you would get stuck on a new error. I tried it...
yes, i had tried that too y'day. but error(s) followed anyway, like 'error: line 4: default_postinst not found', accompanied by 'package so-and-so returned status 127'.
also, had found a different opkg repository (named something like downloads.razvi.com/openwrt), but it had very few packages, and no snapshots directory.
Posted: Mon Sep 29, 2014 6:33 Post subject: Got mine working
It took me all day, but I managed to get the minidlna working. When I eventually figured it out, it seemed it was easiest to start from scratch by applying the dd-wrt firmware and remove all files that I created on my hard-drive. I will try to give everything that I had to do differently
Edit: I posted a modified tutorial for opkg and minidnla in the next post, but I will leave my steps here in case someone wants to try look at it without starting over.
First, I had to download opkg and libc from a different source.
When creating folders in /tmp/mnt/sda2 I also created a lib directory. I ran the command "cp /lib/* /mnt/sda2/lib" Of course after this I would have to modify the startup script to mount /tmp/mnt/sda2/lib to lib.
I then created a /lib/functions.sh and copied the following text in to the file
I also had to create an /etc/nvram.overrides file and write the following lines in the file
# NVRAM overrides
# This file handles the NVRAM quirks of various hardware
# this is not a replacement for nvram.
# linksys bug has lan doing dhcp; force static
lan_proto="static"
# failsafe if reset is held
[ "$FAILSAFE" = "true" ] && {
echo "### FAILSAFE MODE ####"
lan_ifname="br0"
lan_ifnames="vlan0 vlan2 eth1 eth2 eth3"
lan_ipaddr="192.168.1.1"
lan_netmask="255.255.255.0"
lan_hwaddr="00:0B:AD:0A:DD:00"
wan_ifname="none"
wifi_ifname="none"
}
# hacks for 1.x hardware
[ "$(nvram get boardnum)" = "42" ] && \
[ "$(nvram get boardtype)" = "bcm94710dev" ] && {
debug "### 1.x hardware hack ###"
vlan1hwname="et0"
vlan2hwname="et0"
# we remap old device names to new
# it's recommended that you continue to
# use the old names to preserve backwards
# compatibility
remap () {
eval $1=\"$(nvram_get $1 | awk 'gsub("eth0","vlan2") gsub("eth1","vlan1")')\"
}
remap lan_ifname
remap lan_ifnames
remap wifi_ifname
remap wifi_ifnames
remap wan_ifname
remap wan_ifnames
remap pppoe_ifname
}
[ -z "$(nvram_get lan_ifname)" ] && {
lan_ifname="br0"
lan_ifnames="vlan0 vlan2 eth1 eth2 eth3"
}
[ -z "$(nvram_get wan_ifname)" ] && {
wan_ifname="vlan1"
wan_proto="dhcp"
}
I had to edit /etc/opkg.conf (make a backup if you feel like it by typing cp /etc/opkg.conf /etc/opkg.bak and then edit the file so that the only source is…
At this point, if there is anything that you try to do that gives the error "error: line 4: default_postinst not found" accompanied by the message 'package name returned status 127' - You will then need to uninstall any of the packages by typing "opkg remove --force-remove package name" You will probably see an error about it not being able to execute a script but it should remove. You can confirm by typing opkg list-installed and it shouldn't list the package anymore. After you remove all the packages that are causing problems, you should be able to run 'opkg update' to replace the bad packages.
Anyway, that's everything I can think of that I had to do. Hopefully it will be some help to others.
Last edited by kkuhle on Mon Sep 29, 2014 7:07; edited 1 time in total
Connecting to downloads.openwrt.org (78.24.191.177:80)
libc_0.9.33.2-1_ar71 100% |*******************************| 217k 0:00:00 ETA
Connecting to downloads.openwrt.org (78.24.191.177:80)
opkg_9c97d5ecd795709 100% |*******************************| 57322 0:00:00 ETA
ERROR: File not found: //usr/local/lib/ipkg/lists/whiterussian
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/non-free
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/backports
You probably want to run `ipkg update'
/bin/ipkg: line 1184: sort: not found
Unpacking libc...Done.
Configuring libc...Done.
ERROR: File not found: //usr/local/lib/ipkg/lists/whiterussian
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/non-free
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/backports
You probably want to run `ipkg update'
/bin/ipkg: line 1184: sort: not found
Unpacking opkg...Done.
Configuring opkg...Done.
Edit
/etc/opkg.conf (make a backup if you feel like it by typing cp /etc/opkg.conf /etc/opkg.bak and then edit the file so that the only source is…
1.2 Paste the following on DD-WRT Web interface, Administration - Commands. Click "Save Startup".
Code: (modified for ext3)
#! /bin/sh
sleep 10
if [ -f /mnt/sda1/optware.enable ]; then
if [ -f /mnt/sda2/optware.enable ]; then
mount -o bind /tmp/mnt/sda2/etc /etc
sleep 1
mount -o bind /tmp/mnt/sda2/root /tmp/root
sleep 1
mount -o bind /tmp/mnt/sda2/opt /opt
sleep 1
mount -o bind /tmp/mnt/sda2/lib /lib
sleep 2
else
exit
fi
else
exit
fi
if [ -d /opt/usr ]; then
export LD_LIBRARY_PATH='/opt/lib:/opt/usr/lib:/lib:/usr/lib'
export PATH='/opt/bin:/opt/usr/bin:/opt/sbin:/opt/usr/sbin:/bin:/sbin:/usr/sbin:/usr/bin'
else
exit
fi
1.3 Reboot the router.
1.4 Using PuTTY, you should see a colorful prompt (in red and blue). Run the following:
2.3 You need to create a new [/opt/etc/config/minidlna.conf] file, with WinSCP, using the following content:
Code:
#port for HTTP (descriptions, SOAP, media transfer) traffic
port=8200
# network interface to bind to (this is the only interface that will serve files)
network_interface=br0
# set this to the directory you want scanned.
# * if have multiple directories, you can have multiple media_dir= lines
# * if you want to restrict a media_dir to a specific content type, you
# can prepend the type, followed by a comma, to the directory:
# + "A" for audio (eg. media_dir=A,/home/jmaggard/Music)
# + "V" for video (eg. media_dir=V,/home/jmaggard/Videos)
# + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)
media_dir=A,/mnt/sda1/dlna/Music
media_dir=V,/mnt/sda1/dlna/Videos
media_dir=P,/mnt/sda1/dlna/Pictures
# set this if you want to customize the name that shows up on your clients
friendly_name=Media Server
# set this if you would like to specify the directory where you want MiniDLNA to store its database and alb
db_dir=/mnt/sda1/dlna
#/mnt/tmp/minidlna
# this should be a list of file names to check for when searching for album art
# note: names should be delimited with a forward slash ("/")
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg
# set this to no to disable inotify monitoring to automatically discover new files
# note: the default is yes
inotify=yes
# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
enable_tivo=no
# set this to strictly adhere to DLNA standards.
# * This will allow server-side downscaling of very large JPEG images,
# which may hurt JPEG serving performance on (at least) Sony DLNA products.
strict_dlna=no
# default presentation url is http address on port 80
presentation_url=http://192.168.1.1:8200/
# notify interval in seconds. default is 895 seconds.
notify_interval=895
# serial and model number the daemon will report to clients
# in its XML description
serial=12345678
model_number=1
You should see your DLNA client (e.g. Samsung TV) connected to your router in seconds.
2.5 Paste the following on DD-WRT Web interface, Administration - Commands. Click "Save Startup".
Code:
#! /bin/sh
sleep 10
if [ -f /mnt/sda1/optware.enable ]; then
if [ -f /mnt/sda2/optware.enable ]; then
mount -o bind /tmp/mnt/sda2/etc /etc
sleep 1
mount -o bind /tmp/mnt/sda2/root /tmp/root
sleep 1
mount -o bind /tmp/mnt/sda2/opt /opt
sleep 1
mount -o bind /tmp/mnt/sda2/lib /lib
sleep 2
else
exit
fi
else
exit
fi
if [ -d /opt/usr ]; then
export LD_LIBRARY_PATH='/opt/lib:/opt/usr/lib:/lib:/usr/lib'
export PATH='/opt/bin:/opt/usr/bin:/opt/sbin:/opt/usr/sbin:/bin:/sbin:/usr/sbin:/usr/bin'
if [ -f /tmp/mnt/sda1/minidlna.enable ]; then
sleep 2
minidlna -f /opt/etc/config/minidlna.conf -R
else
exit
fi
else
exit
fi
2.6 Reboot the router.
You should see your DLNA client (e.g. Samsung TV) connected to your router in 60 seconds.
If there are any errors "error: line 4: default_postinst not found" accompanied by the message 'package name returned status 127' - You will then need to uninstall any of the packages by typing "opkg remove --force-remove package name" You will probably see an error about it not being able to execute a script but it should remove. You can confirm by typing opkg list-installed and it shouldn't list the package anymore. After you remove all the packages that are causing problems, you should be able to run 'opkg update' to replace the bad packages from the new /etc/opkg.conf source
I didn't do the transmission tutorial because I didn't have a use for it. I think if you follow the original steps it will probably work after fixing some of the things that have been broken since the tutorial was written.