Difference between revisions of "Transmission"
Rafahsolis (talk | contribs) |
Rafahsolis (talk | contribs) |
||
| Line 25: | Line 25: | ||
==== Port Test ==== | ==== Port Test ==== | ||
transmission-remote -n 'user:password' -pt | transmission-remote -n 'user:password' -pt | ||
| + | curl http://portcheck.transmissionbt.com/45050 | ||
| + | |||
==== Aliases ==== | ==== Aliases ==== | ||
<nowiki>nano /home/user/.bash_aliases | <nowiki>nano /home/user/.bash_aliases | ||
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