check rtorrent version
Please note that you need a recent version of rtorrent for magnet links to work.
rtorrent version used in these examples:
Prepare rtorrent directory structure
The following structure will allow you to keep files in order.
Later we will configure ~/rtorrent.rc to automatically detect new torrent files added in the directory ~/bittorrent/watch
Use following options in file ~/.rtorrent.rc
change working directory into ~/bittorrent
To use the directory structure we created and configured, we should “cd ~/bitorrent”
( or we can use full path directories in the ~/.rtorrent.rc )
download magnet link bash script
You can use following bash script to download a magnet link.
use the script as following
replace “magnet_link” with the real link.