rtgui is web interface for rtorrent - open source console client for bittorrent network. It allows to control application via web browser. It won't work out of the box, it need to be configured properly.
So, step one is install rtorrent and rtgui.
# apt get install rtorrent rtgui
Both apps should be installed with all other required packages.
Now we need to set up configuration.
rtorrent first.
I created following dirs and symbolic link:
$ mkdir /home/bagheera/download/rtorrent/download
$ mkdir /home/bagheera/download/rtorrent/session
# mkdir /usr/share/rtgui/www/watch
# ln -s /usr/share/rtgui/www/watch /home/bagheera/download/rtorrent/watch
Watch directory must have right to write access for other users.
# chmod 766 /usr/share/rtgui/www/watch
In .rtorrent.rc file we need to specify download, session and watch directories
directory = /home/bagheera/download/rtorrent/download
session = /home/bagheera/download/rtorrent/session
schedule = watch_directory,5,5,load_start=/home/bagheera/download/rtorrent/watch/*.torrent
and scgi port
scgi_port=127.0.0.1:5000
Now we can run rtorrent in screen
screen rtorrent
Next step, rtgui configuration.
/etc/rtgui/apache.conf:
Alias /rtgui /usr/share/rtgui/www
SCGIMount /RPC2 127.0.0.1:5000
<Directory /usr/share/rtgui/www>
Options +FollowSymLinks
AllowOverride None
Order allow,deny
allow from all
DirectoryIndex index.php
</Directory>
and two important lines in /etc/rtgui/config.php
// rtorrent 'watch' directory (used for upload torrent)
$watchdir="/usr/share/rtgui/www/watch/";
// Path to report disk usage
$downloaddir="/usr/share/rtgui/www/watch/";
Now we can run apache2
# /etc/init.d/apache2 start
rtgui should be available on http://localhost/rtgui
If You want newest version just download archive from http://code.google.com/p/rtgui/downloads/list and unpack it to /usr/share/rtgui/www, overwriting files.
Happy downloads :)