5h4d0w.net

The Cat's den

Install deluge with WebUI on Ubuntu 19.04

- Posted in SysAdmin Stuff by

Add the deluge PPA and update

add-apt-repository ppa:deluge-team/stable && apt-get update

Install the deluge daemon and the WebUI

apt-get install deluged deluge-web -y

Create a new user

adduser --system --group --home /var/lib/deluge deluge

Create a systemd service file for the deluge daemon

nano /etc/systemd/system/deluged.service

Containing :

[Unit]
Description=Deluge Bittorrent Client Daemon
Documentation=man:deluged
# Start deluged only after OpenVPN has started
#After=network-online.target openvpn@<provider>.service
After=network-online.target

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

ExecStart=/usr/bin/deluged -d

Restart=on-failure

# Time to wait before forcefully stopped.
TimeoutStopSec=300

[Install]
WantedBy=multi-user.target

Create a systemd service file for the deluge WebUI

nano /etc/systemd/system/deluge-web.service

Containing :

[Unit]
Description=Deluge Bittorrent Client Web Interface
Documentation=man:deluge-web
After=network-online.target

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

ExecStart=/usr/bin/deluge-web -d

Restart=on-failure

[Install]
WantedBy=multi-user.target

Enable both services at boot

systemctl enable deluged
systemctl enable deluge-web

Start services

systemctl start deluged
systemctl start deluge-web

Access the WebUI

  • http://server.ip:8112