aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-11-30 17:04:52 +0000
committerng0 <ng0@n0.is>2019-11-30 17:04:52 +0000
commit0b61ebd61d0cff7ef0f1bc2ed6cc2de2a018822d (patch)
tree28a17c57f33ea0ad98b914f8cec46c834bf4a2e1
parent6aa13d4150a501b7ff1031bfe4149a6e452408f6 (diff)
downloadwww-0b61ebd61d0cff7ef0f1bc2ed6cc2de2a018822d.tar.gz
www-0b61ebd61d0cff7ef0f1bc2ed6cc2de2a018822d.zip
indent install-on-netbsd and fix some minor text issues.
-rw-r--r--template/install-on-netbsd.html.j2254
1 files changed, 138 insertions, 116 deletions
diff --git a/template/install-on-netbsd.html.j2 b/template/install-on-netbsd.html.j2
index 79b1372b..b36eaa22 100644
--- a/template/install-on-netbsd.html.j2
+++ b/template/install-on-netbsd.html.j2
@@ -10,16 +10,21 @@
10 Welcome to the GNUnet tutorial for NetBSD! 10 Welcome to the GNUnet tutorial for NetBSD!
11 </p> 11 </p>
12 <p> 12 <p>
13 It provides 13 This tutorial provides concrete instructions on how to install a
14 concrete instructions on how to install a current 14 current version of GNUnet. The goal is to support newcomers,
15 version of GNUnet. The goal is to support newcomers, either end users or 15 either users or developers, who want to get in touch with
16 developers, who want to get in touch with GNUnet for the first time. 16 GNUnet for the first time.
17 </p> 17 </p>
18 18
19 <h2>{{ _("Requirements") }}</h2> 19 <h2>{{ _("Requirements") }}</h2>
20 20
21 <p> 21 <p>
22 As a bare minimum, we recommend you install <a href="http://pkgsrc.org">pkgsrc</a>. This tutorial assumes you have the CURRENT version checked out. Additionally you might want to install <code>devel/git-base</code> and git clone <a href="http://pkgsrc.org/wip/">pkgsrc-wip</a> into the <code>wip</code> folder in your pkgsrc folder: 22 As a bare minimum, we recommend you
23 install <a href="http://pkgsrc.org">pkgsrc</a>. This tutorial
24 assumes you have the CURRENT version checked out. Additionally you
25 might want to install <code>devel/git-base</code> and git
26 clone <a href="http://pkgsrc.org/wip/">pkgsrc-wip</a> into
27 the <code>wip</code> folder in your pkgsrc folder:
23 </p> 28 </p>
24 <p> 29 <p>
25 <code> 30 <code>
@@ -27,9 +32,13 @@
27 $ git clone git://wip.pkgsrc.org/pkgsrc-wip.git wip 32 $ git clone git://wip.pkgsrc.org/pkgsrc-wip.git wip
28 </code> 33 </code>
29 </p> 34 </p>
35
30 <h2>{{ _("Installation") }}</h2> 36 <h2>{{ _("Installation") }}</h2>
37
31 <p> 38 <p>
32 Note: $ stands for commands run as unprivileged user, # for commands run as root user. 39 Note: <code>$</code> stands for commands run as unprivileged
40 user, <code>#</code> for commands run as root user (this can be done
41 with security/doas, security/sudo, or just as root).
33 </p> 42 </p>
34 <p> 43 <p>
35 GNUnet is not yet in the pkgsrc tree, it&#39;s still in the 44 GNUnet is not yet in the pkgsrc tree, it&#39;s still in the
@@ -37,26 +46,26 @@
37 into <code>/usr/pksrc/wip</code>: 46 into <code>/usr/pksrc/wip</code>:
38 </p> 47 </p>
39 <p> 48 <p>
40 <code> 49 <code>
41 $ cd /usr/pkgsrc/wip/gnunet 50 $ cd /usr/pkgsrc/wip/gnunet
42 </code> 51 </code>
43 </p> 52 </p>
44 <p> 53 <p>
45 Before you start building, you might want to review 54 Before you start building, you might want to review
46 your <code>/etc/mk.conf</code>. I suggest to consider: 55 your <code>/etc/mk.conf</code>. I suggest to consider:
47 </p> 56 </p>
48 <ul> 57 <ul>
49 <li>WRKOBJDIR=/usr/work 58 <li>WRKOBJDIR=/usr/work
50 <li>DISTDIR=/usr/distfiles 59 <li>DISTDIR=/usr/distfiles
51 <li>DEPENDS_TARGET=package 60 <li>DEPENDS_TARGET=package
52 <li>UPDATE_TARGET=bin-install 61 <li>UPDATE_TARGET=bin-install
53 <li>ACCEPTABLE_LICENSES+= gnu-agpl-v3 62 <li>ACCEPTABLE_LICENSES+=gnu-agpl-v3
54 <li>MKREPRO=yes 63 <li>MKREPRO=yes
55 </ul> 64 </ul>
56 <p> 65 <p>
57 As we rely on ImageMagick somewhere down our dependency chain 66 As we rely on ImageMagick somewhere down our dependency chain (it
58 (it is one of libextractor&#39;s dependencies), you need to set 67 is one of libextractor&#39;s dependencies), you need to set the
59 the following (as of 2019-03-06) as well: 68 following (as of 2019-03-06) as well:
60 </p> 69 </p>
61 <ul> 70 <ul>
62 <li>IGNORE_URL+=https://nvd.nist.gov/vuln/detail/CVE-2018-15607 71 <li>IGNORE_URL+=https://nvd.nist.gov/vuln/detail/CVE-2018-15607
@@ -65,38 +74,38 @@
65 You could however just <code>env ALLOW_VULNERABLE_PACKAGES=1</code> 74 You could however just <code>env ALLOW_VULNERABLE_PACKAGES=1</code>
66 </p> 75 </p>
67 <p> 76 <p>
68 The build process can involve manual installation interruptions for 77 The build process can involve manual installation interruptions for
69 dependencies! 78 dependencies!
70 </p> 79 </p>
71 <p> 80 <p>
72 Then start building: 81 Then start building:
82 <p>
83 <code>
84 $ make package
85 </code>
86 </p>
73 <p> 87 <p>
74 <code> 88 Once you are done, type:
75 $ make package
76 </code>
77 </p>
78 <p>
79 Once you are done, type as root:
80 </p> 89 </p>
81 <p> 90 <p>
82 <code> 91 <code>
83 # make install 92 $ make install
84 </code> 93 </code>
85 </p> 94 </p>
86 <p> 95 <p>
87 or alternatively: 96 or alternatively:
97 <p>
98 <p>
99 <code>
100 # pkg_add /usr/pkgsrc/packages/All/gnunet-0.11.8.tgz
101 </code>
102 </p>
88 <p> 103 <p>
89 <p> 104 And you&#39;re done!.<br>
90 <code> 105 GNUnet has a number of services and features.
91 # pkg_add /usr/pkgsrc/packages/All/gnunet-0.11.8.tgz 106 Please check <a href="https://docs.gnunet.org/">our documentation</a>
92 </code> 107 to learn how to use them. If you find anything odd or bugs, please
93 </p> 108 <a href="https://bugs.gnunet.org">let us know</a>.
94 <p>
95 And you&#39;re done!.<br>
96 GNUnet has a number of services and features.
97 Please check <a href="https://docs.gnunet.org/">our documentation</a>
98 to learn how to use them. If you find anything odd or bugs, please
99 <a href="https://bugs.gnunet.org">let us know</a>.
100 </p> 109 </p>
101 <p> 110 <p>
102 Note that the rc.d file which is installed is not yet fully functional 111 Note that the rc.d file which is installed is not yet fully functional
@@ -105,82 +114,82 @@
105 114
106 <h2>{{_("First steps")}}</h2> 115 <h2>{{_("First steps")}}</h2>
107 <p> 116 <p>
108 Congratulations! GNUnet is now installed! Before starting it you 117 Congratulations! GNUnet is now installed! Before starting it you
109 may create a configuration file. By default GNUnet looks in 118 may create a configuration file. By default GNUnet looks in
110 our home directory for the file `~/.config/gnunet.conf`. 119 our home directory for the file `~/.config/gnunet.conf`.
111 Creating the configuation file is optional. For now just create an empty 120 Creating the configuation file is optional. For now just create an empty
112 file which will remind you of the location later if needed: 121 file which will remind you of the location later if needed:
113 </p> 122 </p>
114 <p> 123 <p>
115 <code> 124 <code>
116 $ touch ~/.config/gnunet.conf 125 $ touch ~/.config/gnunet.conf
117 </code> 126 </code>
118 </p> 127 </p>
119 <br /> 128 <br />
120 <p> 129 <p>
121 It&#39;s reccomended that you increase your bandwidth restrictions 130 It&#39;s reccomended that you increase your bandwidth restrictions
122 from the acutely low defaults. The example below sets the WAN 131 from the acutely low defaults. The example below sets the WAN
123 and LAN limits to the value "unlimited". 132 and LAN limits to the value "unlimited".
124 </p> 133 </p>
125 <br /> 134 <br />
126 <code> 135 <code>
127 $ gnunet-config -s ats -o WAN_QUOTA_IN -V unlimited<br /> 136 $ gnunet-config -s ats -o WAN_QUOTA_IN -V unlimited<br />
128 $ gnunet-config -s ats -o WAN_QUOTA_OUT -V unlimited<br /> 137 $ gnunet-config -s ats -o WAN_QUOTA_OUT -V unlimited<br />
129 $ gnunet-config -s ats -o LAN_QUOTA_IN -V unlimited<br /> 138 $ gnunet-config -s ats -o LAN_QUOTA_IN -V unlimited<br />
130 $ gnunet-config -s ats -o LAN_QUOTA_OUT -V unlimited<br /> 139 $ gnunet-config -s ats -o LAN_QUOTA_OUT -V unlimited<br />
131 </code> 140 </code>
132 <br /> 141 <br />
133 <p> 142 <p>
134 GNUnet and its services are managed using the command line tool `gnunet-arm` 143 GNUnet and its services are managed using the command line tool `gnunet-arm`
135 (Automatic Restart Manager). 144 (Automatic Restart Manager).
136 <br/> 145 <br/>
137 To start GNUnet with its default services execute: 146 To start GNUnet with its default services execute:
138 </p> 147 </p>
139 <p> 148 <p>
140 <code> 149 <code>
141 $ gnunet-arm -s 150 $ gnunet-arm -s
142 </code> 151 </code>
143 </p> 152 </p>
144 153
145 <p> 154 <p>
146 To list the running services use: 155 To list the running services use:
147 </p> 156 </p>
148 <p> 157 <p>
149 <code> 158 <code>
150 $ gnunet-arm -I<br> 159 $ gnunet-arm -I<br>
151 Running services:<br> 160 Running services:<br>
152 ats (gnunet-service-ats)<br> 161 ats (gnunet-service-ats)<br>
153 revocation (gnunet-service-revocation)<br> 162 revocation (gnunet-service-revocation)<br>
154 set (gnunet-service-set)<br> 163 set (gnunet-service-set)<br>
155 nat (gnunet-service-nat)<br> 164 nat (gnunet-service-nat)<br>
156 transport (gnunet-service-transport)<br> 165 transport (gnunet-service-transport)<br>
157 peerstore (gnunet-service-peerstore)<br> 166 peerstore (gnunet-service-peerstore)<br>
158 hostlist (gnunet-daemon-hostlist)<br> 167 hostlist (gnunet-daemon-hostlist)<br>
159 identity (gnunet-service-identity)<br> 168 identity (gnunet-service-identity)<br>
160 namecache (gnunet-service-namecache)<br> 169 namecache (gnunet-service-namecache)<br>
161 peerinfo (gnunet-service-peerinfo)<br> 170 peerinfo (gnunet-service-peerinfo)<br>
162 datastore (gnunet-service-datastore)<br> 171 datastore (gnunet-service-datastore)<br>
163 zonemaster (gnunet-service-zonemaster)<br> 172 zonemaster (gnunet-service-zonemaster)<br>
164 zonemaster-monitor (gnunet-service-zonemaster-monitor)<br> 173 zonemaster-monitor (gnunet-service-zonemaster-monitor)<br>
165 nse (gnunet-service-nse)<br> 174 nse (gnunet-service-nse)<br>
166 cadet (gnunet-service-cadet)<br> 175 cadet (gnunet-service-cadet)<br>
167 dht (gnunet-service-dht)<br> 176 dht (gnunet-service-dht)<br>
168 core (gnunet-service-core)<br> 177 core (gnunet-service-core)<br>
169 gns (gnunet-service-gns)<br> 178 gns (gnunet-service-gns)<br>
170 statistics (gnunet-service-statistics)<br> 179 statistics (gnunet-service-statistics)<br>
171 topology (gnunet-daemon-topology)<br> 180 topology (gnunet-daemon-topology)<br>
172 fs (gnunet-service-fs)<br> 181 fs (gnunet-service-fs)<br>
173 namestore (gnunet-service-namestore)<br> 182 namestore (gnunet-service-namestore)<br>
174 vpn (gnunet-service-vpn) 183 vpn (gnunet-service-vpn)
175 </code> 184 </code>
176 </p> 185 </p>
177 <p> 186 <p>
178 To stop all services, use the `-e` option. 187 To stop all services, use the `-e` option.
179 </p> 188 </p>
180 <p> 189 <p>
181 <code> 190 <code>
182 $ gnunet-arm -e 191 $ gnunet-arm -e
183 </code> 192 </code>
184 </p> 193 </p>
185 194
186 <h2>{{ _("Alternative: Installation from source") }}</h2> 195 <h2>{{ _("Alternative: Installation from source") }}</h2>
@@ -236,11 +245,21 @@
236 <h3>{{ _("Compile and Install") }}</h3> 245 <h3>{{ _("Compile and Install") }}</h3>
237 <p> 246 <p>
238 You have a choice between two options: 247 You have a choice between two options:
239 build the *production version* or *development version*. If 248 </p>
240 you want to start writing GNUnet applications or join the GNUnet development 249 <ul>
241 choose the development version (it will print more debug output and contains 250 <li>build the production version
242 debug symbols that can be displayed with a debugger). Otherwise choose the 251 </ul>
243 production version. 252 <p>
253 or
254 </p>
255 <ul>
256 <li>build the development version.
257 </ul>
258 <p>
259 If you want to start writing GNUnet applications or join the
260 GNUnet development choose the development version (it will print
261 more debug output and contains debug symbols that can be displayed
262 with a debugger). Otherwise choose the production version.
244 </p> 263 </p>
245 264
246 <h5>{{ _("Option 1: GNUnet for production / usage") }}</h5> 265 <h5>{{ _("Option 1: GNUnet for production / usage") }}</h5>
@@ -250,38 +269,41 @@
250 in the instructions given below. 269 in the instructions given below.
251 </p> 270 </p>
252 <p> 271 <p>
253 <code> 272 <code>
254 $ cd ~/src/gnunet/gnunet<br> 273 $ cd ~/src/gnunet/gnunet<br>
255 $ sh ./bootstrap<br> 274 $ sh ./bootstrap<br>
256 $ LDFLAGS=-L/usr/pkg/lib ./configure --prefix=$HOME/gnunet 275 $ LDFLAGS=-L/usr/pkg/lib ./configure --prefix=$HOME/gnunet
257 </code> 276 </code>
258 </p> 277 </p>
259 <p> 278 <p>
260 After configure passes, you need to add a 'gnunetdns' group to your system. 279 After configure passes, you need to add a 'gnunetdns' group to your system.
261 Further, you need to add a user 'gnunet' which is part of the group 'gnunet'. 280 Further, you need to add a user 'gnunet' which is part of the group 'gnunet'.
262 Then: 281 Then:
263 </p> 282 </p>
264 <p> 283 <p>
265 <code> 284 <code>
266 $ make<br> 285 <!-- in case the parallel builds work: -->
267 # make install 286 <!-- $ make -j$(sysctl -n hw.ncpu || echo -n 1)<br> -->
268 </code> 287 <!-- # make -j$(sysctl -n hw.ncpu || echo -n 1) install -->
288 $ make<br>
289 # make install
290 </code>
269 </p> 291 </p>
270 292
271 <h5>{{ _("Option 2: GNUnet experimental") }}</h5> 293 <h5>{{ _("Option 2: GNUnet experimental") }}</h5>
272 294
273 <p> 295 <p>
274 Perform the same steps as for Option 1, but add the configure switch 296 Perform the same steps as for Option 1, but add the configure switch
275 <code>--enable-experimental</code>. For even more verbosity you could 297 <code>--enable-experimental</code>. For even more verbosity you could
276 configure gnunet like this: 298 configure gnunet like this:
277 </p> 299 </p>
278 <p> 300 <p>
279 <code> 301 <code>
280 $ LDFLAGS=-L/usr/pkg/lib CFLAGS="-g -O0" ./configure --prefix=$HOME/gnunet --enable-logging=verbose 302 $ LDFLAGS="-L/usr/pkg/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib" CFLAGS="-g -O0" ./configure --prefix=$HOME/gnunet --enable-logging=verbose
281 </code> 303 </code>
282 </p> 304 </p>
283 <p> 305 <p>
284 This allows you to get more verbose logs when you export GNUNET_FORCE_LOG=";;;;DEBUG" before you run tests. 306 This allows you to get more verbose logs when you export GNUNET_FORCE_LOG=";;;;DEBUG" before you run tests.
285 </p> 307 </p>
286</article> 308</article>
287{% endblock body_content %} 309{% endblock body_content %}