Transmission Daemon on RPI B+


A brief info on installing Transmission Daemon on RPI B+. It should be common to other RPI models as well.

OS version
  $ lsb_release -a  
 No LSB modules are available.  
 Distributor ID:  Raspbian  
 Description:  Raspbian GNU/Linux 9.8 (stretch)  
 Release:  9.8  
 Codename:  stretch
  
 $ cat /etc/os-release  
 PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"  
 NAME="Raspbian GNU/Linux"  
 VERSION_ID="9"  
 VERSION="9 (stretch)"  
 ID=raspbian  
 ID_LIKE=debian  
 HOME_URL="http://www.raspbian.org/"  
 SUPPORT_URL="http://www.raspbian.org/RaspbianForums"  
 BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"  
HW version. Thanks to elinux.org. Alternatively you can also check this post.
  $ awk '/^Revision/ {sub("^1000", "", $3); print $3}' /proc/cpuinfo  
 0010
Installing transmission-daemon
 sudo apt-get install transmission-daemon
Create a directory for downloads
 mkdir ~/downloads
Stop the daemon for now, as we have to modify few settings
 sudo service transmission-daemon stop
The transmission-daemon settings are available in settings.json
 sudo vi /etc/transmission-daemon/settings.json
 "download-dir": "<absolute path of your new downloads folder>",
 "rpc-username": "<change the username, preferably the hostname of your PI>",
 "rpc-password": "<password as clear case string, it will be hashed later when the daemon is started>"
White list the IP range 192.168.*.* as the RPI in my setup receives the IP in the range of 192.168.*.*. This is simply your home network IP range. Only if you modify this, you can access the WebUI of transmission-daemon from any other devices connected in your home network
 "rpc-whitelist": "127.0.0.1 192.168.*.*",
Modify the umask as well, so that you can transmission daemon gets access to create files in that download folder.
 "umask": 2,
Create a user group "debian-transmission" and permit it  to access the downloads folder
 sudo usermod -a -G debian-transmission
 sudo chgrp debian-transmission <absolute path of your new downloads folder>
Start the daemon
 sudo service transmission-daemon start
Try accessing the WebUI transmission-daemon from your PC/phone/tablet(via web browser) that is connected the same network as RPI.
 <RPI IP>:9091

Comments

Popular Posts