Установка и настройка OPKG-пакета rTorrent

rTorrent — BitTorrent клиент, написанный на языке C++ для операционных систем Linux, на основе библиотек libTorrent. Легкий и нетребовательный к системным ресурсам BitTorrent-клиент.

Рассмотрим вариант установки версии rTorrent 0.9.7-1 из репозитория Entware.

1. Подготавливаем разделы жесткого диска:

для установки OPKG, как описано в статье: Использование файловой системы EXT4 на USB-накопителях.

2. Установите компоненты OPKG.

В старом веб-интерфейсе (до версии KeeneticOS 2.11):

opkg1.png

В новом веб-интерфейсе (с версии KeeneticOS 2.12):

opkg2.png

NOTE: Важно! Данный способ возможен на моделях с USB-портами: Keenetic II, Keenetic III, Extra, Extra II, Giga II, Giga III, Omni, Omni II, Viva, Ultra, Ultra II, Omni (KN-1410), Extra (KN-1710), Giga (KN-1010), Ultra (KN-1810), Viva (KN-1910), DSL (KN-2010), Duo (KN-2110).

3. После установки компонентов потребуется установить репозиторий пакетов Entware.

Архив установки для Keenetic II, Keenetic III, Extra, Extra II, Giga II, Giga III, Omni, Omni II, Viva, Ultra, Ultra II, Omni (KN-1410), Extra (KN-1710), Giga (KN-1010), Ultra (KN-1810), Viva (KN-1910), DSL (KN-2010), Duo (KN-2110) (mipsel) - mipsel-installer.tar.gz

Архив установки для Keenetic DSL, LTE, VOX (mips) - mips-installer.tar.gz

4. В нашем примере рассмотрим установку архива mipsel.

Скачайте файл mipsel-installer.tar.gz. Данный файл добавьте в заранее созданную директорию install в разделе жесткого диска с файловой системой EXT4.

Далее отключите жесткий диск от компьютера и подключите к роутеру.

opkg3.png

5. Вариант в старом веб-интерфейсе (до версии KeeneticOS 2.11). Если у вас новый веб-интерфейс, тогда переходите к пункту 6 данной инструкции.

После перейдите в меню Приложения на вкладку OPKG и выполните настройки:

  • Включите менеджер пакетов OPKG
  • Использовать накопитель: OPKG (метка EXT4-раздела)
  • Сценарий initrc: /opt/etc/init.d/rc.unslung

Нажмите Применить.

opkg4.png

6. Вариант в новом веб-интерфейсе (с версии KeeneticOS 2.12):

После перейдите на страницу OPKG и выполните настройки:

  • Накопитель: OPKG (метка EXT4-раздела)
  • Сценарий initrc: /opt/etc/init.d/rc.unslung

Нажмите Сохранить.

opkg5.png

7. Перейдите в Системный журнал. В нем должны быть следующие записи:

[I] Mar 28 19:10:34 ndm: Opkg::Manager: /tmp/mnt/OPKG mounted to /tmp/mnt/OPKG.
[I] Mar 28 19:10:34 ndm: Opkg::Manager: /tmp/mnt/OPKG mounted to /opt/.
[I] Mar 28 19:10:34 npkg: inflating "mipsel-installer.tar.gz".
[I] Mar 28 19:10:35 ndm: Opkg::Manager: /tmp/mnt/OPKG initialized.
[I] Mar 28 19:10:35 ndm: Opkg::Manager: configured init script: "/opt/etc/init.d/rc.unslung".
[E] Mar 28 19:10:35 ndm: Opkg::Manager: invalid initrc "/opt/etc/init.d/rc.unslung": no such file or directory, trying /opt/etc/init.d/.
[I] Mar 28 19:10:35 installer: Info: Раздел пригоден для установки.
[I] Mar 28 19:10:35 ndm: Core::ConfigurationSaver: saving configuration...
[I] Mar 28 19:10:35 installer: [1/5] Начало развёртывания системы Entware...
[I] Mar 28 19:10:35 installer: Info: Создание папок...
[I] Mar 28 19:10:35 installer: [2/5] Загрузка и установка базовых пакетов...
[I] Mar 28 19:10:36 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/Packages.gz.
[I] Mar 28 19:10:36 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Updated list of available packages in /opt/var/opkg-lists/entware.
[I] Mar 28 19:10:36 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/keenetic/Packages.gz.
[I] Mar 28 19:10:36 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Updated list of available packages in /opt/var/opkg-lists/keendev.
[I] Mar 28 19:10:36 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing opt-ndmsv2 (1.0-10a) to root...
[I] Mar 28 19:10:36 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/keenetic/opt-ndmsv2_1.0-10a_mipsel-3.4_kn.ipk.
[I] Mar 28 19:10:37 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing libc (2.27-8) to root...
[I] Mar 28 19:10:37 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/libc_2.27-8_mipsel-3.4.ipk.
[I] Mar 28 19:10:40 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing libgcc (7.3.0-8) to root...
[I] Mar 28 19:10:40 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/libgcc_7.3.0-8_mipsel-3.4.ipk.
[I] Mar 28 19:10:41 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing libssp (7.3.0-8) to root...
[I] Mar 28 19:10:41 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/libssp_7.3.0-8_mipsel-3.4.ipk.
[I] Mar 28 19:10:41 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing librt (2.27-8) to root...
[I] Mar 28 19:10:41 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/librt_2.27-8_mipsel-3.4.ipk.
[I] Mar 28 19:10:41 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing libpthread (2.27-8) to root...
[I] Mar 28 19:10:41 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/libpthread_2.27-8_mipsel-3.4.ipk.
[I] Mar 28 19:10:42 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing libstdcpp (7.3.0-8) to root...
[I] Mar 28 19:10:42 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/libstdcpp_7.3.0-8_mipsel-3.4.ipk.
[I] Mar 28 19:10:43 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing ldconfig (2.27-8) to root...
[I] Mar 28 19:10:43 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/ldconfig_2.27-8_mipsel-3.4.ipk.
[I] Mar 28 19:10:44 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing findutils (4.6.0-1) to root...
[I] Mar 28 19:10:44 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/findutils_4.6.0-1_mipsel-3.4.ipk.
[I] Mar 28 19:10:44 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing terminfo (6.1-1) to root...
[I] Mar 28 19:10:44 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/terminfo_6.1-1_mipsel-3.4.ipk.
[I] Mar 28 19:10:44 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing ndmq (1.0.2-3) to root...
[I] Mar 28 19:10:44 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/keenetic/ndmq_1.0.2-3_mipsel-3.4_kn.ipk.
[I] Mar 28 19:10:45 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing libndm (1.8.0-1) to root...
[I] Mar 28 19:10:45 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/keenetic/libndm_1.8.0-1_mipsel-3.4_kn.ipk.
[I] Mar 28 19:10:45 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing locales (2.27-8) to root...
[I] Mar 28 19:10:45 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/locales_2.27-8_mipsel-3.4.ipk.
[I] Mar 28 19:10:47 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing grep (2.26-1) to root...
[I] Mar 28 19:10:47 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/grep_2.26-1_mipsel-3.4.ipk.
[I] Mar 28 19:10:47 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing libpcre (8.41-2) to root...
[I] Mar 28 19:10:47 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/libpcre_8.41-2_mipsel-3.4.ipk.
[I] Mar 28 19:10:48 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing zoneinfo-asia (2018c-1) to root...
[I] Mar 28 19:10:48 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/zoneinfo-asia_2018c-1_mipsel-3.4.ipk.
[I] Mar 28 19:10:48 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing zoneinfo-europe (2018c-1) to root...
[I] Mar 28 19:10:48 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/zoneinfo-europe_2018c-1_mipsel-3.4.ipk.
[I] Mar 28 19:10:48 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing entware-release (1.0-2) to root...
[I] Mar 28 19:10:48 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/entware-release_1.0-2_all.ipk.
[I] Mar 28 19:10:48 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing opkg (2011-04-08-9c97d5ec-17b) to root...
[I] Mar 28 19:10:48 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/opkg_2011-04-08-9c97d5ec-17b_mipsel-3.4.ipk.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Installing dropbear (2017.75-5) to root...
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Downloading http://bin.entware.net/mipselsf-k3.4/dropbear_2017.75-5_mipsel-3.4.ipk.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Entware uses separate locale-archive file independent from main system.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: You can download locale sources from http://pkg.entware.net/sources/i18n_glib227.tar.gz.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: You can add new locales to Entware using /opt/bin/localedef.new.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Updating /opt/etc/ld.so.cache... done.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Package ndmq (1.0.2-3) installed in root is up to date.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring libgcc.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring libc.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring libssp.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring libpthread.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring librt.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring terminfo.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring ldconfig.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring libpcre.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring grep.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring locales.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring opkg.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring zoneinfo-europe.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring zoneinfo-asia.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring libndm.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring ndmq.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring dropbear.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring libstdcpp.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring findutils.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring entware-release.
[I] Mar 28 19:10:49 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Configuring opt-ndmsv2.
[I] Mar 28 19:10:59 installer: Info: Установка пакетов прошла успешно! Продолжаем...
[I] Mar 28 19:10:59 installer: [3/5] Генерация SSH-ключей...
[I] Mar 28 19:10:59 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: Generating key, this may take a while...
[I] Mar 28 19:11:01 installer: Info: Ключ ecdsa создан
[I] Mar 28 19:11:01 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: .Generating key, this may take a while...
[I] Mar 28 19:11:03 installer: Info: Ключ rsa создан
[I] Mar 28 19:11:03 installer: [4/5] Установка Entware завершена! Сохранение временной зоны и запуск dropbear...
[I] Mar 28 19:11:03 ndm: Core::Server: started Session /var/run/ndm.core.socket.
[I] Mar 28 19:11:04 ndm: Core::Server: client disconnected.
[I] Mar 28 19:11:04 dropbear[3222]: Running in background
[I] Mar 28 19:11:04 installer: [5/5] Настройка сценария запуска для прошивки NDMS...
[I] Mar 28 19:11:04 ndm: Core::Server: started Session /var/run/ndm.core.socket.
[I] Mar 28 19:11:04 ndm: Opkg::Manager: configured init script: "/opt/etc/init.d/rc.unslung".
[I] Mar 28 19:11:04 ndm: Core::Server: client disconnected.
[I] Mar 28 19:11:04 ndm: Core::Server: started Session /var/run/ndm.core.socket.
[I] Mar 28 19:11:04 ndm: Core::ConfigurationSaver: saving configuration...
[I] Mar 28 19:11:04 ndm: Core::Server: client disconnected.
[I] Mar 28 19:11:04 installer: Можно открыть SSH-сессию для соединения с устройством (ssh root:keenetic@my.keenetic.net -p 222).
[I] Mar 28 19:11:04 installer:
[I] Mar 28 19:11:04 installer: @@@@@@@@@@@@@@@@@@@@@@@
[I] Mar 28 19:11:04 installer: Не забудьте сменить пароль и номер порта!
[I] Mar 28 19:11:04 installer: @@@@@@@@@@@@@@@@@@@@@@@
[I] Mar 28 19:11:04 installer:
[I] Mar 28 19:11:04 ndm: Opkg::Manager: /opt/etc/init.d/doinstall: .
[I] Mar 28 19:11:08 ndm: Core::ConfigurationSaver: configuration saved.

8. Скачайте программу Putty для работы с протоколами SSH и Telnet.

9. Запустите программу Putty. Выберите SSH, введите IP-адрес Home Vlan (Домашнего сегмента) 192.168.1.1, укажите 222-й порт и перейдите в настройки роутера при помощи протокола Secure Shell.

При загрузке подтвердите вход, нажав ДА. Далее введите:

login as: root
root@192.168.111.1's password: keenetic

opkg6.png

Можно установить свой пароль. Вводим команду passwd:

New password: пишем свой пароль
Retype password: подтверждаем пароль

~ # passwd
Changing password for root
New password:
Bad password: too short
Retype password:
passwd: password for root changed by root


opkg7.png


10. Вы зашли в BusyBox v1.27.2 () built-in shell (ash). Теперь нужно обновить opkg-пакет. Для этого введите команду opkg update:

/ # opkg update
Downloading http://bin.entware.net/mipselsf-k3.4/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Downloading http://bin.entware.net/mipselsf-k3.4/keenetic/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/keendev


11. После обновления OPKG-пакета, установите пакет rtorrent-easy-install.

Для этого выполните команду opkg install rtorrent-easy-install:

/ # opkg install rtorrent-easy-install
Installing rtorrent-easy-install (0.2-3a) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/rtorrent-easy-install_0.2-3a_mipsel-3.4.ipk
Installing rutorrent-plugin-rpc (3.8-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/rutorrent-plugin-rpc_3.8-1_mipsel-3.4.ipk
Installing rutorrent (3.8-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/rutorrent_3.8-1_mipsel-3.4.ipk
Installing rtorrent-rpc (0.9.7-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/rtorrent-rpc_0.9.7-1_mipsel-3.4.ipk
Installing libcurl (7.61.0-3) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/libcurl_7.61.0-3_mipsel-3.4.ipk
Installing libopenssl (1.0.2p-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/libopenssl_1.0.2p-1_mipsel-3.4.ipk
Installing zlib (1.2.11-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/zlib_1.2.11-2_mipsel-3.4.ipk
Installing ca-bundle (20180409-3) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/ca-bundle_20180409-3_all.ipk
Installing libtorrent (0.13.7) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/libtorrent_0.13.7_mipsel-3.4.ipk
Installing libsigcxx (2.5.4-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/libsigcxx_2.5.4-1_mipsel-3.4.ipk
Installing libncursesw (6.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/libncursesw_6.1-1_mipsel-3.4.ipk
Installing xmlrpc-c-server (1.39.13-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/xmlrpc-c-server_1.39.13-2_mipsel-3.4.ipk
Installing xmlrpc-c (1.39.13-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/xmlrpc-c_1.39.13-2_mipsel-3.4.ipk
Installing xmlrpc-c-internal (1.39.13-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/xmlrpc-c-internal_1.39.13-2_mipsel-3.4.ipk
Installing xmlrpc-c-common (1.39.13-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/xmlrpc-c-common_1.39.13-2_mipsel-3.4.ipk
Installing coreutils-stat (8.23-3) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/coreutils-stat_8.23-3_mipsel-3.4.ipk
Installing coreutils (8.23-3) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/coreutils_8.23-3_mipsel-3.4.ipk
Installing coreutils-id (8.23-3) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/coreutils-id_8.23-3_mipsel-3.4.ipk
Installing gzip (1.9-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/gzip_1.9-1_mipsel-3.4.ipk
Installing curl (7.61.0-3) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/curl_7.61.0-3_mipsel-3.4.ipk
Installing screen (4.6.2-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/screen_4.6.2-1_mipsel-3.4.ipk
Installing libncurses (6.1-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/libncurses_6.1-1_mipsel-3.4.ipk
Installing php7-cgi (7.2.9-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/php7-cgi_7.2.9-1_mipsel-3.4.ipk
Installing php7 (7.2.9-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/php7_7.2.9-1_mipsel-3.4.ipk
Installing libxml2 (2.9.8-3) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/libxml2_2.9.8-3_mipsel-3.4.ipk
Installing lighttpd-mod-fastcgi (1.4.49-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/lighttpd-mod-fastcgi_1.4.49-2_mipsel-3.4.ipk
Installing lighttpd (1.4.49-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/lighttpd_1.4.49-2_mipsel-3.4.ipk
Installing lighttpd-mod-scgi (1.4.49-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/lighttpd-mod-scgi_1.4.49-2_mipsel-3.4.ipk
Installing lighttpd-mod-auth (1.4.49-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/lighttpd-mod-auth_1.4.49-2_mipsel-3.4.ipk
Installing lighttpd-mod-authn_file (1.4.49-2) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/lighttpd-mod-authn_file_1.4.49-2_mipsel-3.4.ipk
Configuring zlib.
Configuring libopenssl.
Configuring ca-bundle.
Configuring libcurl.
Configuring lighttpd.
Configuring lighttpd-mod-authn_file.
Configuring xmlrpc-c-common.
Configuring xmlrpc-c-internal.
Configuring xmlrpc-c.
Configuring libxml2.
Configuring php7.
Configuring php7-cgi.
Configuring coreutils.
Configuring coreutils-stat.
Configuring libsigcxx.
Configuring libtorrent.
Configuring libncursesw.
Configuring xmlrpc-c-server.
Configuring rtorrent-rpc.
Configuring coreutils-id.
Configuring gzip.
Configuring curl.
Configuring rutorrent.
Configuring rutorrent-plugin-rpc.
Configuring libncurses.
Configuring screen.
Configuring lighttpd-mod-fastcgi.
Configuring lighttpd-mod-scgi.
Configuring lighttpd-mod-auth.
Configuring rtorrent-easy-install.


12. В момент установки пакета сразу будет предложено настроить базовые возможности.

Можете установить свой логин/пароль, порт, скорость загрузки/отдачи, путь для скачиваемых торрент-файлов:

Type "username:password" if you want to protect Web UI or hit Enter to leave password protection disabled []: устанавливаем свой логин:пароль, например myhome:mytorrent

Which port should be used by web interface? [81]: по умолчанию стоит 81 порт, можно установить любой свободный порт

Enter (maximal) download speed in KB/s [2048]: по умолчанию установлена скорость  2048, можно поставить свое значение

Enter (maximal) upload speed in KB/s [2048]: по умолчанию установлена скорость 2048, можно поставить свое значение

Enter folder name on USB drive where torrent content should be stored [/opt/torrents]: указываем путь, куда будут скачиваться торрент-файлы. Лучше устанавливать NTFS-раздел, к примеру у нас создан раздел с файловой системой NTFS, называется FILES, в нем мы создали директорию download, указываем путь: /tmp/mnt/FILES/download

#### Welcome to rtorrent easy installation script!
We assuming no lighttpd/rtorrent/rutorrent was installed before!
Please, answer a few question to configure torrent client.
Default aswers given in [brackets], just hit Enter to accept it.

Type "username:password" if you want to protect Web UI or hit Enter to leave password protection disabled []: test:test
Which port should be used by web interface? [81]:
Enter (maximal) download speed in KB/s [2048]:
Enter (maximal) upload speed in KB/s [2048]:
Enter folder name on USB drive where torrent content should be stored [/opt/torrents]:

Done! You may open 51411-51412 TCP/UDP ports on your router to
facilitate uploading/donwloading. It's not necessary but recommended.
rutorrent web UI will be available at following URL:
http://<ip_address_of_router>:<port>/rutorrent

Do you wish to start torrent client? [y]:

Starting lighttpd... done.
Starting rtorrent... done.


13. Если демон rtorrent не запустился, вы увидите ошибку:

Do you wish to start torrent client? [y]: 
Starting lighttpd... done.
Starting rtorrent... failed.
Collected errors:
* pkg_run_script: package "rtorrent-easy-install" postinst script returned status 255.
* opkg_configure: rtorrent-easy-install.postinst returned 255.


14. Необходимо будет внести изменения в конфигурацию rtorrent. Для этого нужно будет установить пакет nano и отредактировать файл конфигурации rtorrent.conf

Устанавливаем пакет nano:

/ # opkg install nano
Installing nano (2.9.8-1) to root...
Downloading http://bin.entware.net/mipselsf-k3.4/nano_2.9.8-1_mipsel-3.4.ipk
Configuring nano.


Редактируем файл конфигурации rtorrent.conf, в котором удаляем старую конфигурацию:

/ # nano /opt/etc/rtorrent/rtorrent.conf

Выделяем все строки старого конфига, нажимаем клавиши Alt + A:

max_uploads = 8
session = /opt/etc/rtorrent/session
schedule = watch_directory,5,5,load_start=/opt/etc/rtorrent/watchdir/*.torrent
schedule = untied_directory,5,5,stop_untied=
schedule = low_diskspace,5,60,close_low_diskspace=100M
bind = 0.0.0.0
port_range = 51411-51411
check_hash = yes
#use_udp_trackers = yes
encryption = allow_incoming,enable_retry,prefer_plaintext
dht = auto
dht_port = 51412
peer_exchange = yes
scgi_local = /opt/var/rpc.socket
encoding_list = UTF-8
max_uploads_global = 32
max_downloads_global = 64
download_rate = 2048
upload_rate = 2048
directory = /opt/torrents


Удаляем все строки старого конфига, нажимаем клавиши Ctrl + K

Добавляем строки нового конфига, нажимаем клавиши Ctrl + V:

throttle.max_uploads.set = 8
session.path.set = /opt/etc/rtorrent/session
schedule2 = watch_directory,5,5,load_start=/opt/etc/rtorrent/watchdir/*.torrent
schedule2 = untied_directory,5,5,stop_untied=
schedule2 = low_diskspace,5,60,close_low_diskspace=100M
network.bind_address.set = 0.0.0.0
network.port_range.set = 51411-51411
pieces.hash.on_completion.set = yes
trackers.use_udp.set = yes
protocol.encryption.set = allow_incoming,enable_retry,prefer_plaintext
dht.mode.set = auto
dht.port.set = 51412
protocol.pex.set = yes
network.scgi.open_local = /opt/var/rpc.socket
encoding.add = UTF-8
throttle.max_uploads.global.set = 32
throttle.max_downloads.global.set = 64
throttle.global_down.max_rate.set_kb = 0
throttle.global_up.max_rate.set_kb = 0
directory.default.set = /opt/torrents


Нажимаем клавиши Ctrl + O , сохраняем конфигурацию.

Выходим из редактора nano Ctrl + X

15. Запускаем rtorrent:

/ # /opt/etc/init.d/S85rtorrent start
Starting rtorrent... done.


16. Заходим в веб-интерфейс rTorrent по адресу http://192.168.1.1:81/rutorrent/, делаем настройку и проверяем работу: 

2018-12-19_19-47.png

2018-12-19_19-50.png

NOTE: Важно! Поддержка пакета осуществляется в теме форума разработчиков — rTorrent - BitTorrent-клиент.

 

Была ли эта статья полезной?

Пользователи, считающие этот материал полезным: 11 из 11

Еще есть вопросы? Отправить запрос

Комментарии

Комментариев: 2

Войдите в службу, чтобы оставить комментарий.