Research and Development
sudo apt install transmission-daemon
As the Raspberry Pi Transmission is automatically started upon install, stop the service temporarily by running the command below:
sudo systemctl stop transmission-daemon
Create two different folders, one to store the in-progress torrents, and the other to store completed torrents. The folders will be called torrent-inprogress
and torrent-complete
:
sudo mkdir -p /torrent/inprogress
sudo mkdir -p /torrent/complete
Give the pi
user access to the two folders just created:
sudo chown -R pi:pi /torrent/inprogress
sudo chown -R pi:pi /torrent/complete
Begin editing Transmission’s config file by running the following command:
sudo vim /etc/transmission-daemon/settings.json
Within this file, modify the following configuration options:
"incomplete-dir": "/torrent/inprogress",
"download-dir": "/torrent/complete",
"incomplete-dir-enabled": true,
"rpc-password": "Your_Password",
"rpc-username": "Your_Username",
"rpc-whitelist": "192.168.*.*",
Edit the Transmission daemon startup script so that it uses the pi
user instead of the default debian-transmission
user:
sudo vim /etc/init.d/transmission-daemon
Edit the USER=
line, so that the Transmission daemon will be run by the pi
user and not the debian-transmission
user that is setup by default:
USER=pi
Change the user from debian-transmission
to pi
in the service file:
sudo vim /etc/systemd/system/multi-user.target.wants/transmission-daemon.service
Within this file, change the user=
line so that it points to the pi
user instead:
user=pi
Reload all service configuration files by running the following command:
sudo systemctl daemon-reload
As the user was changed from debian-transmission
to pi
change the ownership of the /etc/transmission-daemon
folder:
sudo chown -R pi:pi /etc/transmission-daemon
Create a directory where the transmission-daemon
will access the setting.json
file:
sudo mkdir -p /home/pi/.config/transmission-daemon/
sudo ln -s /etc/transmission-daemon/settings.json /home/pi/.config/transmission-daemon/
sudo chown -R pi:pi /home/pi/.config/transmission-daemon/
Finally, start back up the Transmission daemon service:
sudo systemctl start transmission-daemon
Check out Transmissions web interface by going to the Raspberry Pi's IP address followed by the port defined on line rpc-port
in /etc/transmission-daemon/settings.json
config file. Make sure to define rpc-username
and rpc-password
.