TeHashX
Very Senior Member
[TUTORIAL] Minidlna v1.1.3 through debian-entware-mipsel
New site with updated guide
Updated 1.1.4 version here
OPTWARE mipsel version here http://forums.smallnetbuilder.com/showthread.php?p=110071#post110071
OPTWARE ARM version here http://forums.smallnetbuilder.com/showthread.php?t=16147
Many users complains about media server issues in this forum and by pm (until my inbox was full ) so I decided to share with you a piece of my work, it wasn't easy for me because I'm not a developer but I use "search" function a lot.
I setup chrooted debian from here, thanks @ryzhov_al and @RMerlin for all the work.
It's only for mipsel devices, like RT-N16, RT-N66U/R, RT-AC66U/R
Advantages: easy to update without waiting for asus, easy to apply patches, very stable with zero crashes at least for me on RT-AC66U, I enabled movie thumbnails with filmstrip (will take a little bit longer to scan db) and bookmarks for resuming videos on samsung E series.
Let's start
1 - Turn off Media server from router ui, insert an usb drive in to the router, should be formatted as ext2 or ext3, if your drive has a label, you have to replace sda1 with your label in all instances in this guide
2 - Setup entware from this guide
3 - Open terminal and input the next command:
4 - Download prepared debian with all necesary libs and decompress
5 - Download start-stop script, in this script is a path EXT_DIR to your media folder witch will be mounted in debian as /mnt, mine is /mnt/sda1/Media and if your disk has a label change sda1 from CHROOT_DIR with your disk label, modify the script to match your settings with vi or nano editor, use this command nano /opt/etc/init.d/S99debian
6 - Download services-list that will run in chrooted debian, for now is only minidlna but if you want to install another packages in debian like transmission-daemon, you need to add transmission start-stop script name, ex. S50transmission
7 - Reboot router
8 - Go to 192.168.1.1:8200 (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 5 carefully
9 - If you want to enter chrooted debian to install other packages or to modify some options, use this commands:
To exit, just type
New site with updated guide
Updated 1.1.4 version here
OPTWARE mipsel version here http://forums.smallnetbuilder.com/showthread.php?p=110071#post110071
OPTWARE ARM version here http://forums.smallnetbuilder.com/showthread.php?t=16147
Many users complains about media server issues in this forum and by pm (until my inbox was full ) so I decided to share with you a piece of my work, it wasn't easy for me because I'm not a developer but I use "search" function a lot.
I setup chrooted debian from here, thanks @ryzhov_al and @RMerlin for all the work.
It's only for mipsel devices, like RT-N16, RT-N66U/R, RT-AC66U/R
Advantages: easy to update without waiting for asus, easy to apply patches, very stable with zero crashes at least for me on RT-AC66U, I enabled movie thumbnails with filmstrip (will take a little bit longer to scan db) and bookmarks for resuming videos on samsung E series.
Let's start
1 - Turn off Media server from router ui, insert an usb drive in to the router, should be formatted as ext2 or ext3, if your drive has a label, you have to replace sda1 with your label in all instances in this guide
2 - Setup entware from this guide
3 - Open terminal and input the next command:
Code:
cd /mnt/[COLOR="Red"][B]sda1[/B][/COLOR]/
Code:
opkg install wget
/opt/bin/wget -c -O debian-minidlna-1.1.3-2.tgz http://goo.gl/RM1YaV --no-check-certificate
tar -xvzf ./debian-minidlna-1.1.3-2.tgz
Code:
/opt/bin/wget -c -O /opt/etc/init.d/S99debian http://goo.gl/F4OqIq --no-check-certificate
chmod a+rx /opt/etc/init.d/S99debian
opkg install nano
Code:
/opt/bin/wget -c -O /opt/etc/chroot-services.list http://goo.gl/oaH4ev --no-check-certificate
chmod a+rx /opt/etc/chroot-services.list
Code:
reboot
If all numbers are 0 (zero) after some time, you forget to set the right path to your media folder, read again point 5 carefully
9 - If you want to enter chrooted debian to install other packages or to modify some options, use this commands:
Code:
mount -o bind /dev/ /mnt/[COLOR="Red"]sda1[/COLOR]/debian/dev/
mount -o bind /proc/ /mnt/[COLOR="red"]sda1[/COLOR]/debian/proc/
mount -o bind /sys/ /mnt/[COLOR="red"]sda1[/COLOR]/debian/sys/
chroot /mnt/[COLOR="red"]sda1[/COLOR]/debian /bin/bash
Code:
exit
Last edited: