Install deluge daemon and web UI

I have always been downloading my torrents onto a ubuntu server. My Setup is the deluge daemon and its web-ui. I set up a new server recently and had to reinstall the whole thing, so here are the necessary steps:

sudo adduser deluge --shell /dev/null --disabled-password --disabled-login
sudo apt install deluged deluge-webui
sudo gpasswd -a $USER deluge

cat <<EOF | sudo /etc/systemd/system/deluged.service
[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
EOF

sudo systemctl start deluged
sudo systemctl enable deluged
sudo systemctl status deluged

cat <<EOF | sudo /etc/systemd/system/deluge-web.service
[Unit]
Description=Deluge Bittorrent Client Web Interface
After=network-online.target

[Service]
Type=simple

User=deluge
Group=deluge
UMask=027

ExecStart=/usr/bin/deluge-web

Restart=on-failure

[Install]
WantedBy=multi-user.target
EOF

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

The web-ui should now be available on port 8112.

For quick installation, download my script via wget and launch it on the server.

cd /tmp/
wget https://gist.githubusercontent.com/noah95/07011d2b1f75aa46a89c6101b48e18b2/raw/d4699ea753e2cc6eb7b9ff826f58e6d528b5aa0f/delugedsetup.sh
chmod +x delugedsetup.sh
./delugedsetup.sh

3 Replies to “Install deluge daemon and web UI”

  1. So i installed and used correctly deluge as web-ui. What if i whant to use some other client?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.