Used resources: https://my.vps6.net/knowledgebase/64/How-to-Install-rTorrentorruTorrent-Seedbox-on-Ubuntu-VPS.html https://rtorrent.net/downloads/ https://rakshasa.github.io/rtorrent/ https://terminal28.com/how-to-install-and-configure-rutorrent-rtorrent-libtorrent-xmlrpc-screen-debian-8-jessie/ This tutorial will guide you through the installation of libtorrent 0.13.8, rTorrent 0.9.8, and the ruTorrent Web UI (3.8) on a Debian or Ubuntu system. It has been tested with Debian 6 (x64) and Ubuntu 11.04 (x64). To begin, access your VPS via SSH and run the following to update your platform and install some needed dependencies: # apt-get update # apt-get upgrade # apt-get install subversion build-essential automake libtool libcppunit-dev libssl-dev libcurl3-dev libsigc++-2.0-dev mediainfo ffmpeg unzip curl libncurses-dev apache2 php7.1 php7.1-cli php7.3-curl Enable scgi for Apache: # apt-get install libapache2-mod-scgi # ln -s /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.load Install XMLRPC: # mkdir /install;cd /install # svn checkout http://svn.code.sf.net/p/xmlrpc-c/code/stable xmlrpc-c # cd xmlrpc-c # ./configure --disable-cplusplus # make # make install Intall libtorrent: # cd /install # wget https://github.com/rakshasa/rtorrent-archive/raw/master/libtorrent-0.13.8.tar.gz # tar xvf libtorrent-0.13.8.tar.gz # cd libtorrent-0.13.8 # ./autogen.sh # ./configure # make # make install Install rTorrent: # cd /install # wget https://github.com/rakshasa/rtorrent-archive/raw/master/rtorrent-0.9.8.tar.gz # tar xvf rtorrent-0.9.8.tar.gz # cd rtorrent-0.9.8 # ./autogen.sh # ./configure --with-xmlrpc-c # make # make install # ldconfig Create required directories: # mkdir /mnt/mydisk/torrents # mkdir /mnt/mydisk/torrents/rtorrent # mkdir /mnt/mydisk/torrents/rtorrent/.session # mkdir /mnt/mydisk/torrents/rtorrent/watch # mkdir /mnt/mydisk/torrents/rtorrent/download # rm /mnt/mydisk/torrents/rtorrent/.session/*.* setup .rtorrent.rc file (rTorrent config): # cd ~/ # wget http://vps6.net/src/.rtorrent.rc ~/.rtorrent.rc # cp .rtorrent.rc /mnt/mydisk/torrents/ (Edit the settings in .rtorrent.rc, like max upload/download speed, max connected peers, etc, as needed.) Install RUTorrent: # cd /install # wget https://github.com/Novik/ruTorrent/archive/v3.8.tar.gz # tar xvf v3.8.tar.gz # mv ruTorrent-3.8 rutorrent # mv rutorrent /var/www/html # rm -rf /var/www/html/rutorrent/plugins/darkpal # chown -R www-data:www-data /var/www/html/rutorrent Secure /rutorrent: # a2enmod ssl # a2enmod auth_digest # a2enmod scgi # openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem # chmod 600 /etc/apache2/apache.pem # htdigest -c /etc/apache2/passwords seedbox seeder1 (Enter a password of your choice when prompted, you will use this to log in to the ruTorrent web UI.) # cd /etc/apache2/sites-available/ # rm -rf default # wget http://vps6.net/src/default # rm default-ssl.conf # mv default default-ssl.conf # a2ensite default-ssl # /etc/init.d/apache2 reload Install unrar-nonfree: # cd /install # wget http://ftp.ee.debian.org/debian/pool/non-free/u/unrar-nonfree/unrar_6.1.2-1_armhf.deb # dpkg -i unrar_6.1.2-1_armhf.deb Install screen: # apt-get install screen Start rTorrent in a detached shell using screen: # screen -fa -d -m rtorrent ################################################## Set auto restart afrer reboot: nano -w /etc/init.d/rtorrent #! /bin/sh # rTorrent init script # case "$1" in start) echo "Starting rtorrent..." su root -c 'screen -dmS rtorrent rtorrent' ;; stop) echo "Stopping rtorrent..." killall -s 2 rtorrent ;; *) echo "Usage: $0 {start|stop}" exit 1 ;; esac exit 0 chmod 755 /etc/init.d/rtorrent update-rc.d rtorrent defaults