Changes between Initial Version and Version 1 of archive/libtorrent.rakshasa.no/RTorrentUserGuide


Ignore:
Timestamp:
08/08/15 16:34:40 (9 years ago)
Author:
Gabor Hudiczius
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • archive/libtorrent.rakshasa.no/RTorrentUserGuide

    v1 v1  
     1[[libtorrentMirror]]
     2
     3= RTorrent User Guide =
     4
     5Insert stuff about sessions, adding torrents, throttling etc. Anyone feel like writing something? This page really needs to be cleaned up...
     6
     7See [wiki:RTorrentMan manpage] in the meanwhile.
     8
     9General note about key combinations: `^` means the Ctrl-key. `M-x` means Meta-x (Usually Alt-x or Esc-x)
     10
     11== Adding and removing torrents ==
     12
     13
     14||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/*||
     15
     16||return||Same as backspace, except the torrent remains inactive. (Use `^`s to activate)||
     17||`^`o||Set new download directory for selected torrent. Only works if torrent has not yet been activated.||
     18||`^`s||Start download. Runs hash first unless already done.||
     19||`^`d||Stop an active download, or remove a stopped download.||
     20||`^`k||Stop and close the files of an active download.||
     21||`^`r||Initiate hash check of torrent. Without starting to download/upload.||
     22
     23Note that `^`s (and `^`q for quit) is often used for terminal control to pause screen output (and `^`q to resume). This may interfere with rTorrent. Type `stty -a` to see whether these have been mapped. To remove the mappings, execute the commands
     24{{{
     25stty stop undef
     26stty start undef
     27}}}
     28before running rTorrent (or reattaching to screen) to leave them undefined. You could also replace `undef` with some other code -- `^`p, say. `^`d also usually sends end-of-file but ncurses passes this through to rTorrent. `stty eof undef` if you are worried.
     29
     30To fix this, you may also toggle the flow control in screen with `^`a `^`f until screen displays "-flow" in the bottom left corner.
     31
     32== Throttling ==
     33
     34||a/s/d||Increase the upload throttle by 1/5/50 KB.||
     35||z/x/c||Decrease the upload throttle by 1/5/50 KB.||
     36||A/S/D||Increase the download throttle by 1/5/50 KB.||
     37||Z/X/C||Decrease the download throttle by 1/5/50 KB.||
     38
     39Note that all throttling is applied globally and not per torrent.
     40
     41== Common Error Messages ==
     42 Could not parse bencoded data::
     43      This message is caused by bad communication with the tracker, often caused by invalid client authentication (passkey, IP address, etc.)
     44 Could not create download, the input is not a valid torrent::
     45      This message is caused by a corrupted or otherwise non-valid .torrent file. You should redownload the .torrent file or possibly find a new source for it.
     46
     47== Navigating ==
     48
     49=== Global Keys ===
     50
     51||`^`q||Initiate shutdown, press again to force the shutdown and skip sending the stop signal to trackers.||
     52||up/down||Select item.||
     53||left||Go back to the previous screen.||
     54
     55=== Main View Keys ===
     56
     57||right|| Switch to Download View.||
     58||`^`r||Initiate hash check of torrent.||
     59||+/-||Change priority of torrent.||
     60||l||View log. Exit by pressing the space-bar.||
     61||1||Show all downloads||
     62||2||Show all downloads, ordered by name||
     63||3||Show started downloads||
     64||4||Show stopped downloads||
     65||5||Show complete downloads||
     66||6||Show incomplete downloads||
     67||7||Show hashing downloads||
     68||8||Show seeding downloads||
     69
     70=== Download View Keys ===
     71
     72||right||Switch to selected view||
     73||left||Switch to view selection or back to main view||
     74||1/2||Adjust max uploads.||
     75||3/4||Adjust min peers.||
     76||5/6||Adjust max peers.||
     77||p||Display peer list||
     78||o||Display torrent info||
     79||i||Display file list||
     80||u||Display tracker list||
     81||t/T||Initiate tracker request. Use capital T to force the request, ignoring the "min interval" set by the tracker.||
     82
     83=== Peer list View Keys ===
     84
     85||left||Switch to view selection||
     86||right||Show peer details||
     87||*||Snub peer (stop uploading to this peer)||
     88||k||Kick peer (disconnect from peer)||
     89||B||Ban peer (No unbanning is possible.) 0.8.4+||
     90
     91=== File list View Keys ===
     92
     93||left||Switch to view selection||
     94||right||Show file details||
     95||space||Change the file priority; applies recursively when done on a directory||
     96||*||Change the priority of all files||
     97||/||Collapse directories. While collapsed, press right to expand the selected directory.||
     98
     99Priority options are blank (standard priority), hig (high priority) and off (not to be downloaded).
     100
     101=== Tracker list View Keys ===
     102
     103||left||Switch to view selection||
     104||*||Enable/disable tracker||
     105||space||Rotate trackers in a group||
     106
     107== Main view window. ==
     108
     109The main view window lists all loaded torrents with respective status info. Example of a single torrent:
     110
     111{{{
     112*  ubuntu-5.10-install-i386.iso
     113* Torrent:  161.6 /  617.2 MB Rate:   1.1 /  41.3 KB Uploaded:     5.1 MB [24%]  0d  3:09 [TI R: 0.03]
     114*
     115}}}
     116
     117'''Torrent info line explanation'''
     118
     119Torrent:  161.6 /  617.2 MB
     120     Amount of downloaded data / total size of torrent.
     121
     122Rate:   1.1 /  41.3 KB
     123     Upload / download speed rates.
     124
     125Uploaded:     5.1 MB
     126     Amount of uploaded data.
     127
     128[24%]
     129     Download ratio. 161.6 MB downloaded makes 24% of the total 617.2 MB. Well, roughly apparently, presumably since some of the downloaded data may have been bad and discarded.
     130
     1310d  3:09
     132     Estimated completion time. This torrent is expected to be completely downloaded in 0 days, 3 hours and 9 minutes.
     133
     134T
     135     Present if torrent is tied to a file, blank otherwise.
     136
     137I
     138     Present if torrent is ignoring commands (such as stop_on_ratio). Toggle with 'I'.
     139
     140R: 0.03
     141     Share ratio. 5.1 MB uploaded makes 3% of the 161.6 MB already downloaded.
     142
     143Note that the estimated completion time does not take into account whether you turned off the download of individual files in the torrent. It just relies on the current download speed and total size of the torrent.
     144
     145== Bottom line in GUI shows current info about a lot of things. ==
     146
     147Here are a few outlined.
     148
     149Example of the statusbar:
     150{{{
     151Throttle U/D: 200/off  Rate: 141.6 /   0.0 KiB  Listen:<default>:xxxxx  Bind: xxx.xxx.xxx.xxx  [U 3/14] [D 15/0] [H 1/32] [S 6/40/768] [F 4/128]
     152}}}
     153
     154'''Bottom line explanation'''
     155
     156Throttle U/D: 200/off
     157     These are the current speed settings.
     158
     159     U = upload = outgoing transfer
     160
     161     D = download = incoming transfer
     162
     163     In this case the total upload speed is limited to 200 KB/s.
     164     With the D setting to "off" there is no limit on download speed.
     165
     166     See Throttling section for information on how to change the settings.
     167
     168Rate: 141.6 /   0.0 KiB
     169     These numbers show the current upload/download speeds.
     170
     171Listen:<default>:xxxxx
     172     This is the ip reported to the tracker.
     173     It should be the same as the ip from where you are browsing the tracker.
     174
     175Bind: xxx.xxx.xxx.xxx
     176     This is the ip on which libtorrent/rtorrent is running.
     177     The external ip if you're behind a NAT.
     178
     179[D 15/0]
     180     Current number of download slots in use and the maximum (0 if unlimited).
     181
     182[H 1/32]
     183     Current number of active HTTP requests (for tracker announces and downloads of .torrent files), and the maximum.
     184
     185[U 3/14]
     186     Current number of upload slots in use, and the maximum, which depends on the global upload rate limit.
     187
     188[S 6/40/768]
     189     The three numbers represent handshakes/open sockets/max open sockets.
     190
     191[F 4/128]
     192     The two numbers represent open files/max open files. The library dynamically closes the least used files as needed.
     193
     194== The Peers screen ==
     195
     196Some parts of this screen is fairly cryptic, here's explaination of the fields.
     197
     198Header:
     199{{{
     200IP              UP     DOWN   PEER   C/RE/LO  QS    DONE  REQ   SNUB
     201}}}
     202Example entry:
     203{{{
     2041.1.1.1         1.1    0.0    20.5   r/ci/un  3/0   32
     205}}}
     206
     207
     208'''Explanation'''
     209
     210IP
     211     The IP address of the peer. (Which, of course, has nothing to do with DNS)
     212
     213UP
     214     The rate at which your client is uploading to the peer (KiB/sec).
     215
     216DOWN
     217     The rate at which your client is downloading from the peer (KiB/sec).
     218
     219PEER
     220     The download rate (KiB/sec) of this peer for this torrent (reported to your client by the peer client).
     221
     222C/RE/LO
     223     C  = Connection type, can be r, l, R or L.
     224
     225          r = Started remotely, the peer initiated the connection to your client.
     226
     227          l = Started locally, your client initiated the connection to the peer.
     228
     229          R = Started remotely, using encrypted data transfer.
     230
     231          L = Started locally, using encrypted data transfer.
     232
     233     RE = Remote client information, has two parts; the first is u or c and the second is i or n.
     234
     235          c = This peer has choked your client (which means it is not going to send you any pieces for now).
     236
     237          u = Your client is not choked by this peer (unchoked).
     238
     239          i = This peer is interested in downloading from your client.
     240
     241          n = This peer is not interested in downloading from your client.
     242
     243     LO = Local client information, has two parts; the first is u or c and the second is i or n.
     244
     245          c = Your client has choked this peer (which means it is not going to send this peer any pieces for now).
     246
     247          u = Your client is not choking the peer (unchoked).
     248
     249          i = Your client is interested in downloading from this peer.
     250
     251          n = Your client is not interested in downloading from this peer.
     252
     253QS
     254     Queues Outoing/Incoming pieces. The first is the number of pieces that are queued to be sent to the peer. The second is the number of pieces your client has requested and is waiting for the peer to send.
     255
     256DONE
     257     What percent this peer has of the file.
     258
     259REQ
     260     The number of the piece that is currently on the top of the request queue.
     261
     262SNUB
     263     This field has a * in it when your client is snubbing this peer. When a peer agrees to send you a piece you have requested and then does not send that piece within a certain time your client will snub this peer. It is basically a way for the client to flag that this peer is unreliable and it is better to request pieces from other clients.
     264
     265'''Status'''
     266
     267A status line in this screen lists information such as:
     268{{{
     269Peers: 99(1002) Min/Max: 40/100 Uploads: 15 U/I/C/A: 3/71/5/3 Failed: 0
     270}}}
     271
     272Peers
     273     The amount of peers you are connected and (not connected) to.
     274
     275Min/Max
     276     The minimum and maximum amount of peers to try to keep connected. Can be toyed with keys 3, 4, 5 and 6.
     277
     278Uploads
     279     Maximum number of peers to upload to at the same time (given the global upload slots are available). Can be toyed with keys 1 and 2.
     280
     281U/I/C/A
     282     U = Number of corrently unchoked peers
     283
     284     I = Currently interested peers
     285
     286     C = Complete peers
     287
     288     A = Peers accounted
     289
     290Failed
     291     Number of failed chunks.
     292== The ''Chunks seen'' screen ==
     293
     294You see that screen after you press the 'i' key.
     295You got
     296{{{
     297#!html
     298<pre><code> Chunks seen: [C/A/D 25/29/6.99]     X downloaded  <strong>X</strong> missing  <strong><u>X</u></strong> queued  <span style="background-color: black; color: white">X</span> downloading
     299    0 EFD<strong>FEF</strong>FDFE <strong>CEFFFFF</strong>FFF EFCFC<strong>FDDBC 9DFDBDDECF BDDB</strong>CEDDFD DEFEEDECFC
     300   60 DBDFEE9<span style="background-color: black; color: white">B</span><strong><u>EC</u> <u>FCCBECC</u>FEB FAFDDFCAAD CABCDECDFC 9BFDCDEFAA ADCEFFBBDC
     301  </strong>120 <strong>FAFFCCBEAC EDFFEDDF9B EDD9DEBDDD C9BCEAFF9C F8FDCDDBFB CFCECFCEDD
     302  </strong>180 <strong>FFFADCCFAE FB9F</strong>BFC<strong>CAC BE</strong>ABBB9FD<strong>D ABCECEDFAB DCF9BDDFBD BBEFAE7EED
     303  </strong>240<strong> DDCEAFBCF7 EEEFBF9AAD 9FDBCDDEBB DDF79C8FCE EFF9FDFE9A EF9DCCEEBA</strong>
     304</pre></code>
     305}}}
     306
     307C/A/D stands for Complete/Accounted/Distributed copies. Only those peers whose bitfields are accounted for are included above; they do not include seeders, peers with empty bitfields, nor normal peers if there are too many.
     308
     309Then, you have a view of the chunks of the torrent. The chunks are shown in groups of 10. Each new line begins with the number of the first chunk on that line.
     310
     311Each chunk is shown by a hexadecimal number (0123456789ABCDEF) which is equal to its rarity among the non-seeders:
     312
     313 * a chunk shown as 0 is not available from non-seeders in the swarm (but all seeders have it of course)
     314 * a chunk shown as 6 is available from 6 non-seeders
     315 * and a chunk shown as F is available from 15 or more peers.
     316
     317If the chunk is in '''bold''' it means you do not have that chunk yet, if it is __underlined__ then it is in the transfer list (i.e. queued to be downloaded), and if the chunk is in reverse, it is currently being downloaded. Otherwise, a normal font indicates that the chunk has already been downloaded and verified as correct by rTorrent.
     318
     319
     320== Session directory ==
     321
     322Setting the ''session'' option will enable session management and the torrent files for all open downloads will be stored in this directory. When restarting rtorrent all torrents previously open will be restored. Only one instance of rtorrent should be used with each session directory, though at the moment no locking is done. An empty string will disable the session directory.
     323
     324
     325== Watching a directory for torrents ==
     326
     327The client may be configured to check a directory for new torrents and load them. Torrents loaded in this manner will be ''tied'' to the filename and when the file is deleted the torrent may be stopped or removed. If a torrent which is tied to a file is removed from the client, the tied file will be deleted.
     328
     329{{{
     330schedule = watch_directory,5,5,load_start=./watch/*.torrent
     331schedule = untied_directory,5,5,stop_untied=
     332}}}
     333
     334== Creating a config file ==
     335
     336== Trackers ==
     337
     338Using the ''-i <ip>'' flag or ''"ip = <ip>"'' option you may change your ip address that is reported to the tracker. If you have a dynamic ip address then ''"schedule = ip_tick,0,1800,ip=my_address"'' may be used to update the ip address every 30 minutes.
     339
     340The client may spend as much as 60 seconds trying to contact a UDP tracker, so if you are behind a firewall that blocks the reply packets you should tell the client to skip the UDP tracker. Set "use_udp_trackers = no" in your configuration file or in the command line option.
     341
     342== Signal handlers ==
     343
     344|| SIGINT || Normal shutdown with 5 seconds to send the stopped request to trackers. ||
     345|| SIGTERM || Shut down immediately. ||
     346|| SIGWINCH || Resize and redraw. ||