mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-02-28 01:01:09 +08:00
Merge pull request #61 from flsf/master
翻译完成rtorrent – A Powerful Command Line Bit Torrent Client
This commit is contained in:
commit
8ec02cfb9b
@ -1,152 +0,0 @@
|
||||
rtorrent – A Powerful Command Line Bit Torrent Client
|
||||
================================================================================
|
||||
If you avoid using a CLI based torrent client because you think that it might be very complex to use. Think again. I believe that CLI based bit torrent clients are far more addictive once you are used to any of them — you can start and monitor the progress from within your terminal window and that too very easily . In this article, we will discuss a powerful command line bit torrent client — **rtorrent**.
|
||||
|
||||
**NOTE** – All the examples and instructions presented in this article are tested on Ubuntu 13.04.
|
||||
|
||||
## rtorrent – Command Line Bit Torrent Client ##
|
||||
|
||||

|
||||
|
||||
**A Brief Tutorial**
|
||||
|
||||
rtorrent is a BitTorrent client for command line (ncurses based) that can be used for downloading files easily. Once this torrent client is installed, it can be executed by running the following command :
|
||||
|
||||
rtorrent
|
||||
|
||||
Here is a snapshot of rtorrent window when it is executed :
|
||||
|
||||

|
||||
|
||||
Well, I agree that the main window is not very eye pleasing and the information displayed is a bit confusing. Don’t worry, just press enter from your keyboard and a prompt should appear at the bottom of the window.
|
||||
|
||||
Here is the snapshot :
|
||||
|
||||

|
||||
|
||||
Observe that a prompt load.normal> appeared on the screen. The next step is to just type the name of the torrent file. For example in my case, the torrent file name was **Fedora-20-Alpha-x86_64-DVD.torrent**.
|
||||
|
||||

|
||||
|
||||
Note that you just have to write the torrent file name (or complete path, if not in current directory). You can easily use bash short cuts like [TAB] to complete file names and paths. Once done, just press enter again.
|
||||
|
||||

|
||||
|
||||
So you can see that the torrent file is loaded now but you need to activate it and start the download. For this, first press the down arrow key. This should display \*\*stars\*\* before the loaded file details.
|
||||
|
||||

|
||||
|
||||
Observe that \*\*stars\*\* were displayed in the beginning of torrent file related information. Now, press Ctrl+s to start the download.
|
||||
|
||||

|
||||
|
||||
Observe that rtorrent has started downloading the actual file now. Use **Ctrl+d** to stop the download process and another **Ctrl+d** to remove the torrent i.e., unload it. To quit, use **Ctrl+q**.
|
||||
|
||||
So you can see that despite of being command line based, it’s actually not very difficult to operate rtorrent utility.
|
||||
|
||||
**Download/Install**
|
||||
|
||||
Here are some of the important links related to rtorrent utility :
|
||||
|
||||
- Home page
|
||||
- Download Link
|
||||
|
||||
Ubuntu users can download rtorrent utility from Ubuntu Software Centre. The version used for this review was 0.9.2.
|
||||
|
||||
Once rtorrent is downloaded and installed, you have to set-up a resource file — **.rtorrent.rc**. The utility will not start functioning properly until this file is in place. This was what I got when I executed rtorrent without setting up **~/.rtorrent.rc** :
|
||||
|
||||

|
||||
|
||||
So you can see that the utility displayed an error that it could not read the specified resource file. To set-up this resource file, first download the [resource file template][1] and make necessary changes.
|
||||
|
||||
Note – I mentioned the above link just because it is official download link. The file .rtorrent.rc is a bit different in my case.
|
||||
|
||||
Here is the resource file in my case :
|
||||
|
||||
# For temporary downloaded files
|
||||
directory = ~/rTempDownloadFiles
|
||||
|
||||
# Directory to save and resume torrent sessions
|
||||
session = ~/rSession
|
||||
|
||||
# Other Tunables
|
||||
upload_rate = 30
|
||||
download_rate = 200
|
||||
peer_exchange = yes
|
||||
|
||||
# DHT enabled
|
||||
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
|
||||
# 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
|
||||
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/”
|
||||
|
||||
Note – The resource file was referenced from [this link][2].
|
||||
|
||||
To use the this resource file as it is, don’t forget to run following set of commands (to create certain directories mentioned in resource file) :
|
||||
|
||||
mkdir /home/<your-username>/rTempDownloadFiles
|
||||
mkdir /home/<your-username>/rFullDownloadFiles
|
||||
mkdir /home/<your-username>/rSession
|
||||
mkdir /home/<your-username>/rWatch
|
||||
|
||||
Replace <your-username> with user name of your account. Also, make sure that the resource file-name is **.rtorrent.rc** (with leading dot) and not **rtorrent.rc** and save it in your home directory (/home/himanshu in my case).
|
||||
|
||||
To know more about using rtorrent, read its [UserGuide][3]. Also, do go through this [detailed tutorial][4] on rtorrent utility.
|
||||
|
||||
**Pros**
|
||||
|
||||
- Feature rich
|
||||
- Lots of customizable options
|
||||
|
||||
**Cons**
|
||||
|
||||
- Requires a bit of effort in initial configuration
|
||||
- A user might take time to get used to it.
|
||||
|
||||
**Conclusion**
|
||||
|
||||
rtorrent is for those who would like to have a command line alternative to GUI based BitTorrent clients. Though it requires some initial configuration effort and a bit of practice to get used to, but the effort is worth it. Do give it a try, It will definitely impress you.
|
||||
|
||||
*Do you use any CLI based bit torrent client? What are the pros and cons of it? Share your experience with us.*
|
||||
|
||||
|
||||
via: http://mylinuxbook.com/rtorrent-bit-torrent-client/
|
||||
|
||||
本文由 [LCTT][] 原创翻译,[Linux中国][] 荣誉推出
|
||||
|
||||
译者:[译者ID][] 校对:[校对者ID][]
|
||||
|
||||
[LCTT]:https://github.com/LCTT/TranslateProject
|
||||
[Linux中国]:http://linux.cn/portal.php
|
||||
[译者ID]:http://linux.cn/space/译者ID
|
||||
[校对者ID]:http://linux.cn/space/校对者ID
|
||||
|
||||
[1]:http://libtorrent.rakshasa.no/export/1170/trunk/rtorrent/doc/rtorrent.rc
|
||||
[2]:http://ankursinha.fedorapeople.org/misc/rtorrentconf/rtorrent.rc
|
||||
[3]:http://libtorrent.rakshasa.no/wiki/RTorrentUserGuide
|
||||
[4]:http://fsk141.com/rtorrent-the-complete-guide/
|
@ -0,0 +1,176 @@
|
||||
rtorrent - 强大的命令行BT客户端
|
||||
================================================================================
|
||||
If you avoid using a CLI based torrent client because you think that it might be very complex to use. Think again. I believe that CLI based bit torrent clients are far more addictive once you are used to any of them — you can start and monitor the progress from within your terminal window and that too very easily . In this article, we will discuss a powerful command line bit torrent client — **rtorrent**.
|
||||
如果你因为认为torrent命令行客户端对我们很复杂从而逃避使用它.请三思.我相信一旦使用过任何一个基于命令行的BT客户端,你就会上瘾 - 你可以非常容易的在你的终端窗口启动和监控进度. 在这篇文章中,我们将会讨论一个强大的命令行BT客户端 - **rtorrent** .
|
||||
|
||||
**NOTE** - 文中展示的所有示例和指令都已经在Ubuntu 13.04中测试过.
|
||||
|
||||
## rtorrent - 命令行BT客户端 ##
|
||||
|
||||

|
||||
|
||||
**简明教程**
|
||||
|
||||
rtorrent 是一个用来轻松下载文件的命令行BT客户端(基于ncurses). 安装这个torrent客户端之后,可以用下面命令运行它:
|
||||
|
||||
rtorrent
|
||||
|
||||
这有一个运行rtorrent后的窗口的截图:
|
||||
|
||||

|
||||
|
||||
|
||||
好吧,我同意这个主窗口看起来是有一点难看而且显示的信息有一点点混乱.不要担心,只要在你的键盘上按下enter就会有一个提示出现在窗口底部.
|
||||
|
||||
这是截图:
|
||||
|
||||

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

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

|
||||
|
||||
|
||||
现在你可以看到torrent文件已经加载了,但是你需要激活它,让它开始下载.怎么做呢?首先按下向下箭头键.现在应该在之前加载文件的详细信息上显示了 \*\*stars\*\*(译者注:就是前面有个星号)
|
||||
|
||||

|
||||
|
||||
留意在torrent文件信息开头显示的 \*\*stars\*\* . 现在,按下 Ctrl+s 开始下载.
|
||||
|
||||

|
||||
|
||||
|
||||
rtorrent现在已经开始下载当前文件了. 用 **Ctrl+d** 停止下载,再用一次 **Ctrl+d** 移除torrent,即卸载它. 用 **Ctrl+q** 离开rtorrent.
|
||||
|
||||
你可以看到尽管基于命令行,但是事实上操作rtorrent并不是很难.
|
||||
|
||||
**下载/安装**
|
||||
|
||||
一些重要的关于rtorrent的链接:
|
||||
|
||||
- 主页
|
||||
- 下载链接
|
||||
|
||||
|
||||
Ubuntu 用户可以从Ubuntu软件中心下载rtorrent. 现在使用的版本是0.9.2.
|
||||
|
||||
rtorrent 下载安装之后,你必须设置一个资源文件(配置文件) - **.rtorrent.rc** . 否则程序无法正常启动,直到这个文件放好. 下图就是我没有设置 **~/rtorrent.rc** 运行程序的结果.
|
||||
|
||||

|
||||
|
||||
|
||||
你可以看到程序显示了一个不能读取到资源文件的错误. 来设置好这个文件, 首先下载[文件模板][1] 根据需求改一改.
|
||||
|
||||
|
||||
注意 - 我提到了上面的链接因为它是官方下载链接. 这个文件 .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/”
|
||||
|
||||
注意 - 这个资源文件引用自[这个链接][2].
|
||||
|
||||
要使用这个资源文件,不要忘记运行下面的命令(建立必要的资源文件中提到的目录):
|
||||
|
||||
|
||||
mkdir /home/<your-username>/rTempDownloadFiles
|
||||
mkdir /home/<your-username>/rFullDownloadFiles
|
||||
mkdir /home/<your-username>/rSession
|
||||
mkdir /home/<your-username>/rWatch
|
||||
|
||||
|
||||
用你自己的用户名替换 <your-username>.还有,确保资源文件的名字是 **.rtorrent.rc** (前面有一个点) 不要用 **rtorrent.rc**,把它保存在你的home目录(我的是/home/himashu).
|
||||
|
||||
想知道更多关于使用rtorren, 请读[用户指南][3]. 还可以在rtorrent中通过[详细教程][4].
|
||||
|
||||
**赞成**
|
||||
|
||||
- 功能丰富
|
||||
- 大量的自定义选项
|
||||
|
||||
**反对**
|
||||
|
||||
- 初始配置时需要一点精力
|
||||
- 用户可能需要一些时间来习惯
|
||||
|
||||
**结论**
|
||||
|
||||
rtorrent 是为那些想要用命令行BT客户端来代替基于GUI的客户端的用户准备的.虽然它需要为初始化配置付出一些精力并且需要一些练习来习惯,但是这些精力是值得的.尝试一下,它一定会打动你.
|
||||
|
||||
*你使用基于CLI的BT客户端?它的正反两方面意见怎么样?和我们分享你的经历.*
|
||||
|
||||
|
||||
via: http://mylinuxbook.com/rtorrent-bit-torrent-client/
|
||||
|
||||
本文由 [LCTT][] 原创翻译,[Linux中国][] 荣誉推出
|
||||
|
||||
译者:[flsf01][] 校对:[校对者ID][]
|
||||
|
||||
[LCTT]:https://github.com/LCTT/TranslateProject
|
||||
[Linux中国]:http://linux.cn/portal.php
|
||||
[flsf01]:http://linux.cn/space/flsf01
|
||||
[校对者ID]:http://linux.cn/space/校对者ID
|
||||
|
||||
[1]:http://libtorrent.rakshasa.no/export/1170/trunk/rtorrent/doc/rtorrent.rc
|
||||
[2]:http://ankursinha.fedorapeople.org/misc/rtorrentconf/rtorrent.rc
|
||||
[3]:http://libtorrent.rakshasa.no/wiki/RTorrentUserGuide
|
||||
[4]:http://fsk141.com/rtorrent-the-complete-guide/
|
Loading…
Reference in New Issue
Block a user