Linux 安裝 rtorrent

介紹:
在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

最大和最小的種子連接數
# 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)
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值