wTorrent is a convenient graphic web-muzzle to the popular console client
rTorrent .
It is convenient in that it is amazing (although it is expected from the console program) is not picky about hardware resources, is easy to configure and manage, and is supported by most trackers.
Here I will describe how to install an add-on above it to manage your torrents over the Internet.
')
This is especially true if the computer is connected to the network not directly, but through the home server, and the torrent client is installed there.
System requirements:
Console torrent client rTorrent, compiled with support for xmlrpc and scgi-management.
Web server with SCGI support (lighthttpd or apache).
PHP5 with PDO and XML-RPC support.
In my case, the Gentoo system was taken as the basis. For other distributions, the installation is somewhat different, but all the necessary components are in the repositories of most distributions, look for.
First, enable the USE flags:
net-p2p/rtorrent xmlrpc daemon
dev-lang/php pdo xmlrpc sqlite
Install the software.
emerge net-p2p/rtorrent dev-lang/php www-servers/apache www-apache/mod_scgi
The dependencies will install xmlrpc-c, scgid and libtorrent.
Configure rTorrent.
Create an rtorrent user to function as a daemon client:
addgroup rtorrent
adduser -d /PATH/TO/DOWNLOADS -m -p password -g rtorrent rtorrent
We edit /etc/conf.d/rtorrent, replacing $ USER with the name of our user.
Create a rtorrent configuration file and enter the necessary settings into it.
cd /path/to/downloads
echo "scgi_port = localhost:5000" >> .rtorrent.rc
chown rtorrent:rtorrent
Client setup is finished, run it with the /etc/init.d/rtorrent start command
Setting up a web server.
Let's edit /etc/conf.d/apache2, adding this to it (if there is already a line, add new parameters to the end):
APACHE2_OPTS="-D PHP5 -D SSL -D SCGI"
Let's put /etc/apache2/modules.d/20_mod_scgi.conf into a form (
removing my quotes, without them the parser eats up the code ):
"<"IfDefine SCGI">"
LoadModule scgi_module modules/mod_scgi.so
SCGIMount /RPC2 127.0.0.1:5000
"<"Location /RPC2">"
AuthName "Private Remote Procedure Call"
AuthType Basic
AuthBasicProvider file
AuthUserFile /path/to/webroot/htpasswd
Require user remotecall
"<"/Location">"
"<"/IfDefine">"
Create htpasswd:
htpasswd -c /path/to/webroot/htpasswd remotecall
WTorrent installation
Downloading the archive:
www.wtorrent-project.org/trac/changeset/latest/trunk/?old_path=%2F&format=zipUnpack.
Go to
servername / install.php and follow the tips listed there.
If everything is done correctly, we will see this interface :)
