Skip to content

Instantly share code, notes, and snippets.

@gryte
Last active August 3, 2016 04:03
Show Gist options
  • Save gryte/832a5606d7b49b65d0f73116b0f93fe9 to your computer and use it in GitHub Desktop.
Save gryte/832a5606d7b49b65d0f73116b0f93fe9 to your computer and use it in GitHub Desktop.

create common group to manage directory ownership

groupadd torrent_group 
chown :torrent_group /.deluge/prep/ 
usermod -aG torrent_group deluge
usermod -aG torrent_group couchpotato

create new torrentserver vm to host deluge, couchpotato, and sonarr

login as root and update packages

yum update

Install EPEL followed by Nux Dextop which will allow us to install the deluge rpms

install wget

sudo yum install wget

using yum

yum install epel-release 

mkdir ~/Downloads
cd ~/Downloads/
wget http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
rpm -ivh nux-dextop-release-0-5.el7.nux.noarch.rpm

Install deluge-web (the WebUI of deluge) which will take care of installing all the

stuff it depends on

yum install deluge-web

Once complete, you can verify Deluge is installed by running the below command:

systemctl start deluge-web
systemctl enable deluge-web
systemctl status deluge-web

Deluge will be available on HTTP port 8112 by default. Open your favorite browser and navigate to http://yourdomain.com:8112 or http://server-ip:8112. The default password for deluge is deluge, better change it when you are first to login. If you are using a firewall, please open port 8112 to enable access to the control panel.

create deluge directories

sudo mkdir /.deluge
chown deluge:deluge /.deluge

cd /.deluge
mkdir prep
mkdir staging
mkdir complete

chown deluge:deluge ./prep/
chown deluge:deluge ./staging/
chown deluge:deluge ./complete/

implement deluge daemon to couchpotato and other apps can work with it

create service file

touch /etc/systemd/system/deluged.service
sudo vi /etc/systemd/system/deluged.service

fill service file with the following content

[Unit]
Description=Deluge Bittorrent Client Daemon
After=network-online.target

[Service]
Type=simple
User=deluge
Group=deluge
UMask=007

ExecStart=/usr/bin/deluged -d

Restart=on-failure

# Configures the time to wait before service is stopped forcefully.
TimeoutStopSec=300

[Install]
WantedBy=multi-user.target

Now enable it to start up on boot, start the service and verify it is running:

systemctl enable /etc/systemd/system/deluged.service
systemctl start deluged
systemctl status deluged

The remaining steps are followed in the 'deluge daemon setup' section

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment