Skip to content

Instantly share code, notes, and snippets.

@nosmall
Last active August 5, 2019 17:14
Show Gist options
  • Save nosmall/b5137676c981f18324d5f8eb5ab6c3ee to your computer and use it in GitHub Desktop.
Save nosmall/b5137676c981f18324d5f8eb5ab6c3ee to your computer and use it in GitHub Desktop.
Deluge with Deluge-Web-UI on Ubuntu 16.04

Deluge with Deluge-Web on Ubuntu 16.04 (lazy guide)

sudo su
adduser deluge --shell /dev/null --disabled-password --disabled-login
add-apt-repository ppa:deluge-team/ppa \
&& apt update \
&& apt install -y deluged deluge-web \
&& gpasswd -a $USER deluge
cat > /etc/systemd/system/deluged.service << \EOF
[Unit]
Description=Deluge Bittorrent Client Daemon
After=network-online.target
[Service]
Type=simple
User=deluge
Group=deluge
UMask=002
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
EOF
cat > /etc/systemd/system/deluge-web.service << \EOF
[Unit]
Description=Deluge Bittorrent Client Web Interface
After=network-online.target
[Service]
Type=simple
User=deluge
Group=deluge
UMask=002
ExecStart=/usr/bin/deluge-web
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
systemctl --system daemon-reload \
&& systemctl enable deluged \
&& systemctl start deluged \
&& systemctl status deluged \
&& systemctl enable deluge-web \
&& systemctl start deluge-web \
&& systemctl status deluge-web
reboot

Using

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