Rtorrent

rtorrent
rTorrent - http://libtorrent.rakshasa.no/

Installation
CentOS: Install from rpmforge yum install rtorrent --enablerepo=rpmforge

Usage
rTorrent - ArchWiki - https://wiki.archlinux.org/index.php/RTorrent

Manual Installation

 * 1) Install dependencies


 * 1) libsigc++20 - from rpmforge, might as well install whole thing from rpmforge...

yum install gcc make

mkdir -p ~/.src ; cd ~/.src

wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.11.1.tar.gz wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.7.1.tar.gz

tar xfz libtorrent-0.11.1.tar.gz cd libtorrent-0.11.1 ./configure --prefix=/opt/libtorrent make && sudo make install

tar xfz rtorrent-0.7.1.tar.gz cd rtorrent-0.7.1 ./configure make sudo make install

Source: How to Install the Latest Version of rTorrent - Softpedia - http://news.softpedia.com/news/How-to-Install-the-Latest-Version-of-rTorrent-51166.shtml

---

Source: Install – The libTorrent and rTorrent Project - http://libtorrent.rakshasa.no/wiki/Install

Usage
rTorrent (libtorrent)
 * Works really fast, but the interface screen is sometimes confusing.

rTorrent User Guide: Torrent: 161.6 /  617.2 MB Rate:   1.1 /  41.3 KB Uploaded:     5.1 MB [24%]  0d  3:09 [TI R: 0.03]

Torrent info line explanation

Torrent: 161.6 / 617.2 MB
 * Amount of downloaded data / total size of torrent.

Rate: 1.1 / 41.3 KB
 * Upload / download speed rates.

Uploaded: 5.1 MB
 * Amount of uploaded data.

[24%]
 * Download ratio. 161.6 MB downloaded makes 24% of the total 617.2 MB. Well, roughly apparently, presumably since some of the downloaded data may have been bad and discarded.

0d 3:09
 * Estimated completion time. This torrent is expected to be completely downloaded in 0 days, 3 hours and 9 minutes.

T
 * Present if torrent is tied to a file, blank otherwise.

I
 * Present if torrent is ignoring commands (such as stop_on_ratio). Toggle with 'I'.

R: 0.03
 * Share ratio. 5.1 MB uploaded makes 3% of the 161.6 MB already downloaded.

rTorrent Screenshots




Source: polishlinux.org » rTorrent — console P2P!

.rtorrent.rc

 * 1) This is an example resource file for rTorrent. Copy to
 * 2) ~/.rtorrent.rc and enable/modify the options as needed. Remember to
 * 3) uncomment the options you wish to enable.


 * 1) Maximum and minimum number of peers to connect to per torrent.
 * 2) min_peers = 40
 * 3) max_peers = 100


 * 1) Same as above but for seeding completed torrents (-1 = same as downloading)
 * 2) min_peers_seed = 10
 * 3) max_peers_seed = 50


 * 1) Maximum number of simultanious uploads per torrent.
 * 2) max_uploads = 15


 * 1) Global upload and download rate in KiB. "0" for unlimited.
 * 2) download_rate = 0
 * 3) upload_rate = 0


 * 1) Default directory to save the downloaded torrents.
 * 2) directory = ./


 * 1) Default session directory. Make sure you don't run multiple instance
 * 2) of rtorrent using the same session directory. Perhaps using a
 * 3) relative path?
 * 4) session = ./session


 * 1) Watch a directory for new torrents, and stop those that have been
 * 2) deleted.
 * 3) schedule = watch_directory,5,5,load_start=./watch/*.torrent
 * 4) schedule = untied_directory,5,5,stop_untied=


 * 1) Close torrents when diskspace is low.
 * 2) schedule = low_diskspace,5,60,close_low_diskspace=100M


 * 1) Stop torrents when reaching upload ratio in percent,
 * 2) when also reaching total upload in bytes, or when
 * 3) reaching final upload ratio in percent.
 * 4) example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
 * 5) schedule = ratio,60,60,"stop_on_ratio=200,200M,2000"


 * 1) The ip address reported to the tracker.
 * 2) ip = 127.0.0.1
 * 3) ip = rakshasa.no


 * 1) The ip address the listening socket and outgoing connections is
 * 2) bound to.
 * 3) bind = 127.0.0.1
 * 4) bind = rakshasa.no


 * 1) Port range to use for listening.
 * 2) port_range = 6890-6999


 * 1) Start opening ports at a random position within the port range.
 * 2) port_random = no


 * 1) Check hash for finished torrents. Might be usefull until the bug is
 * 2) fixed that causes lack of diskspace not to be properly reported.
 * 3) check_hash = no


 * 1) Set whetever the client should try to connect to UDP trackers.
 * 2) use_udp_trackers = yes


 * 1) Alternative calls to bind and ip that should handle dynamic ip's.
 * 2) schedule = ip_tick,0,1800,ip=rakshasa
 * 3) schedule = bind_tick,0,1800,bind=rakshasa


 * 1) Encryption options, set to none (default) or any combination of the following:
 * 2) allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
 * 3) The example value allows incoming encrypted connections, starts unencrypted
 * 4) outgoing connections but retries with encryption if they fail, preferring
 * 5) plaintext to RC4 encryption after the encrypted handshake
 * 6) encryption = allow_incoming,enable_retry,prefer_plaintext
 * 1) encryption = allow_incoming,enable_retry,prefer_plaintext
 * 1) encryption = allow_incoming,enable_retry,prefer_plaintext


 * 1) Enable DHT support for trackerless torrents or when all trackers are down.
 * 2) May be set to "disable" (completely disable DHT), "off" (do not start DHT),
 * 3) "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
 * 4) The default is "off". For DHT to work, a session directory must be defined.
 * 5) dht = auto
 * 1) dht = auto


 * 1) UDP port to use for DHT.
 * 2) dht_port = 6881
 * 1) dht_port = 6881


 * 1) Enable peer exchange (for torrents not marked private)
 * 2) peer_exchange = yes
 * 1) peer_exchange = yes


 * 1) Do not modify the following parameters unless you know what you're doing.
 * 1) Do not modify the following parameters unless you know what you're doing.


 * 1) Hash read-ahead controls how many MB to request the kernel to read
 * 2) ahead. If the value is too low the disk may not be fully utilized,
 * 3) while if too high the kernel might not be able to keep the read
 * 4) pages in memory thus end up trashing.
 * 5) hash_read_ahead = 10


 * 1) Interval between attempts to check the hash, in milliseconds.
 * 2) hash_interval = 100


 * 1) Number of attempts to check the hash while using the mincore status,
 * 2) before forcing. Overworked systems might need lower values to get a
 * 3) decent hash checking rate.
 * 4) hash_max_tries = 10

Source: http://libtorrent.rakshasa.no/browser/trunk/rtorrent/doc/rtorrent.rc#latest

Installation
rTorrent is a console-based BitTorrent client. It aims to be a fully-featured and efficient client with the ability to run in the background using screen. It supports fast-resume and session management.

Install from Dag Wieers

http://dag.wieers.com/rpm/packages/rtorrent/rtorrent-0.8.0-1.el5.rf.i386.rpm http://dag.wieers.com/rpm/packages/libtorrent/libtorrent-0.12.0-1.el5.rf.i386.rpm http://dag.wieers.com/rpm/packages/libsigc++20/libsigc++20-2.0.17-1.el5.rf.i386.rpm

Controls
rTorrent relies exclusively on keyboard shortcuts for user input. A complete guide is available on the main site: rTorrent User Guide

Here are the basics for quick reference:


 * Control-q : closes rTorrent, done twice makes the program shutdown without waiting to send stopping information to the trackers.
 * Left arrow : returns to the previous screen.
 * Right arrow : goes to the next screen.
 * a|s|d : increase global upload throttle about 1|5|50 KB/s
 * A|S|D : increase global download throttle about 1|5|50 KB/s
 * z|x|c : decrease global upload throttle about 1|5|50 KB/s
 * Z|X|C : decrease global download throttle about 1|5|50 KB/s
 * Control-S : starts download
 * Control-D : stops an active download, removes a stopped download.
 * + or - : changes the download priority of selected torrent.
 * Backspace : adds the specified .torrent. After pressing this button write full path or URL of .torrent file. You can use Tab and other tricks from bash.

Source: https://wiki.archlinux.org/index.php/RTorrent

Magnets
To download a magnet, load the interface, press backspace and paste in the URL

ref

Could not read resource file
Could not read resource file: ~/.rtorrent.rc

This is the rtorrent configuration. You can simply create a blank one avoid this warning message, but you should add the desired configuration options: touch ~/.rtorrent.rc

low diskspace
[CLOSED] Closed torrents due to low diskspace.

Solution: free disk space

rtorrent unable to create .torrent files
656 (rtorrent can not create torrent files) – The libTorrent and rTorrent Project - http://libtorrent.rakshasa.no/ticket/656

Solution: Use