下载/安装
一些重要的关于rtorrent的链接:
Ubuntu 用户可以从Ubuntu软件中心下载rtorrent. 现在使用的版本是0.9.2.
rtorrent 下载安装之后,你必须设置一个资源文件(配置文件) - .rtorrent.rc 。这个文件必须存在,否则程序无法正常启动。下图就是我没有设置 ~/.rtorrent.rc 运行程序的结果。

你可以看到程序显示了一个不能读取到资源文件的错误。设置这个文件,首先下载文件模板,根据需求改一改。
注意 - 我上面提到的链接是官方的下载链接。这个文件和我的 ~/.rtorrent.rc有一点不同。
这是我使用的资源文件:
# For temporary downloaded files
# 临时下载文件
directory = ~/rTempDownloadFiles
# Directory to save and resume torrent sessions
# 保存和恢复torrent会话的目录
session = ~/rSession
# 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=~/rWatch/*.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=,~/rFullDownloadFiles/ ;d.set_directory=~/rFullDownloadFiles/”
注意 - 这个资源文件引用自这个链接.
要使用这个资源文件,不要忘记运行下面的命令(建立资源文件中提到的目录):
mkdir /home/<your-username>/rTempDownloadFiles
mkdir /home/<your-username>/rFullDownloadFiles
mkdir /home/<your-username>/rSession
mkdir /home/<your-username>/rWatch
用你自己的用户名替换 。还有,确保资源文件的名字是 .rtorrent.rc (前面有一个点) 不是 rtorrent.rc,把它保存在你的home目录(我的是/home/himashu).
想知道更多关于使用rtorren,请读用户指南。还可以在rtorrent中浏览详细教程。
结论
rtorrent 是为那些想要用命令行BT客户端来代替基于GUI的客户端的用户准备的。虽然它需要为初始化配置付出一些时间并且需要一些操作来习惯,但是这些时间是值得的。尝试一下,它一定会给你留下深刻印象。
优点
- 功能丰富
- 大量的自定义选项
缺点
- 初始配置时需要一点时间
- 用户可能需要一些时间来习惯
你使用基于CLI的BT客户端吗?它有什么优势和弊端?和我们分享你的经历。
via: http://mylinuxbook.com/rtorrent-bit-torrent-client/
