NOTE - 文中展示的所有示例和指令都已经在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运行程序的结果。

你可以看到程序显示了一个不能读取到资源文件的错误。

设置这个文件,首先下载文件模板(官方下载),根据需求改一改。这个文件和我的 ~/.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

# 其它可调参数

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

# 监控目录中新的torrent, 重新启动torrent

# copied back and stop those that have been deleted.

# 复制并且阻止已经删除的.

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.

# 当比值达到,改变命令触发

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 键,即可出现底部的窗口:

注意这个出现在屏幕上的提示load.normal>,下一步仅需输入torrent文件的名字。例如,我输入这个torrent文件名 Fedora-20-Alpha-x86_64-DVD.torrent.

注意你只需要输入torrent文件名(如果不在当前目录的话,那就要输入完整的路径)。你可以轻松的使用bash的快捷键比如[TAB]来补全文件名和路径。之后,再次按下enter。

现在你可以看到torrent文件已经加载了,但是你需要激活它,让它开始下载。

四、            启动、停止、删除 *.torrent 文件

首先按下向下箭头键。现在应该在之前加载文件的详细信息前面上显示了一个星号(译者注:表示选中)。

注意在torrent文件信息开头显示的星号,现在,按下 Ctrl+s 开始下载。

rtorrent现在已经开始下载当前文件了。用 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 view directory content and do auto-complete. Also, wildcards can be used. For example: ~/torrent/*

return Same as backspace, except the torrent remains inactive. (Use ^s to activate)

^o Set new download directory for selected torrent. Only works if torrent 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.

六、            参考

七、            总结

rtorrent 是为那些想要用命令行BT客户端来代替基于GUI的客户端的用户准备的。虽然它需要为初始化配置付出一些时间并且需要一些操作来习惯,但是这些时间是值得的。尝试一下,它一定会给你留下深刻印象。

优点

  • 功能丰富
  • 大量的自定义选项

缺点

  • 初始配置时需要一点时间
  • 用户可能需要一些时间来习惯

你使用基于CLI的BT客户端吗?它有什么优势和弊端?和我们分享你的经历。

rtorrent - 强大的命令行BT客户端的更多相关文章

  1. 25 个 Linux 下最炫酷又强大的命令行神器,你用过其中哪几个呢?

    本文首发于:微信公众号「运维之美」,公众号 ID:Hi-Linux. 「运维之美」是一个有情怀.有态度,专注于 Linux 运维相关技术文章分享的公众号.公众号致力于为广大运维工作者分享各类技术文章和 ...

  2. 命令行web客户端与HTTP REST API调试工具

    1.命令行web客户端 curl wget httpie 2.优雅的REST API调试工具 insomnia postman

  3. curl太复杂难用记不住?来试试Httpie一个简单的现代化命令行Http客户端

    HTTPie 是一个简单的现代化命令行 HTTP 客户端. 交互友好,JSON支持,语法高亮,类wget下载,支持拓展等 功能特性 自然而且简单的命令语句 格式化且高亮显示输出内容 内置 JSON 支 ...

  4. 推荐一个 MYSQL 的命令行的客户端 MYCLI

    MYCLI 是一个 MySQL 命令行客户端工具 , 可以实现自动补全(auto-completion)和语法高亮,平时测试环境维护一些数据还是蛮方便的. https://github.com/dbc ...

  5. 这个命令行HTTP客户端工具真不错

    程序员专属微信红包封面1000个,兑换码:dWK7fUs2WQG cURL相信很多做开发的.运维的都不陌生,是非常有用的一个终端请求工具,借助于它可以在命令行中进行HTTP.FTP等请求,在Linux ...

  6. 强大的命令行工具wmic

    1.wmic=Microsoft Windows Management Instrumentation 2. C:\WINDOWS\system32\wbem 下的东西,特别是.xsl格式化文件,实现 ...

  7. 命令行 IRC 客户端 irssi 的基本操作

    登录与退出 启动 irssi $ irssi 登陆 IRC 服务器/connect server port 修改昵称/nick nickname 直接带昵称登录指定的服务器$ irssi -c [se ...

  8. 比CMD更强大的命令行WMIC

    先决条件:a. 启动Windows Management Instrumentation服务,开放TCP135端口.b. 本地安全策略的“网络访问: 本地帐户的共享和安全模式”应设为“经典-本地用户以 ...

  9. 使用go的ssh包快速打造一个本地命令行ssh客户端

    热身运动

随机推荐

  1. selnium远程机上传图片遇到的坑

    一般上传图片方法采取方案如下: input标签的file类型上传图片,使用对象的sendkeys+路径方法 使用js注入,再用使用对象的sendkeys+路径方法 使用autolt生成的exe,打开对 ...

  2. 关于sklearn,监督学习几种模型的对比

    # K近邻,适用于小型数据集,是很好的基准模型,容易解释 from sklearn.neighbors import KNeighborsClassifier # 线性模型,非常可靠的首选算法,适用于 ...

  3. MongoDB 进阶模式设计

    原文链接:http://www.mongoing.com/mongodb-advanced-pattern-design 12月12日上午,TJ在开源中国的年终盛典会上分享了文档模型设计的进阶技巧,就 ...

  4. linux(CentOS) 下mysql自动备份

    1.创建并编辑文件 /usr/sbin/bakmysql.sh,命令: vi /usr/sbin/bakmysql.sh 内容如下: db_user="root" db_passw ...

  5. Java编程的逻辑 (57) - 二进制文件和字节流

    本系列文章经补充和完善,已修订整理成书<Java编程的逻辑>,由机械工业出版社华章分社出版,于2018年1月上市热销,读者好评如潮!各大网店和书店有售,欢迎购买,京东自营链接:http:/ ...

  6. Codeforces 348B - Apple Tree

    348B - Apple Tree 我们设最后答案为 x , 我们我们就能用x表示出所有节点下面的苹果个数, 然后用叶子节点求lcm, 取最大的可行解. #include<bits/stdc++ ...

  7. Django 浏览器打开警告Not Found: /favicon.ico (转)

    Django 浏览器打开警告Not Found: /favicon.ico     初学Django 执行python manage.py runserver 0.0.0.0:8000 urls.py ...

  8. 干货: 可视化项目实战经验分享,轻松玩转 Bokeh (建议收藏)

    作者 | Will Koehrsen 翻译 | Lemon 译文出品 | Python数据之道 (ID:PyDataRoad) 本文通过一个项目案例,详细的介绍了如何从 Bokeh 基础到构建 Bok ...

  9. C#开发Unity游戏教程循环遍历做出判断及Unity游戏示例

    C#开发Unity游戏教程循环遍历做出判断及Unity游戏示例 Unity中循环遍历每个数据,并做出判断 很多时候,游戏在玩家做出判断以后,游戏程序会遍历玩家身上大量的所需数据,然后做出判断,即首先判 ...

  10. 闲话函数式变成与OOP

    函数式编程扫盲篇 推薦參考文獻地址:http://byvoid.github.io/slides/apio-fp/index.html 1. 概论 在过去的近十年的时间里,面向对象编程大行其道.以至于 ...