Difference between revisions of "Transmission"

From RHS Wiki
Jump to navigation Jump to search
(Created page with "Bit Torrent client linux == Headless == === Install === sudo add-apt-repository ppa:transmissionbt/ppa sudo apt-get update sudo apt-get install transmission-cli transmissi...")
 
Line 39: Line 39:
 
     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 ===
 +
==== 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
 +
 +
transmission-remote -n 'transmission:transmission' -a /var/lib/transmission-daemon/downloads/files.torrent
 +
 +
Torrent Information
 +
 +
Display information about torrent's being downloaded
 +
 +
Help information
 +
 +
transmission-remote -h
 +
 +
List all torrents
 +
 +
Note Authentication is required
 +
 +
transmission-remote -n 'username:password' -l
 +
 +
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
 +
 +
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

Revision as of 23:37, 11 August 2018

Bit Torrent client linux

Headless

Install

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

Configure

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

Username and Password

"rpc-password": "{62b16db87b89a91dd49a5110a7cafc06d20eb4f2wtK6kqPj",
"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

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

Aliases

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

http://server-ip:9091

Command Line Interface

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

transmission-remote -n 'transmission:transmission' -a /var/lib/transmission-daemon/downloads/files.torrent

Torrent Information

Display information about torrent's being downloaded

Help information

transmission-remote -h

List all torrents

Note Authentication is required

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

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

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