wTorrent - web-based bittorrent client for Linux \ BSD

    wTorrent is a convenient graphic web-muzzle to the popular rTorrent console client .

    It is convenient in that it is striking (although expected from the console program) not demanding on hardware resources, easy to configure and manage, and is supported by most trackers.

    Here I will describe how to install an add-on over it to manage your torrents via the Internet.

    This is especially true if the computer is not connected to the network 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 is taken as a basis. For other distributions, the installation is slightly different, but all the necessary components are in the repositories of most distributions, look.

    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

    Depending on the dependencies, xmlrpc-c, scgid, and libtorrent are installed.

    RTorrent setup.


    Let's create the rtorrent user for the client to function as a daemon: Edit /etc/conf.d/rtorrent, replacing $ USER with our user name. Create the rtorrent configuration file and enter the necessary settings into it. Client configuration is complete, run it with the command /etc/init.d/rtorrent start

    addgroup rtorrent
    adduser -d /PATH/TO/DOWNLOADS -m -p password -g rtorrent rtorrent






    cd /path/to/downloads
    echo "scgi_port = localhost:5000" >> .rtorrent.rc
    chown rtorrent:rtorrent




    Web server setup.


    We will edit /etc/conf.d/apache2, adding this there (if the line already exists, add new parameters to the end):

    APACHE2_OPTS="-D PHP5 -D SSL -D SCGI"

    We will bring /etc/apache2/modules.d/20_mod_scgi.conf to the form ( removing my quotes, without them the parser eats code ): Create htpasswd:

    "<"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">"




    htpasswd -c /path/to/webroot/htpasswd remotecall

    Install wTorrent


    Download the archive: www.wtorrent-project.org/trac/changeset/latest/trunk/?old_path=%2F&format=zip

    Unpack.

    We go to servername / install.php and follow the advice given there.

    If everything is done correctly, we will see such an interface :)

    image

    Also popular now: