Rtorrent + Rutorrent Auto install script – Debian 384

Skrevet af: Patrick Kerwood

At installer rtorrent kan, i sig selv, være noget af en håndfuld for en nybegynder. Der efter kommer installation og opsætning af webserver og interface. Derfor har jeg bikset dette script sammen der klare det hele for dig.

Rtorrent er unden tvivl den bedste torrent klient program til Linux, som kan kører på en headless server, med valgfri web interface.

Scritet er lavet til Debian Wheezy og Ubuntu 14.04.

I skrivende stund, downloader og installer, scriptet (ver. 2.0.1) nedenstående, fra deres officielle sider.

  • Rtorrent
  • Libtorrent
  • Rutorrent 3.6

Følgende pakker bliver installeret via APT

  • openssl
  • subversion
  • git
  • apache2
  • build-essential
  • libsigc++-2.0-dev
  • libcurl4-openssl-dev
  • automake libtool
  • libcppunit-dev
  • libncurses5-dev
  • libapache2-mod-scgi
  • php5
  • php5-curl
  • php5-cli
  • libapache2-mod-php5
  • screen
  • unrar-free
  • unzip

Installation

Start med at downloade scriptet fra mit GitHub repo https://github.com/Kerwood/rtorrent.auto.install

Jeg vil stærkt anbefale starte installationen i en Screen session. Så hvis din forbindelse ryger under installationen, fortsætter den aligevel. Se evt. Screen – Et uundværligt værktøj

Hop ind på https://github.com/Kerwood/rtorrent.auto.install og tryk på den version du skal bruge. I den grå linje, lige oven over scriptet, trykker du på knappen “Raw”. Kopier URL’en og lav en wget på den.
wget https://raw.githubusercontent.com/Kerwood/rtorrent.auto.install/master/Rtorrent-Auto-Install-3.0.2-Debian-Jessie

Gør den downloaded fil executable.
chmod +x Rtorrent-Auto-Install-3.0.2-Debian-Jessie

Kør scriptet med administrator rettigheder.
sudo ./Rtorrent-Auto-Install-3.0.2-Debian-Jessie

Du vil blive promtet efter en system bruger, som skal kører rtorrent. Du kan enten bruge din egen bruger til formålet, eller oprette en dedikeret rtorrent bruger.
Efter 5-10 minuter hvor de nødvendige pakker bliver downloaded og installeret, får du muligheden for at installer de plugins/addons du finder nødvendige.
Til sidst skal du angive en bruger samt password til web interfacet. Det behøver ikke at være en system bruger.

Kommenter venligst hvis du finder fejl eller mangler i scriptet.

 

Video Guide


1 maj 2013   | Alle · Debian · Fildeling · Scripts · Video Guide

384 thoughts on “Rtorrent + Rutorrent Auto install script – Debian

  1. Reply Søren Vassard feb 8,2016 11:58

    Når jeg forsøger at køre scriptet “sudo ./Rtorrent-Auto-Install-4.0.0-Debian-Wheezy” melder den følgende fejl: Syntax error: newline unexpected.

  2. Reply Deb sep 4,2016 01:07

    Hello Patrick,

    Thanks a lot for this auto-install script. I have a normal wordpress site on my server and I installed rutorrent using the auto installer you wrote. all went well I got this message :

    Your default Apache2 vhost file has been disabled and replaced with a new one.
    If you were using it, combine the default and rutorrent vhost file and enable it again.

    As well as download folder and rutorrent url. I tried accesing MYIP.com/rutorrent my wordpress said 404 not found, so I added a symbolic link to the var/www/html/rutorrent from my public html. now MYIP.com/rutorrent says Forbidden… No auth box comes. I would appreciate any help!

    • Reply Patrick Kerwood sep 4,2016 01:51

      Hi Deb..
      As long as you have wordpress in your document root you will not be able to access rutorrent on “http://URL/rutorrent”. Instead create a virtual host where it catches fx. “http://rutorrent.your-url.com” and points to “/var/www/html/rutorrent” as document root. And of course create the DNS record.

      Goolge how to do it. Other wise I’ve got a guide here in Danish :)
      https://linuxbloggen.dk/apache2-virtual-hosts/

      Just keep in mind that the conf files has to end on “.conf” if you are running Debian 8.

    • Reply Deb sep 4,2016 15:33

      Woaw having a reply so fast from the Author :) what can be better? I translated your article with google translate and managed it in the end :) but also the subdomain should be added in bind :) now I have the following problem:

      Torrent list not yet available, connection to rTorrent not established says in GUI and the logs are huge paragraphs but here are the first few lines:
      [04.09.2016 15:34:29] WebUI started.
      [04.09.2016 15:34:29] Bad response from server: (200 [parsererror,getplugins]) <?php require_once( "util.php" ); require_once( "settings.php" ); function pluginsSort($a, $b) { $lvl1 = (float) $a["info"]["plugin.runlevel"];

    • Reply Patrick Kerwood sep 4,2016 20:45

      Yeah.. Rutorrent properly dont have a connection to rtorrent. You got to add this line to the virtual host file.
      SCGIMount /RPC2 127.0.0.1:5000

      As you can see here.
      https://github.com/Kerwood/Rtorrent-LXC/blob/master/000-default.conf

    • Reply Deb sep 4,2016 21:11

      I added the line you suggested, restarted apache2 and rtorrent but still the same :( are you on any kind of irc etc.?

    • Reply Patrick Kerwood sep 4,2016 21:15

      You can catch me on Skype. Patrick Kerwood

  3. Reply Murat nov 20,2016 14:15

    Hi Patrick?
    What is the valid system user? (Kerwood is not correct :( )

  4. Reply Murat nov 21,2016 11:18

    Hi again,
    Everythings OK but There is an error message in the plugins.(erase data) error code: read/ write persmission but CHMOD is 775 :(

  5. Reply Murat nov 21,2016 12:07

    Error code:
    erasedata: Plugin will not work. rTorrent user must have read/execute access to the file (/var/www/rutorrent/plugins/erasedata/cat.sh).

    • Reply Patrick Kerwood nov 21,2016 12:25

      Im not sure, but i think the maybe its the rtorrent user who should have read/execute access the file. Not the apache www user.

      What are the permissions on it now ?

  6. Reply Murat nov 21,2016 12:41

    Thanks for reply.
    CHMOD 755 for /var/www/rutorrent
    CHMOD 777 for /home/murat/downloads

  7. Reply Murat nov 21,2016 14:22

    total 32
    -rw-r–r– 1 root root 85 Apr 9 2015 cat.sh
    -rw-r–r– 1 root root 131 Apr 9 2015 conf.php
    -rw-r–r– 1 root root 307 Apr 9 2015 done.php
    -rw-r–r– 1 root root 242 Apr 9 2015 fin.sh
    -rw-r–r– 1 root root 1615 Apr 9 2015 init.js
    -rw-r–r– 1 root root 1200 Apr 9 2015 init.php
    -rw-r–r– 1 root root 257 Apr 9 2015 plugin.info
    -rw-r–r– 1 root root 2546 Apr 9 2015 update.php

  8. Reply Patrick Kerwood nov 21,2016 14:31

    Run this.
    sudo chmod -R 775 /var/www/rutorrent && sudo chown -R www-data.www-data /var/www/rutorrent

  9. Reply Murat nov 21,2016 14:44

    Thank you soo much. Fixed erasedata
    Just:
    mediainfo: Plugin will not work. rTorrent user can’t access external program (mediainfo).
    screenshots: Plugin will not work. rTorrent user can’t access external program (ffmpeg).

Leave a Reply