RTorrent - установка и настройка

Материал из AlexNook
Перейти к навигацииПерейти к поиску

rTorrent - консолный торрент клиент - программа работающая с сетями p2p. Очень удобно иметь запущенную программу в screen, особенно в круглосуточно работающем компьютере.

Установка

В Gentoo для установки программы достаточно выполнить:

emerge rtorrent

Настройка

Приведу банально пример своей настройки программы.

Сперва создаём следующую структуру каталогов.

Code: Структура каталогов
/torrents/data - папка, куда будут сохранятся скаченные файлы
/torrents/data/openSUSE-11.0-DVD-i386-iso - пример файла
/torrents/sessions - служебная папка для программы (необходимо создать)
/torrents/torrentfiles - папка с файлами вида *.torrent

Далее приведу свой конфигурационный файл. При этом кстати полезно почитать и дефолтный файл, т.к. там всё подробно прокомментировано.

File: ~/.rtorrent.rc
#SCGI PORT for XML-RPC Connections (for ruTorrent)
#scgi_port = 127.0.0.1:5000
#encoding_list = UTF-8


# creating files with chmod 755 = 777 - 022
system.umask.set = 022


# if rTorrent should use UDP; Set whatever the client should try to connect to UDP trackers.
use_udp_trackers = yes

# Max. number of upload slots per torrent;
max_uploads = 200

# Min. and max. connections to one torrent;
min_peers=10
max_peers=400

# min and max number for seeding completed torrents (-1 = same as downloading)
min_peers_seed = 10
max_peers_seed = 50

# Default upload speed (0 means No Limit);
upload_rate = 0

# Default download speed (0 means No Limit);
download_rate = 0

# where the downloaded files will be saved;
directory = /mnt/samba/ochakovo/torrents/data

# The settings of torrents will be saved in this directory;
# and a file, which will prevent rTorrent running more than once;
session = /mnt/samba/ochakovo/torrents/sessions

# Watch a directory for new torrents, and stop those that have been
# deleted.
schedule = watch_directory,5,5,load_start=/mnt/samba/ochakovo/torrents/torrentfiles/*.torrent

# Port range from where rTorrent will try to connect;
port_range = 6880-6992

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


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

# 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,try_outgoing,enable_retry

# 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 = 6891

# 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

#schedule = untied_directory,5,5,stop_untied=

# 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

check_hash = yes

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



# rtorrent will not start without IPv6 support in your kernel
# without further configuration. Please set bind=0.0.0.0 or
# similar in your rtorrent.rc
# Upstream bug: https://github.com/rakshasa/rtorrent/issues/732

bind = 0.0.0.0


Warning: Важно обратить внимание на строчку bind = 0.0.0.0 которая появилась из-за бага с IPv6

Горячие клавиши и основное меню программы

Описывать не стану, т.к. есть отличный мануал.

Меню закачки
Основное меню

Ссылки

  1. Оффициальный сайт
  2. WikiPedia
  3. WikiBooks