Sep 30

How to Install and Configure: ruTorrent, rTorrent, Libtorrent, XMLRPC, Screen (Debian 7 Wheezy)

Add your username to /etc/sudoers.

su

root password.

 nano /etc/sudoers

Example:

john         ALL=(ALL) ALL

 

1. Create new user “rtorrent”.

sudo adduser --home /opt/rtorrent rtorrent

 

2. Update Everything and install some needed dependencies.

 

sudo apt-get update
sudo apt-get upgrade

sudo apt-get install subversion build-essential automake libtool libcppunit-dev libcurl3-dev
sudo apt-get install libsigc++-2.0-dev libcppunit-dev unzip unrar-free curl libncurses-dev 
sudo apt-get install apache2 apache2-utils php5 php5-cli php5-curl php-xml-rss php5-xmlrpc
sudo apt-get install php5-sqlite sqlite libapache2-mod-php5 libapache2-mod-xsendfile

 

3. Enable the SCGI module.

sudo apt-get install libapache2-mod-scgi
sudo ln -s /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.load
sudo /etc/init.d/apache2 restart

 

4. Install XMLRPC.

cd $HOME
sudo mkdir install
cd install
sudo svn checkout http://svn.code.sf.net/p/xmlrpc-c/code/stable xmlrpc-c
cd xmlrpc-c
sudo ./configure --disable-cplusplus
sudo make
sudo make install

 

5. Install rTorrent.

5.1. Install Libtorrent.
cd ..
sudo wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.13.4.tar.gz
sudo tar xvf libtorrent-0.13.4.tar.gz
cd libtorrent-0.13.4
sudo ./autogen.sh
sudo ./configure
sudo make
sudo make install

 

5.2. Install rTorrent.
cd ..
sudo wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.9.4.tar.gz
sudo tar xvf rtorrent-0.9.4.tar.gz
cd rtorrent-0.9.4
sudo ./autogen.sh
sudo ./configure --with-xmlrpc-c
sudo make
sudo make install
sudo ldconfig

 

6. Make Directories these are needed for rTorrent to function.

sudo mkdir -p /opt/rtorrent/{session,watch,download}
sudo chmod 777 -R /opt/rtorrent/{session,watch,download}
sudo chown rtorrent:rtorrent -R /opt/rtorrent/{session,watch,download}

 

7. Edit the .rtorrent.rc file and put it in the home directory of the user that will run rTorrent.

sudo wget https://raw.githubusercontent.com/rakshasa/rtorrent/master/doc/rtorrent.rc -O /opt/rtorrent/.rtorrent.rc
sudo nano /opt/rtorrent/.rtorrent.rc

 

Edit: directory, session, watch_directory, port_range and add scgi port: scgi_port.

directory = /opt/rtorrent/download
session = /opt/rtorrent/session
#schedule = watch_directory,5,5,load_start=/opt/rtorrent/watch/*.torrent
port_range = 6882-6892
upload_rate = 0
download_rate = 0
use_udp_trackers = yes
max_uploads = 200
min_peers=10
max_peers=400
check_hash = no

# DHT
peer_exchange = yes
dht_port = 1026
dht = auto

# Encryption
encryption = allow_incoming,try_outgoing,require,require_RC4,prefer_plaintext,enable_retry

# SCGI
scgi_port = localhost:5000

 


 

sudo chown rtorrent:rtorrent /opt/rtorrent/.rtorrent.rc

 

8. Install ruTorrent.

8.1. ruTorrent via GIT.
sudo apt-get install git
sudo git clone https://github.com/Novik/ruTorrent.git /var/www/rutorrent/
sudo chown -R www-data:www-data /var/www/rutorrent

 

OR

8.2. ruTorrent ver. 3.7.
cd ..
sudo wget https://bintray.com/artifact/download/novik65/generic/ruTorrent-3.7.zip
sudo unzip ruTorrent-3.7.zip
sudo mv ruTorrent-master /var/www/rutorrent
sudo chown -R www-data:www-data /var/www/rutorrent

  OR

8.3. ruTorrent ver. 3.6.
cd ..
sudo wget http://dl.bintray.com/novik65/generic/rutorrent-3.6.tar.gz
sudo tar xvf rutorrent-3.6.tar.gz
sudo mv rutorrent /var/www
sudo wget http://dl.bintray.com/novik65/generic/plugins-3.6.tar.gz
sudo tar xvf plugins-3.6.tar.gz
sudo mv plugins /var/www/rutorrent
sudo chown -R www-data:www-data /var/www/rutorrent

 

OR

8.4. ruTorrent ver. 3.5.
cd ..
sudo wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/rutorrent/rutorrent-3.5.tar.gz
sudo tar xvf rutorrent-3.5.tar.gz
sudo mv rutorrent /var/www
sudo wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/rutorrent/plugins-3.5.tar.gz
sudo tar xvf plugins-3.5.tar.gz
sudo mv plugins /var/www/rutorrent
sudo rm -rf /var/www/rutorrent/plugins/darkpal
sudo chown -R www-data:www-data /var/www/rutorrent

 

8.5. ruTorrent mobile.

Acces to ruTorrent, rTorrent from Apple smartphones and older smartphones.
http://terminal28.com/access-to-rutorrent-rtorrent-from-iphone-and-older-mobile-phones/

 

8.6. Install mediainfo.
sudo apt-get install mediainfo

 

8.7. Install GeoIP i ffmpeg.
sudo wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
sudo gunzip GeoLiteCity.dat.gz
sudo mkdir -v /usr/share/GeoIP
sudo mv -v GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat
sudo apt-get install php5-geoip libav-tools
sudo ln -s /usr/bin/avconv /usr/bin/ffmpeg

 

Package ffmpeg is deprecated.

sudo apt-get install ffmpeg

 

9. Create the .htpasswd file.

cd /var/www/rutorrent
sudo htpasswd -c /var/www/rutorrent/.htpasswd username

 

you will be asked for a password twice.

Response:

New password:
Re-type new password:
Adding password for user username

 

Edit file /var/www/rutorrent/.htaccess and add location secured by password.

sudo nano /var/www/rutorrent/.htaccess
...
AuthUserFile /var/www/rutorrent/.htpasswd
AuthName "ruTorrent_login"
AuthType Basic
require valid-user
...

 

Access your server

Edit /etc/apache2/sites-available/default and add infoformation about files and locations secured by password apache2.

sudo nano /etc/apache2/sites-available/default

 

<VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>
</VirtualHost>

sudo nano /etc/apache2/sites-available/rutorrent

 

 

# ruTorrent
#===========================================================================

<VirtualHost *:80>
        DocumentRoot /var/www/rutorrent/
        ErrorLog /var/log/apache2/error.log
        CustomLog /var/log/apache2/access.log combined
</VirtualHost>

#===========================================================================

 

 

sudo ln -s /etc/apache2/sites-available/rutorrent /etc/apache2/sites-enabled/rutorrent

 

Add server name to configfile eg: localhost (at the bottom).

sudo nano /etc/apache2/apache2.conf

 

ServerName localhost

 

Enable modules auth_digest and authn_file:

sudo a2enmod auth_digest
sudo a2enmod authn_file

 

Restart apache2:

sudo /etc/init.d/apache2 restart

 

10. Secure SCGI (/RPC2).

Create folders: passwords-available, passwords-enabled in /etc/apache2.

sudo mkdir -p /etc/apache2/passwords-{available,enabled}

 

Go to /etc/apache2/passwords-available and make a new password for SCGI.

cd /etc/apache2/passwords-available
sudo htpasswd -c rtorrentscgi username

 

Link folder passwords-available to passwords-enabled.

cd ../passwords-enabled
sudo ln -s ../passwords-available/rtorrentscgi

 

Edit file /etc/apache2/sites-available/rtorrentscgi and add location of SCGI secured by password.

sudo nano /etc/apache2/sites-available/rtorrentscgi

#rTorrent SCGI Password Location
#===========================================================================
        <LocationMatch "/RPC2">
                AuthType        Basic
                AuthName        "rtorrentscgi"
                AuthUserFile    /etc/apache2/passwords-enabled/rtorrentscgi
                Require         valid-user
                BrowserMatch    "MSIE"  AuthDigestEnableQueryStringHack=On
                Order           allow,deny
                Allow From      all
        </LocationMatch>
#===========================================================================

# SCGI PORT
#===========================================================================

#LoadModule scgi_module /usr/lib/apache2/modules/mod_scgi.so
SCGIMount /RPC2 127.0.0.1:5000

#===========================================================================

 

sudo ln -s /etc/apache2/sites-available/rtorrentscgi /etc/apache2/sites-enabled/rtorrentscgi

 

Restart apache2.

sudo /etc/init.d/apache2 restart

 

11. Install Screen.

sudo apt-get install screen

 

Start rTorrent in a detached shell using screen.

screen -fa -d -m rtorrent

 

Testing rTorrent:

sudo netstat -npl | grep rtorrent

 

Response..

tcp    0  0 127.0.0.1:5000      0.0.0.0:*           LISTEN  6642/rtorrent   
tcp    0  0 0.0.0.0:6892        0.0.0.0:*           LISTEN  6642/rtorrent

 

Autostart rTorrent.

Download script and save it to /etc/init.d/.

sudo wget http://terminal28.com/wp-content/uploads/2014/07/rtorrent -O /etc/init.d/rtorrent

 

Edit script and chanage option user to rtorrent.

sudo nano /etc/init.d/rtorrent

 

...
user="rtorrent"
...

 

 

sudo chmod +x /etc/init.d/rtorrent
sudo update-rc.d rtorrent defaults
sudo /etc/init.d/rtorrent start

 

From now rTorrent will start with system automatically in a detached shell using screen.

Commands:

sudo /etc/init.d/rtorrent start       - start rtorrent
sudo /etc/init.d/rtorrent stop        - stop rtorrent
sudo /etc/init.d/rtorrent restart     - restart rtorrent

 

12. Access to your web front-end for rTorrent.

http://address_IP/rutorrent

or

http://domain.com/rutorrent

 

You should be asked for username and password to access website

 

Links:
http://libtorrent.rakshasa.no/
http://code.google.com/p/rutorrent/
http://code.google.com/p/avalanche-rt/

 

rutorrent

61 comments

Skip to comment form

    • negoro on 30 October 2013 at 08:10
    • Reply

    Thank you, website is great!

    • andy on 2 November 2013 at 20:15
    • Reply

    Edit /etc/apache2/sites-available/default and add infoformation about files and locations secured by password apache2

    Syntax error on line 54 of /etc/apache2/sites-enabled/000-default:
    Invalid command ‘sudo’, perhaps misspelled or defined by a module not included in the server configuration
    Action ‘configtest’ failed.
    The Apache error log may have more information.
    failed!

    1. Read carefully before you copy and paste…
      There is some commands between # Location .htpasswd for rutorrent, # ruTorrent and # SCGI MOD ..
      sudo nano /etc/apache2/sites-available/rutorrent,
      ln -s /etc/apache2/sites-available/rutorrent /etc/apache2/sites-enabled/rutorrent,
      sudo nano /etc/apache2/httpd.conf

    • andy on 2 November 2013 at 22:34
    • Reply

    it works.

    2nd prob.

    Edit file /etc/apache2/sites-available/default and add location secured by password.

    AuthType Basic
    AuthName “rtorrentscgi”
    AuthUserFile /etc/apache2/passwords-enabled/rtorrentscgi
    Require valid-user
    BrowserMatch “MSIE” AuthDigestEnableQueryStringHack=On
    Order allow,deny
    Allow From all

    Edit file?

    1. Edit file /etc/apache2/sites-available/default and add location secured by password. – sorry, my mistake, its fixed – command added.

    • andy on 2 November 2013 at 23:25
    • Reply

    can you please
    -Adding your username

    explain more precisely

    1. Sudo is a program that allows users to run programs with the security privileges of another user.
      This example shows how to add a user to sudoer configfile and work with all e.g. root privileges.
      its more safety to use sudo with privileges of another user (root) than log to system as root – administrator.
      You have to add your real system username – for example andy.

      andy ALL=(ALL) ALL

    • andy on 3 November 2013 at 11:25
    • Reply

    3rd:

    point5:

    –>sudo chown andy:andy -R /home/andy/rtorrent
    chown: invalid user: `andy:andy’

    why?

    1. User andy does not exist on your system.
      You have to use your real system user.
      And home directory will be /home/your real system user/
      then sudo chown your real system user:your real system user -R /home/your real system user/rtorrent

      use this command to check the andy user exists:
      sudo cat /etc/passwd | cut -d”:” -f1 | grep andy

      response should look like this:
      andy

      or will be empty/none – mean andy dose not exist.

    • Dante on 21 December 2013 at 21:58
    • Reply

    If you could please update the urls for rutorrent 3.6 and plugins that would be great.

    And “ln -s /etc/apache2/sites-available/rutorrent /etc/apache2/sites-enabled/rutorrent” needs a “sudo” in front of it.

    Also possibly combine three comands with “sudo mkdir /home/username/rtorrent/{session,watch,download}”

    Thanks.

    • Dante on 21 December 2013 at 22:07
    • Reply

    Actually you could replace all four commands with:

    “mkdir -p /home/$USER/rtorrent/{download,session,watch}”

    and you could replace most instances of “username” with “$USER” in the rest of your commands.

    • Jefferson on 5 June 2014 at 21:51
    • Reply

    Well…the guide works right up until

    wget http://randystech.com/downloads/default.rtorrent.rc

    I had to google around for that one and for this one

    wget http://libtorrent.rakshasa.no/attachment/wiki/RTorrentCommonTasks/rtorrentInit.sh

    Also there is a newer lib and rtorrent but it was no big deal to download and compile those 🙂

    1. Thx for info. Gonna fix links soon.

    • Kleedrac on 9 July 2014 at 02:18
    • Reply

    Thanks for the guide but I’m still having issues with trying to bring up settings and getting “Bad response from server: (500 [error,getsettings]) Warning: XMLRPC call is failed.” Any ideas?

    1. check logs first..
      I think there is problem with rtorrent init script, here is mine old one:
      http://terminal28.com/wp-content/uploads/2014/07/rtorrent

      wget http://terminal28.com/wp-content/uploads/2014/07/rtorrent -O /etc/init.d/rtorrent

      change user in script,

      sudo chmod +x /etc/init.d/rtorrent
      sudo update-rc.d rtorrent defaults
      sudo /etc/init.d/rtorrent start

      then try start rtorrent again

    • Arthur on 12 September 2014 at 05:48
    • Reply

    Hi From Uruguay (South America) Thanks for your tutorial i can configure a 98% lol
    i have a little problem with the “Autostart rTorrent”
    when i write sudo /etc/init.d/rtorrent start
    i get this message
    cat: /home/pi/.rtorre: No such file or directory
    cannot find readable config /home/pi/.rtorre. check that it is there and permissions are appropriate

    and i have the rtorrent.rc in the /home/pi

    1. check directory /home/pi/.rtorre that is correct then change permission

    • Morph on 14 September 2014 at 01:31
    • Reply

    Thank you, but i can’t to compile rtorrent. When I send “sudo ./configure –with-xmlrpc-c” the response is

    checking for XMLRPC-C… failed
    configure: error: Could not compile XMLRPC-C test.

    I compiled XMLRPC-C without errors. Can you help me please?

    1. You have to install 3. Install XMLRPC first then compile rTorrent with xmlrpc

        • Morph on 14 September 2014 at 21:38
        • Reply

        Yes, I compiled XMLRPC first. I followed the steps in the same order that the tutorial

        1. what os have you got?
          if you followed step by step the tutorial then you shouldn’t have any problems at all..
          try to install Libtorrent 13.3 and rTorrent 9.3

            • Morph on 16 September 2014 at 21:43

            I have the same problem when I compile 13.4/9.4, 13.3/9.3 and 13.2/9.2

            I use the image of http://www.raspberrypi.org/downloads/ (Raspbian Debian Wheezy, September 2013) and I follow this tutorial before change anything

            Thank you for your help!

    • MK on 19 September 2014 at 12:14
    • Reply

    Hi there,

    I am currently stuck after typing this command under Step 9:
    sudo a2ensite rtorrentscgi

    I get this error:
    ERROR: Site rtorrentscgi does not exist!

    Somewhere in one of my configuration files I suspect I have imput the incorrect “sitename” but cant figure out where… any help would be appreciated.

    1. Make sure you have two folders:
      /etc/apache2/passwords-available
      /etc/apache2/passwords-enabled

      In folder passwords-available is a file rtorrentscgi which is linked to @rtorrentscgi in passwords-enabled.

      Make sure you have another file rtorrentscgi in folder /etc/apache2/sites-available/
      This is configuration for SCGI password.

      Revise them all then sudo a2ensite rtorrentscgi,

      Don’t forget about:
      sudo a2enmod auth_digest
      sudo a2enmod authn_file

        • MK on 20 September 2014 at 07:32
        • Reply

        [quote]Make sure you have two folders:
        /etc/apache2/passwords-available
        /etc/apache2/passwords-enabled

        In folder passwords-available is a file rtorrentscgi which is linked to @rtorrentscgi in passwords-enabled.[/quote]

        Should I be able to get into the /passwords-available folder to see rtorrentscgi? The folder is showing up blue and when I try to access it with cd /passwords-available (once in /etc/apache2) I get “cd: /passwords-available: No such file or directory”

        [url]http://puu.sh/bGgwd/ba0740ca6f.png[/url]

        This is the same for /sites-avaiable

        [code]sudo a2enmod auth_digest[/code] and [code]sudo a2enmod authn_file[/code] both report their modules to be enabled.

        Thanks for the quick reply and sorry if this is just me not following instructions.

        1. You have to be root or superuser or user with root privileges to get to the folders /etc/apache2/passwords-available and /etc/apache2/passwords-enabled.
          Type su in console then password for root or install sudo (apt-get install sudo) then configure sudo (nano /etc/sudoers and add: yourusername ALL=(ALL) ALL on the bottom of configfile)

            • MK on 20 September 2014 at 11:29

            Ok, so I added mk ALL=(ALL) ALL to the end of /etc/sudoers and tried to access the folders, still got them displaying blue though:
            http://puu.sh/bGpXt/77b06d925b.png

            Next I tried su and even that still displays the folders in blue…
            http://puu.sh/bGpZU/27d1ca9a49.png

            Possibly something wrong with my installation?

            P.s. sorry for the wrong formatting in previous message, this forum doesn’t support BBcode?

            • sethuper on 20 September 2014 at 12:46
              Author

            Try: sudo chmod 777 /etc/apache2/password-enabled -R and sudo chmod 777 /etc/apache2/password-available -R and sudo chmod 777 /etc/apache2/site-available/rtorrentscgi

            • MK on 20 September 2014 at 13:25

            Ok, changed them successfully with sudo chmod 777, but still not accessible even though its a directory:
            http://puu.sh/bGvrq/9aa6334f47.png

            Same for root, but it doesn’t even detect that its a directory, still says file not found:
            http://puu.sh/bGvyg/3ea3240980.png

            • sethuper on 20 September 2014 at 13:54
              Author

            Do this way:
            remove folders:

            sudo rm -fr /etc/apache2/passwords-available
            sudo rm -fr /etc/apache2/passwords-enabled

            then
            create folders:

            sudo mkdir /etc/apache2/passwords-available
            sudo mkdir /etc/apache2/passwords-enabled

            then

            cd /etc/apache2/passwords-available
            sudo htpasswd -c rtorrentscgi "username"

            then

            sudo ln -s /etc/apache2/passwords-available/rtorrentscgi /etc/apache2/passwords-enabled/rtorrentscgi

            then

            sudo nano /etc/apache2/sites-available/rtorrentscgi

            #Rtorrent SCGI

            AuthType Basic
            AuthName "rtorrentscgi"
            AuthUserFile /etc/apache2/passwords-enabled/rtorrentscgi
            Require valid-user
            BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On
            Order allow,deny
            Allow From all

            then

            sudo a2ensite rtorrentscgi
            sudo /etc/init.d/apache2 restart

            • sethuper on 20 September 2014 at 22:02
              Author

            I have checked whole tutorial under Ubuntu Server 14.04.1 and some configurations of modules are broken in the Apache2. I don’t have time to solve it.
            Consider installing Debian, it is much stable than Ubuntu and it is tested.

            • MK on 21 September 2014 at 04:53

            Thank you so much for taking the time to help me with all of that. As im sure you predicted, it got the same “ERROR: Site rtorrentscgi does not exist!” again after typing “sudo a2ensite rtorrentscgi”

            I guess this also applies to Ubuntu 13.10 as thats what Im using at the moment. Besides switching to Debian, would it be easy enough to switch to Nginx instead of Apache2? and use majority of this guide?

            Many thanks once again for your efforts and time.

            • sethuper on 21 September 2014 at 19:53
              Author

            I have revised whole tutorial, I have made some changes and tested it under Debian 7.6, Apache/2.2.22, libtorrent 13.4, rtorrent 9.4 xmlrpc-stable.
            The tutorial can be used to configure whole installation with nginx, lighthttpd, etc.. all you need to do is configure your own web-server.

            • MK on 25 September 2014 at 13:23

            Oh thats awesome! Glad to hear and thank you once again.Will give it another go.

            P.s In layman’s terms can I stick with Ubuntu? Or should I do I have to go Debian?

            • sethuper on 25 September 2014 at 20:15
              Author

            Yeah, it should work as well. I will test it under Ubuntu this weekend anyway..


            I have tested whole tutorial under Ubuntu 14.04-1.
            Things you have to change:

            Edit configfile:

            sudo nano /etc/apache2/sites-available/000-default.conf

            VirtualHost *:80
            ServerAdmin webmaster@localhost
            DocumentRoot /var/www/
            Directory /
            Options FollowSymLinks
            AllowOverride None
            /Directory
            Directory /var/www/
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
            /Directory
            ErrorLog ${APACHE_LOG_DIR}/error.log
            CustomLog ${APACHE_LOG_DIR}/access.log combined
            /VirtualHost


            and

            Install ffmpeg from source or make a symlink to avconv
            Avconv is a newer version of ffmpeg (?).

            sudo ln -s /usr/bin/avconv /usr/bin/ffmpeg

    • beezjeh on 11 October 2014 at 18:27
    • Reply

    I got the installation working at the very start but apparently im unable to connect to the webinterface after rebooting my VPS
    Im getting the following error:
    [11.10.2014 19:24:57] WebUI started.
    [11.10.2014 19:24:57] No connection to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file.

    It’s weird that it worked fine before and stopped working right after the reboot. rTorrent started up as screen at the boot

    Any solutions?

    1. 1st solution:

      Remove this file:
      rm -fr /opt/rtorrent/session/rtorrent.lock

      and run rtorrent:
      sudo /etc/init.d/rtorrent start

        • beezjeh on 12 October 2014 at 14:52
        • Reply

        That did work, thanks for the fix!

          • beezjeh on 12 October 2014 at 16:51
          • Reply

          Just an update.
          Wouldn’t it be possible to let the start script thats in /etc/init.d/ autodetect the rtorrent.lock file and remove it as we have to do it manually now to make the webinterface work.

            • sethuper on 12 October 2014 at 17:18
              Author

            Your linux has problem to close rtorrent for some reason. You need to check system logs.

            Script /etc/init.d/rtorrent is used to start, stop, restart rtorrent only.
            RUtorrent webinterface and rtorrent is connected to SCGI.. if rtorrent is not working, rutorrent will not be able to connect to rtorrent.

    • Rusty on 19 October 2014 at 07:33
    • Reply

    cannot find readable config /home/rusty/.rtorrent.rc. check that it is there and permissions are appropriate

    Getting this error, tried changing permissions, made sure file was there. Still no go.

    Also tried to access it from the IP address in a browser and I just get a directory list, no UI.

    Thanks for the guide and all the help.

    1. Probably you are trying to run rtorrent as user rtorrent, but rtorrent doesn’t have permission to read files (/home/rusty/.rtorrent.rc) from your home (rusty) directory.
      Did you add rusty as user to rtorrent script /etc/init.d/rtorrent?

      BTW, you didn’t do whole tutorial so rtorrent does not work.

        • Rusty on 19 October 2014 at 22:45
        • Reply

        I did add my username to the /etc/init.d/rtorrent

        I did follow the whole tutorial too, guess im just gonna have to start over unless you have any tips. I cannot figure out a solution, been 2 days now.

    • Pude on 31 October 2014 at 11:32
    • Reply

    Hey, nice tutorial.
    Buy my rutorrent is accessible via httpS without need to login. Any ideas how to fix this?

    1. … do again 9. Create the .htpasswd file …

    • bitcasual on 3 February 2015 at 02:26
    • Reply

    Followed your guide to the letter and got no errors during setup, but I get this when I’m trying to open web front-end
    “Cannot GET /rutorrent”

    1. Make sure the rutorrent folder is in this location:

      cd /var/www/

      or start again from 8 point.
      I will test the whole tutorial today evening again.

        • bitcasual on 3 February 2015 at 17:47
        • Reply

        It’s there.
        “ls /var/www/rutorrent/
        conf css favicon.ico images index.html js lang php plugins share

    • andy on 15 February 2015 at 11:42
    • Reply

    Hi,

    thanks for your installation guide. All is okay, but when I start rtorrent, the webgui rutorrent says “port status is unknown”. I opened the port from the .rctorrent.rc-file in the router and in my firewall. Problem is the same.

    Do you have a solution?

    1. Everything is OK. The plugin check_port is old and broken. Download and install new one:

      cd /var/www/rutorrent/plugins
      svn checkout --force http://rutorrent.googlecode.com/svn/trunk/plugins/check_port

      Refresh ruTorrent webui.

        • andy on 15 February 2015 at 16:37
        • Reply

        Thanks for your quick answer, I install the new one, restart rtorrent, refresh webui, but rutorrent says “Port status is unknown”. What it’s wrong by me?

        1. If new plugin for port checking is installed, then maybe you need to set up port forwarding in your router for ports from 6882 to 6892 to your server.

            • andy on 15 February 2015 at 17:22

            Sorry … same problem.

            • sethuper on 15 February 2015 at 19:02
              Author

            What linux you are using, which rutorret you have installed and can you download anything

    • andy on 15 February 2015 at 19:46
    • Reply

    I use Debian 7.8, ruTorrent 3.6. Download and Upload is running.

    1. So it might be problem with plugin, router settings or your firewall.
      Add this just in case to your iptables:

      -A INPUT -p tcp -m tcp --dport 6882:6892 -j ACCEPT
      -A INPUT -p tcp -m udp --dport 6882:6892 -j ACCEPT

    • geoff on 22 February 2015 at 07:41
    • Reply

    I followed your guide but I think I might have messed something up with apache.
    /var/www/rutorrent exists and everything is there but when I try to visit mydomain.com/rutorrent I get a 404.
    I don’t think I got any errors while following your instructions.
    Any ideas?
    I am on ubuntu 14.04

    Thanks,

    1. Here is tutorial for Ubuntu 14.X: tested today
      http://terminal28.com/how-to-install-and-configure-rutorrent-rtorrent-libtorrent-xmlrpc-screen-ubuntu

      BTW. You missed couple things configuring Apache2..

    2. Pay more attention when you copy and paste this tutorial.
      Make sure that in /etc/apache2/sites-available/000-default.conf is:
      DocumentRoot /var/www/
      instead
      DocumentRoot /var/www/html.

    • John Rambo on 5 May 2015 at 00:15
    • Reply

    I’m using Debian 7.8 and the latest packages from your tutorial – but have a couple of issues. I wont list them here yet, as I am using just a BASE install to configure this and was wondering if using just the BASE install would still be compatible or not to this tutorial.

Leave a Reply

Your email address will not be published.