Last active
May 22, 2022 15:06
-
-
Save Red-Eyed/93ec596cccf9cbf292afeb6e31dc1967 to your computer and use it in GitHub Desktop.
Install deluge-web (used for raspberry pi)
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
# To use geoip | |
sudo apt install geoip-database libgeoip-dev | |
py_ver=`python -c "from sys import version_info as vi; print(f'{vi[0]}.{vi[1]}')"` | |
sudo apt install python${py_ver}-venv | |
pip install pipx | |
pipx install deluge | |
pipx inject deluge libtorrent GeoIP |
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
# Copy deluge-web.service and deluged.service to ~/.config/systemd/user/ folder | |
# before running this | |
systemctl --user enable deluge-web.service |
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
# should be placed ~/.config/systemd/user/deluge-web.service | |
[Unit] | |
Description=Deluge Bittorrent Client Web Interface | |
Documentation=man:deluge-web | |
After=network-online.target deluged.service | |
Wants=deluged.service | |
[Service] | |
Type=simple | |
UMask=027 | |
ExecStart=/home/ubuntu/.local/bin/deluge-web -d -L info | |
Restart=on-failure | |
[Install] | |
WantedBy=multi-user.target |
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
# should be placed ~/.config/systemd/user/deluged.service | |
[Unit] | |
Description=Deluge Bittorrent Client Daemon | |
Documentation=man:deluged | |
After=network-online.target | |
[Service] | |
Type=simple | |
UMask=007 | |
ExecStart=/home/ubuntu/.local/bin/deluged -d -L info | |
Restart=on-failure | |
# Time to wait before forcefully stopped. | |
TimeoutStopSec=300 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment