Skip to content

Instantly share code, notes, and snippets.

@mritzco
Last active April 26, 2019 06:23
Show Gist options
  • Save mritzco/6309012 to your computer and use it in GitHub Desktop.
Save mritzco/6309012 to your computer and use it in GitHub Desktop.
Setting up transmission on your Raspberry PI on RaspBMC

Step by step guide to setting up transmission on your RPI

Notes

  • Use a card at least 8gigs
  • Format the card to ext4
  • Follow instructions on site

You can enter this commands from the Raspberry itself or connect using SSH

Most RPI information taken from: http://eraldmariano.com/how-to-install-xbmc-transmission-on-raspberry-pi/

Lines with # are comments for your reference

1. Optional: Use SSH from your computer OR just quit XBMC and use a keyboard and your TV or monitor

Using ubuntu go to terminal and type

ssh 192.168.1.x -l pi # Be sure to enter the IP of your raspberry, the default account is pi/raspberry

new ssh: osmc/osmc

2. re-mount the external hard-disk in /mnt instead of media (So we can set permissions and they aren't lost on restart)

Check partitions and disks

$  sudo cat /etc/fstab
$  sudo fdisk -l
$  sudo blkid
*unmount*
$  sudo umount /dev/**sda1**
$  sudo blkid
$  cd /mnt
$  sudo mkdir **hdd**
$  sudo mount /dev/**sda1** /mnt/**hdd**
$  sudo nano /etc/fstab
// Add your drive to fstab, in my case:
/dev/sda1  /mnt/hdd  ntfs-3g      defaults,*users*,noatime  0  0

3. Install transmission

sudo apt-get install transmission-daemon

4. Configure transmission

sudo /etc/init.d/transmission-daemon stop

Optional, create a backup of the original file

sudo cp /etc/transmission-daemon/settings.json /etc/transmission-daemon/settings.bak

STOP the service before editing, otherwise your changes will be overwritten

sudo nano /etc/transmission-daemon/settings.json

Edit this lines in nano, be sure to modify the first 3 to your own (user/pwd are up to you)

"download-dir": "/home/transmission", <- Your own directory
"rpc-password": "raspberry", 	  <- The password of your choice in clear text (transmission will replace this)
"rpc-username": "pi", 		  <- The username of your choice (To enter in the plugin)
"rpc-whitelist": "*.*.*.*", 

Save the file Ctrl+o and Ctrl+x

  1. Create the download directory as you entered in the settings file
# For card dir:
sudo mkdir "/home/transmission"

# For HDD you might not be to create
sudo mkdir /mnt/hdd/transmission

5. Change directory permissions

sudo chmod g+rw /home/transmission sudo chgrp -R debian-transmission /home/transmission

You can check with ls -l if this was successful:

Go to parent of your directory

cd /home
ls -l

It should look similar to this:

drwxrwxr-x 3 root debian-transmission 4096 Aug 22 22:16 transmission

$  sudo usermod -a -G osmc debian-transmission

** If it doesn't work try swapping user group **

Be aware that if you use an external drive with windows partitions you will not be able to change permissions and transmission will not be able to write files. You can check out http://www.linuxforums.org/forum/debian-linux/79749-mount-fat32-shared-partition-write-permission.html or just google around.

6. Restart the service

sudo /etc/init.d/transmission-daemon start

We're done with the terminal, Go back to XBMC

7. Enable transmission plugin

System > Settings > Add-ons > XBM.org Add-ons > Program Add-ons > Transmission > Enable

Enter your user and password (The ones you entered in Settings)

Transmission Settings

Enter User and Password

8. Add some torrents and enjoy

Now you can access via transmission app, or IP:9091 from any browser or You can connect with an app "I've used Remote Transmission application on my Android phone"

If you get "Permission denied errors" check your directory permission and group

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment