README 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. Welcome to GNUnet
  2. What is GNUnet?
  3. ===============
  4. GNUnet is peer-to-peer framework focusing on security. The first and
  5. primary application for GNUnet is anonymous file-sharing. GNUnet is
  6. currently developed by a worldwide group of independent free software
  7. developers. GNUnet is a GNU package (http://www.gnu.org/).
  8. This is an ALPHA release. There are known and significant bugs as
  9. well as many missing features in this release.
  10. Additional documentation about GNUnet can be found at
  11. https://gnunet.org/.
  12. Dependencies:
  13. =============
  14. Please note that for many of its dependencies GNUnet requires very
  15. recent versions of the libraries which are often NOT to be found in
  16. stable distributions in 2011. While using older packages may in some
  17. cases on some operating systems may seem to work in some limited
  18. fashion, we are in many cases aware of serious problems with older
  19. packages. Hence please make sure to use the versions listed below.
  20. These are the direct dependencies for running GNUnet:
  21. - libextractor >= 0.6.1
  22. - libmicrohttpd >= 0.9.2
  23. - libgcrypt >= 1.2
  24. - libcurl >= 7.21.0
  25. - libltdl >= 2.2 (part of GNU libtool)
  26. - sqlite >= 3.0 (default database)
  27. - mysql >= 5.1 (alternative to sqLite)
  28. - postgres >= 8.3 (alternative to sqLite)
  29. Recommended autotools for compiling the SVN version are:
  30. - autoconf >= 2.59
  31. - automake >= 1.11.1
  32. - libtool >= 2.2
  33. How to install?
  34. ===============
  35. The fastest way is to use a binary package if it is available for your
  36. system. For a more detailed description, read the installation
  37. instructions on the webpage at https://gnunet.org/installation.
  38. Note that some functions of GNUnet require "root" access. GNUnet will
  39. install (tiny) SUID binaries for those functions is you run "make
  40. install" as root. If you do not, GNUnet will still work, but some
  41. functionality will not be available (including certain forms of NAT
  42. traversal).
  43. GNUnet requires the GNU MP library (http://www.gnu.org/software/gmp/)
  44. and libgcrypt (http://www.gnupg.org/). You can specify the path to
  45. libgcrypt by passing "--with-gcrypt=PATH" to configure. You will also
  46. need either sqlite (http://www.sqlite.org/), MySQL
  47. (http://www.mysql.org/) or PostGres (http://www.postgres.org/).
  48. If you install from source, you need to install GNU libextractor first
  49. (download from http://www.gnu.org/software/libextractor/). We also
  50. recommend installing GNU libmicrohttpd (download from
  51. http://www.gnu.org/software/libmicrohttpd/). Then you can start the
  52. actual GNUnet compilation process with:
  53. $ ./configure --prefix=$HOME --with-extractor=$HOME
  54. $ make
  55. # make install
  56. # sudo -u gnunet mkdir ~/.gnunet/
  57. # sudo -u gnunet touch ~/.gnunet/gnunet.conf
  58. # sudo -u gnunet gnunet-arm -s
  59. This will compile and install GNUnet to $HOME/bin/, $HOME/lib/ and
  60. $HOME/share/ and start the system with the default configuration. It
  61. is recommended that you add a user "gnunet" to run "gnunet-arm". You
  62. can then still run the end-user applications as another user. If you
  63. create a user "gnunet", it is recommended that you edit the
  64. configuration file slightly so that data can be stored in
  65. "/var/lib/gnunet"; you may also want to use "/etc/gnunet.conf" for the
  66. location of the configuration file in this case.
  67. Note that additional, per-user configuration files
  68. (~/.gnunet/gnunet.conf) need to be created by each user (for example,
  69. by running gnunet-setup). Note that gnunet-setup is a separate
  70. download and requires recent versions of GTK+ and Glade; you can also
  71. edit the configuration file by hand, but this is not recommended. For
  72. more general information about the GNU build process read the INSTALL
  73. file.
  74. If you are compiling the code from subversion, you have to run
  75. ". bootstrap" before ./configure. If you receive an error during the
  76. running of ". bootstrap" that looks like "macro `AM_PATH_GTK' not
  77. found in library", you may need to run aclocal by hand with the -I
  78. option, pointing to your aclocal m4 macros, i.e.
  79. $ aclocal -I /usr/local/share/aclocal
  80. Configuration
  81. =============
  82. GNUnet uses two types of configuration files, one that specifies the
  83. system-wide defaults (typically located in /usr/share/gnunet/defaults
  84. .conf) and a second one that overrides default values with
  85. user-specific preferences. The user-specific configuration file
  86. should be located in "~/.gnunet/gnunet.conf" or its location can be
  87. specified by giving the "-c" option to the respective GNUnet
  88. application.
  89. The defaults that are shipped with the installation are usually ok,
  90. you may want to adjust the limitations (space consumption, bandwidth,
  91. etc.) though. The configuration files are human-readable. Note that
  92. you MUST create "~/.gnunet/gnunet.conf" explicitly before starting
  93. GNUnet. You can either copy "defaults.conf" or simply create an empty
  94. file.
  95. Usage
  96. =====
  97. First, you must obtain an initial list of GNUnet hosts. Knowing a
  98. single peer is sufficient since after that GNUnet propagates
  99. information about other peers. Note that the default "gnunet.conf"
  100. contains URLs from where GNUnet downloads an initial hostlist
  101. whenever it is started. If you want to create an alternative URL for
  102. others to use, the file can be generated on any machine running
  103. GNUnet by periodically executing
  104. $ cat $SERVICEHOME/data/hosts/* > the_file
  105. and offering 'the_file' via your web server. Alternatively, you can
  106. run the build-in web server by adding '-p' to the OPTIONS value
  107. in the "hostlist" section of gnunet.conf and opening the respective
  108. HTTPPORT to the public.
  109. If the solution with the hostlist URL is not feasible for your
  110. situation, you can also add hosts manually. Simply copy the hostkeys
  111. to "$SERVICEHOME/data/hosts/" (where $SERVICEHOME is the directory
  112. specified in the gnunet.conf configuration file).
  113. Now start the local node using "gnunet-arm -s". GNUnet should run 24/7 if
  114. you want to maximize your anonymity.
  115. You should then be able to access GNUnet using the shell:
  116. $ gnunet-search KEYWORD
  117. This will display a list of results to the console. Then use
  118. $ gnunet-download -o FILENAME GNUNET_URI
  119. to retrieve a file. The GNUNET_URI is printed by gnunet-search
  120. together with a description. To publish files on GNUnet, use the
  121. "gnunet-publish" command.
  122. The GTK user interface is shipped separately. After downloading and
  123. installing gnunet-gtk, you can invoke the GUI with:
  124. $ gnunet-gtk
  125. For further documentation, see our webpage.
  126. Hacking GNUnet
  127. ==============
  128. Contributions are welcome, please submit bugs to
  129. https://gnunet.org/bugs/. Please make sure to run contrib/report.sh
  130. and include the output with your bug reports. More about how to
  131. report bugs can be found in the GNUnet FAQ on the webpage. Submit
  132. patches via E-Mail to gnunet-developers@gnu.org.
  133. In order to run the unit tests with "make check", you need to
  134. set an environment variable ("GNUNET_PREFIX") to the directory
  135. where GNUnet is installed (usually, GNUnet will use OS specific
  136. tricks in order to try to figure out the PREFIX, but since the
  137. testcase binaries are not installed, that trick does not work
  138. for them). Also, before running any testcases, you must
  139. complete the installation first. Quick summary:
  140. $ ./configure --prefix=$SOMEWHERE
  141. $ make
  142. $ make install
  143. $ export GNUNET_PREFIX=$SOMEWHERE
  144. $ make check
  145. If any testcases fail to pass on your system, run "contrib/report.sh"
  146. and report the output together with information about the failing
  147. testcase to the Mantis bugtracking system at
  148. https://gnunet.org/bugs/.
  149. Running http on port 80 and https on port 443
  150. =============================================
  151. In order to hide GNUnet's HTTP/HTTPS traffic perfectly, you might
  152. consider running GNUnet's HTTP/HTTPS transport on port 80/443.
  153. However, we do not recommend running GNUnet as root. Instead, forward
  154. port 80 to say 8080 with this command (as root, in your startup
  155. scripts):
  156. # iptables -t nat -A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080
  157. or for HTTPS
  158. # iptables -t nat -A PREROUTING -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 4433
  159. Then set in the HTTP section of gnunet.conf the "ADVERTISED-PORT" to
  160. "80" and "PORT" to 8080 and similarly in the HTTPS section the
  161. "ADVERTISED-PORT" to "443" and "PORT" to 4433.
  162. You can do the same trick for the TCP and UDP transports if you want
  163. to map them to a priviledged port (from the point of view of the
  164. network). However, we are not aware of this providing any advantages
  165. at this point.
  166. Stay tuned
  167. ==========
  168. * https://gnunet.org/
  169. * https://gnunet.org/bugs/
  170. * https://gnunet.org/svn/
  171. * http://www.gnu.org/software/gnunet/
  172. * http://mail.gnu.org/mailman/listinfo/gnunet-developers
  173. * http://mail.gnu.org/mailman/listinfo/help-gnunet
  174. * http://mail.gnu.org/mailman/listinfo/info-gnunet
  175. * http://mail.gnu.org/mailman/listinfo/gnunet-svn