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
- 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.
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.
Søren… Du skal hente filen via denne url:
https://raw.githubusercontent.com/Kerwood/rtorrent.auto.install/master/Rtorrent-Auto-Install-4.0.0-Debian-Wheezy
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!
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.
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"];
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
I added the line you suggested, restarted apache2 and rtorrent but still the same :( are you on any kind of irc etc.?
You can catch me on Skype. Patrick Kerwood
Hi Patrick?
What is the valid system user? (Kerwood is not correct :( )
Hi.. The system user is one that you create.. And is not root.
Hi again,
Everythings OK but There is an error message in the plugins.(erase data) error code: read/ write persmission but CHMOD is 775 :(
Error code:
erasedata: Plugin will not work. rTorrent user must have read/execute access to the file (/var/www/rutorrent/plugins/erasedata/cat.sh).
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 ?
Thanks for reply.
CHMOD 755 for /var/www/rutorrent
CHMOD 777 for /home/murat/downloads
Whats the output of the following
ls -l /var/www/rutorrent/plugins/erasedata/
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
Run this.
sudo chmod -R 775 /var/www/rutorrent && sudo chown -R www-data.www-data /var/www/rutorrent
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).
Those are external programs you need to install.
Unrar, mediainfo and ffmpeg. Google on how to install them.
Yes, I’ve realized now.
The files are not secure? with chmod 775?
thank you..
Yes they are.
“Maximum concurrent number of connections defined “How to upgrade? Cuz max one for internet download manager.
Not a clue what you are talking about … :)