Social Icons

Showing posts with label BitTorrent. Show all posts
Showing posts with label BitTorrent. Show all posts

How to install Transmission on Raspberry Pi (with external storage)


Well there are already many guides on this topic, however, what I found is not all are in complete detail, or misses out on something of the other (completely personal opinion though :) ). Here comes my guide to install Transmission BitTorrent client on headless Raspberry Pi. This will especially be helpful for users who have followed my guides on setting up NAS drive with RasPi.

Let's Start...

Step 1
Install transmission
sudo apt-get update
sudo apt-get install transmission-daemon

Step 2
Create required directories on your NAS storage (path to storage is assumed as /media/NASDRIVE)
mkdir -p /media/NASDRIVE/Torrent_inprogress
mkdir -p /media/NASDRIVE/Torrent_complete

Step 3
Permissions
Transmission by default runs with user "debian-transmission", as it is recommended not to change this due to security reasons. In our setup the NASDRIVE has the permission set as 770 for pi : pi. Thus we will add user "debian-transmission" to "pi" group to give rwx access on our NASDRIVE. You can go ahead and modify this step as per your security requirement, but just make sure your torrent download directories are having rw access for "debian-transmission" user.
sudo usermod -a -G pi debian-transmission

Step 4
Configure Transmission
While most of the parameters are self explanatory in the conf file, you can use the file given below, except for modify the parameters download-dir, incomplete-dir, rpc-username, rpc-password 
Note: rpc-password will automatically converted to hashstring on saving the file
sudo nano /etc/transmission-daemon/settings.json


Step 5
Reload Transmission
Do not restart, It overwrites the configuration file in that case
sudo service transmission-daemon reload

Step 6
Open web browser and hit http://your_raspberry_pi_IP:9091
Enter the user id and password you've configured, and viola!

Setup BitTorrent Sync on Raspberry Pi

While all the hype is all about cloud storage, Dropbox, Google Drive, or self-hosted OwnCloud, here comes P2P based file syncing tool called BitTorrent® Sync. The main ideology is your data remains yours and just with you, not on any third party server, thus possibly keeping away prying eyes like NSA, ICMS, etc. In our previous article on OwnCloud we have seen how to set up our own cloud storage, and this time its P2P Sync from the makers of BitTorrent. One down-side of self hosted file sharing / syncing system is that it needs to be left turned on always for 24x7 availability. And Raspberry Pi is a perfect choice for this, low power consumption, small size, etc. So let's get straight into business...

Step 1
Download BitTorrent Sync
wget http://download-lb.utorrent.com/endpoint/btsync/os/linux-arm/track/stable/btsync_arm.tar.gz


Step 2 
Unzip & Untar the downloaded file
cd /home/pi
tar -zxvf btsync_arm.tar.gz

Step 3
Start BitTorrent Sync
./btsync

Step 4
Configure Raspberry Pi to start btsync everytime it starts
sudo crontab -e

Add the following line and ctrl+x and confirm to save
@reboot /home/pi/btsync

Step 5
Now just go ahead and point your browser to your Raspberry Pi

http:[Your Raspberry Pi IP]//:8888
e.g.: http://192.188.1.2:8888

Your need to configure the folders you plan to sync with other devices, and login credentials as you wish to choose.

This is far more easier than OwnCloud way, the Android client app for BitTorrent Sync comes for free and have great utility. Go for it...