Minidlna UPnP Media Server through Debian Wheezy Mipsel

This version is for Mipsel routers: RT-N16, RT-N66U, Rt-AC66u...

Arm version here

1 - Setup Debian Wheezy from here (stock minidlna should be disabled from router ui)

2 - Enter chrooted debian with:

debian enter

3 - Update Debian

apt-get update
apt-get upgrade

4 - Install necessary packages

apt-get install wget libavutil-dev libexif-dev libjpeg8-dev libid3tag0-dev libFLAC-dev libvorbis-dev libsqlite3-dev libffmpegthumbnailer-dev

- Download and install minidlna

wget -c -O /var/tmp/minidlna_1.1.4-1_mipsel.deb
dpkg -i /var/tmp/minidlna_1.1.4-1_mipsel.deb

6 - Download startup script

wget -c -O /etc/init.d/S98minidlna-debian
chmod 755 /etc/init.d/S98minidlna-debian

7 - Download configuration file

wget -c -O /etc/minidlna.conf
chmod 755 /etc/minidlna.conf

8 - To create startup script we need to exit debian


9 - Add minidlna to chrooted services list

echo "" >>/opt/etc/chroot-services.list
echo "S98minidlna-debian" >>/opt/etc/chroot-services.list
chmod 755 /opt/etc/chroot-services.list

10 - For Optware only - create post-mount script (Entware will start automatically S99debian script)

nano /jffs/scripts/post-mount

Paste this lines

sleep 10
/opt/etc/init.d/S99debian start

Save with CTRL-O, press ENTER and exit nano with CTRL-X

Make script executable

chmod a+rx /jffs/scripts/post-mount

11 - Start minidlna from outside debian together with mounted external folder

debian restart

12 - Go to (this is the default router ip, modify to your router ip if you change it previously) and see how minidlna is creating db, press refresh on your browser for progress.

If all numbers are 0 (zero) after some time, you forget to set the right path to your media folder, read again point 4 from here

This is how it looks like on my Samsung TV with thumbnails and filmstrip enabled




If for some reason you don't like default penguin minidlna icon, I compiled a special version of minidlna where you can choose any icon as minidlna logo, thanks @R.L.Horn :)

1 - Enter chrooted debian with:

debian enter

2 - Stop minidlna

/etc/init.d/S98minidlna-debian stop

3 - Remove minidlna

dpkg -r minidlna
rm -r /opt/minidlna

4 - Download and install special version

wget -c -O /var/tmp/minidlna_1.1.4-298577-R.L.Horn_mipsel.deb
dpkg -i /var/tmp/minidlna_1.1.4-298577-R.L.Horn_mipsel.deb

5 - Open minidlna.conf

nano /etc/minidlna.conf

Paste after the last line

# PNG image to use for an icon, optionally followed by a hex background
# color

# Background color (hex rgb triplet) for PNG images converted to jpeg.
# Two colors indicate that a checkerboard background, in those colors,
# should be used.

Save with CTRL-O, press ENTER and exit nano with CTRL-X

Some explanations, for ex. put an icon on EXT_DIR in icons folder and name it myicon.png, or any other place, ex. inside debian etc folder, now icon path should look like this "icon=/etc/myicon.png,7f7f7f"

6 - Exit debian


7 - Restart services

debian restart

Now you have custom logo icon, see two different logos in my pics, one is volvo logo and another from my favorite football team:

User Review
5 (3 votes)