[前置動作] aptitude install subversion build-essential libtool automake1.9 openssl libcurl3 libcurl3-dev libsigc++-2.0-0c2a libsigc++-2.0-dev ...
[前置動作]
aptitude install subversion build-essential libtool automake1.9 openssl libcurl3 libcurl3-dev libsigc++-2.0-0c2a libsigc++-2.0-dev libncurses5 libncurses5-dev
[導入 DHT]
- cd /usr/src
- mkdir rtorrent
- cd rtorrent
- svn co svn://rakshasa.no/libtorrent/trunk
- cd trunk
[下載 xmlrpc-c]
aptitude install libxmlrpc-c-dev libxmlrpc++0 libxmlrpc++-dev xml-rpc-api2txt xml-rpc-api2cpp
- cd /usr/src
- wget http://surfnet.dl.sourceforge.net/sourceforge/xmlrpc-c/xmlrpc-c-1.11.00.tgz
- tar xzvf xmlrpc-c*
[依序編譯 libtorrent, xmlrpc-c, rtorrent]
- cd trunk
- cd libtorrent
- ./autogen.sh
- ./configure
- make
- make install
- cd ../xmlrpc-c-1.11.00/
- ./configure --disable-cplusplus
- make
- make install
- cd ../rtorrent
- ./autogen.sh
- ./configure --with-xmlrpc-c
- make
- make install
[設定 rtorrent.rc]
加入 scgi_port = 127.0.0.1:5000
min_peers = 40 # Move completed downloads on_finished = move_complete,"execute=mv,-u,$d.get_base_path=,/downloads/rtorrent/downloaded/ ;d.set_directory=/downloads/rtorrent/downloaded/" schedule = watch_directory,10,10,load_start=/share/torrent/*.torrent schedule = ratio,60,60,"stop_on_ratio=200,200M,2000" use_udp_trackers = yes send_buffer_size = 1M dht = auto encoding_list=utf-8 scgi_port = 127.0.0.1:5000
max_peers = 200
max_uploads = 12
download_rate = 200
upload_rate = 12
directory = /share
session = /tmp/rtorrent
schedule = tied_directory,10,10,start_tied=
schedule = untied_directory,10,10,close_untied=
port_range = 6890-6890
receive_buffer_size = 2M
dht_port = 6881
encryption = allow_incoming,enable_retry,prefer_plaintext
[使用 nTorrent]
※ 請下載 java 1.6 JDK
將 127.0.0.1 改為您的 Nas-01g IP 即可.
[原版圖]
http://code.google.com/p/ntorrent/wiki/QuickStart
http://www.linuxquestions.org/questions/linux-software-2/rtorrent-move-when-download-completes.-move-again-after-seeding-completes.-598556/