#!/usr/bin/env bash # For ubuntu 20.04 currentWorkdir=$(pwd) PASSWORD="abcdefg" #apt install -y nginx php7.4-fpm nano apache2-utils subversion git supervisor tmux build-essential automake libtool libcppunit-dev libcurl4 libsigc++-2.0-dev curl unrar unzip libncurses5-dev libfuse-dev libcurl4-openssl-dev libxml++2.6-dev php7.4-cli php7.4-mbstring libssl-dev mediainfo sox ffmpeg python python-pip curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py python get-pip.py python -m pip install cloudscraper # # ## XMLRPC-C #git clone https://github.com/mirror/xmlrpc-c.git #cd xmlrpc-c/stable/ #./configure --disable-cplusplus #make -j2 #make install # ## libtorrent #git clone -b feature-bind https://github.com/rakshasa/libtorrent.git #cd libtorrent #./autogen.sh #./configure --disable-instrumentation #make -j2 #make install # ## rTorrent #git clone -b feature-bind https://github.com/rakshasa/rtorrent.git #cd rtorrent #./autogen.sh #./configure --with-xmlrpc-c #make -j2 #make install #ldconfig useradd rutorrent &>/dev/null mkdir -p /home/rutorrent usermod -a -G rutorrent www-data usermod -a -G www-data rutorrent cat > /home/rutorrent/.rtorrent.rc </dev/null git clone https://github.com/Novik/ruTorrent.git chown -R www-data:www-data /var/www cd ruTorrent git am < ${currentWorkdir}/0001-Config.patch ) # nginx cat > /etc/nginx/conf.d/rutorrent.conf </dev/null systemctl restart nginx systemctl restart php7.4-fpm