Changes

Jump to navigation Jump to search
3,421 bytes added ,  16:17, 1 December 2018
Line 10: Line 10:  
  sudo nano /var/lib/transmission-daemon/info/settings.json
 
  sudo nano /var/lib/transmission-daemon/info/settings.json
 
==== Username and Password ====
 
==== Username and Password ====
  "rpc-password": "{62b16db87b89a91dd49a5110a7cafc06d20eb4f2wtK6kqPj",
+
  "rpc-password": "new rpc password will be hashed when transmission-daemon starts",
 
  "rpc-username": "transmission",
 
  "rpc-username": "transmission",
 
  "rpc-whitelist": "127.0.0.1,192.168.*.*",
 
  "rpc-whitelist": "127.0.0.1,192.168.*.*",
Line 18: Line 18:  
  sudo service transmission-daemon start
 
  sudo service transmission-daemon start
 
  sudo usermod -a -G debian-transmission user
 
  sudo usermod -a -G debian-transmission user
 +
 
==== Starting and Stopping Transmission Daemon ====
 
==== Starting and Stopping Transmission Daemon ====
 
  sudo service transmission-daemon start
 
  sudo service transmission-daemon start
 
  sudo service transmission-daemon stop
 
  sudo service transmission-daemon stop
 
  sudo service transmission-daemon reload
 
  sudo service transmission-daemon reload
 +
==== Port Test ====
 +
transmission-remote -n 'user:password' -pt
 +
curl http://portcheck.transmissionbt.com/45050
    
==== Aliases ====
 
==== Aliases ====
Line 39: Line 43:  
     transmission-cli -w ${TRANSMISSION_DOWNLOAD_FOLDER} -er $TORRENTS_DIR/${1}
 
     transmission-cli -w ${TRANSMISSION_DOWNLOAD_FOLDER} -er $TORRENTS_DIR/${1}
 
}</nowiki>
 
}</nowiki>
 +
 +
==== Web Interface ====
 +
http://server-ip:9091
 +
 +
=== Command Line Interface ===
 +
==== List Torrents ====
 +
transmission-remote -n 'username:password' -l
 +
==== Move File ====
 +
transmission-remote -n 'username:password' -t torrent_id_from_list_torrents --move /var/lib/transmission-daemon/downloads/
 +
 +
=== transmission remote examples ===
 +
==== Create a torrent file with transmission CLI ====
 +
transmission-create -o /var/lib/transmission-daemon/downloads/files.torrent -c "My comments" -t udp://tracker.openbittorrent.com:80 -t udp://open.demonii.com:1337 -t udp://tracker.coppersurfer.tk:6969 -t udp://tracker.leechers-paradise.org:6969 ~/torrent/complete/ -o /var/lib/transmission-daemon/downloads/files.torrent
 +
 +
New torrent name and where to store the torrent
 +
 +
-c "My comments"
 +
 +
Any comments to be attached to the file
 +
 +
-t udp://tracker.openbittorrent.com:80
 +
 +
-t udp://open.demonii.com:1337
 +
 +
-t udp://tracker.coppersurfer.tk:6969
 +
 +
-t udp://tracker.leechers-paradise.org:6969
 +
 +
Trackers for the torrents, more than one tracker is recommended in case one or more goes down.
 +
 +
~/torrent/complete/
 +
 +
Directory to be made into a torrent. If a single file is required use this format "/var/lib/transmission-daemon/downloads/MyFile.txt"
 +
 +
For more information about "transmission-create"
 +
 +
transmission-create -h
 +
 +
==== Add a Torrent ====
 +
To add a torrent to the daemon, use this command:
 +
transmission-remote -a [path to file].torrent
 +
 +
==== Torrent Information ====
 +
Display information about torrent's being downloaded
 +
 +
Help information
 +
 +
transmission-remote -h
 +
 +
==== List all torrents ====
 +
transmission-remote -n 'username:password' -l
 +
 +
==== Basic Stats All Torrents ====
 +
transmission-remote -n 'transmission:transmission' -st
 +
 +
==== Full Stats All Torrents ====
 +
transmission-remote -n 'transmission:transmission' -si
 +
 +
Torrent #3 Full Stats
 +
 +
transmission-remote -n 'transmission:transmission' -t 3 -f
 +
 +
Torrent #3 Summary Stats
 +
 +
transmission-remote -n 'transmission:transmission' -t 3 -i
 +
 +
Transmission Control
 +
 +
==== Start all torrents ====
 +
transmission-remote -n 'transmission:transmission' -s
 +
 +
==== Stop all torrents ====
 +
transmission-remote -n 'transmission:transmission' -S
 +
 +
==== Start a specific torrent ====
 +
transmission-remote -s [hash]
 +
transmission-remote -n 'transmission:transmission' -s -t 3
 +
 +
==== Stop a specific torrent ====
 +
transmission-remote -S [hash]
 +
transmission-remote -n 'transmission:transmission' -S -t 3
 +
 +
==== Remove all torrents ====
 +
transmission-remote -n 'transmission:transmission' -r
 +
 +
==== Remove a specific torrent ====
 +
transmission-remote -r [hash]
 +
transmission-remote -n 'transmission:transmission' -r -t 3
 +
 +
==== Get hashes for all torrents ====
 +
transmission-remote -n 'transmission:transmission' -i
 +
 +
==== Quit the daemon ====
 +
transmission-remote -n 'transmission:transmission' -q
 +
 +
== Move Files Script ==
 +
<nowiki># Get a list of all of the torrent files matching `grep`, and output to a (temp) text file:
 +
transmission-remote -l | grep "Good" > list.txt
 +
 +
Loop through all lines in the text file, capture first column into $value1, move it!
 +
while IFS=" " read -r value1 remainder;do transmission-remote -n 'user:password' -t $value1 --move /home/pat/Downloads/seeding/;done < list.txt</nowiki>
 +
== Torrent file location ==
 +
/var/lib/transmission-daemon/info/torrents

Navigation menu