Last active
March 17, 2016 00:41
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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