This guide will tell you how to install w3btorrent 0.1.3. It is time consuming since the compiling of the various components takes a lot of time. There may be other ways of doing it but this worked for me. Most of the programs discribed here can be downloaded via optware but I could not get it to compile ctorrent. Aclocal-1.9 was missing. Installing 1.10 via optware had no effect. So I went back to the original guide I used to get it working before I upgraded the firmware => http://mybookworld.wikidot.com/forum/t-25186/getting-a-working-torrent-program-on-mybook-world#post-66108
I did add a few modifications.
So here goes!
What to do first:
- Enable SSH on your My Book => http://mybookworld.wikidot.com/first-steps-with-mbwe
- Install Optware => http://mybookworld.wikidot.com/optware
- Set up a PHP enabled webserver (secure or public is up to you. w3btorrent has it's own login so I made mine public) => http://mybookworld.wikidot.com/web-server
Now to get down and dirty!
1) Login via SSH and become root by typing:
su
2) Download and install m4-1.4.10 with the following commands:
cd /tmp
wget http://ftp.gnu.org/gnu/m4/m4-1.4.10.tar.gz
tar –xvfz m4-1.4.10.tar.gz
cd m4-1.4.10
./configure
make
make install
Leave the folder by typing:
cd ..
3) Download autoconf 2.61 by doing the following:
wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.61.tar.gz
tar –xvfz autoconf-2.62.tar.gz
cd autoconf-2.62
./configure
make
make install
Leave the folder by typing:
cd ..
4) Download and install automake 1.9.1:
wget http://ftp.gnu.org/gnu/automake/automake-1.9.1.tar.gz
tar –xvfz automake-1.9.1
cd automake-1.9.1
./configure
make
make install
Leave the folder by typing:
cd ..
5) Install libxml (this one takes ages!)
wget http://ftp.gnome.org/pub/gnome/sources/libxml2/2.6/libxml2-2.6.27.tar.gz
tar –xvfz libxml2-2.6.27.tar.gz
cd libxml2-2.6.27
./configure
make
make install
cp /usr/local/lib/libxml2.so.2 /lib
leave the folder by typing
cd ..
6) Now you need to enable shell commands from the http server:
Add line following line in /etc/lighttpd/lighttpd.conf using your favorite text editor:
var.a=1
I put it in the first line
After you make these changes, you need to restart the Lighttpd and reboot the my book. Restarting Lighttpd is a good idea to see if it fails. You can then find out what went wrong and correct it:
/etc/init.d/lighthttpd.sh restart
reboot
NOW YOU ARE READY TO INSTALL w3btorrent!
7) Log back in via SSH after the reboot is complete and become root:
su
Go to your folder that you have selected to serve your webpages. In my case this is the one described in the webserver tutorial.
Create a folder there for w3btorrent and prepare it. Then download the installation php file and install w3btorrent.
cd /shares/internal/PUBLIC/WWW/Public
mkdir w3btorrent
chmod 777 w3btorrent
cd w3btorrent
wget http://w3btorrent.thewulong.com/install-old.php
Now visit http://<IP-OF-YOUR-MYBOOK>/w3btorrent/install-old.php and follow the instructions on the screen.
That's it! It's installed!
If, like me, your router has DynDNS installed you could set up a DynDNS domain and have access to your w3btorrent from anywhere via http://<dyndns.url>/w3btorrent
There are a fair few bugs in this release of w3btorrent. Most noticible is the torrent size changing to a huge size as soon as you start downloading but it works just fine in downloading it!
Enjoy!