diff options
author | ng0 <ng0@infotropique.org> | 2017-08-21 08:05:53 +0000 |
---|---|---|
committer | ng0 <ng0@infotropique.org> | 2017-08-21 08:05:53 +0000 |
commit | 76e9cc144c86a49aa458536a4b5e8c97c4c968d3 (patch) | |
tree | 765697035d4e247f1043192751c3241a88ca622d /doc | |
parent | f47c0fe740332a8149c73360351f28680a5c35b9 (diff) | |
download | gnunet-76e9cc144c86a49aa458536a4b5e8c97c4c968d3.tar.gz gnunet-76e9cc144c86a49aa458536a4b5e8c97c4c968d3.zip |
doc: install: mixed fixes.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/chapters/installation.texi | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/doc/chapters/installation.texi b/doc/chapters/installation.texi index 06152b5f7..d622f7b13 100644 --- a/doc/chapters/installation.texi +++ b/doc/chapters/installation.texi | |||
@@ -313,10 +313,13 @@ development headers for the various libraries are also installed. There maybe | |||
313 | files for other distributions, or you might be able to find equivalent packages | 313 | files for other distributions, or you might be able to find equivalent packages |
314 | for your distribution. | 314 | for your distribution. |
315 | 315 | ||
316 | In the code instructions below, @emph{#} indicates commands run as privileged root | ||
317 | user and @emph{$} shows commands run as unprivileged ("normal") system user. | ||
318 | |||
316 | While it is possible to build and install GNUnet without having root access, | 319 | While it is possible to build and install GNUnet without having root access, |
317 | we will assume that you have full control over your system in these | 320 | we will assume that you have full control over your system in these |
318 | instructions. First, you should create a system user "gnunet" and an additional | 321 | instructions. First, you should create a system user @emph{gnunet} and an additional |
319 | group "gnunetdns". On Debian and Ubuntu GNU/Linux, type:@ | 322 | group @emph{gnunetdns}. On Debian and Ubuntu GNU/Linux, type:@ |
320 | @code{@ | 323 | @code{@ |
321 | # adduser --system --home /var/lib/gnunet --group --disabled-password gnunet@ | 324 | # adduser --system --home /var/lib/gnunet --group --disabled-password gnunet@ |
322 | # addgroup --system gnunetdns@ | 325 | # addgroup --system gnunetdns@ |
@@ -332,16 +335,16 @@ group "gnunetdns". On Debian and Ubuntu GNU/Linux, type:@ | |||
332 | $ cd gnunet-0.10.?@ | 335 | $ cd gnunet-0.10.?@ |
333 | $ ./configure --with-sudo=sudo --with-nssdir=/lib@ | 336 | $ ./configure --with-sudo=sudo --with-nssdir=/lib@ |
334 | $ make@ | 337 | $ make@ |
335 | $ sudo make install@ | 338 | $ sudo make install@ |
336 | }@ | 339 | }@ |
337 | 340 | ||
338 | If you want to be able to enable DEBUG-level log messages, add | 341 | If you want to be able to enable DEBUG-level log messages, add |
339 | @code{--enable-logging=verbose} to the end of the ./configure command. | 342 | @code{--enable-logging=verbose} to the end of the @code{./configure} command. |
340 | DEBUG-level log messages are in English-only and should only be useful for | 343 | DEBUG-level log messages are in English-only and should only be useful for |
341 | developers (or for filing really detailed bug reports). | 344 | developers (or for filing really detailed bug reports). |
342 | 345 | ||
343 | Finally, you probably want to compile gnunet-gtk, which includes gnunet-setup | 346 | Finally, you probably want to compile @code{gnunet-gtk}, which includes gnunet-setup |
344 | (graphical tool for configuration) and gnunet-fs-gtk (graphical tool for | 347 | (graphical tool for configuration) and @code{gnunet-fs-gtk} (graphical tool for |
345 | file-sharing):@ | 348 | file-sharing):@ |
346 | 349 | ||
347 | @code{@ | 350 | @code{@ |
@@ -353,7 +356,7 @@ file-sharing):@ | |||
353 | $ cd ..@ | 356 | $ cd ..@ |
354 | $ sudo ldconfig # just to be safe@ | 357 | $ sudo ldconfig # just to be safe@ |
355 | }@ | 358 | }@ |
356 | Now, edit @code{/etc/gnunet.conf} to contain the following:@ | 359 | Next, edit the file @file{/etc/gnunet.conf} to contain the following:@ |
357 | @code{@ | 360 | @code{@ |
358 | [arm]@ | 361 | [arm]@ |
359 | SYSTEM_ONLY = YES@ | 362 | SYSTEM_ONLY = YES@ |
@@ -390,7 +393,7 @@ $USER on the system, run:@ | |||
390 | }@ | 393 | }@ |
391 | 394 | ||
392 | to allow them to access the system-wide GNUnet services. Then, each user should | 395 | to allow them to access the system-wide GNUnet services. Then, each user should |
393 | create a configuration file "~/.config/gnunet.conf" with the lines:@ | 396 | create a configuration file @file{~/.config/gnunet.conf} with the lines:@ |
394 | 397 | ||
395 | @code{@ | 398 | @code{@ |
396 | [arm]@ | 399 | [arm]@ |
@@ -405,7 +408,7 @@ and start the per-user services using@ | |||
405 | $ gnunet-arm -c ~/.config/gnunet.conf -s@ | 408 | $ gnunet-arm -c ~/.config/gnunet.conf -s@ |
406 | }@ | 409 | }@ |
407 | 410 | ||
408 | Again, adding a @file{crontab} entry to autostart the peer is advised:@ | 411 | Again, adding a @code{crontab} entry to autostart the peer is advised:@ |
409 | @code{@ | 412 | @code{@ |
410 | @@reboot /usr/local/bin/gnunet-arm -c $HOME/.config/gnunet.conf -s@ | 413 | @@reboot /usr/local/bin/gnunet-arm -c $HOME/.config/gnunet.conf -s@ |
411 | }@ | 414 | }@ |
@@ -433,7 +436,7 @@ hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 | |||
433 | 436 | ||
434 | 437 | ||
435 | The exact details may differ a bit, which is fine. Add the text | 438 | The exact details may differ a bit, which is fine. Add the text |
436 | "gns [NOTFOUND=return]" after "files": | 439 | @emph{"gns [NOTFOUND=return]"} after @emph{"files"}: |
437 | @example | 440 | @example |
438 | hosts: files gns [NOTFOUND=return] mdns4_minimal [NOTFOUND=return] dns mdns4 | 441 | hosts: files gns [NOTFOUND=return] mdns4_minimal [NOTFOUND=return] dns mdns4 |
439 | @end example | 442 | @end example |