Bladeren bron

Redoing the installation instructions

Bob Mottram 9 jaren geleden
bovenliggende
commit
e59b53fceb
3 gewijzigde bestanden met toevoegingen van 200 en 219 verwijderingen
  1. 74
    91
      doc/EN/installation.org
  2. BIN
      man/freedombone.1.gz
  3. 126
    128
      website/EN/installation.html

+ 74
- 91
doc/EN/installation.org Bestand weergeven

@@ -7,138 +7,129 @@
7 7
 #+BEGIN_CENTER
8 8
 [[./images/logo.png]]
9 9
 #+END_CENTER
10
-| [[file:index.html][Home]] | [[Preparation for the Beaglebone Black]] | [[Checklist]] | [[./mesh.html][Mesh network]] | [[Interactive Setup]] | [[Non-Interactive Setup]] | [[Post-Setup]] | [[Keydrives]] | [[On Client Machines]] |
10
+| [[file:index.html][Home]] | [[Building an image for an SBC or Virtual Machine]] | [[Checklist]] | [[./mesh.html][Mesh network]] | [[Installation]] | [[Social Key Management (aka 'The Unforgettable Key')]] | [[Final Setup]] | [[Keydrives]] | [[On Client Machines]] |
11 11
 
12
+* Building an image for an SBC or Virtual Machine
13
+You don't have to trust images downloaded from random internet locations signed with untrusted keys. You can build one from scratch yourself, and this is the recommended procedure for maximum security. For guidance on how to build images see the manpage for the *freedombone-image* command.
12 14
 
13
-* Preparation for the Beaglebone Black
14
-This section is specific to the Beaglebone Black hardware. If you're not using that hardware then just skip to the next section.
15
-
16
-To get started you will need:
17
-
18
- - A Beaglebone Black
19
- - A MicroSD card
20
- - Ethernet cable
21
- - Optionally a 5V 2A power supply for the Beaglebone Black
22
- - Access to the internet via a router with ethernet sockets
23
- - USB thumb drive (for backups or storing media)
24
- - One or more domains available via a dynamic DNS provider, such as https://freedns.afraid.org
25
- - A purchased domain name and SSL certificate (only needed for Hubzilla)
26
- - A laptop or desktop machine with the ability to write to a microSD card (might need an adaptor)
27
-
28
-You will also need to know, or find out, the IP address of your internet router and have a suitable static IP address for the Beaglebone on your local network. The router should allow you to forward ports to the Beaglebone (often this is under firewall or "advanced" settings).
29
-
30
-You can either install from a debian package or manually as follows:
15
+Install the freedombone commands onto your laptop/desktop:
31 16
 
32 17
 #+BEGIN_SRC bash
33
-sudo apt-get update
34
-sudo apt-get install git dialog build-essential
18
+sudo apt-get install git build-essential dialog
35 19
 git clone https://github.com/bashrc/freedombone
36 20
 cd freedombone
37 21
 sudo make install
38 22
 #+END_SRC
39 23
 
40
-Plug the microSD card into your laptop/desktop and then run the *freedombone-prep* command. For example:
24
+Then install packages needed for building images:
41 25
 
42 26
 #+BEGIN_SRC bash
43
-freedombone-prep -d /dev/sdX --ip freedombone_IP_address --iprouter router_IP_address
27
+sudo apt-get -y install python-docutils mktorrent vmdebootstrap
28
+sudo apt-get -y install dosfstools btrfs-tools extlinux python-distro-info mbr
29
+sudo apt-get -y install qemu-user-static binfmt-support u-boot-tools qemu
44 30
 #+END_SRC
45 31
 
46
-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.
32
+A typical use case to build an 8GB image for a Beaglebone Black is as follows. You can change the size depending upon the capacity of your microSD card.
33
+
34
+#+BEGIN_SRC bash
35
+freedombone-image -t beaglebone -s 8G
36
+#+END_SRC
37
+
38
+If you prefer an advanced installation with all of the options available then use:
39
+
40
+#+BEGIN_SRC bash
41
+freedombone-image -t beaglebone -s 8G --minimal no
42
+#+END_SRC
47 43
 
48
-When the initial setup is done follow the instructions on screen to run the main freedombone command.
44
+Other supported boards are cubieboard2, cubietruck and olinuxino-lime2.
49 45
 
50 46
 * Checklist
51
-Before running the freedombone command you will need a few things.
47
+Before installing Freedombone you will need a few things.
52 48
 
53 49
   * Have some domains, or subdomains, registered with a dynamic DNS service
54
-  * System with a new installation of Debian Jessie
55
-  * Ethernet connection to an internet router
56
-  * It is possible to forward ports from the internet router to the system
57
-  * If you want to set up a social network or microblog then you will need SSL certificates corresponding to those domains
58
-  * Have ssh access to the system
50
+  * System with a new installation of Debian Jessie or a downloaded/prepared disk image
51
+  * Ethernet connection between the system and your internet router
52
+  * That it is possible to forward ports from the internet router to the system, typically via firewall settings
53
+  * Have ssh access to the system, typically via fbone@freedombone.local on port 2222
59 54
 * Mesh network
60 55
 If you are installing one of the mesh network variants then see [[./mesh.html][these instructions]] for details.
61
-* Interactive Setup
62
-The interactive server configuration setup is recommended for most users. On the system where freedombone is to be installed create a configuration file.
56
+* Installation
57
+There are three install options: Laptop/Desktop/Netbook, SBC and Virtual Machine.
58
+
59
+** On a Laptop, Netbook or Desktop machine
60
+If you have an existing system, such as an old laptop or netbook which you can leave running as a server, then install a new version of Debian Jessie onto it. During the Debian install you won't need the print server or the desktop environment, and unchecking those will reduce the attack surface. Once Debian enter the following commands:
63 61
 
64 62
 #+BEGIN_SRC bash
65
-ssh myusername@freedombone_IP_address
66 63
 su
67
-sudo apt-get update
68
-apt-get install git dialog build-essential
64
+apt-get update
65
+apt-get -y install git dialog build-essential
69 66
 git clone https://github.com/bashrc/freedombone
70 67
 cd freedombone
71 68
 make install
69
+freedombone menuconfig
72 70
 #+END_SRC
73 71
 
74
-Now the easiest way to install the system is via the interactive setup.
72
+** On a single board computer (SBC)
73
+Currently the following boards are supported:
74
+
75
+    [[http://beagleboard.org/BLACK][Beaglebone Black]]
76
+    [[http://linux-sunxi.org/Cubietech_Cubieboard2][Cubieboard 2]]
77
+    [[https://linux-sunxi.org/Cubietruck][Cubietruck (Cubieboard 3)]]
78
+    [[https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXIno-LIME2/open-source-hardware][olinuxino Lime2]]
79
+
80
+If there is no existing image available then you can build one from scratch. See the section above on how to do that. If an existing image is available then you can download it and check the signature with:
75 81
 
76 82
 #+BEGIN_SRC bash
77
-freedombone menuconfig
83
+gpg --verify filename.img.asc
78 84
 #+END_SRC
79 85
 
80
-You can select which variant you wish to install and then enter the details as requested. A video of the install sequence can be [[./installer.ogv][seen here]].
86
+And the hash with:
81 87
 
82
-* Non-Interactive Setup
83
-If you don't want to install interactively then it's possible to manually create a configuration file as follows:
88
+#+BEGIN_SRC bash
89
+sha256sum filename.img
90
+#+END_SRC
84 91
 
85
-On the system where freedombone is to be installed create a configuration file.
92
+If the image is compressed then decompress it with:
86 93
 
87 94
 #+BEGIN_SRC bash
88
-ssh myusername@freedombone_IP_address
89
-su
90
-sudo apt-get update
91
-apt-get install git build-essential
92
-git clone https://github.com/bashrc/freedombone
93
-cd freedombone
94
-make install
95
-nano /home/myusername/freedombone/freedombone.cfg
95
+tar -xjvf filename.tar.bz2
96 96
 #+END_SRC
97 97
 
98
-Add the following, and set the values as needed. DEFAULT_DOMAIN_NAME is where your email/xmpp/irc/voip will be accessed from. It could be the same as one of your other domains, or separate.
98
+Then copy it to a microSD card. Depending on your system you may need an adaptor to be able to do that.
99 99
 
100 100
 #+BEGIN_SRC bash
101
-MY_USERNAME=myusername
102
-DEFAULT_DOMAIN_NAME=mywikidomain
103
-SYSTEM_TYPE=full
104
-INSTALLING_ON_BBB=no
105
-DDNS_PROVIDER=default@freedns.afraid.org
106
-DDNS_USERNAME=ddnsusername
107
-DDNS_PASSWORD=ddnspassword3471326
108
-MY_NAME=MyFullNameOrNick
109
-MY_EMAIL_ADDRESS=myusername@mywikidomain
110
-LOCAL_NETWORK_STATIC_IP_ADDRESS=192.168.1.60
111
-ROUTER_IP_ADDRESS=192.168.1.254
112
-ENABLE_CJDNS=no
113
-DEBIAN_REPO=ftp.us.debian.org
114
-NAMESERVER1=85.214.73.63
115
-NAMESERVER2=213.73.91.35
116
-WIKI_TITLE=my wiki title
117
-WIKI_DOMAIN_NAME=mywikidomain
118
-MY_BLOG_TITLE=my blog
119
-FULLBLOG_DOMAIN_NAME=myblogdomain
120
-MICROBLOG_DOMAIN_NAME=mymicroblogdomain
121
-HUBZILLA_DOMAIN_NAME=myhubzilladomain
122
-OWNCLOUD_DOMAIN_NAME=myownclouddomain
123
-HWRNG_TYPE=haveged
124
-ENABLE_SOCIAL_KEY_MANAGEMENT="no"
101
+sudo dd bs=1M if=filename.img of=/dev/sdX conv=fdatasync
125 102
 #+END_SRC
126 103
 
127
-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.
104
+Where *sdX* is the microSD drive. You can check which drive is the microSD drive using:
128 105
 
129
-Save the configuration file and exit from your editor.
106
+#+BEGIN_SRC bash
107
+ls /dev/sd*
108
+#+END_SRC
109
+
110
+With the drive removed and inserted. Copying to the microSD will take a while, so go and do something less boring instead. When it's complete remove it from your system and insert it into the SBC. Connect an ethernet cable between the SBC and your internet router, then connect the power cable. On the Beaglebone Black you will see some flashing LEDs, but on other SBCs there may not be any visual indication that anything is booting.
130 111
 
131
-Now you can begin the installation. If you are doing this on a Beaglebone Black:
112
+With the board connected and running you can ssh into the system with:
132 113
 
133 114
 #+BEGIN_SRC bash
134
-freedombone -c freedombone.cfg
115
+ssh fbone@freedombone.local -p 2222
135 116
 #+END_SRC
136 117
 
137
-The above command should be run in the same directory in which your configuration file exists.
118
+Using the password 'freedombone'. Take a note of the new login password and then you can proceed through the rest of the installation.
138 119
 
139
-Also see the manpage for additional options which can be used instead of a configuration file.
120
+** As a Virtual Machine
140 121
 
141
-* Social Key Management
122
+Virtualbox and Qemu are supported. You can run a 64 bit Qemu image with:
123
+
124
+#+BEGIN_SRC bash
125
+qemu-system-x86_64 filename.img
126
+#+END_SRC
127
+
128
+If you are using Virtualbox then add a new VM and select the Freedombone *vdi* image.
129
+
130
+The default login will be username 'fbone' and password 'freedombone'. Take a note of the new login password and then you can proceed through the rest of the installation.
131
+
132
+* Social Key Management (aka 'The Unforgettable Key')
142 133
 If you are using the interactive installer then you will be aked if you wish to import GPG keys. If you don't already possess GPG keys then just select "Ok" and they will be generated during the install. If you do already have GPG keys then there are a few possibilities
143 134
 
144 135
 ** You have the gnupg keyring on an encrypted USB drive
@@ -147,15 +138,7 @@ If you previously made a master keydrive containing the full keyring (the .gnupg
147 138
 If you previously made some USB drives containing key fragments then retrieve them from your friends and plug them in one after the other. After the last drive has been read then remove it and just select "Ok". The system will then try to reconstruct the key. For this to work you will need to have previously made three or more [[Keydrives]].
148 139
 ** You can specify some ssh login details for friends servers containing key fragments
149 140
 Enter three or more sets of login details and the installer will try to retrieve key fragments and then assemble them into the full key. This only works if you previously were using remote backups and had social key management enabled.
150
-* Post-Setup
151
-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.
152
-
153
-When done you can ssh into the Freedombone with:
154
-
155
-#+BEGIN_SRC bash
156
-ssh myusername@domain -p 2222
157
-#+END_SRC
158
-
141
+* Final Setup
159 142
 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.
160 143
 
161 144
 On your internet router, typically under firewall settings, open the following ports and forward them to your server.

BIN
man/freedombone.1.gz Bestand weergeven


+ 126
- 128
website/EN/installation.html Bestand weergeven

@@ -3,15 +3,15 @@
3 3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5 5
 <head>
6
-<title></title>
7
-<!-- 2015-11-03 Tue 19:49 -->
6
+<!-- 2015-12-03 Thu 12:09 -->
8 7
 <meta  http-equiv="Content-Type" content="text/html;charset=utf-8" />
8
+<meta  name="viewport" content="width=device-width, initial-scale=1" />
9
+<title></title>
9 10
 <meta  name="generator" content="Org-mode" />
10 11
 <meta  name="author" content="Bob Mottram" />
11 12
 <meta  name="description" content="Turn the Beaglebone Black into a personal communications server"
12 13
  />
13 14
 <meta  name="keywords" content="freedombox, debian, beaglebone, hubzilla, email, web server, home server, internet, censorship, surveillance, social network, irc, jabber" />
14
-<meta  name="viewport" content="width=device-width, initial-scale=1" />
15 15
 <style type="text/css">
16 16
  <!--/*--><![CDATA[/*><!--*/
17 17
   .title  { text-align: center;
@@ -186,76 +186,72 @@ for the JavaScript code in this tag.
186 186
 <tbody>
187 187
 <tr>
188 188
 <td class="org-left"><a href="index.html">Home</a></td>
189
-<td class="org-left"><a href="#orgheadline1">Preparation for the Beaglebone Black</a></td>
189
+<td class="org-left"><a href="#orgheadline1">Building an image for an SBC or Virtual Machine</a></td>
190 190
 <td class="org-left"><a href="#orgheadline2">Checklist</a></td>
191 191
 <td class="org-left"><a href="./mesh.html">Mesh network</a></td>
192
-<td class="org-left"><a href="#orgheadline3">Interactive Setup</a></td>
193
-<td class="org-left"><a href="#orgheadline4">Non-Interactive Setup</a></td>
194
-<td class="org-left"><a href="#orgheadline5">Post-Setup</a></td>
192
+<td class="org-left"><a href="#orgheadline3">Installation</a></td>
193
+<td class="org-left"><a href="#orgheadline4">Social Key Management (aka 'The Unforgettable Key')</a></td>
194
+<td class="org-left"><a href="#orgheadline5">Final Setup</a></td>
195 195
 <td class="org-left"><a href="#orgheadline6">Keydrives</a></td>
196 196
 <td class="org-left"><a href="#orgheadline7">On Client Machines</a></td>
197 197
 </tr>
198 198
 </tbody>
199 199
 </table>
200 200
 
201
-
202 201
 <div id="outline-container-orgheadline1" class="outline-2">
203
-<h2 id="orgheadline1">Preparation for the Beaglebone Black</h2>
202
+<h2 id="orgheadline1">Building an image for an SBC or Virtual Machine</h2>
204 203
 <div class="outline-text-2" id="text-orgheadline1">
205 204
 <p>
206
-This section is specific to the Beaglebone Black hardware. If you're not using that hardware then just skip to the next section.
205
+You don't have to trust images downloaded from random internet locations signed with untrusted keys. You can build one from scratch yourself, and this is the recommended procedure for maximum security. For guidance on how to build images see the manpage for the <b>freedombone-image</b> command.
207 206
 </p>
208 207
 
209 208
 <p>
210
-To get started you will need:
209
+Install the freedombone commands onto your laptop/desktop:
211 210
 </p>
212 211
 
213
-<ul class="org-ul">
214
-<li>A Beaglebone Black</li>
215
-<li>A MicroSD card</li>
216
-<li>Ethernet cable</li>
217
-<li>Optionally a 5V 2A power supply for the Beaglebone Black</li>
218
-<li>Access to the internet via a router with ethernet sockets</li>
219
-<li>USB thumb drive (for backups or storing media)</li>
220
-<li>One or more domains available via a dynamic DNS provider, such as <a href="https://freedns.afraid.org/">https://freedns.afraid.org/</a></li>
221
-<li>A purchased domain name and SSL certificate (only needed for Hubzilla)</li>
222
-<li>A laptop or desktop machine with the ability to write to a microSD card (might need an adaptor)</li>
223
-</ul>
212
+<div class="org-src-container">
224 213
 
225
-<p>
226
-You will also need to know, or find out, the IP address of your internet router and have a suitable static IP address for the Beaglebone on your local network. The router should allow you to forward ports to the Beaglebone (often this is under firewall or "advanced" settings).
227
-</p>
214
+<pre class="src src-bash">sudo apt-get install git build-essential dialog
215
+git clone https://github.com/bashrc/freedombone
216
+<span class="org-builtin">cd</span> freedombone
217
+sudo make install
218
+</pre>
219
+</div>
228 220
 
229 221
 <p>
230
-You can either install from a debian package or manually as follows:
222
+Then install packages needed for building images:
231 223
 </p>
232 224
 
233 225
 <div class="org-src-container">
234 226
 
235
-<pre class="src src-bash">sudo apt-get update
236
-sudo apt-get install git dialog build-essential
237
-git clone https://github.com/bashrc/freedombone
238
-<span class="org-builtin">cd</span> freedombone
239
-sudo make install
227
+<pre class="src src-bash">sudo apt-get -y install python-docutils mktorrent vmdebootstrap
228
+sudo apt-get -y install dosfstools btrfs-tools extlinux python-distro-info mbr
229
+sudo apt-get -y install qemu-user-static binfmt-support u-boot-tools qemu
240 230
 </pre>
241 231
 </div>
242 232
 
243 233
 <p>
244
-Plug the microSD card into your laptop/desktop and then run the <b>freedombone-prep</b> command. For example:
234
+A typical use case to build an 8GB image for a Beaglebone Black is as follows. You can change the size depending upon the capacity of your microSD card.
245 235
 </p>
246 236
 
247 237
 <div class="org-src-container">
248 238
 
249
-<pre class="src src-bash">freedombone-prep -d /dev/sdX --ip freedombone_IP_address --iprouter router_IP_address
239
+<pre class="src src-bash">freedombone-image -t beaglebone -s 8G
250 240
 </pre>
251 241
 </div>
252 242
 
253 243
 <p>
254
-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.
244
+If you prefer an advanced installation with all of the options available then use:
255 245
 </p>
256 246
 
247
+<div class="org-src-container">
248
+
249
+<pre class="src src-bash">freedombone-image -t beaglebone -s 8G --minimal no
250
+</pre>
251
+</div>
252
+
257 253
 <p>
258
-When the initial setup is done follow the instructions on screen to run the main freedombone command.
254
+Other supported boards are cubieboard2, cubietruck and olinuxino-lime2.
259 255
 </p>
260 256
 </div>
261 257
 </div>
@@ -264,16 +260,15 @@ When the initial setup is done follow the instructions on screen to run the main
264 260
 <h2 id="orgheadline2">Checklist</h2>
265 261
 <div class="outline-text-2" id="text-orgheadline2">
266 262
 <p>
267
-Before running the freedombone command you will need a few things.
263
+Before installing Freedombone you will need a few things.
268 264
 </p>
269 265
 
270 266
 <ul class="org-ul">
271 267
 <li>Have some domains, or subdomains, registered with a dynamic DNS service</li>
272
-<li>System with a new installation of Debian Jessie</li>
273
-<li>Ethernet connection to an internet router</li>
274
-<li>It is possible to forward ports from the internet router to the system</li>
275
-<li>If you want to set up a social network or microblog then you will need SSL certificates corresponding to those domains</li>
276
-<li>Have ssh access to the system</li>
268
+<li>System with a new installation of Debian Jessie or a downloaded/prepared disk image</li>
269
+<li>Ethernet connection between the system and your internet router</li>
270
+<li>That it is possible to forward ports from the internet router to the system, typically via firewall settings</li>
271
+<li>Have ssh access to the system, typically via fbone@freedombone.local on port 2222</li>
277 272
 </ul>
278 273
 </div>
279 274
 </div>
@@ -286,152 +281,169 @@ If you are installing one of the mesh network variants then see <a href="./mesh.
286 281
 </div>
287 282
 </div>
288 283
 <div id="outline-container-orgheadline3" class="outline-2">
289
-<h2 id="orgheadline3">Interactive Setup</h2>
284
+<h2 id="orgheadline3">Installation</h2>
290 285
 <div class="outline-text-2" id="text-orgheadline3">
291 286
 <p>
292
-The interactive server configuration setup is recommended for most users. On the system where freedombone is to be installed create a configuration file.
287
+There are three install options: Laptop/Desktop/Netbook, SBC and Virtual Machine.
288
+</p>
289
+</div>
290
+
291
+<div id="outline-container-orgheadline9" class="outline-3">
292
+<h3 id="orgheadline9">On a Laptop, Netbook or Desktop machine</h3>
293
+<div class="outline-text-3" id="text-orgheadline9">
294
+<p>
295
+If you have an existing system, such as an old laptop or netbook which you can leave running as a server, then install a new version of Debian Jessie onto it. During the Debian install you won't need the print server or the desktop environment, and unchecking those will reduce the attack surface. Once Debian enter the following commands:
293 296
 </p>
294 297
 
295 298
 <div class="org-src-container">
296 299
 
297
-<pre class="src src-bash">ssh myusername@freedombone_IP_address
298
-su
299
-sudo apt-get update
300
-apt-get install git dialog build-essential
300
+<pre class="src src-bash">su
301
+apt-get update
302
+apt-get -y install git dialog build-essential
301 303
 git clone https://github.com/bashrc/freedombone
302 304
 <span class="org-builtin">cd</span> freedombone
303 305
 make install
306
+freedombone menuconfig
304 307
 </pre>
305 308
 </div>
309
+</div>
310
+</div>
311
+
312
+<div id="outline-container-orgheadline10" class="outline-3">
313
+<h3 id="orgheadline10">On a single board computer (SBC)</h3>
314
+<div class="outline-text-3" id="text-orgheadline10">
315
+<p>
316
+Currently the following boards are supported:
317
+</p>
318
+
319
+<p>
320
+<a href="http://beagleboard.org/BLACK">Beaglebone Black</a>
321
+<a href="http://linux-sunxi.org/Cubietech_Cubieboard2">Cubieboard 2</a>
322
+<a href="https://linux-sunxi.org/Cubietruck">Cubietruck (Cubieboard 3)</a>
323
+<a href="https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXIno-LIME2/open-source-hardware">olinuxino Lime2</a>
324
+</p>
306 325
 
307 326
 <p>
308
-Now the easiest way to install the system is via the interactive setup.
327
+If there is no existing image available then you can build one from scratch. See the section above on how to do that. If an existing image is available then you can download it and check the signature with:
309 328
 </p>
310 329
 
311 330
 <div class="org-src-container">
312 331
 
313
-<pre class="src src-bash">freedombone menuconfig
332
+<pre class="src src-bash">gpg --verify filename.img.asc
314 333
 </pre>
315 334
 </div>
316 335
 
317 336
 <p>
318
-You can select which variant you wish to install and then enter the details as requested. A video of the install sequence can be <a href="./installer.ogv">seen here</a>.
337
+And the hash with:
319 338
 </p>
320
-</div>
339
+
340
+<div class="org-src-container">
341
+
342
+<pre class="src src-bash">sha256sum filename.img
343
+</pre>
321 344
 </div>
322 345
 
323
-<div id="outline-container-orgheadline4" class="outline-2">
324
-<h2 id="orgheadline4">Non-Interactive Setup</h2>
325
-<div class="outline-text-2" id="text-orgheadline4">
326 346
 <p>
327
-If you don't want to install interactively then it's possible to manually create a configuration file as follows:
347
+If the image is compressed then decompress it with:
328 348
 </p>
329 349
 
350
+<div class="org-src-container">
351
+
352
+<pre class="src src-bash">tar -xjvf filename.tar.bz2
353
+</pre>
354
+</div>
355
+
330 356
 <p>
331
-On the system where freedombone is to be installed create a configuration file.
357
+Then copy it to a microSD card. Depending on your system you may need an adaptor to be able to do that.
332 358
 </p>
333 359
 
334 360
 <div class="org-src-container">
335 361
 
336
-<pre class="src src-bash">ssh myusername@freedombone_IP_address
337
-su
338
-sudo apt-get update
339
-apt-get install git build-essential
340
-git clone https://github.com/bashrc/freedombone
341
-<span class="org-builtin">cd</span> freedombone
342
-make install
343
-nano /home/myusername/freedombone/freedombone.cfg
362
+<pre class="src src-bash">sudo dd <span class="org-variable-name">bs</span>=1M <span class="org-variable-name">if</span>=filename.img <span class="org-variable-name">of</span>=/dev/sdX <span class="org-variable-name">conv</span>=fdatasync
344 363
 </pre>
345 364
 </div>
346 365
 
347 366
 <p>
348
-Add the following, and set the values as needed. DEFAULT_DOMAIN_NAME is where your email/xmpp/irc/voip will be accessed from. It could be the same as one of your other domains, or separate.
367
+Where <b>sdX</b> is the microSD drive. You can check which drive is the microSD drive using:
349 368
 </p>
350 369
 
351 370
 <div class="org-src-container">
352 371
 
353
-<pre class="src src-bash"><span class="org-variable-name">MY_USERNAME</span>=myusername
354
-<span class="org-variable-name">DEFAULT_DOMAIN_NAME</span>=mywikidomain
355
-<span class="org-variable-name">SYSTEM_TYPE</span>=full
356
-<span class="org-variable-name">INSTALLING_ON_BBB</span>=no
357
-<span class="org-variable-name">DDNS_PROVIDER</span>=default@freedns.afraid.org
358
-<span class="org-variable-name">DDNS_USERNAME</span>=ddnsusername
359
-<span class="org-variable-name">DDNS_PASSWORD</span>=ddnspassword3471326
360
-<span class="org-variable-name">MY_NAME</span>=MyFullNameOrNick
361
-<span class="org-variable-name">MY_EMAIL_ADDRESS</span>=myusername@mywikidomain
362
-<span class="org-variable-name">LOCAL_NETWORK_STATIC_IP_ADDRESS</span>=192.168.1.60
363
-<span class="org-variable-name">ROUTER_IP_ADDRESS</span>=192.168.1.254
364
-<span class="org-variable-name">ENABLE_CJDNS</span>=no
365
-<span class="org-variable-name">DEBIAN_REPO</span>=ftp.us.debian.org
366
-<span class="org-variable-name">NAMESERVER1</span>=85.214.73.63
367
-<span class="org-variable-name">NAMESERVER2</span>=213.73.91.35
368
-<span class="org-variable-name">WIKI_TITLE</span>=my wiki title
369
-<span class="org-variable-name">WIKI_DOMAIN_NAME</span>=mywikidomain
370
-<span class="org-variable-name">MY_BLOG_TITLE</span>=my blog
371
-<span class="org-variable-name">FULLBLOG_DOMAIN_NAME</span>=myblogdomain
372
-<span class="org-variable-name">MICROBLOG_DOMAIN_NAME</span>=mymicroblogdomain
373
-<span class="org-variable-name">HUBZILLA_DOMAIN_NAME</span>=myhubzilladomain
374
-<span class="org-variable-name">OWNCLOUD_DOMAIN_NAME</span>=myownclouddomain
375
-<span class="org-variable-name">HWRNG_TYPE</span>=haveged
376
-<span class="org-variable-name">ENABLE_SOCIAL_KEY_MANAGEMENT</span>=<span class="org-string">"no"</span>
372
+<pre class="src src-bash">ls /dev/sd*
377 373
 </pre>
378 374
 </div>
379 375
 
380 376
 <p>
381
-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.
377
+With the drive removed and inserted. Copying to the microSD will take a while, so go and do something less boring instead. When it's complete remove it from your system and insert it into the SBC. Connect an ethernet cable between the SBC and your internet router, then connect the power cable. On the Beaglebone Black you will see some flashing LEDs, but on other SBCs there may not be any visual indication that anything is booting.
382 378
 </p>
383 379
 
384 380
 <p>
385
-Save the configuration file and exit from your editor.
381
+With the board connected and running you can ssh into the system with:
382
+</p>
383
+
384
+<div class="org-src-container">
385
+
386
+<pre class="src src-bash">ssh fbone@freedombone.local -p 2222
387
+</pre>
388
+</div>
389
+
390
+<p>
391
+Using the password 'freedombone'. Take a note of the new login password and then you can proceed through the rest of the installation.
386 392
 </p>
393
+</div>
394
+</div>
387 395
 
396
+<div id="outline-container-orgheadline11" class="outline-3">
397
+<h3 id="orgheadline11">As a Virtual Machine</h3>
398
+<div class="outline-text-3" id="text-orgheadline11">
388 399
 <p>
389
-Now you can begin the installation. If you are doing this on a Beaglebone Black:
400
+Virtualbox and Qemu are supported. You can run a 64 bit Qemu image with:
390 401
 </p>
391 402
 
392 403
 <div class="org-src-container">
393 404
 
394
-<pre class="src src-bash">freedombone -c freedombone.cfg
405
+<pre class="src src-bash">qemu-system-x86_64 filename.img
395 406
 </pre>
396 407
 </div>
397 408
 
398 409
 <p>
399
-The above command should be run in the same directory in which your configuration file exists.
410
+If you are using Virtualbox then add a new VM and select the Freedombone <b>vdi</b> image.
400 411
 </p>
401 412
 
402 413
 <p>
403
-Also see the manpage for additional options which can be used instead of a configuration file.
414
+The default login will be username 'fbone' and password 'freedombone'. Take a note of the new login password and then you can proceed through the rest of the installation.
404 415
 </p>
405 416
 </div>
406 417
 </div>
418
+</div>
407 419
 
408
-<div id="outline-container-orgheadline9" class="outline-2">
409
-<h2 id="orgheadline9">Social Key Management</h2>
410
-<div class="outline-text-2" id="text-orgheadline9">
420
+<div id="outline-container-orgheadline4" class="outline-2">
421
+<h2 id="orgheadline4">Social Key Management (aka 'The Unforgettable Key')</h2>
422
+<div class="outline-text-2" id="text-orgheadline4">
411 423
 <p>
412 424
 If you are using the interactive installer then you will be aked if you wish to import GPG keys. If you don't already possess GPG keys then just select "Ok" and they will be generated during the install. If you do already have GPG keys then there are a few possibilities
413 425
 </p>
414 426
 </div>
415 427
 
416
-<div id="outline-container-orgheadline10" class="outline-3">
417
-<h3 id="orgheadline10">You have the gnupg keyring on an encrypted USB drive</h3>
418
-<div class="outline-text-3" id="text-orgheadline10">
428
+<div id="outline-container-orgheadline12" class="outline-3">
429
+<h3 id="orgheadline12">You have the gnupg keyring on an encrypted USB drive</h3>
430
+<div class="outline-text-3" id="text-orgheadline12">
419 431
 <p>
420 432
 If you previously made a master keydrive containing the full keyring (the .gnupg directory). This is the most straightforward case, but not as secure as splitting the key into fragments.
421 433
 </p>
422 434
 </div>
423 435
 </div>
424
-<div id="outline-container-orgheadline11" class="outline-3">
425
-<h3 id="orgheadline11">You have a number of key fragments on USB drives retrieved from friends</h3>
426
-<div class="outline-text-3" id="text-orgheadline11">
436
+<div id="outline-container-orgheadline13" class="outline-3">
437
+<h3 id="orgheadline13">You have a number of key fragments on USB drives retrieved from friends</h3>
438
+<div class="outline-text-3" id="text-orgheadline13">
427 439
 <p>
428 440
 If you previously made some USB drives containing key fragments then retrieve them from your friends and plug them in one after the other. After the last drive has been read then remove it and just select "Ok". The system will then try to reconstruct the key. For this to work you will need to have previously made three or more <a href="#orgheadline6">Keydrives</a>.
429 441
 </p>
430 442
 </div>
431 443
 </div>
432
-<div id="outline-container-orgheadline12" class="outline-3">
433
-<h3 id="orgheadline12">You can specify some ssh login details for friends servers containing key fragments</h3>
434
-<div class="outline-text-3" id="text-orgheadline12">
444
+<div id="outline-container-orgheadline14" class="outline-3">
445
+<h3 id="orgheadline14">You can specify some ssh login details for friends servers containing key fragments</h3>
446
+<div class="outline-text-3" id="text-orgheadline14">
435 447
 <p>
436 448
 Enter three or more sets of login details and the installer will try to retrieve key fragments and then assemble them into the full key. This only works if you previously were using remote backups and had social key management enabled.
437 449
 </p>
@@ -439,23 +451,9 @@ Enter three or more sets of login details and the installer will try to retrieve
439 451
 </div>
440 452
 </div>
441 453
 <div id="outline-container-orgheadline5" class="outline-2">
442
-<h2 id="orgheadline5">Post-Setup</h2>
454
+<h2 id="orgheadline5">Final Setup</h2>
443 455
 <div class="outline-text-2" id="text-orgheadline5">
444 456
 <p>
445
-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.
446
-</p>
447
-
448
-<p>
449
-When done you can ssh into the Freedombone with:
450
-</p>
451
-
452
-<div class="org-src-container">
453
-
454
-<pre class="src src-bash">ssh myusername@domain -p 2222
455
-</pre>
456
-</div>
457
-
458
-<p>
459 457
 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.
460 458
 </p>
461 459
 
@@ -584,9 +582,9 @@ On your internet router, typically under firewall settings, open the following p
584 582
 After installing for the first time it's a good idea to create some keydrives. These will store your gpg key so that if all else fails you will still be able to restore from backup. There are two ways to do this:
585 583
 </p>
586 584
 </div>
587
-<div id="outline-container-orgheadline13" class="outline-3">
588
-<h3 id="orgheadline13">Master Keydrive</h3>
589
-<div class="outline-text-3" id="text-orgheadline13">
585
+<div id="outline-container-orgheadline15" class="outline-3">
586
+<h3 id="orgheadline15">Master Keydrive</h3>
587
+<div class="outline-text-3" id="text-orgheadline15">
590 588
 <p>
591 589
 This is the traditional security model in which you carry your full keyring on an encrypted USB drive. To make a master keydrive first format a USB drive as a LUKS encrypted drive. In Ubuntu this can be <a href="https://help.ubuntu.com/community/EncryptedFilesystemsOnRemovableStorage">done from the <i>Disk Utility</i> application</a>. Then plug it into the Freedombone system, then from your local machine run:
592 590
 </p>
@@ -604,9 +602,9 @@ Select <i>Backup and Restore</i> then <i>Backup GPG key to USB (master keydrive)
604 602
 </p>
605 603
 </div>
606 604
 </div>
607
-<div id="outline-container-orgheadline14" class="outline-3">
608
-<h3 id="orgheadline14">Fragment keydrives</h3>
609
-<div class="outline-text-3" id="text-orgheadline14">
605
+<div id="outline-container-orgheadline16" class="outline-3">
606
+<h3 id="orgheadline16">Fragment keydrives</h3>
607
+<div class="outline-text-3" id="text-orgheadline16">
610 608
 <p>
611 609
 This breaks your GPG key into a number of fragments and randomly selects one to add to the USB drive. First format a USB drive as a LUKS encrypted drive. In Ubuntu this <a href="https://help.ubuntu.com/community/EncryptedFilesystemsOnRemovableStorage">can be done from the <i>Disk Utility</i> application</a>. Plug it into the Freedombone system then from your local machine run the following commands:
612 610
 </p>