Last active
August 7, 2020 03:55
-
-
Save akshilshah/4ce03c84e105f399f72fad4807ed21f3 to your computer and use it in GitHub Desktop.
Use to install deluge on ubuntu 18.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bin/bash | |
echo -ne '\n' | sudo add-apt-repository ppa:deluge-team/ppa | |
yes y | sudo apt install deluged deluge-webui | |
sudo adduser --system --group deluge | |
sudo gpasswd -a root deluge | |
echo '[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 | |
' > /etc/systemd/system/deluged.service | |
systemctl start deluged | |
systemctl enable deluged | |
systemctl status deluged | |
echo '[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 | |
' > /etc/systemd/system/deluge-web.service | |
systemctl start deluge-web | |
systemctl enable deluge-web | |
systemctl status deluge-web | |
# Credits : https://www.linuxbabe.com/bittorrent/install-deluge-bittorrent-client-ubuntu-18-04 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment