The Transmission Daemon
The transmission is a lightweight, cross-platform client of BitTorrent (A most popular file-sharing method). It is a volunteer-based, open source project which is in many ways quite different from the other BitTorrent clients. It by default runs with the “debian-transmission” user.
Why You Need Transmission Daemon
BitTorrent is a popular peer-2-peer torrent downloading server which requires a torrent downloading client to run on a computer and fetch content from the other users who are sharing it. You need to have your computer powered-on during the time of downloading which sometimes may a bit slower depending on the swarm sharing content. So it consumes high power and electricity and you need to stay active to check whether the downloading is finished or not.
On the other hand, with the use of an ultra-cheap Raspberry Pi device you can get this job down for the whole day. I highly recommend to buy a starter kit from amazon. It consumes just 5W power, which saves your energy and gives relief from checking it frequently.
Let’s check some attractive features of Transmission Daemon:
- It is designed for easy and powerful use with the Raspberry Pi
- It works with the major searchers like Mylar, CouchPotato, SickRage, and Headphones
- It uses fewer resources than other BitTorrent clients
- It is ideal for embedded systems, servers, and headless Raspberry Pi use
- It can be controlled by Terminal and Web clients
- It allows Peer exchange with encryption, tracker editing, web seed support, global and per-torrent speed limits, and much more
I hope this is an enough information to make you agree with using the transmission daemon for Raspberry Pi. Now, let me take you through the steps to install it on your Pi device.
After completing the basic setup of your Raspberry Pi model like networking it to the internet, use NAS storage in the form of the external HDD, you are ready to get and install the Transmission Daemon on your Raspberry Pi device.
Step-1: Install Transmission Daemon using command
sudo apt-get install transmission-daemon
Step-2: You need to setup a few directories to store the downloads from Transmission. I will use /mnt/usbel/Torrents/mytrasnmission/incomplete for ongoing downloads and /mnt/usbel/Torrents/mytrasnmission/completed for the finished files
Step-3: Setting up the permissions; Transmission runs with “debian-transmission” user by default for security reasons. You can set it up as per your security needs, just remember that your download directories must have rw access for the “debian-transmission” user.
sudo usermod –a –g pi debian-transmission
chgrp debian-transmission /mnt/usbel/Torrents/mytrasnmission/incomplete
chgrp debian-transmission /mnt/usbel/Torrents/mytrasnmission/complete
chmod 770 /mnt/usbel/Torrents/mytrasnmission/incomplete
chmod 770 /mnt/usbel/Torrents/mytrasnmission/complete
Step-4: Reload the transmission-daemon –
sudo service transmission-daemon reload
Step-5: Now, change certain things if they are not being there already, use file
sudo nano /etc/transmission-daemon/settings.json
“download-dir” : “/mnt/usbel/Torrents/mytrasnmission/complete”,
“incomplete-dir” : “/mnt/usbel/Torrents/mytrasnmission/incomplete”,
“incomplete-dir-enabled” : true,
“watch-dir” : “/mnt/usbel/Torrents/mytrasnmission/watch”,
“rpc-whitelist” : “192.168.*.*”,
“rpc-whiteliest-enabled” : false,
“rpc-authentication-required” : true,
You can also set the upload limit, speed limit, peer limit and other things from this file.
Step-6: Again reload and restart the transmission daemon
sudo service transmission-daemon reload
sudo service transmission-daemon restart
Step-7: Now you are good to go for controlling your transmission client remotely.
Go to http://127.0.0.1:9091/ and enter username/password (default is transmission/transmission).
If you run the downloads for a longer time on your Pi device and if they frequently hung, then it may be the Raspberry Pi Kernel panic issue. Make the following changes to reboot your Raspberry Pi and solve the issue:
Edit file /boot /cmdline.txt and then add “smsc95xx.turbo_mode=N”
Edit file /etc/sysctl.conf and then change “vm.min-free-kbytes=16384” (it will change from 8MB to 16MB)
After all the settings up, the file will be started to download in your “incomplete” dir. And after it is done, it will move to the “completed” dir. Make a new public share directory to have access to it from the Raspberry Pi NAS.
You can become the part of the global “Linux Distribution Network” by building a secure and dedicated torrent-downloading structure that uses a bare maximum of 10W power with the support of the Raspberry Pi. Downloading and seeding from a regular computer can be a time-taking and high energy-consuming task, this can be avoided using the Transmission Daemon with your Raspberry Pi device.
This post is written by : Azad Shaikh
Azad Shaikh is founder and manager of Best on Internet. He likes to call himself internet geeks. As a tech geek he like to read and write about anything tech. He is currently playing with his new Raspberry Pi 3.