Browse Source

Updating the documentation for menuconfig

Bob Mottram 10 years ago
parent
commit
0a0d530205
5 changed files with 331 additions and 221 deletions
  1. 65
    7
      README.md
  2. 99
    87
      doc/installation.org
  3. BIN
      man/freedombone.1.gz
  4. 1
    1
      src/freedombone-prep
  5. 166
    126
      website/installation.html

+ 65
- 7
README.md View File

@@ -15,8 +15,10 @@ Freedombone has an emphasis on security and privacy, and when installed on a Bea
15 15
 
16 16
 Freedombone is, and shall remain, 100% free software. Non-free repositories are removed automatically upon installation.
17 17
 
18
-Installation
19
-============
18
+Preparation for the Beaglebone Black
19
+====================================
20
+This section is specific to the Beaglebone Black hardware. If you're not using that hardware then just skip to the next section.
21
+
20 22
 To get started you will need:
21 23
 
22 24
  - A Beaglebone Black
@@ -40,12 +42,50 @@ You can either install from a debian package or manually as follows:
40 42
 
41 43
 Plug the microSD card into your laptop/desktop and then run the *freedombone-prep* command. For example:
42 44
 
43
-    freedombone-prep -d /dev/sdX --ip <static LAN IP> --iprouter <router LAN IP>
45
+    freedombone-prep -d /dev/sdX --ip freedombone_IP_address --iprouter router_IP_address
44 46
 
45 47
 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.
46 48
 
47 49
 When the initial setup is done follow the instructions on screen to run the main freedombone command.
48 50
 
51
+Checklist
52
+=========
53
+Before running the freedombone command you will need a few things.
54
+
55
+  * Have some domains, or subdomains, registered with a dynamic DNS service
56
+  * System with a new installation of Debian Jessie
57
+  * Ethernet connection to an internet router
58
+  * It is possible to forward ports from the internet router to the system
59
+  * If you want to set up a social network or microblog then you will need SSL certificates corresponding to those domains
60
+  * Have ssh access to the system
61
+
62
+GPG Keys
63
+========
64
+If you have existing GPG keys then copy the .gnupg directory onto the system.
65
+
66
+    scp -r ~/.gnupg username@freedombone_IP_address:/home/username
67
+
68
+Interactive Setup
69
+=================
70
+The interactive server configuration setup is recommended for most users. On the system where freedombone is to be installed create a configuration file.
71
+
72
+    ssh username@freedombone_IP_address
73
+    su
74
+    apt-get install git
75
+    git clone https://github.com/bashrc/freedombone
76
+    cd freedombone
77
+    make install
78
+
79
+Now the easiest way to install the system is via the interactive setup.
80
+
81
+    freedombone menuconfig
82
+
83
+You can select which variant you wish to install and then enter the details as requested.
84
+
85
+Non-Interactive Setup
86
+=====================
87
+If you don't want to install interactively then it's possible to manually create a configuration file as follows:
88
+
49 89
 On the system where freedombone is to be installed create a configuration file.
50 90
 
51 91
     ssh username@freedombone_IP_address
@@ -96,7 +136,9 @@ The above command should be run in the same directory in which your configuratio
96 136
 
97 137
 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 *freedombone.cfg* file then it should be in the same directory from which the *freedombone* command is run.
98 138
 
99
-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.
139
+Post-Setup
140
+==========
141
+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.
100 142
 
101 143
 When done you can ssh into the Freedombone with:
102 144
 
@@ -104,6 +146,22 @@ When done you can ssh into the Freedombone with:
104 146
 
105 147
 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.
106 148
 
107
-Non-Beaglebone hardware
108
-=======================
109
-It's also possible to install Freedombone onto other hardware. 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 *freedombone.cfg* or do not include the *--bbb* option within the *freedombone* command. Obviously, you don't need to run the *freedombone-prep* command on non-Beaglebone systems.
149
+On your internet router, typically under firewall settings, open the following ports and forward them to your server.
150
+
151
+    | Service |      Ports |
152
+    |---------+------------|
153
+    | HTTP    |         80 |
154
+    | HTTPS   |        443 |
155
+    | SSH     |       2222 |
156
+    | DLNA    |       1900 |
157
+    | DLNA    |       8200 |
158
+    | XMPP    | 5222..5223 |
159
+    | XMPP    |       5269 |
160
+    | XMPP    | 5280..5281 |
161
+    | IRC     |       6697 |
162
+    | IRC     |       9999 |
163
+    | Git     |       9418 |
164
+    | Email   |         25 |
165
+    | Email   |        587 |
166
+    | Email   |        465 |
167
+    | Email   |        993 |

+ 99
- 87
doc/installation.org View File

@@ -7,18 +7,12 @@
7 7
 #+BEGIN_CENTER
8 8
 [[./images/logo.png]]
9 9
 #+END_CENTER
10
-| [[file:index.html][Home]] | [[Download the code]] | [[On a Beaglebone Black]] | [[On a laptop/PC/netbook]] | [[Internet Router]] |
10
+| [[file:index.html][Home]] | [[Preparation for the Beaglebone Black]] | [[Checklist]] | [[GPG Keys]] | [[Interactive Setup]] | [[Non-Interactive Setup]] | [[Post-Setup]] |
11 11
 
12
-* Download and install the code
13
-Firstly you'll need to download the code as follows:
14 12
 
15
-#+BEGIN_SRC bash
16
-sudo apt-get install git
17
-git clone https://github.com/bashrc/freedombone
18
-cd freedombone
19
-make install
20
-#+END_SRC
21
-* On a Beaglebone Black
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
+
22 16
 To get started you will need:
23 17
 
24 18
  - A Beaglebone Black
@@ -27,125 +21,143 @@ To get started you will need:
27 21
  - Optionally a 5V 2A power supply for the Beaglebone Black
28 22
  - Access to the internet via a router with ethernet sockets
29 23
  - USB thumb drive (for backups or storing media)
30
- - One or more subdomains created on https://freedns.afraid.org
24
+ - One or more domains available via a dynamic DNS provider, such as https://freedns.afraid.org
31 25
  - A purchased domain name and SSL certificate (only needed for Red Matrix)
32 26
  - A laptop or desktop machine with the ability to write to a microSD card (might need an adaptor)
33 27
 
34 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).
35 29
 
36
-Plug the microSD card into your laptop/desktop and then run the *freedombone-prep* command. For example:
30
+You can either install from a debian package or manually as follows:
37 31
 
38 32
 #+BEGIN_SRC bash
39
-freedombone-prep -d /dev/sdX --ip <static LAN IP> --iprouter <router LAN IP>
33
+sudo apt-get install git
34
+git clone https://github.com/bashrc/freedombone
35
+cd freedombone
36
+sudo make install
40 37
 #+END_SRC
41 38
 
42
-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.
43
-
44
-When the initial setup is done follow the instructions on screen to run the main Freedombone script. You can create a separate configuration file called *freedombone.cfg* which contains those variables. Variables which you might want to put into a *freedombone.cfg* file are:
39
+Plug the microSD card into your laptop/desktop and then run the *freedombone-prep* command. For example:
45 40
 
46 41
 #+BEGIN_SRC bash
47
-MY_EMAIL_ADDRESS=<your email address>
48
-MY_NAME=<your name/nick/pseudonym>
49
-MY_BLOG_TITLE=<title of your blog>
50
-MY_BLOG_SUBTITLE=<subtitle of your blog>
51
-SSH_PORT=2222
52
-FULLBLOG_DOMAIN_NAME=<freedns subdomain for your blog>
53
-FULLBLOG_FREEDNS_SUBDOMAIN_CODE=<freedns subdomain code for your blog>
54
-MICROBLOG_DOMAIN_NAME=<domain name for your microblog>
55
-MICROBLOG_FREEDNS_SUBDOMAIN_CODE=1234
56
-REDMATRIX_DOMAIN_NAME=<domain name for your Red Matrix site>
57
-OWNCLOUD_DOMAIN_NAME=<freedns subdomain for your Owncloud site>
58
-OWNCLOUD_FREEDNS_SUBDOMAIN_CODE=<freedns subdomain code for your Owncloud site>
59
-WIKI_TITLE=<title of your wiki>
60
-WIKI_DOMAIN_NAME=<freedns subdomain for your wiki>
61
-WIKI_FREEDNS_SUBDOMAIN_CODE=<freedns subdomain code for your wiki>
62
-MY_GPG_PUBLIC_KEY=<exported public key filename>
63
-MY_GPG_PRIVATE_KE=<exported private key filename>
64
-PUBLIC_MAILING_LIST=<name of your mailing list>
65
-LOCAL_NETWORK_STATIC_IP_ADDRESS=192.168.1.60
66
-ROUTER_IP_ADDRESS=192.168.1.254
67
-ENABLE_CJDNS=no
42
+freedombone-prep -d /dev/sdX --ip freedombone_IP_address --iprouter router_IP_address
68 43
 #+END_SRC
69 44
 
70
-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.
45
+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.
46
+
47
+When the initial setup is done follow the instructions on screen to run the main freedombone command.
71 48
 
72
-The [[https://freedns.afraid.org/][FreeDNS]] 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.
49
+* Checklist
50
+Before running the freedombone command you will need a few things.
73 51
 
74
-The syntax of the *freedombone* command is:
52
+  * Have some domains, or subdomains, registered with a dynamic DNS service
53
+  * System with a new installation of Debian Jessie
54
+  * Ethernet connection to an internet router
55
+  * It is possible to forward ports from the internet router to the system
56
+  * If you want to set up a social network or microblog then you will need SSL certificates corresponding to those domains
57
+  * Have ssh access to the system
58
+
59
+* GPG Keys
60
+If you have existing GPG keys then copy the .gnupg directory onto the system.
75 61
 
76 62
 #+BEGIN_SRC bash
77
-freedombone --bbb -d [domain name] -u [username] -c [FreeDNS subdomain code] --ddnsuser [FreeDNS username] --ddnspass [FreeDNS password] -s [optional variant type]
63
+scp -r ~/.gnupg username@freedombone_IP_address:/home/username
78 64
 #+END_SRC
79 65
 
80
-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 *freedombone.cfg* file then it should be in the same directory from which the *freedombone* command is run.
66
+* Interactive Setup
67
+The interactive server configuration setup is recommended for most users. On the system where freedombone is to be installed create a configuration file.
81 68
 
82
-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.
69
+#+BEGIN_SRC bash
70
+ssh username@freedombone_IP_address
71
+su
72
+apt-get install git
73
+git clone https://github.com/bashrc/freedombone
74
+cd freedombone
75
+make install
76
+#+END_SRC
83 77
 
84
-When done you can ssh into the Freedombone with:
78
+Now the easiest way to install the system is via the interactive setup.
85 79
 
86 80
 #+BEGIN_SRC bash
87
-ssh username@domain -p 2222
81
+freedombone menuconfig
88 82
 #+END_SRC
89 83
 
90
-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.
84
+You can select which variant you wish to install and then enter the details as requested.
91 85
 
92
-* On a laptop/PC/netbook
93
-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 *freedombone.cfg* or do not include the *--bbb* option within the *freedombone* command. Obviously, you don't need to run the *freedombone-prep* command on non-Beaglebone systems.
86
+* Non-Interactive Setup
87
+If you don't want to install interactively then it's possible to manually create a configuration file as follows:
88
+
89
+On the system where freedombone is to be installed create a configuration file.
94 90
 
95
- * Download the [[https://www.debian.org/devel/debian-installer][Debian Jessie "netinst" installer]]
96
- * Use [[https://apps.ubuntu.com/cat/applications/usb-creator-gtk/][Startup Disk Creator]] or [[https://en.wikipedia.org/wiki/UNetbootin][Unetbootin]] to copy the netinst image to a USB thumb drive
97
- * 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.
98
- * 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.
99
- * Within the installer unselect the *print server* and select the *ssh server*
100
- * After installation use ssh to access the machine and become the root user
101 91
 #+BEGIN_SRC bash
102
-ssh username@192.168.1.60
92
+ssh username@freedombone_IP_address
103 93
 su
104
-#+END_SRC
105
- * If you have GPG keys you may wish to transfer them to the */home/usernname* 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.
106
- * Run the following commands:
107
-#+BEGIN_SRC bash
108
-cd /home/<username>
109 94
 apt-get install git
110 95
 git clone https://github.com/bashrc/freedombone
111 96
 cd freedombone
112 97
 make install
113
-nano freedombone.cfg
98
+nano /home/username/freedombone/freedombone.cfg
114 99
 #+END_SRC
115 100
 
116
- * Now create a configuration file, such as the following, filling in the details for your [[https://freedns.afraid.org/][FreeDNS subdomains]].
101
+Add the following, and set the values as needed.
102
+
117 103
 #+BEGIN_SRC bash
118
-INSTALLING_ON_BBB=no
119
-MY_EMAIL_ADDRESS=<your email address>
120
-MY_NAME=<your name/nick/pseudonym>
121
-MY_BLOG_TITLE=<title of your blog>
122
-MY_BLOG_SUBTITLE=<subtitle of your blog>
123
-SSH_PORT=2222
124
-FULLBLOG_DOMAIN_NAME=<freedns subdomain for your blog>
125
-FULLBLOG_FREEDNS_SUBDOMAIN_CODE=<freedns subdomain code for your blog>
126
-MICROBLOG_DOMAIN_NAME=<domain name for your microblog>
127
-MICROBLOG_FREEDNS_SUBDOMAIN_CODE=1234
128
-REDMATRIX_DOMAIN_NAME=<domain name for your Red Matrix site>
129
-OWNCLOUD_DOMAIN_NAME=<freedns subdomain for your Owncloud site>
130
-OWNCLOUD_FREEDNS_SUBDOMAIN_CODE=<freedns subdomain code for your Owncloud site>
131
-WIKI_TITLE=<title of your wiki>
132
-WIKI_DOMAIN_NAME=<freedns subdomain for your wiki>
133
-WIKI_FREEDNS_SUBDOMAIN_CODE=<freedns subdomain code for your wiki>
134
-MY_GPG_PUBLIC_KEY=<exported public key filename>
135
-MY_GPG_PRIVATE_KEY=<exported private key filename>
136
-PUBLIC_MAILING_LIST=<name of your mailing list>
137
-LOCAL_NETWORK_STATIC_IP_ADDRESS=192.168.1.60
138
-ROUTER_IP_ADDRESS=192.168.1.254
104
+MY_EMAIL_ADDRESS=
105
+MY_NAME=
106
+MY_BLOG_TITLE=
107
+MY_BLOG_SUBTITLE=
108
+FULLBLOG_DOMAIN_NAME=
109
+MICROBLOG_DOMAIN_NAME=
110
+REDMATRIX_DOMAIN_NAME=
111
+OWNCLOUD_DOMAIN_NAME=
112
+WIKI_DOMAIN_NAME=
113
+WIKI_TITLE=
139 114
 ENABLE_CJDNS=no
115
+LOCAL_NETWORK_STATIC_IP_ADDRESS=
116
+ROUTER_IP_ADDRESS=
117
+#+END_SRC
118
+
119
+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.
120
+
121
+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.
122
+
123
+#+BEGIN_SRC bash
124
+FULLBLOG_FREEDNS_SUBDOMAIN_CODE=
125
+REDMATRIX_FREEDNS_SUBDOMAIN_CODE=
126
+MICROBLOG_FREEDNS_SUBDOMAIN_CODE=
127
+OWNCLOUD_FREEDNS_SUBDOMAIN_CODE=
128
+WIKI_FREEDNS_SUBDOMAIN_CODE=
129
+#+END_SRC
130
+
131
+Save the configuration file and exit from your editor.
132
+
133
+Now you can begin the installation. If you are doing this on a Beaglebone Black:
134
+
135
+#+BEGIN_SRC bash
136
+freedombone --bbb -d [default domain name] -u [username] --ddns [dynamic DNS provider domain] --ddnsuser [dynamic DNS username] --ddnspass [dynamic DNS password]
140 137
 #+END_SRC
141 138
 
142
- * Save and exit, then run:
139
+Or on any other system don't include the *--bbb* option.
140
+
143 141
 #+BEGIN_SRC bash
144
-freedombone -d [your wiki domain name] -u [your username] -c [your wiki FreeDNS domain code] --ddnsuser [FreeDNS username] --ddnspass [FreeDNS password]
142
+freedombone -d [default domain name] -u [username] --ddns [dynamic DNS provider domain] --ddnsuser [dynamic DNS username] --ddnspass [dynamic DNS password]
145 143
 #+END_SRC
146 144
 
147
-* Internet Router
148
-On your internet router, typically under firewall settings, open the following ports and forward them to the Freedombone.
145
+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.
146
+
147
+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 *freedombone.cfg* file then it should be in the same directory from which the *freedombone* command is run.
148
+
149
+* Post-Setup
150
+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.
151
+
152
+When done you can ssh into the Freedombone with:
153
+
154
+#+BEGIN_SRC bash
155
+ssh username@domain -p 2222
156
+#+END_SRC
157
+
158
+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.
159
+
160
+On your internet router, typically under firewall settings, open the following ports and forward them to your server.
149 161
 
150 162
 | Service |      Ports |
151 163
 |---------+------------|

BIN
man/freedombone.1.gz View File


+ 1
- 1
src/freedombone-prep View File

@@ -183,7 +183,7 @@ echo '    cd freedombone'
183 183
 echo ''
184 184
 echo 'Finally you can use the freedombone command to install a server configuration:'
185 185
 echo ''
186
-echo "    freedombone --bbb -d [domain] -u [username] --ip $BBB_FIXED_IP_ADDRESS --iprouter $ROUTER_IP_ADDRESS --ddns [dynamic DNS provider domain] --ddnsuser [dynamic DNS username] --ddnspass [dynamic DNS password]"
186
+echo '    freedombone menuconfig'
187 187
 echo ''
188 188
 echo 'See the manpage for more information on how to use the freedombone command.'
189 189
 exit 0

+ 166
- 126
website/installation.html View File

@@ -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>=&lt;your email address&gt;
256
-<span class="org-variable-name">MY_NAME</span>=&lt;your name/nick/pseudonym&gt;
257
-<span class="org-variable-name">MY_BLOG_TITLE</span>=&lt;title of your blog&gt;
258
-<span class="org-variable-name">MY_BLOG_SUBTITLE</span>=&lt;subtitle of your blog&gt;
259
-<span class="org-variable-name">SSH_PORT</span>=2222
260
-<span class="org-variable-name">FULLBLOG_DOMAIN_NAME</span>=&lt;freedns subdomain for your blog&gt;
261
-<span class="org-variable-name">FULLBLOG_FREEDNS_SUBDOMAIN_CODE</span>=&lt;freedns subdomain code for your blog&gt;
262
-<span class="org-variable-name">MICROBLOG_DOMAIN_NAME</span>=&lt;domain name for your microblog&gt;
263
-<span class="org-variable-name">MICROBLOG_FREEDNS_SUBDOMAIN_CODE</span>=1234
264
-<span class="org-variable-name">REDMATRIX_DOMAIN_NAME</span>=&lt;domain name for your Red Matrix site&gt;
265
-<span class="org-variable-name">OWNCLOUD_DOMAIN_NAME</span>=&lt;freedns subdomain for your Owncloud site&gt;
266
-<span class="org-variable-name">OWNCLOUD_FREEDNS_SUBDOMAIN_CODE</span>=&lt;freedns subdomain code for your Owncloud site&gt;
267
-<span class="org-variable-name">WIKI_TITLE</span>=&lt;title of your wiki&gt;
268
-<span class="org-variable-name">WIKI_DOMAIN_NAME</span>=&lt;freedns subdomain for your wiki&gt;
269
-<span class="org-variable-name">WIKI_FREEDNS_SUBDOMAIN_CODE</span>=&lt;freedns subdomain code for your wiki&gt;
270
-<span class="org-variable-name">MY_GPG_PUBLIC_KEY</span>=&lt;exported public key filename&gt;
271
-<span class="org-variable-name">MY_GPG_PRIVATE_KE</span>=&lt;exported private key filename&gt;
272
-<span class="org-variable-name">PUBLIC_MAILING_LIST</span>=&lt;name of your mailing list&gt;
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 &lt;your wiki domain name&gt; &lt;your username&gt; &lt;your wiki FreeDNS domain code&gt; [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/&lt;username&gt;
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>&#x2013;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>=&lt;your email address&gt;
372
-<span class="org-variable-name">MY_NAME</span>=&lt;your name/nick/pseudonym&gt;
373
-<span class="org-variable-name">MY_BLOG_TITLE</span>=&lt;title of your blog&gt;
374
-<span class="org-variable-name">MY_BLOG_SUBTITLE</span>=&lt;subtitle of your blog&gt;
375
-<span class="org-variable-name">SSH_PORT</span>=2222
376
-<span class="org-variable-name">FULLBLOG_DOMAIN_NAME</span>=&lt;freedns subdomain for your blog&gt;
377
-<span class="org-variable-name">FULLBLOG_FREEDNS_SUBDOMAIN_CODE</span>=&lt;freedns subdomain code for your blog&gt;
378
-<span class="org-variable-name">MICROBLOG_DOMAIN_NAME</span>=&lt;domain name for your microblog&gt;
379
-<span class="org-variable-name">MICROBLOG_FREEDNS_SUBDOMAIN_CODE</span>=1234
380
-<span class="org-variable-name">REDMATRIX_DOMAIN_NAME</span>=&lt;domain name for your Red Matrix site&gt;
381
-<span class="org-variable-name">OWNCLOUD_DOMAIN_NAME</span>=&lt;freedns subdomain for your Owncloud site&gt;
382
-<span class="org-variable-name">OWNCLOUD_FREEDNS_SUBDOMAIN_CODE</span>=&lt;freedns subdomain code for your Owncloud site&gt;
383
-<span class="org-variable-name">WIKI_TITLE</span>=&lt;title of your wiki&gt;
384
-<span class="org-variable-name">WIKI_DOMAIN_NAME</span>=&lt;freedns subdomain for your wiki&gt;
385
-<span class="org-variable-name">WIKI_FREEDNS_SUBDOMAIN_CODE</span>=&lt;freedns subdomain code for your wiki&gt;
386
-<span class="org-variable-name">MY_GPG_PUBLIC_KEY</span>=&lt;exported public key filename&gt;
387
-<span class="org-variable-name">MY_GPG_PRIVATE_KE</span>=&lt;exported private key filename&gt;
388
-<span class="org-variable-name">PUBLIC_MAILING_LIST</span>=&lt;name of your mailing list&gt;
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 &lt;your wiki domain name&gt; &lt;your username&gt; &lt;your wiki FreeDNS domain code&gt;
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">