Skip to content

Instantly share code, notes, and snippets.

@huettern
Created June 7, 2017 19:26
Show Gist options
  • Save huettern/07011d2b1f75aa46a89c6101b48e18b2 to your computer and use it in GitHub Desktop.
Save huettern/07011d2b1f75aa46a89c6101b48e18b2 to your computer and use it in GitHub Desktop.
Install deluged and deluge-webui on ubuntu
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment