Easy rTorrent + ruTorrent installation and configuration script for Debian or Ubuntu

Installation and setup Torent with Rutorent This can be a tedious and tedious task on Ubuntu or Debian servers, especially for inexperienced users. First Is a script that makes this easier by automatically installing and configuring rTorrent, ruTorrent (stable or major version), and everything else required for an Ubuntu or Debian (including on Raspberry Pi) seed box.
The script was recently updated with some important improvements, such as support for the latest stable version of Debian 10 (stable), and automatic generation of certificate-encrypted Let’s Encrypt certificates when possible (just in case it fails, it Will return a self-signed certificate). The text-based ncurses is based on libTorrent’s BitTorrent client, which is very suitable for use on the server, while ruTorrent is a web front end for rTorrent.

The rtinst script will install and configure:

  • vsftpd (FTP server)
  • libTorrent / rTorrent / xmlrpc-c (installed from source code to enable xmlrpc-c support in rTorrent so that it can be remotely controlled using ruTorrent)
  • ruTorrent (rTorrent’s web interface)
  • NGINX (web server)
  • autodl-irssi (plugin for irssi to monitor IRC announcement channels and download torrent files based on user-defined filters)
  • Webmin (Web-based system configuration tool for Unix-like systems; optional)

For supported Debian and Ubuntu versions, the script supports Debian 9 “Stretch”, Debian 10 “Buster”, Ubuntu 16.04, 18.04, and 19.04 (The script page also mentions Ubuntu “17”, but does not support Ubuntu 17.04 and 17.10. By Canonical is responsible).
As a complete solution for creating everything needed to create your own Ubuntu or Debian seed box, rtinst does not allow you to skip the installation and configuration of all these packages except Webmin.
rtinst also includes a series of management scripts to easily perform certain tasks, such as rtupdate Upgrade (or downgrade) libtorrent / rtorrent, rutuupgrade Can be used to upgrade ruTorrent (retain your configuration and settings and provide a way to roll back changes), etc. I tested the script on Ubuntu 18.04 and Debian 10 and tested that the installation and configuration of rTorrent + ruTorrent (and all other features) went smoothly (I did run into a problem, but the developer Fix it).

Guide to quickly install rTorrent and ruTorrent on Debian or Ubuntu using rtinst

Warning: Be sure to check Code Scripts you run on your system, especially when they run as root!
1. Download and set First.
First download the latest rtinst and run its initial setup using:

sudo bash -c "$(wget --no-check-certificate -qO - https://raw.githubusercontent.com/arakasi72/rtinst/master/rtsetup)"

2. Install and configure rTorrent, ruTorrent (with libTorrent and xmlrpc-c), vsftpd, NGINX, and autodl-irssi using rtinst.
Now, let’s run rtinst and start the installation and configuration process of rTorrent and ruTorrent (and the rest of the tools already mentioned above) (do not run the command for now-first see the explanation below!):

sudo rtinst --log --webpass RUTORRENT_WEB_PASSWORD --dload

Explanation of the meaning of these options:

  • -l, --log Enable login to ~/rtinst.log So you can debug when problems occur
  • -w, --webpass Set the user’s web password. This is the password used by rutorrent, which is different from the UNIX account password
  • -d, --dload Enable content http download

For a complete list of possible first options, visit First guide.[[IMPORTANT]]For security reasons, rtinst assigns a new SSH port by default, which will be displayed at the end of the installation process (also available at ~/rtinst.info) And disable root login via SSH. If you haven’t changed the SSH port, you can add --ssh-default Command to set the SSH port to its default port (port 22).
After running the rtinst command, all you have to do is follow the steps shown by the script and finally reboot the system. Do not restart the system. If you are not using the default SSH port option, do not close the current SSH session until you are sure you can insert SSH into the server! If you allow rtinst to change the SSH port, you need to use ssh -p PORT [email protected] connection.
At the end of the installation and configuration process, rtinst will also show you other useful information, such as FTP port (for security reasons, the script also assigns a random port for this), which can access the address of ruTorrent, HTTPS. Download location (if enabled), etc. Write down everything and keep it in a safe place.
rtinst also offers the possibility to install Webmin and configure NGINX as a reverse proxy, allowing the use of https://SERVER-IP/webmin. This is optional, you can use the following command to start Webmin automatic installation and configuration:

sudo rtwebmin

4. Restart the system
You can now restart the system:

sudo reboot

There are new libTorrent / rTorrent versions available, do you want to upgrade to it? run:

sudo rtupdate

Do you want to upgrade to a newer version of ruTorrent? use:

sudo rutupgrade