2012年3月19日 星期一

安裝 rTorrent 與使用 nTorrent

聽說 rTorrent 是目前在 Linux 下載速度最快的 bt 程式。

目前版本:
squeeze (stable) 0.8.6-1
whezzy (testing) 0.8.9-2

馬上裝最新的看看:
$ apt-get -t whezzy install rtorrent
跟 mldonkey 一樣,需要 screen 讓使用者離線仍可以繼續執行
$ apt-get install screen
新增設定檔 ( rtorrent.rc 範例 )
$ touch  ~/.rtorrent.rc 再加上編碼設定,可正確顯示檔案名稱
encoding_list = UTF-8
執行
$ screen rtorrent


使用 nTorrent 來進行遠端控制

下載程式 nTorrent-0.5.1

rtorrent 提供 xmlrpc 作為控制介面
而 xmlrpc 是使用 http 協定
所以需要透過 apache2 或是 lighttpd 提供服務
如果使用 rtorrent 0.8.6-1 以前版本,ntorrent 則會連線異常
因為 ntorrent 需求 xmlrpc-c 1.07 以上的版本

本次安裝選定 apache2
安裝 scgi 模組
$ apt-get install libapache2-mod-scgi $ ln -s /etc/apache2/mods-avalable/scgi.load /etc/apache2/mods-enable/scgi.load
/etc/apache2/httpd.conf 新增
SCGIMount /RPC2 127.0.0.1:5000
~/.rtorrent.rc 新增
scgi_port = 127.0.0.1:5000
啟動 apache2
$ /etc/init.d/apache2 restart
執行 nTorrent.exe,選取 SSH 連線,輸入 Debian User 的帳號/密碼
就可以連上了。

參考文件:
The libTorrent and rTorrent Project 
nTorrent - A graphical user interface client to rtorrent
using xmlrpc with rtorrent && ntorrent install

沒有留言:

張貼留言