aboutsummaryrefslogtreecommitdiff
path: root/doc/chapters
diff options
context:
space:
mode:
authorng0 <ng0@infotropique.org>2017-10-17 16:35:38 +0000
committerng0 <ng0@infotropique.org>2017-10-17 16:35:38 +0000
commitb95bd7b268372f5ba7fab90194d1c5b16f481a63 (patch)
tree2d51ebd2519bac6964312d3f7966a05bead723e1 /doc/chapters
parentf93463219f49ae010fd84ca28d0c44a4a009efbc (diff)
downloadgnunet-b95bd7b268372f5ba7fab90194d1c5b16f481a63.tar.gz
gnunet-b95bd7b268372f5ba7fab90194d1c5b16f481a63.zip
doc: installation: some @code->@example changes
Diffstat (limited to 'doc/chapters')
-rw-r--r--doc/chapters/installation.texi238
1 files changed, 123 insertions, 115 deletions
diff --git a/doc/chapters/installation.texi b/doc/chapters/installation.texi
index 2fc790e3e..1fbe20892 100644
--- a/doc/chapters/installation.texi
+++ b/doc/chapters/installation.texi
@@ -187,10 +187,12 @@ dependencies (ideally in this order):
187@item libnettle and libunbound (possibly from distribution), GnuTLS 187@item libnettle and libunbound (possibly from distribution), GnuTLS
188@item libgnurl (read the README) 188@item libgnurl (read the README)
189@item GNU libmicrohttpd 189@item GNU libmicrohttpd
190@item GNU libextractor (make sure to first install the various mandatory and optional 190@item GNU libextractor
191dependencies including development headers from your distribution)
192@end itemize 191@end itemize
193 192
193Make sure to first install the various mandatory and optional
194dependencies including development headers from your distribution.
195
194Other dependencies that you should strongly consider to install is a 196Other dependencies that you should strongly consider to install is a
195database (MySQL, sqlite or Postgres). The following instructions will assume 197database (MySQL, sqlite or Postgres). The following instructions will assume
196that you installed at least sqlite. For most distributions you should be able 198that you installed at least sqlite. For most distributions you should be able
@@ -246,9 +248,9 @@ If you want to be able to enable DEBUG-level log messages, add
246DEBUG-level log messages are in English-only and should only be useful for 248DEBUG-level log messages are in English-only and should only be useful for
247developers (or for filing really detailed bug reports). 249developers (or for filing really detailed bug reports).
248 250
249Finally, you probably want to compile @code{gnunet-gtk}, which includes gnunet-setup 251Finally, you probably want to compile @code{gnunet-gtk}, which
250(graphical tool for configuration) and @code{gnunet-fs-gtk} (graphical tool for 252includes gnunet-setup (graphical tool for configuration)
251file-sharing):@ 253and @code{gnunet-fs-gtk} (graphical tool for file-sharing):
252 254
253@example 255@example
254$ tar xvf gnunet-gtk-0.10.?.tar.gz 256$ tar xvf gnunet-gtk-0.10.?.tar.gz
@@ -262,52 +264,46 @@ $ sudo ldconfig # just to be safe
262 264
263Next, edit the file @file{/etc/gnunet.conf} to contain the following: 265Next, edit the file @file{/etc/gnunet.conf} to contain the following:
264 266
265@code{@ 267@example
266 [arm]@ 268[arm]
267 SYSTEM_ONLY = YES@ 269SYSTEM_ONLY = YES
268 USER_ONLY = NO@ 270USER_ONLY = NO
269}@ 271@end example
270You may need to update your ld.so cache to include files installed in
271@file{/usr/local/lib}:@
272 272
273@code{@ 273You may need to update your ld.so cache to include files installed in
274 # ldconfig@ 274@file{/usr/local/lib}: @code{ # ldconfig }.
275}@
276 275
277Then, switch from user root to user gnunet to start the peer:@ 276Then, switch from user root to user gnunet to start the peer:
278 277
279@code{@ 278@example
280 # su -s /bin/sh - gnunet@ 279# su -s /bin/sh - gnunet
281 $ gnunet-arm -c /etc/gnunet.conf -s@ 280$ gnunet-arm -c /etc/gnunet.conf -s
282}@ 281@end example
283 282
284You may also want to add the last line in the gnunet users @file{crontab} 283You may also want to add the last line in the gnunet users @file{crontab}
285prefixed with @code{@@reboot} so that it is executed whenever the system is 284prefixed with @code{@@reboot} so that it is executed whenever the system is
286booted:@ 285booted:
287 286
288@code{@ 287@example
289 @@reboot /usr/local/bin/gnunet-arm -c /etc/gnunet.conf -s@ 288@@reboot /usr/local/bin/gnunet-arm -c /etc/gnunet.conf -s@
290}@ 289@end example
291 290
292This will only start the system-wide GNUnet services. Type exit to get back 291This will only start the system-wide GNUnet services. Type exit to get back
293your root shell. Now, you need to configure the per-user part. For each 292your root shell. Now, you need to configure the per-user part. For each
294$USER on the system, run:@ 293$USER on the system, run: @code{ # adduser $USER gnunet }.
295 294
296@code{@ 295to allow them to access the system-wide GNUnet services. Then, each
297 # adduser $USER gnunet@ 296user should create a configuration file @file{~/.config/gnunet.conf}
298}@ 297with the lines:
299
300to allow them to access the system-wide GNUnet services. Then, each user should
301create a configuration file @file{~/.config/gnunet.conf} with the lines:@
302 298
303@code{@ 299@example
304 [arm]@ 300[arm]
305 SYSTEM_ONLY = NO@ 301SYSTEM_ONLY = NO
306 USER_ONLY = YES@ 302USER_ONLY = YES
307 DEFAULTSERVICES = gns@ 303DEFAULTSERVICES = gns
308}@ 304@end example
309 305
310and start the per-user services using@ 306and start the per-user services using
311 307
312@code{@ 308@code{@
313 $ gnunet-arm -c ~/.config/gnunet.conf -s@ 309 $ gnunet-arm -c ~/.config/gnunet.conf -s@
@@ -342,6 +338,7 @@ hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
342 338
343The exact details may differ a bit, which is fine. Add the text 339The exact details may differ a bit, which is fine. Add the text
344@emph{"gns [NOTFOUND=return]"} after @emph{"files"}: 340@emph{"gns [NOTFOUND=return]"} after @emph{"files"}:
341
345@example 342@example
346hosts: files gns [NOTFOUND=return] mdns4_minimal [NOTFOUND=return] dns mdns4 343hosts: files gns [NOTFOUND=return] mdns4_minimal [NOTFOUND=return] dns mdns4
347@end example 344@end example
@@ -472,9 +469,10 @@ $ sudo make install ; cd ..
472Install libextractor dependencies: 469Install libextractor dependencies:
473 470
474@example 471@example
475$ sudo apt-get install zlib1g-dev libgsf-1-dev libmpeg2-4-dev libpoppler-dev \ 472$ sudo apt-get install zlib1g-dev libgsf-1-dev libmpeg2-4-dev \
476 libvorbis-dev libexiv2-dev libjpeg-dev libtiff-dev libgif-dev libvorbis-dev \ 473 libpoppler-dev libvorbis-dev libexiv2-dev libjpeg-dev \
477 libflac-dev libsmf-dev g++@ 474 libtiff-dev libgif-dev libvorbis-dev libflac-dev libsmf-dev \
475 g++
478@end example 476@end example
479 477
480Build libextractor: 478Build libextractor:
@@ -492,7 +490,7 @@ $ sudo make install ; cd ..
492 490
493@example 491@example
494$ sudo apt-get install libidn11-dev libunistring-dev libglpk-dev \ 492$ sudo apt-get install libidn11-dev libunistring-dev libglpk-dev \
495 libpulse-dev libbluetooth-dev libsqlite-dev@ 493 libpulse-dev libbluetooth-dev libsqlite-dev
496@end example 494@end example
497 495
498Install libopus: 496Install libopus:
@@ -940,34 +938,40 @@ directory. We begin by downloading all dependencies, then extracting the
940sources, and finally compiling and installing the libraries:@ 938sources, and finally compiling and installing the libraries:@
941 939
942@example 940@example
943 $ wget https://libav.org/releases/libav-9.10.tar.xz@ 941$ wget https://libav.org/releases/libav-9.10.tar.xz
944 $ wget http://ftp.gnu.org/gnu/libextractor/libextractor-1.3.tar.gz@ 942$ wget http://ftp.gnu.org/gnu/libextractor/libextractor-1.3.tar.gz
945 $ wget ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.12.tar.bz2@ 943$ wget ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.12.tar.bz2
946 $ wget ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.0.tar.bz2@ 944$ wget ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.0.tar.bz2
947 $ wget ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2/gnutls-3.2.7.tar.xz@ 945$ wget ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2/gnutls-3.2.7.tar.xz
948 $ wget http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.33.tar.gz@ 946$ wget http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.33.tar.gz
949 $ wget https://gnunet.org/sites/default/files/gnurl-7.34.0.tar.bz2@ 947$ wget https://gnunet.org/sites/default/files/gnurl-7.34.0.tar.bz2
950 $ tar xvf libextractor-1.3.tar.gz@ 948$ tar xvf libextractor-1.3.tar.gz
951 $ tar xvf libgpg-error-1.12.tar.bz2@ 949$ tar xvf libgpg-error-1.12.tar.bz2
952 $ tar xvf libgcrypt-1.6.0.tar.bz2@ 950$ tar xvf libgcrypt-1.6.0.tar.bz2
953 $ tar xvf gnutls-3.2.7.tar.xz@ 951$ tar xvf gnutls-3.2.7.tar.xz
954 $ tar xvf libmicrohttpd-0.9.33.tar.gz@ 952$ tar xvf libmicrohttpd-0.9.33.tar.gz
955 $ tar xvf gnurl-7.34.0.tar.bz2@ 953$ tar xvf gnurl-7.34.0.tar.bz2
956 $ cd libav-0.9 ; ./configure --enable-shared; make; sudo make install ; cd ..@ 954$ cd libav-0.9 ; ./configure --enable-shared;
957 $ cd libextractor-1.3 ; ./configure; make ; sudo make install; cd ..@ 955$ make; sudo make install; cd ..
958 $ cd libgpg-error-1.12; ./configure ; make ; sudo make install ; cd ..@ 956$ cd libextractor-1.3 ; ./configure;
959 $ cd libgcrypt-1.6.0; ./configure --with-gpg-error-prefix=/usr/local; make ; sudo make install ; cd ..@ 957$ make ; sudo make install; cd ..
960 $ cd gnutls-3.2.7 ; ./configure ; make ; sudo make install ; cd ..@ 958$ cd libgpg-error-1.12; ./configure;
961 $ cd libmicrohttpd-0.9.33; ./configure ; make ; sudo make install ; cd ..@ 959$ make ; sudo make install; cd ..
962 $ cd gnurl-7.34.0@ 960$ cd libgcrypt-1.6.0; ./configure --with-gpg-error-prefix=/usr/local;
963 $ ./configure --enable-ipv6 --with-gnutls=/usr/local --without-libssh2 \ 961$ make ; sudo make install ; cd ..
964 --without-libmetalink --without-winidn --without-librtmp --without-nghttp2 \ 962$ cd gnutls-3.2.7 ; ./configure;
965 --without-nss --without-cyassl --without-polarssl --without-ssl \ 963$ make ; sudo make install ; cd ..
966 --without-winssl --without-darwinssl --disable-sspi --disable-ntlm-wb \ 964$ cd libmicrohttpd-0.9.33; ./configure;
967 --disable-ldap --disable-rtsp --disable-dict --disable-telnet --disable-tftp \ 965$ make ; sudo make install ; cd ..
968 --disable-pop3 --disable-imap --disable-smtp --disable-gopher --disable-file \ 966$ cd gnurl-7.34.0
969 --disable-ftp@ 967$ ./configure --enable-ipv6 --with-gnutls=/usr/local --without-libssh2 \
970 $ make ; sudo make install; cd ..@ 968 --without-libmetalink --without-winidn --without-librtmp --without-nghttp2 \
969 --without-nss --without-cyassl --without-polarssl --without-ssl \
970 --without-winssl --without-darwinssl --disable-sspi --disable-ntlm-wb \
971 --disable-ldap --disable-rtsp --disable-dict --disable-telnet --disable-tftp \
972 --disable-pop3 --disable-imap --disable-smtp --disable-gopher --disable-file \
973 --disable-ftp
974$ make ; sudo make install; cd ..
971@end example 975@end example
972 976
973@node Installing GNUnet from source 977@node Installing GNUnet from source
@@ -993,68 +997,72 @@ performance and Postgres better resillience.
993@section Installing GNUnet from Git on Ubuntu 14.4 997@section Installing GNUnet from Git on Ubuntu 14.4
994 998
995@strong{Install the required build tools:} 999@strong{Install the required build tools:}
996@code{@ 1000@code{ $ sudo apt-get install git automake autopoint autoconf }
997 $ sudo apt-get install git automake autopoint autoconf@
998}
999 1001
1000@strong{Install the required dependencies} 1002@strong{Install the required dependencies}
1001@example 1003@example
1002$ sudo apt-get install libltdl-dev libgpg-error-dev libidn11-dev \ 1004$ sudo apt-get install libltdl-dev libgpg-error-dev libidn11-dev \
1003 libunistring-dev libglpk-dev libbluetooth-dev libextractor-dev \ 1005 libunistring-dev libglpk-dev libbluetooth-dev libextractor-dev \
1004 libmicrohttpd-dev libgnutls28-dev 1006 libmicrohttpd-dev libgnutls28-dev
1005@end example 1007@end example
1006 1008
1007@strong{Choose one or more database backends}@ 1009@strong{Choose one or more database backends}
1008 SQLite3@
1009@code{@
1010 $ sudo apt-get install libsqlite3-dev@
1011}@
1012 MySQL@
1013@code{@
1014 $ sudo apt-get install libmysqlclient-dev@
1015}@
1016 PostgreSQL@
1017@code{@
1018 $ sudo apt-get install libpq-dev postgresql@
1019}
1020 1010
1021@strong{Install the optional dependencies for gnunet-conversation:}@ 1011SQLite3:
1022@code{@ 1012@example
1023 $ sudo apt-get install gstreamer1.0 libpulse-dev libopus-dev@ 1013$ sudo apt-get install libsqlite3-dev
1024} 1014@end example
1015MySQL:
1016@example
1017$ sudo apt-get install libmysqlclient-dev
1018@end example
1019PostgreSQL:
1020@example
1021$ sudo apt-get install libpq-dev postgresql
1022@end example
1023
1024@strong{Install the optional dependencies for gnunet-conversation:}
1025 1025
1026@strong{Install the libgrypt 1.6.1:}@
1027 For Ubuntu 14.04:@
1028@code{$ sudo apt-get install libgcrypt20-dev}@
1029 For Ubuntu older 14.04:@
1030@code{$ wget ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.1.tar.bz2@
1031 $ tar xf libgcrypt-1.6.1.tar.bz2@
1032 $ cd libgcrypt-1.6.1@
1033 $ ./configure@
1034 $ sudo make install@
1035 $ cd ..}@
1036@strong{Install libgnurl}@
1037@example 1026@example
1038 $ wget https://gnunet.org/sites/default/files/gnurl-7.35.0.tar.bz2@ 1027$ sudo apt-get install gstreamer1.0 libpulse-dev libopus-dev
1039 $ tar xf gnurl-7.35.0.tar.bz2@ 1028@end example
1040 $ cd gnurl-7.35.0@ 1029
1041 $ ./configure --enable-ipv6 --with-gnutls --without-libssh2 \ 1030@strong{Install the libgrypt 1.6.1:}
1031For Ubuntu 14.04:
1032@example
1033$ sudo apt-get install libgcrypt20-dev
1034@end example
1035For Ubuntu older 14.04:
1036@example
1037$ wget ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.1.tar.bz2
1038$ tar xf libgcrypt-1.6.1.tar.bz2
1039$ cd libgcrypt-1.6.1
1040$ ./configure
1041$ sudo make install
1042$ cd ..
1043@end example
1044@strong{Install libgnurl}
1045@example
1046$ wget https://gnunet.org/sites/default/files/gnurl-7.35.0.tar.bz2
1047$ tar xf gnurl-7.35.0.tar.bz2
1048$ cd gnurl-7.35.0
1049$ ./configure --enable-ipv6 --with-gnutls --without-libssh2 \
1042 --without-libmetalink --without-winidn --without-librtmp --without-nghttp2 \ 1050 --without-libmetalink --without-winidn --without-librtmp --without-nghttp2 \
1043 --without-nss --without-cyassl --without-polarssl --without-ssl \ 1051 --without-nss --without-cyassl --without-polarssl --without-ssl \
1044 --without-winssl --without-darwinssl --disable-sspi --disable-ntlm-wb \ 1052 --without-winssl --without-darwinssl --disable-sspi --disable-ntlm-wb \
1045 --disable-ldap --disable-rtsp --disable-dict --disable-telnet --disable-tftp \ 1053 --disable-ldap --disable-rtsp --disable-dict --disable-telnet --disable-tftp \
1046 --disable-pop3 --disable-imap --disable-smtp --disable-gopher --disable-file \ 1054 --disable-pop3 --disable-imap --disable-smtp --disable-gopher --disable-file \
1047 --disable-ftp 1055 --disable-ftp
1048 $ sudo make install@ 1056$ sudo make install
1049 $ cd ..@ 1057$ cd ..
1050@end example 1058@end example
1051 1059
1052@strong{Install GNUnet}@ 1060@strong{Install GNUnet}
1053@code{@ 1061@example
1054 $ git clone https://gnunet.org/git/gnunet/@ 1062$ git clone https://gnunet.org/git/gnunet/
1055 $ cd gnunet/@ 1063$ cd gnunet/
1056 $ ./bootstrap@ 1064$ ./bootstrap
1057} 1065@end example
1058 1066
1059If you want to: 1067If you want to:
1060@itemize @bullet 1068@itemize @bullet