Skip to content

Instantly share code, notes, and snippets.

@ericoporto
Last active March 17, 2016 00:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericoporto/0235fc7ee9eda5c856ae to your computer and use it in GitHub Desktop.
Save ericoporto/0235fc7ee9eda5c856ae to your computer and use it in GitHub Desktop.
Script to download Magnets I click on my browser, remotely, on my Raspberry Pi
#!/bin/bash
# This script assumes you have a Raspberry Pi (or other always on server) running
# a Transmission-Daemon. It allows you to download you Magnet torrents on it, from
# yours PC browser (Firefox on Linux) on it, remotely. Save it as executable on
# your script folder, such as /usr/local/sbin .
# Open Firefox and in the address bar type:
# about:config
# There, right click anywhere to create a new boolean entry (New->Boolean) called:
# network.protocol-handler.expose.magnet
# Set it's value as false.
# Now, next time you click on a magnet, select this script as the program to use
# to open from Firefox. Remember to set rpc-authentication-required: false .
# You can view the download in http://youripaddress:9091/transmission/web/ .
# Fill REMOTE with the address of your Raspberry Pi
REMOTE='192.168.0.3'
ssh pi@$REMOTE "/usr/bin/transmission-remote --add "$1""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment