diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-12-19 18:43:48 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-12-19 18:43:48 +0100 |
commit | 6b17d3fe559a659080ce59117fb704aae642e797 (patch) | |
tree | c71d49e24a47281362d72557bb288110a102e5fd | |
parent | 3636ea628d051cf2ba7a9038c50528c561d0aeaa (diff) | |
parent | 5ea3ecfe57bfab479b4e72f475577cc9dce0fac7 (diff) | |
download | gnunet-6b17d3fe559a659080ce59117fb704aae642e797.tar.gz gnunet-6b17d3fe559a659080ce59117fb704aae642e797.zip |
Merge branch 'master' of git+ssh://gnunet.org/gnunet
-rw-r--r-- | doc/handbook/chapters/configuration.texi | 74 | ||||
-rw-r--r-- | doc/handbook/chapters/installation.texi | 5 | ||||
-rw-r--r-- | doc/handbook/gnunet.texi | 10 |
3 files changed, 84 insertions, 5 deletions
diff --git a/doc/handbook/chapters/configuration.texi b/doc/handbook/chapters/configuration.texi index 286c72e7a..27efc82e2 100644 --- a/doc/handbook/chapters/configuration.texi +++ b/doc/handbook/chapters/configuration.texi | |||
@@ -1,5 +1,77 @@ | |||
1 | @node Configuration Handbook | 1 | @node Configuration Handbook |
2 | @chapter Configuration Handbook | 2 | @chapter Configuration Handbook |
3 | 3 | ||
4 | This chapter has yet to be written. It is intended to be about in-depth | 4 | This chapter has yet to be fully written. It is intended to be about in-depth |
5 | configuration of GNUnet. | 5 | configuration of GNUnet. |
6 | |||
7 | |||
8 | @menu | ||
9 | * Config file format:: | ||
10 | @end menu | ||
11 | |||
12 | |||
13 | @node Config file format | ||
14 | @section Config file format | ||
15 | |||
16 | In GNUnet realm, all components obey the same pattern to get configuration | ||
17 | values. According to this pattern, once the component has been installed, the | ||
18 | installation deploys default values in @file{$prefix/share/gnunet/config.d/}, | ||
19 | in @file{.conf} files. In order to override these defaults, the user can | ||
20 | write a custom @file{.conf} file and either pass it to the component at | ||
21 | execution time, or name it @file{gnunet.conf} and place it under | ||
22 | @file{$HOME/.config/}. | ||
23 | |||
24 | A config file is a text file containing sections, and each section | ||
25 | contains its values. The right format follows: | ||
26 | |||
27 | @example | ||
28 | [section1] | ||
29 | value1 = string | ||
30 | value2 = 23 | ||
31 | |||
32 | [section2] | ||
33 | value21 = string | ||
34 | value22 = /path22 | ||
35 | @end example | ||
36 | |||
37 | Throughout any configuration file, it is possible to use @code{$}-prefixed | ||
38 | variables, like @code{$VAR}, especially when they represent filenames in in | ||
39 | the filesystem. It is also possible to provide defaults values for those | ||
40 | variables that are unset, by using the following syntax: | ||
41 | |||
42 | @example | ||
43 | $@{VAR:-default@} | ||
44 | @end example | ||
45 | |||
46 | @noindent | ||
47 | However, there are two ways a user can set @code{$}-prefixable variables: | ||
48 | (a) by defining them under a @code{[paths]} section | ||
49 | |||
50 | @example | ||
51 | [paths] | ||
52 | GNUNET_DEPLOYMENT_SHARED = $@{HOME@}/shared-data | ||
53 | .. | ||
54 | [section-x] | ||
55 | path-x = $@{GNUNET_DEPLOYMENT_SHARED@}/x | ||
56 | @end example | ||
57 | |||
58 | @noindent | ||
59 | or (b) by setting them in the environment | ||
60 | |||
61 | @example | ||
62 | $ export VAR=/x | ||
63 | @end example | ||
64 | |||
65 | @noindent | ||
66 | The configuration loader will give precedence to variables set under | ||
67 | @code{[path]}, though. | ||
68 | |||
69 | The utility @samp{gnunet-config}, which gets installed along with GNUnet, | ||
70 | serves to get and set configuration values without directly editing the | ||
71 | @file{.conf} file. The option @samp{-f} is particularly useful to resolve | ||
72 | filenames, when they use several levels of @code{$}-expanded variables. | ||
73 | See @samp{gnunet-config --help}. | ||
74 | |||
75 | Note that, in this stage of development, the file | ||
76 | @file{$HOME/.config/gnunet.conf} can contain sections for @strong{all} the | ||
77 | components. | ||
diff --git a/doc/handbook/chapters/installation.texi b/doc/handbook/chapters/installation.texi index d7b2fb590..40a23e738 100644 --- a/doc/handbook/chapters/installation.texi +++ b/doc/handbook/chapters/installation.texi | |||
@@ -327,8 +327,8 @@ Now GNS should work in browsers that are configured to use a SOCKS proxy on | |||
327 | 327 | ||
328 | @node Minimal configuration | 328 | @node Minimal configuration |
329 | @section Minimal configuration | 329 | @section Minimal configuration |
330 | GNUnet needs a configuration file to start. For the @emph{single-user setup} | 330 | GNUnet needs a configuration file to start (@pxref{Config file format}). |
331 | an empty file is sufficient: | 331 | For the @emph{single-user setup} an empty file is sufficient: |
332 | 332 | ||
333 | @example | 333 | @example |
334 | $ touch ~/.config/gnunet.conf | 334 | $ touch ~/.config/gnunet.conf |
@@ -2493,4 +2493,3 @@ Furthermore, 'make install' will silently fail to set the DNS binaries to | |||
2493 | be owned by group "gnunetdns" unless that group already exists (!). | 2493 | be owned by group "gnunetdns" unless that group already exists (!). |
2494 | An alternative name for the "gnunetdns" group can be specified using the | 2494 | An alternative name for the "gnunetdns" group can be specified using the |
2495 | @code{--with-gnunetdns=GRPNAME} configure option. | 2495 | @code{--with-gnunetdns=GRPNAME} configure option. |
2496 | |||
diff --git a/doc/handbook/gnunet.texi b/doc/handbook/gnunet.texi index 5ff33d94c..ca74c347d 100644 --- a/doc/handbook/gnunet.texi +++ b/doc/handbook/gnunet.texi | |||
@@ -78,7 +78,7 @@ This document is the Reference Manual for GNUnet version @value{VERSION}. | |||
78 | @c * Vocabulary:: Vocabulary | 78 | @c * Vocabulary:: Vocabulary |
79 | * Installing GNUnet:: Installing GNUnet | 79 | * Installing GNUnet:: Installing GNUnet |
80 | * Using GNUnet:: Using GNUnet | 80 | * Using GNUnet:: Using GNUnet |
81 | @c * Configuration Handbook:: Configuring GNUnet | 81 | * Configuration Handbook:: Configuring GNUnet |
82 | * GNUnet Contributors Handbook:: Contributing to GNUnet | 82 | * GNUnet Contributors Handbook:: Contributing to GNUnet |
83 | * GNUnet Developer Handbook:: Developing GNUnet | 83 | * GNUnet Developer Handbook:: Developing GNUnet |
84 | * GNU Free Documentation License:: The license of this manual | 84 | * GNU Free Documentation License:: The license of this manual |
@@ -137,6 +137,10 @@ Using GNUnet | |||
137 | * reclaimID Identity Provider:: | 137 | * reclaimID Identity Provider:: |
138 | * Using the Virtual Public Network:: | 138 | * Using the Virtual Public Network:: |
139 | 139 | ||
140 | Configuration Handbook | ||
141 | |||
142 | * Config file format:: | ||
143 | |||
140 | GNUnet Contributors Handbook | 144 | GNUnet Contributors Handbook |
141 | 145 | ||
142 | * Contributing to GNUnet:: | 146 | * Contributing to GNUnet:: |
@@ -209,6 +213,10 @@ GNUnet Developer Handbook | |||
209 | @include chapters/user.texi | 213 | @include chapters/user.texi |
210 | @c ********************************************************************* | 214 | @c ********************************************************************* |
211 | 215 | ||
216 | @c ********************************************************************* | ||
217 | @include chapters/configuration.texi | ||
218 | @c ********************************************************************* | ||
219 | |||
212 | @include chapters/contributing.texi | 220 | @include chapters/contributing.texi |
213 | 221 | ||
214 | @c ********************************************************************* | 222 | @c ********************************************************************* |