Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

rtorrent + wtorrent / rtgui のインストール

QNAP TS-109 をカスタマイズする日々が続くが、今日は BitTorrent のクライアントをインストールした。もともとTS-109 にはBTクライアントが載っている。BitTornadoというPythonで書いたものらしい。しかし、公式フォーラムを読んでいるとrtorrent というソフトとWEBインタフェースを載せるやり方があり、そちらの方が今時のかっこいいインタフェースでしかも表示できる情報の量が多いので、インストールしてみることにした。公式フォーマルの情報ページは以下である。

[Howto] rTorrent + web client (rtgui or wTorrent) on TS-x09

まずいきなり、ipkgのインストール方法を書いたページと、rtorrent のインストール方法を書いたページを読めとある。ipkgはすでにインストール済みなので、rtorrentをインストールする。rtorrentは要するにLinuxで動くBitTrrentのクライアントでキャラ端で動く貧弱なインタフェースがついている。

インストールといっても ipkg install rtorrent とするだけで終わりである。同時にscreenをインストールするのはTelnetやSSHでのTS-109 へのログインから抜けてもrtorrentのプロセスを残しておくためである。

rtorrentのインストールが終わったら設定ファイルを書く。/opt/etc/rtorrent.rc を編集して、ダウンロードフォルダと.torrent ファイルフォルダを設定する。ここで注意しなければならないのは、rtorrentはchroot環境で動かすので、chroot環境から見えるパスでなければならないということである。/share/Qdownloadにダウンロードしたければ、chroot環境でのQdownloadへのパスは /mnt/ext/Qdownload なのでそのように書く。(追記:chroot環境で動かさなくてもよくなったので /share/Qdownload でもよいと思う。未確認。)

そして、screen を動かしその中のShellでrtorrent を動かす。適当な.torrent ファイルを探してきて、無事動くことを確認する。確認できたら次はWEBインタフェースをインストールする。WEBインタフェースは rtgui というものと wtorrent というものの2つをやってみたが、結局、wtorrent しか使っていない。

まず、lighttpdをインストール。その後、
/opt/etc/lighttpd/lighttpd.conf と /opt/etc/rtorrent.rc を編集する。rtorrent.rcを編集しているのでrtorrent の再起動が必要である。

ts-109の起動時に実行される autorun.sh に次のような行を追加している。(最後の行で、rtorrent を chroot 環境で動かしていたがこれは不要になった。動作未確認)


# for rtorrent
chroot /share/HDA_DATA/optware /opt/sbin/lighttpd -f /opt/etc/lighttpd/lighttpd.conf
/opt/bin/screen -dmS "torrent-box"
/opt/bin/screen -S "torrent-box" -X screen chroot /share/HDA_DATA/optware /opt/bin/rtorrent -n -o import=/opt/etc/rtorrent.rc

PAGE TOP