Here is How to install full blown Debian Stable distro via chroot to router without any firmware modifications. You may run any chosen Debian services without running whole Debian, this is a minimal possible overhead of such "virtualization". You may take a look at my script to see details… or may not, because I've already done it all for you in one archive. All you need is to unpack my archive to some folder on USB drive, it takes ~170MB:
Before dive into Debian please do:
How to enter to Debian distro?
Please, type:
How to leave Debian?
Just type:
So, how to use it?
It's depends of your needs. This is a full Debian distro with it's ~30000 packages. For example, you may install transmission. Enter Debian and type:
Yes, transmission is installed and running. And this is only running process from Debian chroot'ed environment, as you see, no other unnecessary Debian services is running.
Feel free to experiment with Debian as you wish. As long as it's "chroot'ed", no harm you may do to firmware or USB files outside of this "sandbox". If you'll break this toy-Debian, you can always unpack fresh copy from my archive and start play again.
PS I've wrote a S99debian script to start\stop chroot'ed services with router boot. It's unslung-style, so place it to /opt/etc/init.d and Entware/Optware will use it as the other services. Don't forget to edit path to you Debian inside of script.
Code:
cd <folder>
wget http://files.ryzhov-al.ru/Routers/chroot-debian/debian-stable-prepared.tgz
tar -xvzf ./debian-stable-prepared.tgz
rm ./debian-stable-prepared.tgz
Before dive into Debian please do:
Code:
mount -o bind /dev/ <folder>/debian/dev/
mount -o bind /proc/ <folder>/debian/proc/
mount -o bind /sys/ <folder>/debian/sys/
How to enter to Debian distro?
Please, type:
Code:
chroot <folder>/debian /bin/bash
How to leave Debian?
Just type:
Code:
exit
So, how to use it?
It's depends of your needs. This is a full Debian distro with it's ~30000 packages. For example, you may install transmission. Enter Debian and type:
Code:
apt-get install transmission-daemon
Feel free to experiment with Debian as you wish. As long as it's "chroot'ed", no harm you may do to firmware or USB files outside of this "sandbox". If you'll break this toy-Debian, you can always unpack fresh copy from my archive and start play again.
PS I've wrote a S99debian script to start\stop chroot'ed services with router boot. It's unslung-style, so place it to /opt/etc/init.d and Entware/Optware will use it as the other services. Don't forget to edit path to you Debian inside of script.
Last edited: