Instantly share code, notes, and snippets.

Embed
What would you like to do?
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