TeHashX
Very Senior Member
New site with updated guide
v1.1.4 here
ENTWARE version here http://forums.smallnetbuilder.com/showthread.php?t=14573
OPTWARE ARM version here http://forums.smallnetbuilder.com/showthread.php?t=16147
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 - Install Asus Download Master to activate optware environment, uninstall or disable after if you don't need it, if you need a better download manager use transmission instead
3 - Enable jffs partition (skip to point 5 if was previously enabled)
4 - Reboot router
5 - Open terminal and input the next commands:
6 - Download prepared debian with all necesary libs and decompress
7 - 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
8 - 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
9 - Now create this two scripts to start-stop debian together with all other services
10 - Reboot router
11 - 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 7 carefully
If you want to enter chrooted debian to install other packages or to modify some options, use this commands:
To exit, just type
v1.1.4 here
ENTWARE version here http://forums.smallnetbuilder.com/showthread.php?t=14573
OPTWARE ARM version here http://forums.smallnetbuilder.com/showthread.php?t=16147
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 - Install Asus Download Master to activate optware environment, uninstall or disable after if you don't need it, if you need a better download manager use transmission instead
3 - Enable jffs partition (skip to point 5 if was previously enabled)
4 - Reboot router
5 - Open terminal and input the next commands:
Code:
ipkg update
ipkg upgrade
ipkg install findutils nano wget-ssl
Code:
cd /mnt/[COLOR="Red"][B]sda1[/B][/COLOR]/
Code:
/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
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:
echo "#!/bin/sh" > /jffs/scripts/services-start
echo "" >> /jffs/scripts/services-start
echo "sleep 10" >> /jffs/scripts/services-start
echo "/opt/etc/init.d/S99debian start" >> /jffs/scripts/services-start
chmod a+rx /jffs/scripts/services-start
Code:
echo "#!/bin/sh" > /jffs/scripts/services-stop
echo "" >> /jffs/scripts/services-stop
echo "/opt/etc/init.d/S99debian stop" >> /jffs/scripts/services-stop
chmod a+rx /jffs/scripts/services-stop
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 7 carefully
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: