RTorrent - установка и настройка: различия между версиями

Материал из AlexNook
Перейти к навигацииПерейти к поиску
Строка 11: Строка 11:
Сперва создаём следующую структуру каталогов.  
Сперва создаём следующую структуру каталогов.  
{{Code|Структура каталогов|<pre>
{{Code|Структура каталогов|<pre>
/torrents - папка, куда будут сохранятся скаченные файлы
/torrents/data - папка, куда будут сохранятся скаченные файлы
/torrents/openSUSE-11.0-DVD-i386-iso - пример файла
/torrents/data/openSUSE-11.0-DVD-i386-iso - пример файла
/torrents/sessions - служебная папка для программы (необходимо создать)
/torrents/sessions - служебная папка для программы (необходимо создать)
/torrents/torrentfiles - папка с файлами вида *.torrent
/torrents/torrentfiles - папка с файлами вида *.torrent
</pre>}}
</pre>}}


Далее приведу свой конфигурационный файл. При этом кстати полезно почитать и дефолтный файл, т.к. там всё подробно прокоментированно.
Далее приведу свой конфигурационный файл. При этом кстати полезно почитать и дефолтный файл, т.к. там всё подробно прокомментировано.
{{File|~/.rtorrent.rc|<pre>
 
{{file|~/.rtorrent.rc|
<syntaxhighlight lang="apache" line start="1" line="GESHI_FANCY_LINE_NUMBERS" enclose="div">
 
#SCGI PORT for XML-RPC Connections (for ruTorrent)
#scgi_port = 127.0.0.1:5000
#encoding_list = UTF-8
 
# if rTorrent should use UDP; Set whatever the client should try to connect to UDP trackers.
# if rTorrent should use UDP; Set whatever the client should try to connect to UDP trackers.
use_udp_trackers = yes
use_udp_trackers = yes
Строка 40: Строка 47:


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


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


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


# Port range from where rTorrent will try to connect;
# Port range from where rTorrent will try to connect;
Строка 67: Строка 74:
# plaintext to RC4 encryption after the encrypted handshake
# plaintext to RC4 encryption after the encrypted handshake
#
#
  encryption = allow_incoming,enable_retry,prefer_plaintext
  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)
# Enable peer exchange (for torrents not marked private)
Строка 73: Строка 91:
  peer_exchange = yes
  peer_exchange = yes


</pre>}}
#
# 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
 
 
 
 
</syntaxhighlight>
}}


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

Версия 09:04, 25 октября 2023

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

# 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

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

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

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

Ссылки

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