Rtorrent

From Omnia
Revision as of 13:52, 5 June 2019 by Kenneth (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

# Install dependencies

# 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

[Image:Rtorrent overview screenshot.png|thumb|none|400px|rTorrent overview]

[Image:Rtorrent download details screenshot.png|none|400px|rTorrent download details]

Source: polishlinux.org » rTorrent — console P2P!

.rtorrent.rc

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

# Maximum and minimum number of peers to connect to per torrent.
#min_peers = 40
#max_peers = 100

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

# Maximum number of simultanious uploads per torrent.
#max_uploads = 15

# Global upload and download rate in KiB. "0" for unlimited.
#download_rate = 0
#upload_rate = 0

# Default directory to save the downloaded torrents.
#directory = ./

# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
#session = ./session

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

# Close torrents when diskspace is low.
#schedule = low_diskspace,5,60,close_low_diskspace=100M

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

# The ip address reported to the tracker.
#ip = 127.0.0.1
#ip = rakshasa.no

# The ip address the listening socket and outgoing connections is
# bound to.
#bind = 127.0.0.1
#bind = rakshasa.no

# Port range to use for listening.
#port_range = 6890-6999

# Start opening ports at a random position within the port range.
#port_random = no

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

# Set whetever the client should try to connect to UDP trackers.
#use_udp_trackers = yes

# Alternative calls to bind and ip that should handle dynamic ip's.
#schedule = ip_tick,0,1800,ip=rakshasa
#schedule = bind_tick,0,1800,bind=rakshasa

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

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

# UDP port to use for DHT.
#
# dht_port = 6881

# Enable peer exchange (for torrents not marked private)
#
# peer_exchange = yes

#
# Do not modify the following parameters unless you know what you're doing.
#

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

# Interval between attempts to check the hash, in milliseconds.
#hash_interval = 100

# Number of attempts to check the hash while using the mincore status,
# before forcing. Overworked systems might need lower values to get a
# decent hash checking rate.
#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 [1]

Issues

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 #mktorrent