More and more people are running home Linux servers.
The reason for this is home web-servers. development environments, mail servers, file servers, Print Servers etc..
Another good addition to the home server is centralised bittorent server. especially if there are more than one user.
What you need:
*
http://python.ca/scgi/ for Apache, Lighttpd should have this built-in.
*
http://xmlrpc-c.sourceforge.net/ 1.00 or later, 1.07 or later for 64bit integer support.
* rtorrent 0.7.5 or later.
* rtgui
http://code.google.com/p/rtgui/ prerequisites :
This tutorial assumes you already have a web-server setup with :
* Apache Webserver
* PHP5
* Python (installed by default in Ubuntu )
Install required libs :
sudo apt-get install subversion build-essential libtool automake1.9 openssl libcurl3 libcurl3-dev libsigc++-2.0-0c2a libsigc++-2.0-dev libncurses5 libncurses5-dev libxmlrpc-c3-dev libxmlrpc-c3 php5-xmlrpc libapache2-mod-scgi python-scgi
Configure libtorrent :
cd libtorrent
./autogen.sh
./configure
make
make install
Configure rtorrent with the --with-xmlrpc-c flag :
cd rtorrent
./autogen.sh
./configure --with-xmlrpc-c
make
make install
Add the following to :
httpd.conf: SCGIMount /RPC2 127.0.0.1:5000
rtorrent.rc: scgi_port = localhost:5000
Enable mod_scgi in apache :
sudo cp /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.load
Restart Apache :
sudo /etc/init.d/apache2 restart
ake rtorrent config file :
gedit ~/.rtorrent.rc
Then Paste the example config found here :
http://libtorrent.rakshasa.no/browser/trunk/rtorrent/doc/rtorrent.rc?rev...Edit according to your liking.
Run rtorrent :
rtorrent &
Run to test xmlrpc :
xmlrpc localhost get_upload_rate
Extract rtgui to /var/www/
Open
http://localhost/rtgui or
http://<server_ip>/rtgui you should now see the rtgui interface
enjoy.