在Linux 上跑bt 有很多軟體可以跑, 像是azureus 或是用 wine + bt 軟體都是可以運作,用過許多在Linux上bt軟體,還是推薦 rtorrent , 可以用ssh 文字介面就可以操作了也相當省資源 , 只是安裝比較麻煩一點,本篇介紹如何安裝rotrrent 並運作。
準備:需要準備下列的檔案自己編譯它
1.curl
2.sigc++-2.0
3.libtorrent
4.rtorrent
* 或是下載筆者所打包的檔案 點我下載
安裝:
a.安裝 curl
# tar -zxvf curlxxxxxxx
# cd /curlxxx
# ./configure --prefix=/usr
# make
# make install
如果在安裝 utorrent ./configure時,出現URL錯誤的話
# cd /usr/lib/pkgconfig
# vi /libcurl.pc
# #URL: <--將這行用#註解起來
b.安裝sigc++-2.0
# tar -zxvf libsigc++20-xxx
# cd libsigc++-2.0.17
# ./configure --prefix=/usr
# make
# make install
c.安裝libtorrent
# tar libtorrent
# cd libtorrent
# ./configure --prefix=/usr
# make
# make install
注意: 在configure curl , sigc++-2.0 , libtorrent 時,多了個 --prefix=/usr 參數 ,因為避免當在編譯libtorrent時會找不到該curl , sigc 的檔案,所以在次多加個 --prefix=/usr 參數, 將該套件安裝在 /usr下
d.安裝rtorrent
# tar -zxvf rtorrent
# cd rtorrent
# ./configure
# make
# make install
執行:
# rtorrent <-執行rtorrent
如果要丟在背景執行則可以使用screen
# screen
# rtorrent
如果要返回前景時,在rtorrent畫面裡按下 ctrl+a 之後 ctrl+d, 則跳回前景, 之後回到rtorrent畫面則輸入
# screen -r
參數設定:
安裝完成後我們需要作一些配置工作,配置文件是安裝用戶家目錄下的.rtorrent.rc。這個文件默認是沒有的,請到這頁面,將示例的配置文件內容拷貝粘貼到.rtorrent.rc中,然後我們來編輯它。將前面的#刪除則是取消註解。
# cp rtorrent.rc ~/.rtorrent.rc
# vi ~/.rtorrent.rc
最大和最小的種子連接數
# Maximum and minimum number of peers to connect to per torrent.
#min_peers = 40
#max_peers = 100
最大上傳數
# Maximum number of simultanious uploads per torrent.
#max_uploads = 15
上傳和下載速度限制 0:無限制
# Global upload and download rate in KiB. "0" for unlimited.
#download_rate = 0
#upload_rate = 0
下載檔案存放目錄
# Default directory to save the downloaded torrents.
#directory = ./
下載快取目錄
#session = ./session
torrent 檔存放目錄
#schedule = watch_directory,5,5,load_start=./watch/*.torrent
隨機port 範圍
#port_range = 6890-6999
下載檔案名使用 UTF-8 編碼
#encoding_list = UTF-8
常用熱鍵:
1. 方向鍵 : ↑,↓,←,→
2. Torrent 開始下載 : Ctrl + S (Screen下用法為: Ctrl+ a + s)
3. Torrent 暫停下載 : Ctrl + D
4. Torrent 停止下載 : Ctrl + K
5. 清除Torrent下載列表 : [法1] 在停止狀態使用Ctrl + D, [法2] 在下載完成連續執行 Ctrl+D 二次
6. 限定最大上傳速度 : [增加]a / s / d [減少] z / x /c
7. check file hash : Ctrl + R
8. 離開rtorrent程式 : Ctrl+ q (Screen下用法為 : Ctrl+ a + q)












Recommend to Front page



有冷到喔~~
哈哈~冷喔!! 你也很酷喔,寫了好多東西,那隻sam 的blog都長草了,加油囉!!Thanks!
我一直卡在pkg-config 花了好幾天的時間,剛剛終於讓我在Xbuntu編譯成功啦!超級感謝你的!
libsigc++
您好,請教一下。小弟安裝 libtorrent 時,無論是 ./configure 還是 ./configure --prefix=/usr 都顯示 No package 'sigc++-2.0' found 的錯誤訊息,
但是檢查 rpm 確定 libsigc++20-2.0.17-2 是有安裝的,filesbypkg 也有找到:
libsigc++20 /usr/lib/libsigc-2.0.so.0
libsigc++20 /usr/lib/libsigc-2.0.so.0.0.0
那麼可能是哪裡的問題呢?
libsigc++
您好。小弟的系統是 CentOS,試過 2.0.17-2 和 2.0.18-1 的 rpm 都不行。後來去官網抓了 tar.gz 回來 make install,好像有安裝完成。(不知道該怎麼看)
但是 libtorrent 安裝時一樣出現:
checking for STUFF... configure: error: Package requirements (sigc++-2.0) were not met:
No package 'sigc++-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables STUFF_CFLAGS
and STUFF_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
OK了
小弟把先前的 libsigc++、libtorrent、rtorrent 都依這樣重新安裝,./configure --prefix=/usr
make
make install
結果就解決了之前的問題。
但是最後安裝 rtorrent 時出現 libsigc++ or libtorrent 版本太舊的訊息,
再抓新一點的版本試試就可以了。
接下來再研究一下怎麼用。謝謝大大指點。
大大 我遇到了error
我是用fedora 9在裝libsigc的時候出現了問題
是在下make指令的時候,不知該如何解決呢
make[3]: *** [signal.lo] Error 1
make[3]: Leaving directory `/home/gardentree/rtorrent/libsigc++-2.0.18/sigc++'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/gardentree/rtorrent/libsigc++-2.0.18/sigc++'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gardentree/rtorrent/libsigc++-2.0.18'
make: *** [all] Error 2
k
這樣才對吧
vi ~/.rtorrent
照你所寫教學會新開一個檔案囉
Comment Permissions: Allow commenting