RTorrent - установка и настройка
Материал из AlexNook
rTorrent - консолный торрент клиент - программа работающая с сетями p2p. Очень удобно иметь запущенную программу в screen, особенно в круглосуточно работающем компьютере.
Установка
В Gentoo для установки программы достаточно выполнить:
emerge rtorrent
Настройка
Приведу банально пример своей настройки программы.
Сперва создаём следующую структуру каталогов.
Code: Структура каталогов |
/torrents/data - папка, куда будут сохранятся скаченные файлы /torrents/data/openSUSE-11.0-DVD-i386-iso - пример файла /torrents/sessions - служебная папка для программы (необходимо создать) /torrents/torrentfiles - папка с файлами вида *.torrent |
Далее приведу свой конфигурационный файл. Список команд (настроек) rtorrent можно почитать вот тут
File: ~/.rtorrent.rc
#SCGI PORT for XML-RPC Connections (for ruTorrent)
#network.scgi.open_port = 127.0.0.1:5000
#encoding.add = UTF-8
# creating files with chmod 755 = 777 - 022
system.umask.set = 0022
# if rTorrent should use UDP; Set whatever the client should try to connect to UDP trackers.
trackers.use_udp.set = yes
# Max. number of upload slots per torrent;
throttle.max_uploads.set = 200
# Min. and max. connections to one torrent;
throttle.min_peers.normal.set = 10
throttle.max_peers.normal.set = 400
# min and max number for seeding completed torrents (-1 = same as downloading)
throttle.min_peers.seed.set = 10
throttle.max_peers.seed.set = 50
# Default upload speed (0 means No Limit);
throttle.global_up.max_rate.set_kb = 0
# Default download speed (0 means No Limit);
throttle.global_down.max_rate.set_kb = 0
# where the downloaded files will be saved;
directory.default.set = /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.path.set = /mnt/samba/ochakovo/torrents/sessions
# Watch a directory for new torrents, and stop those that have been
# deleted.
schedule2 = watch_directory,5,5,load.start=/mnt/samba/ochakovo/torrents/torrentfiles/*.torrent
# Port range from where rTorrent will try to connect;
network.port_range.set = 6880-6992
# Start opening ports at a random position within the port range.
network.port_random.set = yes
# Close torrents when diskspace is low.
schedule2 = 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
protocol.encryption.set = 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.mode.set = auto
# UDP port to use for DHT.
#
dht.port.set = 6891
# Enable peer exchange (for torrents not marked private)
#
protocol.pex.set = 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
pieces.hash.on_completion.set = 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
network.bind_address.set = 0.0.0.0
Warning: Важно обратить внимание на строчку bind = 0.0.0.0 которая появилась из-за бага с IPv6
Горячие клавиши и основное меню программы
Описывать не стану, т.к. есть отличный мануал.