README 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. aria2 - The ultra fast download utility
  2. 1. Disclaimer
  3. -------------
  4. This program comes with no warranty.
  5. You must use this program at your own risk.
  6. 2. About aria2
  7. --------------
  8. aria2 has segmented downloading engine in its core. By segmented downloading,
  9. it can download files very much faster than ordinary browsers.
  10. aria2 is in very early development stage. Currently it has following features:
  11. * HTTP/HTTPS GET support
  12. * HTTP Proxy support
  13. * HTTP BASIC authentication support
  14. * HTTP Proxy authentication support
  15. * FTP support(active, passive mode)
  16. * FTP through HTTP proxy(GET command or tunneling)
  17. * Segmented download
  18. * Cookie support
  19. * It can load cookies from file whose format is used by Netscape and Mozilla.
  20. * It can run as a daemon process.
  21. * BitTorrent protocol support with fast extension.
  22. * Selective download in multi-file torrent/metalink.
  23. * Metalink version 3.0 support(HTTP/FTP/BitTorrent).
  24. * Limits download/upload speed.
  25. * Chunk checksum validation in Metalink.
  26. * netrc support.
  27. * Configuration file support.
  28. * Downloads URIs found in a text file or stdin.
  29. * Integrates HTTP/FTP/BitTorrent downloads; downloading a file from several
  30. different sources.
  31. 3. Dependency
  32. -------------
  33. In order to enable HTTPS support, you need GNU TLS or OpenSSL.
  34. In order to enable BitTorrent support, you need GNU TLS+libgcrypt or OpenSSL.
  35. In order to enable Metalink support, you need libxml2. Optionally GNU TLS+
  36. libgcrypt or OpenSSL are required for checksum checking support(MD5, SHA1).
  37. GNU TLS has precedence over OpenSSL if both libraries are installed.
  38. If you prefer OpenSSL, run configure with "--without-gnutls".
  39. You can disable BitTorrent, Metalink support by providing --disable-bittorrent,
  40. --disable-metalink respectively to configure script.
  41. In order to enable async DNS support, you need c-ares or ares.
  42. c-ares: http://daniel.haxx.se/projects/c-ares/
  43. ares: ftp://athena-dist.mit.edu/pub/ATHENA/ares
  44. 4. How to build
  45. ---------------
  46. In order to build aria2 from the source package, you need following development
  47. packages(package name may vary depending on the distribution you use):
  48. * libgnutls-dev (Required for HTTPS, BitTorrent support)
  49. * libgpg-error-dev (Required for BitTorrent support)
  50. * libgcrypt-dev (Required for BitTorrent support)
  51. * libares-dev (Required for async DNS support)
  52. * libxml2-dev (Required for Metalink support)
  53. You can use libssl-dev instead of libgnutls-dev,libgpg-error-dev,libgcrypt-dev:
  54. * libssl-dev (Required for HTTPS, BitTorrent support)
  55. The build process is fairly standard way for *nix programs:
  56. $ ./configure
  57. $ make
  58. The executable is aria2c in src directory.
  59. 5. BitTorrrent
  60. --------------
  61. The filename of the downloaded file is determined as follows:
  62. single-file mode:
  63. If "name" key is present in .torrent file, filename is the value of "name"
  64. key. Otherwise, filename is the basename of .torrent file appended by
  65. ".file". For example, .torrent file is "test.torrrent", then filename is
  66. "test.torrent.file".
  67. The directory to store the downloaded file can be specified by -d option.
  68. multi-file mode:
  69. The complete directory/file structure mentioned in .torrent file is
  70. created.
  71. The directory to store the top directory of downloaded files can be
  72. specified by -d option.
  73. In the default behavior, before download starts, complete directory structure
  74. is created if needed. Then aria2 opens all files mentioned in .torrent file,
  75. directly writes to and reads from these files.
  76. NOTE: Even in selective download, all files are opened.
  77. If "--direct-file-mapping" option set to be false, aria2 creates temporary
  78. file in the store directory. The length of this file is the sum of length of
  79. the files in .torrent file, so at least 2 times more disk space than the file
  80. size itself is required. Writing and reading is done against this file.
  81. After download completes, aria2 creates complete directory structure if needed,
  82. and copies whole file or a part of it to the destination.
  83. Note:
  84. * -o option is used to change the filename of downloaded .torrent file.
  85. * The ports aria2c uses are 6881-6999.
  86. * The maximum number of peers is 55. This limit may be exceeded when download
  87. rate is low.
  88. * As of release 0.10.0, aria2 stops sending request message after selective
  89. download completes,
  90. 6. Metalink
  91. -----------
  92. The current implementation supports HTTP/FTP/BitTorrent.
  93. The other P2P protocols are ignored.
  94. For checksum checking, both MD5 and SHA1 are supported. If both values are
  95. provided, then aria2 uses SHA1. If checksum checking is failed, aria2 doesn't
  96. retry the download and just exits with non-zero return code.
  97. The supported user preferences are version, language and os.
  98. If chunk checksums are provided in Metalink file, aria2 automatically validate
  99. a chunk of file while downloading it. This behavior can be turned off by
  100. a command-line option.
  101. 7. netrc
  102. --------
  103. netrc support is enabled by default in ftp.
  104. To disable netrc support, specify -n command-line option.
  105. Your .netrc file should have correct permissions(600).
  106. 8. Configuration file
  107. ---------------------
  108. Configuration file must be placed under ~/.aria2 and must be named as aria2.conf.
  109. In each line, there is 1 parameter whose syntax is name=value pair,
  110. where name is the long command-line option name without '--' prefix.
  111. The lines beginning '#' are treated as comments.
  112. Example:
  113. # sample configuration file for aria2c
  114. file-allocation=prealloc
  115. listen-port=60000
  116. seed-ratio=1.0
  117. max-upload-limit=40K
  118. ftp-pasv=true