TP-LINK TL-WDR3600 HDD sharing, OPTWARE, DLNA, Torrent

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2, 3 ... 10, 11, 12 ... 28, 29, 30  Next
Author Message
olili
DD-WRT Novice


Joined: 19 Sep 2014
Posts: 2

PostPosted: Fri Sep 19, 2014 20:49    Post subject: ipkg install not working. Reply with quote
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

Any hints?
Sponsor
msantos2007
DD-WRT User


Joined: 13 Oct 2009
Posts: 246

PostPosted: Fri Sep 19, 2014 21:08    Post subject: Re: why ntfs?! Reply with quote
InfoScav wrote:
Hello Marcelo!

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.
olili
DD-WRT Novice


Joined: 19 Sep 2014
Posts: 2

PostPosted: Sat Sep 20, 2014 14:40    Post subject: Re: ipkg install not working. Reply with quote
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

Any hints?


I think the manual is not working - at least with the referenced ipkg-links.
I tried some older packages like http://downloads.opennet-initiative.de/openwrt/stable/0.4-1/ar71xx/packages/libc_0.9.30.1-43.32_ar71xx.ipk
and with that I was sucessful to install at least "libc".

Does anybody has working packages

-> opkg_9c97d5ecd795709c8584e972bfdf3aee3a5b846d-7_ar71xx.ipk
-> libc_0.9.33.2-1_ar71xx.ipk

for WDR3600 built 24118?
InfoScav
DD-WRT Novice


Joined: 09 Aug 2014
Posts: 35

PostPosted: Mon Sep 22, 2014 16:19    Post subject: Re: why ntfs?! Reply with quote
msantos2007 wrote:
InfoScav wrote:
Hello Marcelo!

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.
Telo79
DD-WRT Novice


Joined: 22 Sep 2014
Posts: 1

PostPosted: Wed Sep 24, 2014 16:03    Post subject: total desperate :-( Reply with quote
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
InfoScav
DD-WRT Novice


Joined: 09 Aug 2014
Posts: 35

PostPosted: Fri Sep 26, 2014 13:53    Post subject: Re: total desperate :-( Reply with quote
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?
msantos2007
DD-WRT User


Joined: 13 Oct 2009
Posts: 246

PostPosted: Fri Sep 26, 2014 15:57    Post subject: Reply with quote
I think "Step 1.1..."

OpenWRT Project's team has made something different and we can't install Optware anymore.

I'm still waiting and testing it every night, since the first complaint posted here: no avail so far...

Maybe we could find other links similar to "https://downloads.openwrt.org/snapshots/" and test it.

Yours sincerely, Marcelo.
InfoScav
DD-WRT Novice


Joined: 09 Aug 2014
Posts: 35

PostPosted: Sat Sep 27, 2014 6:00    Post subject: Reply with quote
msantos2007 wrote:
I think "Step 1.1..."

OpenWRT Project's team has made something different and we can't install Optware anymore.

I'm still waiting and testing it every night, since the first complaint posted here: no avail so far...

Maybe we could find other links similar to "https://downloads.openwrt.org/snapshots/" and test it.

Yours sincerely, Marcelo.


exactly! something's wrong. am also getting the same error as 'olili' posted above. few days back, this wasn't the case. can we use entware on this? Smile

EDIT: nevermind. read about entware. Neutral
InfoScav
DD-WRT Novice


Joined: 09 Aug 2014
Posts: 35

PostPosted: Sat Sep 27, 2014 13:46    Post subject: Re: ipkg install not working. Reply with quote
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

Any hints?


I think the manual is not working - at least with the referenced ipkg-links.
I tried some older packages like http://downloads.opennet-initiative.de/openwrt/stable/0.4-1/ar71xx/packages/libc_0.9.30.1-43.32_ar71xx.ipk
and with that I was sucessful to install at least "libc".

Does anybody has working packages

-> opkg_9c97d5ecd795709c8584e972bfdf3aee3a5b846d-7_ar71xx.ipk
-> libc_0.9.33.2-1_ar71xx.ipk

for WDR3600 built 24118?


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!
InfoScav
DD-WRT Novice


Joined: 09 Aug 2014
Posts: 35

PostPosted: Sat Sep 27, 2014 13:48    Post subject: Reply with quote
@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! Mad
msantos2007
DD-WRT User


Joined: 13 Oct 2009
Posts: 246

PostPosted: Sat Sep 27, 2014 22:47    Post subject: Re: ipkg install not working. Reply with quote
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...
laurentiu.tns
DD-WRT Novice


Joined: 27 Sep 2014
Posts: 39

PostPosted: Sat Sep 27, 2014 23:35    Post subject: Same functions.sh problem Reply with quote
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!
InfoScav
DD-WRT Novice


Joined: 09 Aug 2014
Posts: 35

PostPosted: Sun Sep 28, 2014 4:59    Post subject: Re: ipkg install not working. Reply with quote
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.
kkuhle
DD-WRT Novice


Joined: 29 Sep 2014
Posts: 2

PostPosted: Mon Sep 29, 2014 6:33    Post subject: Got mine working Reply with quote
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.

http://chef.mesh.altermundi.net/downloads/r37619/ar71xx/packages/opkg_618-6_ar71xx.ipk

http://chef.mesh.altermundi.net/downloads/r37619/ar71xx/packages/libc_0.9.33.2-1_ar71xx.ipk

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

#!/bin/ash
alias debug=${DEBUG:-:}
# allow env to override nvram
nvram_get () {
eval "echo \${$1:-\$(nvram get $1)}"
}
. /etc/nvram.overrides
# valid interface?
if_valid () (
[ "${1%%[0-9]}" = "vlan" ] && {
i=${1#vlan}
hwname=$(nvram_get vlan${i}hwname)
hwaddr=$(nvram_get ${hwname}macaddr)
[ -z "$hwaddr" ] && return 1
vif=$(ifconfig -a | awk '/^eth.*'$hwaddr'/ {print $1; exit}' IGNORECASE=1)
debug "# vlan$i: $hwname $hwaddr => $vif"
$DEBUG ifconfig $vif up
$DEBUG vconfig add $vif $i 2>/dev/null
}
ifconfig "$1" >/dev/null 2>&1 || [ "${1%%[0-9]}" = "br" ]
)

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…

src/gz packages http://downloads.openwrt.org/barrier_breaker/14.07-rc3/ar71xx/generic/packages


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
kkuhle
DD-WRT Novice


Joined: 29 Sep 2014
Posts: 2

PostPosted: Mon Sep 29, 2014 6:40    Post subject: Some modified steps that worked for me Reply with quote
Started from 0.5 as I don't think I needed to cover the first few steps

0.5 Wait few seconds. Then make sure both [mnt/sda1] and [mnt/sda2] are mounted on the router and shared by Samba (from DD-WRT Web Interface)


cd /tmp/mnt/sda1
touch optware.enable
cd /tmp/mnt/sda2
mkdir etc opt root lib useful
touch optware.enable
chmod 755 etc opt root
mkdir opt/lib
chmod 755 opt/lib
cp -a /etc/* /tmp/mnt/sda2/etc/
cp -a /lib/* /tmp/mnt/sda2/lib/
sleep 15
mount -o bind /tmp/mnt/sda2/etc /etc
mount -o bind /tmp/mnt/sda2/lib /lib
mount -o bind /tmp/mnt/sda2/opt /jffs

cd /tmp

wget http://chef.mesh.altermundi.net/downloads/r37619/ar71xx/packages/opkg_618-6_ar71xx.ipk


wget http://chef.mesh.altermundi.net/downloads/r37619/ar71xx/packages/libc_0.9.33.2-1_ar71xx.ipk


ipkg install libc_0.9.33.2-1_ar71xx.ipk opkg_618-6_ar71xx.ipk

Output should look like

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…

src/gz packages http://downloads.openwrt.org/barrier_breaker/14.07-rc3/ar71xx/generic/packages


I then created a /lib/functions.sh and copied the following text in to the file

#!/bin/ash
alias debug=${DEBUG:-:}
# allow env to override nvram
nvram_get () {
eval "echo \${$1:-\$(nvram get $1)}"
}
. /etc/nvram.overrides
# valid interface?
if_valid () (
[ "${1%%[0-9]}" = "vlan" ] && {
i=${1#vlan}
hwname=$(nvram_get vlan${i}hwname)
hwaddr=$(nvram_get ${hwname}macaddr)
[ -z "$hwaddr" ] && return 1
vif=$(ifconfig -a | awk '/^eth.*'$hwaddr'/ {print $1; exit}' IGNORECASE=1)
debug "# vlan$i: $hwname $hwaddr => $vif"
$DEBUG ifconfig $vif up
$DEBUG vconfig add $vif $i 2>/dev/null
}
ifconfig "$1" >/dev/null 2>&1 || [ "${1%%[0-9]}" = "br" ]
)

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"
}



Run the lines in putty
Code:
cat > /etc/opkg.conf << EOF
src/gz snapshots http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/base
src/gz packages http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/packages
dest root /opt
dest ram /opt/tmp
lists_dir ext /opt/tmp/var/opkg-lists
EOF



Code:
umount /jffs
mount -o bind /tmp/mnt/sda2/root /tmp/root
mount -o bind /tmp/mnt/sda2/opt /opt
export LD_LIBRARY_PATH='/opt/lib:/opt/usr/lib:/lib:/usr/lib'
opkg update

Should see

Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/base/Packages.gz.
Updated list of available packages in /opt/tmp/var/opkg-lists/snapshots.
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/packages/Packages.gz.
Updated list of available packages in /opt/tmp/var/opkg-lists/packages.

Run the code

cat > /tmp/mnt/sda2/root/.profile << EOF
export LD_LIBRARY_PATH='/opt/lib:/opt/usr/lib:/lib:/usr/lib:/opt/usr/local/lib'
export PATH='/sbin:/opt/bin:/opt/usr/bin:/opt/sbin:/opt/usr/sbin:/bin:/usr/bin:/usr/sbin:/opt/usr/local/bin'
export PS1='\[\033[01;31m\]\u@\h \[\033[01;34m\]\w \$ \[\033[00m\]'
export TERMINFO='/opt/usr/share/terminfo'
EOF


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:


Code:
opkg update


It should download from the new source

-------------------------------------------------------------------------------------------------
2. MiniDLNA
-------------------------------------------------------------------------------------------------

2.1 Preventing "Segmentation fault" error:

2.1.1 Run the following, using PuTTY:


Code:
cd /tmp
wget http://chef.mesh.altermundi.net/downloads/r37619/ar71xx/packages/libc_0.9.33.2-1_ar71xx.ipk

wget http://chef.mesh.altermundi.net/downloads/r37619/ar71xx/packages/libgcc_4.6-linaro-1_ar71xx.ipk

opkg install libgcc_4.6-linaro-1_ar71xx.ipk
opkg install libc_0.9.33.2-1_ar71xx.ipk


2.2 Run the following, using PuTTY:

Code:
opkg update
opkg install minidlna


You should see:

Quote:
Installing minidlna (1.0.25-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/packages/minidlna_1.0.25-1_ar71xx.ipk.
Installing libpthread (0.9.33.2-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/base/libpthread_0.9.33.2-1_ar71xx.ipk.
.
.
.
Installing libuuid (2.21.2-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/base/libuuid_2.21.2-1_ar71xx.ipk.
Configuring libjpeg.
Configuring libpthread.
Configuring libogg.
Configuring libexif.
Configuring libflac.
Configuring libvorbis.
Configuring libuuid.
Configuring libsqlite3.
Configuring zlib.
Configuring libbz2.
Configuring libffmpeg-mini.
Configuring libid3tag.
Configuring minidlna.



Code:
touch /tmp/mnt/sda1/minidlna.enable
touch /tmp/mnt/sda2/minidlna.enable
mkdir -p /tmp/mnt/sda1/dlna/Pictures
mkdir -p /tmp/mnt/sda1/dlna/Music
mkdir -p /tmp/mnt/sda1/dlna/Videos
rm /opt/etc/config/minidlna


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


2.4 Test it, running the following, using PuTTY:


Code:
minidlna -f /opt/etc/config/minidlna.conf -R


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.
Goto page Previous  1, 2, 3 ... 10, 11, 12 ... 28, 29, 30  Next Display posts from previous:    Page 11 of 30
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC 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 cannot attach files in this forum
You cannot download files in this forum