Difference between revisions of "Transmission"

From RHS Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 23: Line 23:
 
  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 52: Line 55:
 
=== transmission remote examples ===
 
=== transmission remote examples ===
 
==== Create a torrent file with transmission CLI ====
 
==== 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/
+
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
 
 
-o /var/lib/transmission-daemon/downloads/files.torrent
 
  
 
New torrent name and where to store the torrent
 
New torrent name and where to store the torrent
Line 80: Line 81:
 
transmission-create -h
 
transmission-create -h
  
Add a Torrent
+
==== Add a Torrent ====
 
 
 
To add a torrent to the daemon, use this command:
 
To add a torrent to the daemon, use this command:
 +
transmission-remote -a [path to file].torrent
  
transmission-remote -a [path to file].torrent
+
==== Torrent Information ====
 
 
transmission-remote -n 'transmission:transmission' -a /var/lib/transmission-daemon/downloads/files.torrent
 
 
 
Torrent Information
 
 
 
 
Display information about torrent's being downloaded
 
Display information about torrent's being downloaded
  
Line 96: Line 92:
 
transmission-remote -h
 
transmission-remote -h
  
List all torrents
+
==== List all torrents ====
 +
transmission-remote -n 'username:password' -l
  
Note Authentication is required
+
==== Basic Stats All Torrents ====
 +
transmission-remote -n 'transmission:transmission' -st
  
transmission-remote -n 'username:password' -l
+
==== Full Stats All Torrents ====
 
+
transmission-remote -n 'transmission:transmission' -si
transmission-remote -n 'transmission:transmission' -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
 
Torrent #3 Full Stats
Line 122: Line 111:
 
Transmission Control
 
Transmission Control
  
Start all torrents
+
==== Start all torrents ====
 
+
transmission-remote -n 'transmission:transmission' -s
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
+
==== Stop all torrents ====
 +
transmission-remote -n 'transmission:transmission' -S
  
Remove a specific torrent
+
==== Start a specific torrent ====
 +
transmission-remote -s [hash]
 +
transmission-remote -n 'transmission:transmission' -s -t 3
  
transmission-remote -r [hash]
+
==== Stop a specific torrent ====
 +
transmission-remote -S [hash]
 +
transmission-remote -n 'transmission:transmission' -S -t 3
  
transmission-remote -n 'transmission:transmission' -r -t 3
+
==== Remove all torrents ====
 +
transmission-remote -n 'transmission:transmission' -r
  
Get hashes for all torrents
+
==== Remove a specific torrent ====
 +
transmission-remote -r [hash]
 +
transmission-remote -n 'transmission:transmission' -r -t 3
  
transmission-remote -n 'transmission:transmission' -i
+
==== Get hashes for all torrents ====
 +
transmission-remote -n 'transmission:transmission' -i
  
Quit the daemon
+
==== Quit the daemon ====
 +
transmission-remote -n 'transmission:transmission' -q
  
transmission-remote -n 'transmission:transmission' -q
 
 
== Move Files Script ==
 
== Move Files Script ==
 
  <nowiki># Get a list of all of the torrent files matching `grep`, and output to a (temp) text file:
 
  <nowiki># Get a list of all of the torrent files matching `grep`, and output to a (temp) text file:
Line 164: Line 143:
  
 
Loop through all lines in the text file, capture first column into $value1, move it!
 
Loop through all lines in the text file, capture first column into $value1, move it!
while IFS=" " read -r value1 remainder;do transmission-remote -t $value1 --move /home/pat/Downloads/seeding/;done < list.txt</nowiki>
+
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

Latest revision as of 16:17, 1 December 2018

Bit Torrent client linux

Headless[edit]

Install[edit]

sudo add-apt-repository ppa:transmissionbt/ppa
sudo apt-get update
sudo apt-get install transmission-cli transmission-common transmission-daemon

Configure[edit]

sudo service transmission-daemon stop
sudo nano /var/lib/transmission-daemon/info/settings.json

Username and Password[edit]

"rpc-password": "new rpc password will be hashed when transmission-daemon starts",
"rpc-username": "transmission",
"rpc-whitelist": "127.0.0.1,192.168.*.*",
"umask": 2,

Save and exit

sudo service transmission-daemon start
sudo usermod -a -G debian-transmission user

Starting and Stopping Transmission Daemon[edit]

sudo service transmission-daemon start
sudo service transmission-daemon stop
sudo service transmission-daemon reload

Port Test[edit]

transmission-remote -n 'user:password' -pt
curl http://portcheck.transmissionbt.com/45050

Aliases[edit]

nano /home/user/.bash_aliases

TORRENTS_DIR='/home/rafa/PycharmProjects/Scrapers/xdownload/XDownload/XDownload/torrents/pornbay'
TRANSMISSION_DOWNLOAD_FOLDER='/home/rafa/Downloads/tranmission'
alias t-start='sudo service transmission-daemon start'
alias t-stop='sudo service transmission-daemon stop'
alias t-reload='sudo service transmission-daemon reload'
alias t-list='transmission-remote -n 'transmission:transmission' -l'
alias t-basicstats='transmission-remote -n 'transmission:transmission' -st'
alias t-fullstats='transmission-remote -n 'transmission:transmission' -si'
# alias t-download='echo transmission-cli -w ${TRANSMISSION_DOWNLOAD_FOLDER} -er $TORRENTS_DIR'

function t-download() {
    transmission-cli -w ${TRANSMISSION_DOWNLOAD_FOLDER} -er $TORRENTS_DIR/${1}
}

Web Interface[edit]

http://server-ip:9091

Command Line Interface[edit]

List Torrents[edit]

transmission-remote -n 'username:password' -l

Move File[edit]

transmission-remote -n 'username:password' -t torrent_id_from_list_torrents --move /var/lib/transmission-daemon/downloads/

transmission remote examples[edit]

Create a torrent file with transmission CLI[edit]

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[edit]

To add a torrent to the daemon, use this command:

transmission-remote -a [path to file].torrent

Torrent Information[edit]

Display information about torrent's being downloaded

Help information

transmission-remote -h

List all torrents[edit]

transmission-remote -n 'username:password' -l

Basic Stats All Torrents[edit]

transmission-remote -n 'transmission:transmission' -st

Full Stats All Torrents[edit]

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[edit]

transmission-remote -n 'transmission:transmission' -s

Stop all torrents[edit]

transmission-remote -n 'transmission:transmission' -S

Start a specific torrent[edit]

transmission-remote -s [hash]
transmission-remote -n 'transmission:transmission' -s -t 3

Stop a specific torrent[edit]

transmission-remote -S [hash]
transmission-remote -n 'transmission:transmission' -S -t 3

Remove all torrents[edit]

transmission-remote -n 'transmission:transmission' -r

Remove a specific torrent[edit]

transmission-remote -r [hash]
transmission-remote -n 'transmission:transmission' -r -t 3

Get hashes for all torrents[edit]

transmission-remote -n 'transmission:transmission' -i

Quit the daemon[edit]

transmission-remote -n 'transmission:transmission' -q

Move Files Script[edit]

# 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

Torrent file location[edit]

/var/lib/transmission-daemon/info/torrents