Transmission

From Segfault
Jump to navigation Jump to search

Installation

Transmission should be available in numerous distributions, so we don't have to compile it from source in most cases.

Once installed, it could be run as a systemd service under a different user name:

$ cat /etc/systemd/system/transmission.service.d/username.conf 
[Service]
User=transmission
 
[Unit]
RequiresMountsFor=/mnt/data/tmp

Or, if started manually:

sudo -H -u transmission transmission-daemon --log-info --logfile ~transmission/.config/transmission-daemon/messages.log

Configuration

The transmission-daemon can be configured via ~transmission/.config/transmission-daemon/settings.json:

{
   "blocklist-enabled": true,
   "blocklist-url": "http://list.iblocklist.com/?list=ydxerpxkpcfqjaybcssw&fileformat=p2p&archiveformat=gz",
   "dht-enabled": true,
   "download-dir": "/mnt/data/tmp",
   "encryption": 2,
   "incomplete-dir": "/mnt/data/tmp/.queue",
   "incomplete-dir-enabled": false,
   "lpd-enabled": true,
   "message-level": 2,
   "peer-port": 6881,
   "peer-port-random-high": 6999,
   "peer-port-random-low": 6890,
   "peer-port-random-on-start": false,
   "pex-enabled": true,
   "port-forwarding-enabled": false,
   "preallocation": 1,
   "prefetch-enabled": true,
   "rpc-authentication-required": false,
   "rpc-bind-address": "127.0.0.1",
   "rpc-enabled": true,
   "rpc-port": 9091,
   "rpc-url": "/transmission/",
   "rpc-username": "",
   "rpc-whitelist": "127.0.0.1",
   "rpc-whitelist-enabled": true,
   "utp-enabled": false
   [...]
}

Links