Tuesday, January 15, 2008

文字介面下的BitTorrent Client - RTorrent

在ssh下搭配screen使用會有更加的效果!

1. 安裝screen - 可以把工作放到背景,所以縱使ssh斷線,rtorrent也會繼續工作。
#aptitude install screen


2. 安裝rtorrent
#aptitude install rtorrent


3. 從官方網站copy設定檔(.rtorrent.rc)到家目錄 - 因為原本沒有這個檔案。
http://libtorrent.rakshasa.no/browser/trunk/rtorrent/doc/rtorrent.rc?rev=latest
複製到 ~/.rtorrent.rc


4. 設定.rtorrent.rc
下載文件的下載目錄。
# Default directory to save the downloaded torrents.
directory =/mnt/hda_120/Download

指定session的存放目錄。
# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session =/mnt/hda_120/Download/session

啟動rtorrent的監視功能,當*.torrent檔案在指定的目錄出現的時候,rtorrent就會開始下載。
# Watch a directory for new torrents, and stop those that have been
# deleted.
schedule = watch_directory,5,5,load_start=/mnt/hda_120/Download/watch/*.torrent
schedule = untied_directory,5,5,stop_untied=

設定locale。
encoding_list=UTF-8

完成。


5. 開啟一個screen。
$screen

6. 開啟rtorrent。
$rtorrent
此時,檔案應該已經開始下載了。

7. 把工作丟到背景。
在rtorrent主畫面中
I. crtl+a
II. ctrl+d

8. 想要再進去看看rtorrent。
$screen -r


Note:
目前還沒有解決DHT的問題。


Ref:
[1] 用rtorrent下载bt
http://www.xnux.cn/html/desktop/20070528/10324.html

[2] 綠色工廠 -
rtorrent - linux環境的BT
http://portable.easylife.idv.tw/789

[3]
The libTorrent and rTorrent Project
http://libtorrent.rakshasa.no/

[4] 飛翔部落 - Linux安裝rtorrent
http://blog.pixnet.net/shian0745/post/9121008

[5]
Jamyy's Weblog - Linux Console 下的 BT 操作
http://cha.homeip.net/blog/archives/2006/08/linux_console_b.html

[6] DreamLand - 【推荐】rtorrent | xNix下的BT客户端(非Xwin)
https://dream4ever.org/showthread.php?t=145083

[7] fjufirefox -
[Debian] rtorrent support DHT
http://fjufirefox.blogspot.com/2007/11/debian-rtorrent-support-dht.html