Skip to content

Instantly share code, notes, and snippets.

@zeroxia
Created November 10, 2017 14:53
Show Gist options
  • Save zeroxia/a0c74d2b64d9cdfd61abd4dfb7cf11c1 to your computer and use it in GitHub Desktop.
Save zeroxia/a0c74d2b64d9cdfd61abd4dfb7cf11c1 to your computer and use it in GitHub Desktop.
Summary the setup of transmission-daemon on a Linux host
pacman -S transmission-cli
cd /var/lib/transmission/.config/transmission-daemon/
cp settings.json edit.txt
(EDIT edit.txt)
cat edit.txt >settings.json
cd /usr/share/transmission
git clone -o github 'https://github.com/ronggang/transmission-web-control.git'
cd /usr/share/transmission/web
mv index.html index.original.html
for f in ../transmission-web-control/src; do ln -s "$f"; done
(For running as root)
cd /root/.config/transmission-daemon
cat /var/lib/transmission/.config/transmission-daemon/settings.json >settings.json
vim /usr/lib/systemd/system/transmission.service
(User=root)
---- settings.json ----
{
"alt-speed-down": 9999,
"alt-speed-enabled": false,
"alt-speed-time-begin": 60,
"alt-speed-time-day": 62,
"alt-speed-time-enabled": true,
"alt-speed-time-end": 1080,
"alt-speed-up": 9999,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"blocklist-url": "http://www.example.com/blocklist",
"cache-size-mb": 4,
"dht-enabled": false,
"download-dir": "/media/xiayitiao/torrent-complete",
"download-queue-enabled": true,
"download-queue-size": 99,
"encryption": 1,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/media/xiayitiao/torrent-download",
"incomplete-dir-enabled": true,
"lpd-enabled": false,
"message-level": 1,
"peer-congestion-algorithm": "",
"peer-id-ttl-hours": 6,
"peer-limit-global": 100,
"peer-limit-per-torrent": 50,
"peer-port": 51413,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": "default",
"pex-enabled": false,
"port-forwarding-enabled": true,
"preallocation": 1,
"prefetch-enabled": true,
"queue-stalled-enabled": true,
"queue-stalled-minutes": 30,
"ratio-limit": 9,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "{hidden",
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "transmission",
"rpc-whitelist": "127.0.0.1,192.168.*.*",
"rpc-whitelist-enabled": false,
"scrape-paused-torrents-enabled": true,
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
"seed-queue-enabled": true,
"seed-queue-size": 10,
"speed-limit-down": 100,
"speed-limit-down-enabled": true,
"speed-limit-up": 100,
"speed-limit-up-enabled": true,
"start-added-torrents": false,
"trash-original-torrent-files": true,
"umask": 2,
"upload-slots-per-torrent": 14,
"utp-enabled": false,
"watch-dir": "/media/xiayitiao/torrent-seeds",
"watch-dir-enabled": true
}
=======================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment