Difference between revisions of "Seedbox Installation"

From Comprofix
Jump to: navigation, search
 
Line 30: Line 30:
 
[Service]
 
[Service]
 
Type=simple
 
Type=simple
User=root
+
User=<username>
Group=root
+
Group=<username>
 
UMask=000
 
UMask=000
 
ExecStart=/usr/bin/deluged -d
 
ExecStart=/usr/bin/deluged -d
Line 40: Line 40:
 
WantedBy=multi-user.target
 
WantedBy=multi-user.target
 
</pre>
 
</pre>
 
You may wish to modify the above umask as it applies to any files downloaded by deluged.
 
* 007 grants full access to the user and members of the group deluged is running as (in this case deluge) and prevents access from all other accounts.
 
* 022 grants full access to the user deluged is running as and only read access to other accounts.
 
* 002 grants full access to the user and group deluged is running as and only read access to other accounts.
 
* 000 grants full access to all accounts.
 
  
 
Run the service and set to autostart
 
Run the service and set to autostart

Latest revision as of 14:23, 15 May 2018

This document will guide you through the installation and configuration of a Linux Seedbox.

Installation

  • Install Debian Linux
  • Upgrade to Testing
  • Install packages
sudo apt-get install zsh git curl sudo vim build-essential linux-headers-$(uname -r) open-vm-tools dnsutils net-tools psmisc

Install Deluge

sudo apt-get install deluged deluge-console
mkdir -p ~/.config/deluge/state
echo "user:MyPassword:10" >> ~/.config/deluge/auth
deluged
deluge-console "config -s allow_remote True"
deluge-console "config allow_remote"
killall deluged

Setup Deluge Daemon (deluged) Service

Create the file /etc/systemd/system/deluged.service containing the following:

[Unit]
Description=Deluge Bittorrent Client Daemon
Documentation=man:deluged
After=network-online.target
[Service]
Type=simple
User=<username>
Group=<username>
UMask=000
ExecStart=/usr/bin/deluged -d
Restart=on-failure
# Time to wait before forcefully stopped.
TimeoutStopSec=300
[Install]
WantedBy=multi-user.target

Run the service and set to autostart

sudo systemctl enable deluged.service
sudo systemctl start deluged.service

Install autodl-irssi

sudo apt-get install irssi libarchive-zip-perl libnet-ssleay-perl libhtml-parser-perl libxml-libxml-perl libdigest-sha-perl libjson-perl libjson-xs-perl libxml-libxslt-perl libdigest-sha3-perl
mkdir -p ~/.irssi/scripts/autorun
cd ~/.irssi/scripts
curl -sL http://git.io/vlcND | grep -Po '(?<="browser_download_url": ")(.*-v[\d.]+.zip)' | xargs wget --quiet -O autodl-irssi.zip
unzip -o autodl-irssi.zip
rm autodl-irssi.zip
cp autodl-irssi.pl autorun/
mkdir -p ~/.autodl
touch ~/.autodl/autodl.cfg

Setup irssi service

Put this in the file /etc/systemd/system/irssiscreen@.service

[Unit]
Description=irssiscreen
After=network.target

[Service]
Type=forking
User=%i
ExecStart=/usr/bin/screen -dmS ircsess irssi
ExecStop=/usr/bin/screen -S ircsess -X stuff '/quit\n'


[Install]
WantedBy=multi-user.target

Enable the service with:

sudo systemctl enable irssiscreen@yourusername.service
sudo systemctl start irssiscreen@yourusername.service

To reattach, simply run:

screen -rd