rtorrent的使用

本来也一直用的奔流bt,看见论坛里很多人推荐用rtorrent,看看关于它的介绍还是很吸引人的:
[quote]BT下载 - 高速占内存少而且功能强大
o支持协议加密,防止ISP封BT
o支持peer交换,客户端之间交换peer,让每个客户可以连上更多的客户
o支持多Tracker协议, UDP Tracker
o支持选择文件下载,以及调整下载优先级
o支持通过DHT网络实现无种下载
o支持快速恢复(Fast Resume),下载中断后无需重新hash,节约时间
o支持nTorrent(windows)远程控制[/quote]

[i][b]注意了:[/b][/i]
[i]rtorrent不支持写入文件到ntfs分区, 只能用ext, fat32等非ntfs之类, 这个一直是rtorrent没有fix的一个bug:
[url]http://libtorrent.rakshasa.no/ticket/226[/url]
因此如果实在是没有非ntfs分区作为下载目录的话,就不要考虑用了。期待新版本能解决这个问题。[/i]

sudo apt-get install后,发现居然是个命令行的,一上来就懵了完全不会用。
于是上官网,查看user guide [url]http://libtorrent.rakshasa.no/wiki/RTorrentUserGuide[/url]

快速扫了一遍,得到了以下的几个有用的命令提示:
[quote]
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.
[/quote]
根据以上这些信息,先按^o设定一下下载目录,再按"backspace",在load-start>提示符下,输入torrent的路径,这时就能看到下载任务已经添加到了列表中,需要再按一下ctrl+s 开始, 暂停是ctrl+d, 暂停时再按ctrl+d则会删除该任务(注意:连同种子文件也会删除的)。有一点要注意,就是ctrl+s一定要先用键盘向右方向键先选择下载的任务之后才有效,不然总会说command mis type... 这个问题让我郁闷了半天。通过a/s/d可以增加上传限速,而A/S/D则是增加下载限速。
如果需要选择文件下载, 则选择了下载任务情况下,再按右方向键, 上下键选择filelist,再向右在不需要的文件上按空格,将优先级设置为off则是放弃下载。有一个快捷键没有说到,就是ctrl+k,关闭任务但不删除。这个快捷键是我后来发现的,假设是这个情况会用到:当你开始了一个下载任务,但又要更改下载目录的时候,可以现关闭再ctrl+o。
以上是基本设置, 根据这些已经跟普通的bt下载软件差不多了,一般性的使用可以参考[url]http://discuz.orz101.com/viewthread.php?tid=263&extra=page%3D1[/url]。

刚才一定会发现启动rtorrent,提示文件.rtorrent.rc找不到,而我在本地找了个遍都没有找到。后来才发现这个文件直接安装是不带的,要从官网上下载,而这个文件正是rtorrent的配置文件,[url]http://libtorrent.rakshasa.no/browser/trunk/rtorrent/doc/rtorrent.rc?rev=latest[/url]
发现如果浏览官网的wiki是能够看到一项:rtorrent.rc example的,点进去发现链接跟上面的一样。wiki提供的信息比较全面, 远比直接从主页进user guide看到的多。把这个rtorrent.rc的内容复制下来,在本地的/home/yourhome目录下创建.rtorrent.rc文件,再把复制的内容粘贴进去。里面的设置一目了然,做了设定之后,重启rtorrent即能生效。

刚试用rtorrent的时候,感觉速度提不上来, 比起奔流有些差距(奔流一般我都能有200k/s up的下载速度,但是rtorrent开了半个小时,平均也就40-50k/s);后来看到网上很多人说要开dht,不支持dht的bt下载软件形同鸡肋,于是又到wiki上查看关于dht的设置:
[quote]
# Enable DHT support for trackerless torrents or when all trackers are down.

# May be set to "disable" (completely disable DHT), "off" (do not start DHT),

# "auto" (start and stop DHT as needed), or "on" (start DHT immediately).

# The default is "off". For DHT to work, a session directory must be defined.

#

# dht = auto# UDP port to use for DHT.

#

# dht_port = 6881
[/quote]
取消以上关于dht的注释即可,而默认确实是关闭dht的。再试试看下载的速度, 这下居然能够到500kup了,威力巨大阿。
到这里,速度上已经让我满意了。

再看看rtorrent.rc中还有没有比较实用的设置:
[quote]
# Default directory to save the downloaded torrents.
directory =/home/lynn/bt
directory指定了下载文件的存放目录。

# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session =/home/lynn/bt/session
session指定session的存放目录,有了它就能进行恢复下载。不然每次重启都要手动添加。

# Watch a directory for new torrents, and stop those that have been
# deleted.
schedule = watch_directory,5,5,load_start=/home/lynn/bt/watch/*.torrent
schedule = untied_directory,5,5,stop_untied=
这两项启动了rtorrent的监视功能,将种子文件放入load_start指定的目录中后,rtorrent将自动开始下载。

# example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
schedule = ratio,60,60,"stop_on_ratio=2000,200M,2000"
可以设置上传和下载达到一定比例后停止,大概这里的比例是百分之一为单位,所以2000就等于20倍

我的locale是zh_CN.UTF-8的因此我在配置文件中添加了下面一行,这样生成的目录和文件名就不是乱码了。
encoding_list=UTF-8
[/quote]
另外,还找到一篇文章,说得很全面,以上设置的部分内容取自这里:
[url]http://www.cublog.cn/u/17248/showart_673200.html [/url]

经过自己的试用,发现rtorrent小巧、功能强大, 监视种子开始新下载功能更是一个新颖又实用的地方,更难得的是速度很快,已经没有必要眷念windows下的bt下载软件,别扭的用wine+utorrent了, 作为linux的bt下载又多了一个不错的选择。
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值