|
@@ -4,7 +4,7 @@
|
4
|
4
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
5
|
5
|
<head>
|
6
|
6
|
<title></title>
|
7
|
|
-<!-- 2015-01-11 Sun 11:19 -->
|
|
7
|
+<!-- 2015-01-18 Sun 20:16 -->
|
8
|
8
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
9
|
9
|
<meta name="generator" content="Org-mode" />
|
10
|
10
|
<meta name="author" content="Bob Mottram" />
|
|
@@ -168,37 +168,32 @@ for the JavaScript code in this tag.
|
168
|
168
|
<col class="left" />
|
169
|
169
|
|
170
|
170
|
<col class="left" />
|
|
171
|
+
|
|
172
|
+<col class="left" />
|
|
173
|
+
|
|
174
|
+<col class="left" />
|
171
|
175
|
</colgroup>
|
172
|
176
|
<tbody>
|
173
|
177
|
<tr>
|
174
|
178
|
<td class="left"><a href="index.html">Home</a></td>
|
175
|
|
-<td class="left"><a href="#unnumbered-1">Download the code</a></td>
|
176
|
|
-<td class="left"><a href="#unnumbered-2">On a Beaglebone Black</a></td>
|
177
|
|
-<td class="left"><a href="#unnumbered-3">On a laptop/PC/netbook</a></td>
|
178
|
|
-<td class="left"><a href="#unnumbered-4">Internet Router</a></td>
|
|
179
|
+<td class="left"><a href="#unnumbered-1">Preparation for the Beaglebone Black</a></td>
|
|
180
|
+<td class="left"><a href="#unnumbered-2">Checklist</a></td>
|
|
181
|
+<td class="left"><a href="#unnumbered-3">GPG Keys</a></td>
|
|
182
|
+<td class="left"><a href="#unnumbered-4">Interactive Setup</a></td>
|
|
183
|
+<td class="left"><a href="#unnumbered-5">Non-Interactive Setup</a></td>
|
|
184
|
+<td class="left"><a href="#unnumbered-6">Post-Setup</a></td>
|
179
|
185
|
</tr>
|
180
|
186
|
</tbody>
|
181
|
187
|
</table>
|
182
|
188
|
|
|
189
|
+
|
183
|
190
|
<div id="outline-container-unnumbered-1" class="outline-2">
|
184
|
|
-<h2 id="unnumbered-1">Download the code</h2>
|
|
191
|
+<h2 id="unnumbered-1">Preparation for the Beaglebone Black</h2>
|
185
|
192
|
<div class="outline-text-2" id="text-unnumbered-1">
|
186
|
193
|
<p>
|
187
|
|
-Firstly you'll need to download the code as follows:
|
|
194
|
+This section is specific to the Beaglebone Black hardware. If you're not using that hardware then just skip to the next section.
|
188
|
195
|
</p>
|
189
|
196
|
|
190
|
|
-<div class="org-src-container">
|
191
|
|
-
|
192
|
|
-<pre class="src src-bash">sudo apt-get install git
|
193
|
|
-git clone https://github.com/bashrc/freedombone
|
194
|
|
-<span class="org-builtin">cd</span> freedombone
|
195
|
|
-</pre>
|
196
|
|
-</div>
|
197
|
|
-</div>
|
198
|
|
-</div>
|
199
|
|
-<div id="outline-container-unnumbered-2" class="outline-2">
|
200
|
|
-<h2 id="unnumbered-2">On a Beaglebone Black</h2>
|
201
|
|
-<div class="outline-text-2" id="text-unnumbered-2">
|
202
|
197
|
<p>
|
203
|
198
|
To get started you will need:
|
204
|
199
|
</p>
|
|
@@ -216,7 +211,7 @@ To get started you will need:
|
216
|
211
|
</li>
|
217
|
212
|
<li>USB thumb drive (for backups or storing media)
|
218
|
213
|
</li>
|
219
|
|
-<li>One or more subdomains created on <a href="https://freedns.afraid.org/">https://freedns.afraid.org/</a>
|
|
214
|
+<li>One or more domains available via a dynamic DNS provider, such as <a href="https://freedns.afraid.org/">https://freedns.afraid.org/</a>
|
220
|
215
|
</li>
|
221
|
216
|
<li>A purchased domain name and SSL certificate (only needed for Red Matrix)
|
222
|
217
|
</li>
|
|
@@ -229,186 +224,231 @@ You will also need to know, or find out, the IP address of your internet router
|
229
|
224
|
</p>
|
230
|
225
|
|
231
|
226
|
<p>
|
232
|
|
-Check that within <b>initial_setup.sh</b> the router IP address and static IP for the Beaglebone are set correctly.
|
|
227
|
+You can either install from a debian package or manually as follows:
|
233
|
228
|
</p>
|
234
|
229
|
|
|
230
|
+<div class="org-src-container">
|
|
231
|
+
|
|
232
|
+<pre class="src src-bash">sudo apt-get install git
|
|
233
|
+git clone https://github.com/bashrc/freedombone
|
|
234
|
+<span class="org-builtin">cd</span> freedombone
|
|
235
|
+sudo make install
|
|
236
|
+</pre>
|
|
237
|
+</div>
|
|
238
|
+
|
235
|
239
|
<p>
|
236
|
|
-Plug the microSD card into your laptop/desktop and then run the <b>initial_setup.sh</b> script. For example:
|
|
240
|
+Plug the microSD card into your laptop/desktop and then run the <b>freedombone-prep</b> command. For example:
|
237
|
241
|
</p>
|
238
|
242
|
|
239
|
243
|
<div class="org-src-container">
|
240
|
244
|
|
241
|
|
-<pre class="src src-bash">./initial_setup.sh /dev/sdX
|
|
245
|
+<pre class="src src-bash">freedombone-prep -d /dev/sdX --ip freedombone_IP_address --iprouter router_IP_address
|
242
|
246
|
</pre>
|
243
|
247
|
</div>
|
244
|
248
|
|
245
|
249
|
<p>
|
246
|
|
-where <b>/dev/sdX</b> is the device name for the microSD card. Often it's <b>/dev/sdb</b> or <b>/dev/sdc</b>, depending upon how many drives there are on your system. The script will download the Debian installer and update the microSD card. It can take a while, so be patient.
|
|
250
|
+where /dev/sdX is the device name for the microSD card. Often it's /dev/sdb or /dev/sdc, depending upon how many drives there are on your system. The script will download the Debian installer and update the microSD card. It can take a while, so be patient.
|
247
|
251
|
</p>
|
248
|
252
|
|
249
|
253
|
<p>
|
250
|
|
-When the initial setup is done follow the instructions on screen to run the main Freedombone script. You can either edit the variables within the <b>install-freedombone.sh</b> script directly, or create a separate configuration file called <b>freedombone.cfg</b> which contains those variables. Variables which you might want to put into a <b>freedombone.cfg</b> file are:
|
|
254
|
+When the initial setup is done follow the instructions on screen to run the main freedombone command.
|
251
|
255
|
</p>
|
|
256
|
+</div>
|
|
257
|
+</div>
|
252
|
258
|
|
253
|
|
-<div class="org-src-container">
|
|
259
|
+<div id="outline-container-unnumbered-2" class="outline-2">
|
|
260
|
+<h2 id="unnumbered-2">Checklist</h2>
|
|
261
|
+<div class="outline-text-2" id="text-unnumbered-2">
|
|
262
|
+<p>
|
|
263
|
+Before running the freedombone command you will need a few things.
|
|
264
|
+</p>
|
254
|
265
|
|
255
|
|
-<pre class="src src-bash"><span class="org-variable-name">MY_EMAIL_ADDRESS</span>=<your email address>
|
256
|
|
-<span class="org-variable-name">MY_NAME</span>=<your name/nick/pseudonym>
|
257
|
|
-<span class="org-variable-name">MY_BLOG_TITLE</span>=<title of your blog>
|
258
|
|
-<span class="org-variable-name">MY_BLOG_SUBTITLE</span>=<subtitle of your blog>
|
259
|
|
-<span class="org-variable-name">SSH_PORT</span>=2222
|
260
|
|
-<span class="org-variable-name">FULLBLOG_DOMAIN_NAME</span>=<freedns subdomain for your blog>
|
261
|
|
-<span class="org-variable-name">FULLBLOG_FREEDNS_SUBDOMAIN_CODE</span>=<freedns subdomain code for your blog>
|
262
|
|
-<span class="org-variable-name">MICROBLOG_DOMAIN_NAME</span>=<domain name for your microblog>
|
263
|
|
-<span class="org-variable-name">MICROBLOG_FREEDNS_SUBDOMAIN_CODE</span>=1234
|
264
|
|
-<span class="org-variable-name">REDMATRIX_DOMAIN_NAME</span>=<domain name for your Red Matrix site>
|
265
|
|
-<span class="org-variable-name">OWNCLOUD_DOMAIN_NAME</span>=<freedns subdomain for your Owncloud site>
|
266
|
|
-<span class="org-variable-name">OWNCLOUD_FREEDNS_SUBDOMAIN_CODE</span>=<freedns subdomain code for your Owncloud site>
|
267
|
|
-<span class="org-variable-name">WIKI_TITLE</span>=<title of your wiki>
|
268
|
|
-<span class="org-variable-name">WIKI_DOMAIN_NAME</span>=<freedns subdomain for your wiki>
|
269
|
|
-<span class="org-variable-name">WIKI_FREEDNS_SUBDOMAIN_CODE</span>=<freedns subdomain code for your wiki>
|
270
|
|
-<span class="org-variable-name">MY_GPG_PUBLIC_KEY</span>=<exported public key filename>
|
271
|
|
-<span class="org-variable-name">MY_GPG_PRIVATE_KE</span>=<exported private key filename>
|
272
|
|
-<span class="org-variable-name">PUBLIC_MAILING_LIST</span>=<name of your mailing list>
|
273
|
|
-<span class="org-variable-name">LOCAL_NETWORK_STATIC_IP_ADDRESS</span>=192.168.1.60
|
274
|
|
-<span class="org-variable-name">ROUTER_IP_ADDRESS</span>=192.168.1.254
|
275
|
|
-<span class="org-variable-name">ENABLE_CJDNS</span>=no
|
276
|
|
-</pre>
|
|
266
|
+<ul class="org-ul">
|
|
267
|
+<li>Have some domains, or subdomains, registered with a dynamic DNS service
|
|
268
|
+</li>
|
|
269
|
+<li>System with a new installation of Debian Jessie
|
|
270
|
+</li>
|
|
271
|
+<li>Ethernet connection to an internet router
|
|
272
|
+</li>
|
|
273
|
+<li>It is possible to forward ports from the internet router to the system
|
|
274
|
+</li>
|
|
275
|
+<li>If you want to set up a social network or microblog then you will need SSL certificates corresponding to those domains
|
|
276
|
+</li>
|
|
277
|
+<li>Have ssh access to the system
|
|
278
|
+</li>
|
|
279
|
+</ul>
|
|
280
|
+</div>
|
277
|
281
|
</div>
|
278
|
282
|
|
|
283
|
+<div id="outline-container-unnumbered-3" class="outline-2">
|
|
284
|
+<h2 id="unnumbered-3">GPG Keys</h2>
|
|
285
|
+<div class="outline-text-2" id="text-unnumbered-3">
|
279
|
286
|
<p>
|
280
|
|
-The GPG public/private key variables are for the filenames of exported GPG keys, and if a private key filename is given then it will be automatically shredded after import.
|
|
287
|
+If you have existing GPG keys then copy the .gnupg directory onto the system.
|
281
|
288
|
</p>
|
282
|
289
|
|
|
290
|
+<div class="org-src-container">
|
|
291
|
+
|
|
292
|
+<pre class="src src-bash">scp -r ~/.gnupg username@freedombone_IP_address:/home/username
|
|
293
|
+</pre>
|
|
294
|
+</div>
|
|
295
|
+</div>
|
|
296
|
+</div>
|
|
297
|
+
|
|
298
|
+<div id="outline-container-unnumbered-4" class="outline-2">
|
|
299
|
+<h2 id="unnumbered-4">Interactive Setup</h2>
|
|
300
|
+<div class="outline-text-2" id="text-unnumbered-4">
|
283
|
301
|
<p>
|
284
|
|
-The <a href="https://freedns.afraid.org/">FreeDNS</a> subdomain codes can be found under "Dynamic DNS" and "quick cron example". On the last line it will be the string located between the '?' and the '==' characters.
|
|
302
|
+The interactive server configuration setup is recommended for most users. On the system where freedombone is to be installed create a configuration file.
|
285
|
303
|
</p>
|
286
|
304
|
|
|
305
|
+<div class="org-src-container">
|
|
306
|
+
|
|
307
|
+<pre class="src src-bash">ssh username@freedombone_IP_address
|
|
308
|
+su
|
|
309
|
+apt-get install git
|
|
310
|
+git clone https://github.com/bashrc/freedombone
|
|
311
|
+<span class="org-builtin">cd</span> freedombone
|
|
312
|
+make install
|
|
313
|
+</pre>
|
|
314
|
+</div>
|
|
315
|
+
|
287
|
316
|
<p>
|
288
|
|
-The syntax of the <b>install-freedombone.sh</b> script is:
|
|
317
|
+Now the easiest way to install the system is via the interactive setup.
|
289
|
318
|
</p>
|
290
|
319
|
|
291
|
320
|
<div class="org-src-container">
|
292
|
321
|
|
293
|
|
-<pre class="src src-bash">./install-freedombone.sh <your wiki domain name> <your username> <your wiki FreeDNS domain code> [optional variant type]
|
|
322
|
+<pre class="src src-bash">freedombone menuconfig
|
294
|
323
|
</pre>
|
295
|
324
|
</div>
|
296
|
325
|
|
297
|
326
|
<p>
|
298
|
|
-If you don't specify a variant type with the final option then everything will be installed. If you have a <b>freedombone.cfg</b> file then it should be in the same directory as <b>install-freedombone.sh</b>.
|
|
327
|
+You can select which variant you wish to install and then enter the details as requested.
|
299
|
328
|
</p>
|
|
329
|
+</div>
|
|
330
|
+</div>
|
300
|
331
|
|
|
332
|
+<div id="outline-container-unnumbered-5" class="outline-2">
|
|
333
|
+<h2 id="unnumbered-5">Non-Interactive Setup</h2>
|
|
334
|
+<div class="outline-text-2" id="text-unnumbered-5">
|
301
|
335
|
<p>
|
302
|
|
-Installation is not quick, and depends upon which variant you choose and your internet bandwidth. Allow about three hours for a full installation on the Beaglebone Black. On the Beaglebone installation is in two parts, since a reboot is needed to enable the hardware random number generator and zram.
|
|
336
|
+If you don't want to install interactively then it's possible to manually create a configuration file as follows:
|
303
|
337
|
</p>
|
304
|
338
|
|
305
|
339
|
<p>
|
306
|
|
-When done you can ssh into the Freedombone with:
|
|
340
|
+On the system where freedombone is to be installed create a configuration file.
|
307
|
341
|
</p>
|
308
|
342
|
|
309
|
343
|
<div class="org-src-container">
|
310
|
344
|
|
311
|
|
-<pre class="src src-bash">ssh username@domain -p 2222
|
|
345
|
+<pre class="src src-bash">ssh username@freedombone_IP_address
|
|
346
|
+su
|
|
347
|
+apt-get install git
|
|
348
|
+git clone https://github.com/bashrc/freedombone
|
|
349
|
+<span class="org-builtin">cd</span> freedombone
|
|
350
|
+make install
|
|
351
|
+nano /home/username/freedombone/freedombone.cfg
|
312
|
352
|
</pre>
|
313
|
353
|
</div>
|
314
|
354
|
|
315
|
355
|
<p>
|
316
|
|
-Any manual post-installation setup instructions or passwords can be found in <b>/home/username/README</b>. You should remove any passwords from that file and store them within a password manager such as KeepassX.
|
|
356
|
+Add the following, and set the values as needed.
|
317
|
357
|
</p>
|
318
|
|
-</div>
|
|
358
|
+
|
|
359
|
+<div class="org-src-container">
|
|
360
|
+
|
|
361
|
+<pre class="src src-bash"><span class="org-variable-name">MY_EMAIL_ADDRESS</span>=
|
|
362
|
+<span class="org-variable-name">MY_NAME</span>=
|
|
363
|
+<span class="org-variable-name">MY_BLOG_TITLE</span>=
|
|
364
|
+<span class="org-variable-name">MY_BLOG_SUBTITLE</span>=
|
|
365
|
+<span class="org-variable-name">FULLBLOG_DOMAIN_NAME</span>=
|
|
366
|
+<span class="org-variable-name">MICROBLOG_DOMAIN_NAME</span>=
|
|
367
|
+<span class="org-variable-name">REDMATRIX_DOMAIN_NAME</span>=
|
|
368
|
+<span class="org-variable-name">OWNCLOUD_DOMAIN_NAME</span>=
|
|
369
|
+<span class="org-variable-name">WIKI_DOMAIN_NAME</span>=
|
|
370
|
+<span class="org-variable-name">WIKI_TITLE</span>=
|
|
371
|
+<span class="org-variable-name">ENABLE_CJDNS</span>=no
|
|
372
|
+<span class="org-variable-name">LOCAL_NETWORK_STATIC_IP_ADDRESS</span>=
|
|
373
|
+<span class="org-variable-name">ROUTER_IP_ADDRESS</span>=
|
|
374
|
+</pre>
|
319
|
375
|
</div>
|
320
|
376
|
|
321
|
|
-<div id="outline-container-unnumbered-3" class="outline-2">
|
322
|
|
-<h2 id="unnumbered-3">On a laptop/PC/netbook</h2>
|
323
|
|
-<div class="outline-text-2" id="text-unnumbered-3">
|
324
|
377
|
<p>
|
325
|
|
-It's also possible to install Freedombone onto other hardware, including other types of single board computer. Any system with a fresh installation of Debian Jessie will do. Just make sure that you change the variable INSTALLING_ON_BBB to "no" within <b>freedombone.cfg</b> or the <b>install-freedombone.sh</b> script. Obviously, you don't need to run the <b>initial_setup.sh</b> script on non-Beaglebone systems.
|
|
378
|
+Both of the IP addresses are local IP addresses, typically of the form 192.168.x.x, with one being for the system and the other being for the internet router.
|
|
379
|
+</p>
|
|
380
|
+
|
|
381
|
+<p>
|
|
382
|
+If you are using FreeDNS as a dynamic DNS provider then you can add the following to your configuration file, setting the subdomain codes as appropriate. You can find the codes on the FreeDNS site under "Dynamic DNS" followed by "quick cron example" then look for the code on the last line between the ? and = characters.
|
326
|
383
|
</p>
|
327
|
384
|
|
328
|
|
-<ul class="org-ul">
|
329
|
|
-<li>Download the <a href="https://www.debian.org/devel/debian-installer">Debian Jessie "netinst" installer</a>
|
330
|
|
-</li>
|
331
|
|
-<li>Use <a href="https://apps.ubuntu.com/cat/applications/usb-creator-gtk/">Startup Disk Creator</a> or <a href="https://en.wikipedia.org/wiki/UNetbootin">Unetbootin</a> to copy the netinst image to a USB thumb drive
|
332
|
|
-</li>
|
333
|
|
-<li>Connect the machine to your internet router using an ethernet patch lead. Freedombone is a fully free (as in freedom) system and so wifi drivers may not work. A wired network connection will give better performance anyway.
|
334
|
|
-</li>
|
335
|
|
-<li>On the target machine boot from the USB drive and go through the installation. It's a good idea to use LVM and disk encryption together with a long passphrase which will be hard to crack by brute force methods. Keep a note of the passphrase in your password manager.
|
336
|
|
-</li>
|
337
|
|
-<li>Within the installer unselect the <b>print server</b> and select the <b>ssh server</b>
|
338
|
|
-</li>
|
339
|
|
-<li>After installation use ssh to access the machine and become the root user
|
340
|
|
-</li>
|
341
|
|
-</ul>
|
342
|
385
|
<div class="org-src-container">
|
343
|
386
|
|
344
|
|
-<pre class="src src-bash">ssh username@192.168.1.60
|
345
|
|
-su
|
|
387
|
+<pre class="src src-bash"><span class="org-variable-name">FULLBLOG_FREEDNS_SUBDOMAIN_CODE</span>=
|
|
388
|
+<span class="org-variable-name">REDMATRIX_FREEDNS_SUBDOMAIN_CODE</span>=
|
|
389
|
+<span class="org-variable-name">MICROBLOG_FREEDNS_SUBDOMAIN_CODE</span>=
|
|
390
|
+<span class="org-variable-name">OWNCLOUD_FREEDNS_SUBDOMAIN_CODE</span>=
|
|
391
|
+<span class="org-variable-name">WIKI_FREEDNS_SUBDOMAIN_CODE</span>=
|
346
|
392
|
</pre>
|
347
|
393
|
</div>
|
348
|
|
-<ul class="org-ul">
|
349
|
|
-<li>If you have GPG keys you may wish to transfer them to the <b>/home/usernname</b> directory. If the machine has a second USB socket or an SD card slot then that may be the most secure way to do it.
|
350
|
|
-</li>
|
351
|
|
-<li>Run the following commands:
|
352
|
|
-</li>
|
353
|
|
-</ul>
|
|
394
|
+
|
|
395
|
+<p>
|
|
396
|
+Save the configuration file and exit from your editor.
|
|
397
|
+</p>
|
|
398
|
+
|
|
399
|
+<p>
|
|
400
|
+Now you can begin the installation. If you are doing this on a Beaglebone Black:
|
|
401
|
+</p>
|
|
402
|
+
|
354
|
403
|
<div class="org-src-container">
|
355
|
404
|
|
356
|
|
-<pre class="src src-bash"><span class="org-builtin">cd</span> /home/<username>
|
357
|
|
-apt-get install git
|
358
|
|
-git clone https://github.com/bashrc/freedombone
|
359
|
|
-<span class="org-builtin">cd</span> freedombone
|
360
|
|
-nano freedombone.cfg
|
|
405
|
+<pre class="src src-bash">freedombone --bbb -d [default domain name] -u [username] --ddns [dynamic DNS provider domain] --ddnsuser [dynamic DNS username] --ddnspass [dynamic DNS password]
|
361
|
406
|
</pre>
|
362
|
407
|
</div>
|
363
|
408
|
|
364
|
|
-<ul class="org-ul">
|
365
|
|
-<li>Now create a configuration file, such as the following, filling in the details for your <a href="https://freedns.afraid.org/">FreeDNS subdomains</a>.
|
366
|
|
-</li>
|
367
|
|
-</ul>
|
|
409
|
+<p>
|
|
410
|
+Or on any other system don't include the <b>–bbb</b> option.
|
|
411
|
+</p>
|
|
412
|
+
|
368
|
413
|
<div class="org-src-container">
|
369
|
414
|
|
370
|
|
-<pre class="src src-bash"><span class="org-variable-name">INSTALLING_ON_BBB</span>=no
|
371
|
|
-<span class="org-variable-name">MY_EMAIL_ADDRESS</span>=<your email address>
|
372
|
|
-<span class="org-variable-name">MY_NAME</span>=<your name/nick/pseudonym>
|
373
|
|
-<span class="org-variable-name">MY_BLOG_TITLE</span>=<title of your blog>
|
374
|
|
-<span class="org-variable-name">MY_BLOG_SUBTITLE</span>=<subtitle of your blog>
|
375
|
|
-<span class="org-variable-name">SSH_PORT</span>=2222
|
376
|
|
-<span class="org-variable-name">FULLBLOG_DOMAIN_NAME</span>=<freedns subdomain for your blog>
|
377
|
|
-<span class="org-variable-name">FULLBLOG_FREEDNS_SUBDOMAIN_CODE</span>=<freedns subdomain code for your blog>
|
378
|
|
-<span class="org-variable-name">MICROBLOG_DOMAIN_NAME</span>=<domain name for your microblog>
|
379
|
|
-<span class="org-variable-name">MICROBLOG_FREEDNS_SUBDOMAIN_CODE</span>=1234
|
380
|
|
-<span class="org-variable-name">REDMATRIX_DOMAIN_NAME</span>=<domain name for your Red Matrix site>
|
381
|
|
-<span class="org-variable-name">OWNCLOUD_DOMAIN_NAME</span>=<freedns subdomain for your Owncloud site>
|
382
|
|
-<span class="org-variable-name">OWNCLOUD_FREEDNS_SUBDOMAIN_CODE</span>=<freedns subdomain code for your Owncloud site>
|
383
|
|
-<span class="org-variable-name">WIKI_TITLE</span>=<title of your wiki>
|
384
|
|
-<span class="org-variable-name">WIKI_DOMAIN_NAME</span>=<freedns subdomain for your wiki>
|
385
|
|
-<span class="org-variable-name">WIKI_FREEDNS_SUBDOMAIN_CODE</span>=<freedns subdomain code for your wiki>
|
386
|
|
-<span class="org-variable-name">MY_GPG_PUBLIC_KEY</span>=<exported public key filename>
|
387
|
|
-<span class="org-variable-name">MY_GPG_PRIVATE_KE</span>=<exported private key filename>
|
388
|
|
-<span class="org-variable-name">PUBLIC_MAILING_LIST</span>=<name of your mailing list>
|
389
|
|
-<span class="org-variable-name">LOCAL_NETWORK_STATIC_IP_ADDRESS</span>=192.168.1.60
|
390
|
|
-<span class="org-variable-name">ROUTER_IP_ADDRESS</span>=192.168.1.254
|
391
|
|
-<span class="org-variable-name">ENABLE_CJDNS</span>=no
|
|
415
|
+<pre class="src src-bash">freedombone -d [default domain name] -u [username] --ddns [dynamic DNS provider domain] --ddnsuser [dynamic DNS username] --ddnspass [dynamic DNS password]
|
392
|
416
|
</pre>
|
393
|
417
|
</div>
|
394
|
418
|
|
395
|
|
-<ul class="org-ul">
|
396
|
|
-<li>Save and exit, then run:
|
397
|
|
-</li>
|
398
|
|
-</ul>
|
399
|
|
-<div class="org-src-container">
|
|
419
|
+<p>
|
|
420
|
+The above command should be run in the same directory in which your configuration file exists. You can use any of your domains as the default one, but typically the default domain is the same as the one for your wiki. If you are using FreeDNS as the dynamic DNS provider then also add the -c option to specify the code corresponding to the subdomain.
|
|
421
|
+</p>
|
400
|
422
|
|
401
|
|
-<pre class="src src-bash">./install-freedombone.sh <your wiki domain name> <your username> <your wiki FreeDNS domain code>
|
402
|
|
-</pre>
|
|
423
|
+<p>
|
|
424
|
+Also see the manpage for additional options which can be used instead of a configuration file. If you don't specify a variant type with the final option then everything will be installed. If you have a <b>freedombone.cfg</b> file then it should be in the same directory from which the <b>freedombone</b> command is run.
|
|
425
|
+</p>
|
403
|
426
|
</div>
|
404
|
427
|
</div>
|
|
428
|
+
|
|
429
|
+<div id="outline-container-unnumbered-6" class="outline-2">
|
|
430
|
+<h2 id="unnumbered-6">Post-Setup</h2>
|
|
431
|
+<div class="outline-text-2" id="text-unnumbered-6">
|
|
432
|
+<p>
|
|
433
|
+Setup of the server and installation of all the relevant packages is not quick, and depends upon which variant you choose and your internet bandwidth. Allow about three hours for a full installation on the Beaglebone Black. On the Beaglebone installation is in two parts, since a reboot is needed to enable the hardware random number generator and zram.
|
|
434
|
+</p>
|
|
435
|
+
|
|
436
|
+<p>
|
|
437
|
+When done you can ssh into the Freedombone with:
|
|
438
|
+</p>
|
|
439
|
+
|
|
440
|
+<div class="org-src-container">
|
|
441
|
+
|
|
442
|
+<pre class="src src-bash">ssh username@domain -p 2222
|
|
443
|
+</pre>
|
405
|
444
|
</div>
|
406
|
445
|
|
407
|
|
-<div id="outline-container-unnumbered-4" class="outline-2">
|
408
|
|
-<h2 id="unnumbered-4">Internet Router</h2>
|
409
|
|
-<div class="outline-text-2" id="text-unnumbered-4">
|
410
|
446
|
<p>
|
411
|
|
-On your internet router, typically under firewall settings, open the following ports and forward them to the Freedombone.
|
|
447
|
+Any manual post-installation setup instructions or passwords can be found in /home/username/README. You should remove any passwords from that file and store them within a password manager such as KeepassX.
|
|
448
|
+</p>
|
|
449
|
+
|
|
450
|
+<p>
|
|
451
|
+On your internet router, typically under firewall settings, open the following ports and forward them to your server.
|
412
|
452
|
</p>
|
413
|
453
|
|
414
|
454
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|