A clone of btpd with my configuration changes.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

README 6.3 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. The BitTorrent Protocol Daemon
  2. README
  3. btpd version 0.13
  4. Contents
  5. 1 Introduction
  6. 1.a What is btpd?
  7. 1.b The programs
  8. 1.c The btcli commands
  9. 2 Using btpd
  10. 2.a Introduction
  11. 2.b Starting btpd
  12. 2.c Examples
  13. 2.d Troubleshooting
  14. 3 Building
  15. 3.a Requirements
  16. 3.b Standard build
  17. 4 Upgrade notes
  18. 4.a btpd 0.12
  19. 1. Introduction
  20. 1.a What is btpd?
  21. btpd is a bittorrent client consisting of a daemon and client commands,
  22. which can be used to read and/or manipulate the daemon state. The daemon
  23. is capable of running several torrents simultaneously and only uses one
  24. tcp port. It's fairly low on resource usage and should be perfect for
  25. file distribution sites. Efficient downloads and ease of use makes this
  26. client a good choice for the casual user as well.
  27. 1.b The programs
  28. btpd consists of the following programs:
  29. * btpd - The bittorrent client.
  30. * btcli - Command line interface to btpd.
  31. * btinfo - Shows information from a torrent file.
  32. All programs accept the "--help" option.
  33. 1.c The btcli commands
  34. The btcli utility has several different modes of operation. One of the
  35. following commands must be specified when running btcli:
  36. * add - Add torrents to btpd.
  37. * del - Remove torrents from btpd.
  38. * kill - Shut down btpd.
  39. * list - List torrents.
  40. * start - Activate torrents.
  41. * stat - Display stats for active torrents.
  42. * stop - Deactivate torrents.
  43. 2. Using btpd
  44. 2.a Introduction
  45. To start sharing a torrent with btpd, the torrent needs to be added to
  46. btpd. This is done with 'btcli add'. When you add a torrent btpd auto-
  47. matically (if you didn't specify otherwise) starts to share the torrent
  48. and download any missing data. The content directory you specify when
  49. adding a torrent doesn't need to exist; it will be created by btpd.
  50. You can see which torrents have been added to btpd with 'btcli list'.
  51. The list command also displays a number for each added torrent. This number
  52. can be used to specify the target torrent for the btcli commands, so you
  53. don't have to keep the torrent file once you've added it.
  54. The up- and download progress can be followed by using the 'btcli stat'
  55. command. Both the list and stat commands use the following indicators to
  56. display the state of a torrent:
  57. + the torrent is starting. This may take time if btpd needs to test
  58. the content of this torrent or one started before it.
  59. - the torrent is being stopped. May take time if the tracker is
  60. unresponsive.
  61. I the torrent is inactive.
  62. S btpd is seeding the torrent.
  63. L btpd is leeching the torrent.
  64. You can stop an active torrent with 'btcli stop' and, of course,
  65. start an inactive torrent by using 'btcli start'.
  66. The 'btcli del' command should only be used when you're totally finished
  67. with sharing a torrent. The command will remove the torrent and its
  68. associated data from btpd. It's an escpecially bad idea to remove a not
  69. fully downloaded torrent and then adding it again, since btpd has lost
  70. information on the not fully downloaded pieces and will need to download
  71. the data again.
  72. To shut down btpd use 'btcli kill'. Don't forget to read the help for each
  73. of btcli's commands.
  74. 2.b Starting btpd
  75. NOTE: You should only need one instance of btpd regardless of how many
  76. torrents you want to share.
  77. To start btpd with default settings you only need to run it. However,
  78. there are many useful options you may want to use. To see a full list
  79. run 'btpd --help'. If you didn't specify otherwise, btpd starts with
  80. the same set of active torrents as it had the last time it was shut down.
  81. btdp will store information and write its log in $HOME/.btpd. Therefore
  82. it needs to be able to write there during its execution. You can specify
  83. another directory via the '-d' option or the $BTPD_HOME variable.
  84. I recommend specifiying the maximum number of uploads. Bittorrent employs a
  85. tit for tat algorithm, so uploading at good rates allows for downloading.
  86. Try to find a balance between uploads/outgoing bandwidth and the number of
  87. active torrents.
  88. 2.c Examples
  89. Start btpd with all options set to their default values.
  90. # btpd
  91. Start btpd and make it listen on port 12345, limit outgoing bandwidth to
  92. 200kB/s, limit the number of peers to 40 and not start any torrents that
  93. were active the last time btpd was shut down.
  94. # btpd -p 12345 --bw-out 200 --max-peers 40 --empty-start
  95. Display a list btpd's torrents and their number, size, status, etc.
  96. # btcli list
  97. Same as above, but only for torrent 12 and my.little.torrent.
  98. # btcli list 12 my.little.torrent
  99. Same as above but only for active torrents.
  100. # btcli list -a
  101. Add foo.torrent, with content dir foo.torrent.d, and start it.
  102. # btcli add -d foo.torrent.d foo.torrent
  103. Same as above without starting it.
  104. # btcli add --no-start -d foo.torrent.d foo.torrent
  105. Start bar.torrent and torrent number 7.
  106. # btcli start bar.torrent 7
  107. Stop torrent number 7.
  108. # btcli stop 7
  109. Stop all active torrents.
  110. # btcli stop -a
  111. Remove bar.torrent and it's associated information from btpd.
  112. # btcli del bar.torrent
  113. Display a summary of up/download stats for the active torrents.
  114. # btcli stat
  115. Display the summary once every five seconds.
  116. # btcli stat -w 5
  117. Same as above, but also display individual stats for each active torrent.
  118. # btcli stat -w 5 -i
  119. Shut down btpd.
  120. # btcli kill
  121. 2.d Troubleshooting
  122. If btpd has shut down for some unknown reason, check the logfile for
  123. possible clues.
  124. 3. Building
  125. 3.a Requirements
  126. You should have a *BSD, Linux or sufficiently similar system.
  127. Make sure you have recent versions of the following software:
  128. * OpenSSL - Get at <URL:http://www.openssl.org/>
  129. You also need a c99 compiler. A non antique GCC should do.
  130. 3.b Standard build
  131. # ./configure
  132. # make
  133. # make install
  134. See './configure --help' for available build options if the above fails.
  135. 4. Upgrade notes
  136. 4.a btpd 0.12
  137. The layout of the torrents directory in the btpd directory has changed
  138. since previous versions. Please remove the torrents directory before
  139. running 0.12 or later.