rtorrent - 强大的命令行BT客户端
rtorrent - 強大的命令行BT客戶端
NOTE?- 文中展示的所有示例和指令都已經(jīng)在Ubuntu 13.04中測試過。
?
一、???????????安裝
| [root@GY-10000 data]# yum search rtorrent Loaded plugins: security ========================================= N/S Matched: rtorrent ========================================== rtorrent.x86_64 : BitTorrent client based on libtorrent ? ? Name and summary matches only, use "search all" for everything. [root@GY-10000 data]# yum install rtorrent Loaded plugins: security Setting up Install Process …… |
?
二、???????????配置
rtorrent 下載安裝之后,你必須設置一個資源文件(配置文件) -?.rtorrent.rc?。這個文件必須存在,否則程序無法正常啟動。
下圖就是我沒有設置?~/.rtorrent.rc運行程序的結果。
你可以看到程序顯示了一個不能讀取到資源文件的錯誤。
設置這個文件,首先下載文件模板(官方下載),根據(jù)需求改一改。這個文件和我的 ~/.rtorrent.rc有一點不同。這是我使用的資源文件:
# For temporary downloaded files
# 臨時下載文件
directory = /app/data/bt/temporaryfiles
?
# Directory to save and resume torrent sessions
# 保存和恢復torrent會話的目錄
session = /app/data/bt/sesssions
?
# Other Tunables
# 其它可調參數(shù)
upload_rate = 30
download_rate = 200
peer_exchange = yes
?
# DHT enabled
# 開啟DHT
dht = auto
?
# custom throttles
# 自定義閥門(譯者注:流量限制)
throttle_up = low,10
throttle_down = low,10
throttle_up = med,20
throttle_down = med,20
?
# Watch a directory for new torrents, restart torrents that have been
# 監(jiān)控目錄中新的torrent, 重新啟動torrent
# copied back and stop those that have been deleted.
# 復制并且阻止已經(jīng)刪除的.
?
schedule = watch_directory,0,10,load_start=/app/data/bt/watch/*.torrent
schedule = tied_directory,10,10,start_tied=
schedule = untied_directory,10,10,close_untied=
?
# Enable the default ratio group
# 啟用默認比率組
ratio.enable=
?
# Change the limits, the defaults should be sufficient.
# 改變限制,默認應該足夠
ratio.min.set=50
ratio.max.set=150
ratio.upload.set=20M
?
# Changing the command triggered when the ratio is reached.
# 當比值達到,改變命令觸發(fā)
system.method.set = group.seeding.ratio.command, d.close=, d.erase=
?
# Move finished torrents to completed
# 移走完成的torrent
#system.method.set_key = event.download.finished,rm_torrent,”execute=rm,$d.get_tied_to_file=”
#system.method.set_key =event.download.finished,move_complete,”execute=mv,-u,$d.get_base_path=,/app/data/bt/download/;d.set_directory=/app/data/bt/download/”
注意 - 這個資源文件引用自這個鏈接. 要使用這個資源文件,不要忘記運行下面的命令(建立資源文件中提到的目錄):
mkdir -p /app/data/bt/download
mkdir -p /app/data/bt/sesssions
mkdir -p /app/data/bt/temporaryfiles
mkdir -p /app/data/bt/watch
用你自己的用戶名替換。還有,確保資源文件的名字是?.rtorrent.rc?(前面有一個點) 不是?rtorrent.rc,把它保存在你的home目錄(我的是/home/himashu).
三、???????????啟動
rtorrent |
這有一個運行rtorrent后的窗口的截圖:
1、? 加載 *.torrent 文件
啟動 rtorrent 后,在鍵盤上按下enter 鍵,即可出現(xiàn)底部的窗口:
注意這個出現(xiàn)在屏幕上的提示load.normal>,下一步僅需輸入torrent文件的名字。例如,我輸入這個torrent文件名?Fedora-20-Alpha-x86_64-DVD.torrent.
注意你只需要輸入torrent文件名(如果不在當前目錄的話,那就要輸入完整的路徑)。你可以輕松的使用bash的快捷鍵比如[TAB]來補全文件名和路徑。之后,再次按下enter。
?
現(xiàn)在你可以看到torrent文件已經(jīng)加載了,但是你需要激活它,讓它開始下載。
?
?
四、???????????啟動、停止、刪除 *.torrent 文件
首先按下向下箭頭鍵。現(xiàn)在應該在之前加載文件的詳細信息前面上顯示了一個星號(譯者注:表示選中)。
注意在torrent文件信息開頭顯示的星號,現(xiàn)在,按下?Ctrl+s?開始下載。
rtorrent現(xiàn)在已經(jīng)開始下載當前文件了。用?Ctrl+d?停止下載,再用一次?Ctrl+d?可以移除torrent任務,即卸載它。用?Ctrl+q?退出rtorrent。
?
五、???????????使用指南
http://libtorrent.rakshasa.no/wiki/RTorrentUserGuide
General note about key combinations: ^means the Ctrl-key. M-x means Meta-x (Usually Alt-x or Esc-x)
???Adding and removing torrents
???backspace Add torrent using an URL or file path. Use tab to viewdirectory content and do auto-complete. Also, wildcards can be used. Forexample: ~/torrent/*
???return Same as backspace, except the torrent remains inactive. (Use ^sto activate)
???^o Set new download directory for selected torrent. Only works iftorrent has not yet been activated. 選擇下載目錄
???^s Start download. Runs hash first unless already done. 開始下載
???^d Stop an active download, or remove a stopped download.暫停下載
???^r Initiate hash check of torrent. Without starting to download/upload.
???Throttling
???a/s/d Increase the upload throttle by 1/5/50 KB.
???z/x/c Decrease the upload throttle by 1/5/50 KB.
???A/S/D Increase the download throttle by 1/5/50 KB.
???Z/X/C Decrease the download throttle by 1/5/50 KB.
???Note that all throttling is applied globally and not per torrent.
?
六、???????????參考
·????????http://mylinuxbook.com/rtorrent-bit-torrent-client/
·????????https://linux.cn/thread/11663/1/1/
·????????主頁
·????????下載鏈接
七、???????????總結
rtorrent 是為那些想要用命令行BT客戶端來代替基于GUI的客戶端的用戶準備的。雖然它需要為初始化配置付出一些時間并且需要一些操作來習慣,但是這些時間是值得的。嘗試一下,它一定會給你留下深刻印象。
優(yōu)點
·????????功能豐富
·????????大量的自定義選項
缺點
·????????初始配置時需要一點時間
·????????用戶可能需要一些時間來習慣
你使用基于CLI的BT客戶端嗎?它有什么優(yōu)勢和弊端?和我們分享你的經(jīng)歷。
總結
以上是生活随笔為你收集整理的rtorrent - 强大的命令行BT客户端的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 随机产生长度为20的字符串(数字和大小写
- 下一篇: [Android Pro] 利用tc