Jump to content

[Guide] Installing rTorrent/ruTorrent on Ubuntu Server


Koby

Recommended Posts

This guide is going on the assumption you've already got ubuntu installed on your server.

 

Installing rTorrent

sudo apt-get install rtorrent

 

Installing ruTorrent web interface

First things first, if you don't already have git installed, you'll need to do that now:

sudo apt-get install git-all

Now you can git clone rutorrent from the github, this will install it in a folder called ruTorrent within the current directory you're in.

git clone https://github.com/Novik/ruTorrent.git

You will now want to edit the .htaccess of the main ruTorrent directory.

It should be something like:

AuthType Basic
AuthName "rutorrent"
AuthUserFile  "/var/www/ruTorrent/.htpasswd"
require valid-user

Change the 'AuthUserFile' to whatever you want your '.htpasswd' file to be located.

 

From here you'll need to install apache2-utils to generate your new '.htpasswd' file with an encrypted account.

You can do so with:

sudo apt-get install apache2-utils

Once that's done you can now create it.

Use:

htpasswd -c /path/.htpasswd user

Change 'path' to your actual path and 'user' to the username you wish to login to ruTorrent with. You'll be prompted for a password, so enter whatever you want. Confirm it, and it'll create your encrypted .htpasswd file.

 

Next create a file and call it '.rtorrent.rc' and place it in your main directory.

Copy and paste this into it:

#encoding_list = UTF-8
scgi_local = /tmp/rpc.sock
schedule = chmod,0,0,"execute=chmod,777,/tmp/rpc.sock"
set_xmlrpc_dialect=i8
#download_rate = 50000
#upload_rate = 50000
#session = ./session

You can uncomment what is commented out if needed to apply settings.

 

Now go into your ruTorrent/conf/config.php file

and find:

$scgi_port = 5000;
$scgi_host = "127.0.0.1";

replace that with:

$scgi_port = 0;
$scgi_host = "unix:///tmp/rpc.sock";

Now you'll need to install screen so you can keep rTorrent running:

sudo apt-get install screen

Then you simply have to start everything up with:

screen –fa –d –m rtorrent

 

You can now go to your ruTorrent install and login. Things should work, but you will probably see some errors in your log about various plugins not having the required stuff set up.

 

Installing missing plugins

To install ffmpeg, you'll first have to install some other stuff to be able to use it via apt-get.

So run:

sudo apt-get install software-properties-common

Then this should now be able to run:

sudo add-apt-repository ppa:mc3man/trusty-media

If that is successful then you'll  need to run the updates:

sudo apt-get update
sudo apt-get dist-upgrade

and finally you can install ffmpeg:

sudo apt-get install ffmpeg

 

For the unrar plugins to work, simply apply:

sudo apt-get install unrar-free

and then for mediainfo:

sudo apt-get install mediainfo

 

That should pretty much cover it. If you run into any issues or I left anything out, feel free to comment below and I'll help solve any issue or update this guide to reflect anything left out.

Link to comment
Share on other sites

If you're real paranoid just block all ports apart from SSH and tunnel HTTP or HTTPs through SSH for ruTorrent. I see it as a viable option if you're just using the server as a private server rather than public. There are also a lot of other useful plugins you can get for ruTorrent. Namely the RSS feeds which I use a lot.

 

Though setting up .htaccess should be enough safe guarding against the /tmp security flaw.

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
On ‎31‎-‎3‎-‎2016 at 0:23 AM, Koby said:

Installing ruTorrent web interface

Then you simply have to start everything up with:


screen –fa –d –m rtorrent

You can now go to your ruTorrent install and login. Things should work, but you will probably see some errors in your log about various plugins not having the required stuff set up.

Cannot exec '�fa': No such file or directory.

Please Help! ;) 

Link to comment
Share on other sites

27 minutes ago, Koby said:

You're getting that after trying to run '


screen fa d m rtorrent

?

 

Are you back in your home directory when doing this or? And are you sure you didn't miss a step and followed the guide to a t?

I'm getting this error when I type this into after: sudo apt-get install screen.

 

I will Reinstall everthing and try again! ;) 

And let you know if it went wrong again or I hope it goes Okay!

 

Edited by DJHulp
Link to comment
Share on other sites

51 minutes ago, DJHulp said:

I'm getting this error when I type this into after: sudo apt-get install screen.

 

I will Reinstall everthing and try again! ;) 

And let you know if it went wrong again or I hope it goes Okay!

 

Reinstalled everthing, still get it not to work, can you please help me out Koby! ;) 

Please let me know what you need!

Edited by DJHulp
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...
Please Sign In or Sign Up