How to install Transmission (torrent client) on the Raspberry Pi

transmissionI’ve been using transmission for some time now and so far it has been a good torrent client.

To install follow the following steps.

Connect to the raspberry pi with ssh or open a terminal.

Let’s be sudo to make it easier

sudo -s

Install with

apt-get install transmission-daemon

It’s done installing, time to add an user

sudo usermod -a -G debian-transmission pi

Now we’re stopping the transmission-daemon with:

/etc/init.d/tranmission-daemon stop

Start transmission as the user pi

vi /etc/init.d/transmission-daemon

Change USER=transmission-daemon to USER=pi

Change some permissions

chown pi -R /var/lib/transmission-daemon/info/ && chown pi -R /etc/transmission-daemon/settings.json && chmod 755 /etc/transmission-daemon/settings.json

We’re done setting permissions, to edit the configuration:

vi /etc/transmission-daemon/settings.json

Here are my settings, upload limited to 50kb, download 750kb, autowatchdir enabled, enable webinterface login, allow connections to the webinterface from everywhere and blocklist enabled and umask of 2, making it possible for other programs to move the downloaded files around.

{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": true,
"blocklist-url": "http://list.iblocklist.com/?list=bt_level1&fileformat=p2p&archiveformat=gz",
"cache-size-mb": 4,
"dht-enabled": true,
"download-dir": "CHANGE THIS TO YOUR DOWNLOAD DIRECTORY",
"download-limit": 100,
"download-limit-enabled": 0,
"download-queue-enabled": true,
"download-queue-size": 3,
"encryption": 1,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/root/Downloads",
"incomplete-dir-enabled": false,
"lpd-enabled": false,
"max-peers-global": 200,
"message-level": 2,
"peer-congestion-algorithm": "",
"peer-limit-global": 240,
"peer-limit-per-torrent": 60,
"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": true,
"port-forwarding-enabled": false,
"preallocation": 1,
"prefetch-enabled": 1,
"queue-stalled-enabled": true,
"queue-stalled-minutes": 30,
"ratio-limit": 2,
"ratio-limit-enabled": true,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "PASSWORD FOR THE WEBINTERFACE",
"rpc-port": 9091, OR ANY OTHER PORT NUMBER, DEFAULT IS 9091
"rpc-url": "/transmission/",
"rpc-username": "USERNAME FOR THE WEBINTERFACE",
"rpc-whitelist": "127.0.0.1,*.*.*.*",
"rpc-whitelist-enabled": true,
"scrape-paused-torrents-enabled": true,
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
"seed-queue-enabled": true,
"seed-queue-size": 2,
"speed-limit-down": 750,
"speed-limit-down-enabled": true,
"speed-limit-up": 50,
"speed-limit-up-enabled": true,
"start-added-torrents": true,
"trash-original-torrent-files": true,
"umask": 2,
"upload-limit": 100,
"upload-limit-enabled": 0,
"upload-slots-per-torrent": 14,
"utp-enabled": true,
"watch-dir": "CHANGE THIS TO PATH WHERE YOU PUT YOUR .torrent FILES FOR AUTOMATIC DOWNLOADING",
"watch-dir-enabled": true
}

Alright, now go to the ip of your raspberry pi and use the port number you used in the config file up here.
For example:
http://192.168.1.1:9091

Sidebar