Created
April 27, 2019 13:15
-
-
Save geenloop/a8cc2d9fde8465dc6637360547854a87 to your computer and use it in GitHub Desktop.
Linux Seedbox made from rTorrent & ruTorrent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
apt-get install -y rtorrent screen php php-geoip php7.0-cli php7.0-json php7.0-curl php7.0-cgi php7.0-mbstring libapache2-mod-php libapache2-mod-scgi apache2 unrar unzip ffmpeg mediainfo curl sqlite3 git | |
// get sourcecode of ruTorrent https://github.com/Novik/ruTorrent/releases | |
// adduser <name> for rtorrent service | |
// import settings https://gist.github.com/geenloop/bb4a8400271c29f8acff6037634c031d | |
chown -R rtorrent:www-data ruTorrent-3.9/ && chmod -R 770 ruTorrent-3.9/ | |
mkdir /home/rtorrent/.rtorrent.session | |
nano /var/www/html/ruTorrent/conf/plugins.ini | |
[httprpc] | |
enabled = yes | |
[rpc] | |
enabled = no | |
service apache2 restart | |
// subdomain | |
nano /etc/apache2/sites-enabled/000-default.conf | |
<VirtualHost *:80> | |
DocumentRoot /var/www/ruTorrent-3.9/ | |
ServerName seed.example.com | |
RewriteEngine on | |
RewriteCond %{SERVER_NAME} =seed.geenloop.com | |
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] | |
</VirtualHost> | |
// + regenerate certificate SSL like: https://gist.github.com/geenloop/9f90bb0840e1d7e6c06322ab75f6bb3c | |
// set autostart at start up | |
wget -O /etc/init.d/rtorrent-init https://raw.github.com/Kerwood/rtorrent.auto.install/master/Files/rtorrent-init | |
chmod +x /etc/init.d/rtorrent-init | |
// open and setup ser folders bla bla | |
update-rc.d rtorrent-init defaults | |
service rtorrent-init start | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment