A clone of btpd with my configuration changes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

141 lines
5.1 KiB

  1. .TH BTPD "1" "2010\-07\-31" "BitTorrent Protocol Daemon 0.16" "User Commands"
  2. .\" disable hyphenation
  3. .nh
  4. .\" adjust text to left margin only
  5. .ad l
  6. .\" -----------------------------------------------------------------
  7. .\" MAIN CONTENT
  8. .\" -----------------------------------------------------------------
  9. .SH "NAME"
  10. btpd \- BitTorrent Protocol Daemon
  11. .SH "SYNOPSIS"
  12. .B btpd
  13. [\fB\-d\fR \fIdir\fR]
  14. [\fB\-p\fR \fIport\fR]
  15. [\fBOPTIONS\fR...]
  16. .SH "DESCRIPTION"
  17. Btpd is a utility for sharing files over the BitTorrent network protocol. It runs in daemon mode, thus needing no controlling terminal or gui. Instead, the daemon is controlled by \fBbtcli\fR, its control utility, or other programs capable of sending commands and queries on the control socket.
  18. .PP
  19. btpd consists of the following programs:
  20. .RS 4
  21. \fBbtpd\fR \- The bittorrent client.
  22. .br
  23. \fBbtcli\fR \- Command line interface to btpd.
  24. .br
  25. \fBbtinfo\fR \- Shows information from a torrent file.
  26. .RE
  27. .PP
  28. All programs accept the \fB\-\-help\fR option.
  29. .SH "OPTIONS"
  30. .TP
  31. \fB\-d\fR \fIdir\fR
  32. The path for the btpd directory. Default is \fI$HOME/.btpd\fR.
  33. .TP
  34. \fB\-p\fR \fIn\fR, \fB\-\-port\fR \fIn\fR
  35. Listen at port \fIn\fR. Default is 6881.
  36. .TP
  37. \fB\-\-help\fR [\fImode\fR]
  38. Show this text or help for the specified mode.
  39. .TP
  40. .B \-4
  41. Use IPv4. If given in conjunction with \fB\-6\fR, both versions are used.
  42. .TP
  43. .B \-6
  44. Use IPv6. By default IPv4 is used.
  45. Unfortunately enabling both IPv6 and IPv4 in btpd is less useful than it should be. The problem is that some sites have trackers for both versions and it's likely that the IPv6 one, which probably has less peers, will be used in favour of the IPv4 one.
  46. .TP
  47. .B \-\-bw\-in \fIn\fR
  48. Limit incoming BitTorrent traffic to \fIn\fR kB/s. Default is 0 which means unlimited.
  49. .TP
  50. .B \-\-bw\-out \fIn\fR
  51. Limit outgoing BitTorrent traffic to \fIn\fR kB/s. Default is 0 which means unlimited.
  52. .TP
  53. .B \-\-empty\-start
  54. Start btpd without any active torrents.
  55. .TP
  56. .B \-\-ip \fIaddr\fR
  57. Let the tracker distribute the given address instead of the one it sees btpd connect from.
  58. .TP
  59. .B \-\-ipcprot \fImode\fR
  60. Set the protection mode of the command socket. The mode is specified by an octal number. Default is 0600.
  61. .TP
  62. .B \-\-logfile \fIfile\fR
  63. Where to put the logfile. By default it's put in the btpd dir.
  64. .TP
  65. .B \-\-logmask \fImask\fR
  66. Bitfield to specify which data to record in the btpd log (dev info).
  67. .TP
  68. .B \-\-max\-peers \fIn\fR
  69. Limit the amount of peers to \fIn\fR.
  70. .TP
  71. .B \-\-max\-uploads \fIn\fR
  72. Controls the number of simultaneous uploads. The possible values are:
  73. .RS
  74. \fIn\fR < \-1 : Choose \fIn\fR >= 2 based on \fB\-\-bw\-out\fR (default).
  75. .br
  76. \fIn\fR = \-1 : Upload to every interested peer.
  77. .br
  78. \fIn\fR = 0 : Dont't upload to anyone.
  79. .br
  80. \fIn\fR > 0 : Upload to at most n peers simultaneously.
  81. .RE
  82. .TP
  83. .B \-\-no\-daemon
  84. Keep the btpd process in the foregorund and log to std{out,err}. This option is intended for debugging purposes.
  85. .TP
  86. .B \-\-prealloc \fIn\fR
  87. Preallocate disk space in chunks of \fIn\fR kB. Default is 2048. Note that \fIn\fR will be rounded up to the closest multiple of the torrent piece size. If \fIn\fR is zero no preallocation will be done.
  88. .TP
  89. .B \-\-numwant \fIn\fR
  90. Specify the number of wanted peers 'numwant' tracker request parameter. Default is 50.
  91. .SH "STARTING BTPD"
  92. To start btpd with default settings you only need to run it. However, there are many useful options you may want to use. To see a full list run \fBbtpd \-\-help\fR. If you didn't specify otherwise, btpd starts with the same set of active torrents as it had the last time it was shut down.
  93. .PP
  94. \fBbtdp\fR will store information and write its log in \fI$HOME/.btpd\fR. Therefore it needs to be able to write there during its execution. You can specify another directory via the \fB\-d\fR option or the \fI$BTPD_HOME\fR variable.
  95. .PP
  96. It is recommended to specifiy the maximum number of uploads. Bittorrent employs a tit for tat algorithm, so uploading at good rates allows for downloading. Try to find a balance between uploads/outgoing bandwidth and the number of active torrents.
  97. .PP
  98. .B Note:
  99. You should only need one instance of btpd regardless of how many torrents you want to share.
  100. .SH "EXAMPLES"
  101. Start btpd with all options set to their default values.
  102. .RS 4
  103. .nf
  104. .B $ btpd
  105. .fi
  106. .RE
  107. .PP
  108. Start btpd as above, but with torrent data in the directory /var/torrents
  109. .RS 4
  110. .nf
  111. .B $ btpd \-d /var/torrents
  112. .fi
  113. .RE
  114. .PP
  115. Start btpd and make it listen on port 12345, limit outgoing bandwidth to 200kB/s, limit the number of peers to 40 and not start any torrents that were active the last time btpd was shut down.
  116. .RS 4
  117. .nf
  118. .B $ btpd \-p 12345 \-\-bw\-out 200 \-\-max\-peers 40 \-\-empty\-start
  119. .fi
  120. .RE
  121. .SH "TROUBLESHOOTING"
  122. If \fBbtpd\fR has shut down for some unknown reason, check the logfile for possible clues.
  123. .SH "BUGS"
  124. Known bugs are listed at \fIhttp://github.com/btpd/btpd/issues\fR
  125. .sp
  126. Before submitting a bug report, please verify that you are running the latest version of btpd.
  127. .SH "AUTHORS"
  128. .sp
  129. Current maintainers:
  130. .sp
  131. \- Marq Schneider <\fIqueueRAM@gmail.com\fR>
  132. .sp
  133. Past contributors:
  134. .sp
  135. \- Richard Nyberg <\fIbtpd@murmeldjur.se\fR>
  136. .SH "SEE ALSO"
  137. .BR \fBbtcli\fR(1)
  138. .BR \fBbtinfo\fR(1)