Skip to content

Instantly share code, notes, and snippets.

@Red-Eyed
Last active May 22, 2022 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Red-Eyed/93ec596cccf9cbf292afeb6e31dc1967 to your computer and use it in GitHub Desktop.
Save Red-Eyed/93ec596cccf9cbf292afeb6e31dc1967 to your computer and use it in GitHub Desktop.
Install deluge-web (used for raspberry pi)
# 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
# Copy deluge-web.service and deluged.service to ~/.config/systemd/user/ folder
# before running this
systemctl --user enable deluge-web.service
# 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
# 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