Explorar el Código

armbian install instructions

Bob Mottram hace 7 años
padre
commit
9145ba6d06
Se han modificado 4 ficheros con 486 adiciones y 2 borrados
  1. 88
    0
      doc/EN/armbian.org
  2. 2
    0
      doc/EN/index.org
  3. 390
    0
      website/EN/armbian.html
  4. 6
    2
      website/EN/index.html

+ 88
- 0
doc/EN/armbian.org Ver fichero

@@ -0,0 +1,88 @@
1
+#+TITLE:
2
+#+AUTHOR: Bob Mottram
3
+#+EMAIL: bob@freedombone.net
4
+#+KEYWORDS: freedombox, debian, armbian
5
+#+DESCRIPTION: Installing Freedombone on Armbian
6
+#+OPTIONS: ^:nil toc:nil
7
+#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="freedombone.css" />
8
+
9
+#+BEGIN_CENTER
10
+[[file:images/logo.png]]
11
+#+END_CENTER
12
+
13
+
14
+#+begin_export html
15
+<center><h1>Installing on Armbian</h1></center>
16
+#+end_export
17
+
18
+If you have a single board ARM computer which isn't one of the supported ones then you can probably still install Freedombone onto it if it has a [[https://www.armbian.com/download/][Debian Stretch Armbian image]] available for it.
19
+
20
+Download the Armbian image for your board. It must be version 9 (Stretch), otherwise it won't work. Extract the image from its archive, then copy it to a microSD card:
21
+
22
+#+begin_src bash
23
+sudo dd if=[Armbian .img file] of=/dev/sdX
24
+#+end_src
25
+
26
+Where */dev/sdX* is the path for the microSD drive on your system.
27
+
28
+When that's done use a tool such as *Gparted* to resize the partition on the microSD card to fill up any remaining available space.
29
+
30
+Insert the microSD drive into your ARM board, connect it to your internet router with an ethernet cable and plug in the power.
31
+
32
+The board should then show up somewhere on your local network. You can log into your internet router to see what devices are connected and obtain the local IP address for the board that way, or use a network scanning tool.
33
+
34
+Once you know the local IP address of your ARM board then you can log into it with:
35
+
36
+#+begin_src bash
37
+ssh root@[local IP address]
38
+#+end_src
39
+
40
+Using the default Armbian password of *1234*. You should see the Armbian welcome message and will be asked to change the password, then create a new user account.
41
+
42
+When the user account is created type *exit* to leave the ssh session then log back in with your new user account.
43
+
44
+#+begin_src bash
45
+ssh myusername@[local IP address]
46
+#+end_src
47
+
48
+Become the root user:
49
+
50
+#+begin_src bash
51
+sudo su
52
+#+end_src
53
+
54
+Then clone the Freedombone repository and checkout the stretch development branch.
55
+
56
+#+begin_src bash
57
+git clone https://github.com/bashrc/freedombone
58
+cd freedombone
59
+git checkout stretch
60
+#+end_src
61
+
62
+Install the Freedombone commands:
63
+
64
+#+begin_src bash
65
+make install
66
+#+end_src
67
+
68
+And now you can begin installing the Freedombone system. There are two ways of doing this. If you already own a domain name which you want to use then run:
69
+
70
+#+begin_src bash
71
+freedombone menuconfig
72
+#+end_src
73
+
74
+Alternatively, if you don't own a domain name, don't have administrator access to your internet router or if you want to be able to access your sites only via onion addresses then run:
75
+
76
+#+begin_src bash
77
+freedombone menuconfig-onion
78
+#+end_src
79
+
80
+You will then be taken through a few questions and the system will install. Afterwards you'll be able to log into your system with:
81
+
82
+#+begin_src bash
83
+ssh myusername@freedombone.local -p 2222
84
+#+end_src
85
+
86
+Then select *Administrator options*. If you chose the first install option using a domain name then go to *Show Firewall* and make sure that the ports shown are forwarded from your internet router to your ARM board.
87
+
88
+You can then [[./apps.html][add or remove apps]] as needed.

+ 2
- 0
doc/EN/index.org Ver fichero

@@ -31,6 +31,8 @@ And here's how [[./beaglebone.html][on a Beaglebone Black]].
31 31
 
32 32
 Or you can install [[./debianinstall.html][onto an existing Debian system]].
33 33
 
34
+If you have a single board ARM computer which isn't one of the officially supported ones, such as Raspberry Pi, then you may still be able to install [[./armbian.html][Freedombone with Armbian]].
35
+
34 36
 Want to make a community mesh network which doesn't depend upon the internet? The [[./mesh.html][Freedombone Mesh]] is a wireless solution for autonomous communication that can be rapidly deployed in temporary, emergency or post-disaster situations where internet access is unavailable or compromised.
35 37
 
36 38
 After installation it's possible that you might want some advice on how to run your system and set up apps to work nicely with it.

+ 390
- 0
website/EN/armbian.html Ver fichero

@@ -0,0 +1,390 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5
+<head>
6
+<!-- 2017-09-20 Wed 19:10 -->
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>&lrm;</title>
10
+<meta name="generator" content="Org mode" />
11
+<meta name="author" content="Bob Mottram" />
12
+<meta name="description" content="Installing Freedombone on Armbian"
13
+ />
14
+<meta name="keywords" content="freedombox, debian, armbian" />
15
+<style type="text/css">
16
+ <!--/*--><![CDATA[/*><!--*/
17
+  .title  { text-align: center;
18
+             margin-bottom: .2em; }
19
+  .subtitle { text-align: center;
20
+              font-size: medium;
21
+              font-weight: bold;
22
+              margin-top:0; }
23
+  .todo   { font-family: monospace; color: red; }
24
+  .done   { font-family: monospace; color: green; }
25
+  .priority { font-family: monospace; color: orange; }
26
+  .tag    { background-color: #eee; font-family: monospace;
27
+            padding: 2px; font-size: 80%; font-weight: normal; }
28
+  .timestamp { color: #bebebe; }
29
+  .timestamp-kwd { color: #5f9ea0; }
30
+  .org-right  { margin-left: auto; margin-right: 0px;  text-align: right; }
31
+  .org-left   { margin-left: 0px;  margin-right: auto; text-align: left; }
32
+  .org-center { margin-left: auto; margin-right: auto; text-align: center; }
33
+  .underline { text-decoration: underline; }
34
+  #postamble p, #preamble p { font-size: 90%; margin: .2em; }
35
+  p.verse { margin-left: 3%; }
36
+  pre {
37
+    border: 1px solid #ccc;
38
+    box-shadow: 3px 3px 3px #eee;
39
+    padding: 8pt;
40
+    font-family: monospace;
41
+    overflow: auto;
42
+    margin: 1.2em;
43
+  }
44
+  pre.src {
45
+    position: relative;
46
+    overflow: visible;
47
+    padding-top: 1.2em;
48
+  }
49
+  pre.src:before {
50
+    display: none;
51
+    position: absolute;
52
+    background-color: white;
53
+    top: -10px;
54
+    right: 10px;
55
+    padding: 3px;
56
+    border: 1px solid black;
57
+  }
58
+  pre.src:hover:before { display: inline;}
59
+  /* Languages per Org manual */
60
+  pre.src-asymptote:before { content: 'Asymptote'; }
61
+  pre.src-awk:before { content: 'Awk'; }
62
+  pre.src-C:before { content: 'C'; }
63
+  /* pre.src-C++ doesn't work in CSS */
64
+  pre.src-clojure:before { content: 'Clojure'; }
65
+  pre.src-css:before { content: 'CSS'; }
66
+  pre.src-D:before { content: 'D'; }
67
+  pre.src-ditaa:before { content: 'ditaa'; }
68
+  pre.src-dot:before { content: 'Graphviz'; }
69
+  pre.src-calc:before { content: 'Emacs Calc'; }
70
+  pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
71
+  pre.src-fortran:before { content: 'Fortran'; }
72
+  pre.src-gnuplot:before { content: 'gnuplot'; }
73
+  pre.src-haskell:before { content: 'Haskell'; }
74
+  pre.src-hledger:before { content: 'hledger'; }
75
+  pre.src-java:before { content: 'Java'; }
76
+  pre.src-js:before { content: 'Javascript'; }
77
+  pre.src-latex:before { content: 'LaTeX'; }
78
+  pre.src-ledger:before { content: 'Ledger'; }
79
+  pre.src-lisp:before { content: 'Lisp'; }
80
+  pre.src-lilypond:before { content: 'Lilypond'; }
81
+  pre.src-lua:before { content: 'Lua'; }
82
+  pre.src-matlab:before { content: 'MATLAB'; }
83
+  pre.src-mscgen:before { content: 'Mscgen'; }
84
+  pre.src-ocaml:before { content: 'Objective Caml'; }
85
+  pre.src-octave:before { content: 'Octave'; }
86
+  pre.src-org:before { content: 'Org mode'; }
87
+  pre.src-oz:before { content: 'OZ'; }
88
+  pre.src-plantuml:before { content: 'Plantuml'; }
89
+  pre.src-processing:before { content: 'Processing.js'; }
90
+  pre.src-python:before { content: 'Python'; }
91
+  pre.src-R:before { content: 'R'; }
92
+  pre.src-ruby:before { content: 'Ruby'; }
93
+  pre.src-sass:before { content: 'Sass'; }
94
+  pre.src-scheme:before { content: 'Scheme'; }
95
+  pre.src-screen:before { content: 'Gnu Screen'; }
96
+  pre.src-sed:before { content: 'Sed'; }
97
+  pre.src-sh:before { content: 'shell'; }
98
+  pre.src-sql:before { content: 'SQL'; }
99
+  pre.src-sqlite:before { content: 'SQLite'; }
100
+  /* additional languages in org.el's org-babel-load-languages alist */
101
+  pre.src-forth:before { content: 'Forth'; }
102
+  pre.src-io:before { content: 'IO'; }
103
+  pre.src-J:before { content: 'J'; }
104
+  pre.src-makefile:before { content: 'Makefile'; }
105
+  pre.src-maxima:before { content: 'Maxima'; }
106
+  pre.src-perl:before { content: 'Perl'; }
107
+  pre.src-picolisp:before { content: 'Pico Lisp'; }
108
+  pre.src-scala:before { content: 'Scala'; }
109
+  pre.src-shell:before { content: 'Shell Script'; }
110
+  pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
111
+  /* additional language identifiers per "defun org-babel-execute"
112
+       in ob-*.el */
113
+  pre.src-cpp:before  { content: 'C++'; }
114
+  pre.src-abc:before  { content: 'ABC'; }
115
+  pre.src-coq:before  { content: 'Coq'; }
116
+  pre.src-groovy:before  { content: 'Groovy'; }
117
+  /* additional language identifiers from org-babel-shell-names in
118
+     ob-shell.el: ob-shell is the only babel language using a lambda to put
119
+     the execution function name together. */
120
+  pre.src-bash:before  { content: 'bash'; }
121
+  pre.src-csh:before  { content: 'csh'; }
122
+  pre.src-ash:before  { content: 'ash'; }
123
+  pre.src-dash:before  { content: 'dash'; }
124
+  pre.src-ksh:before  { content: 'ksh'; }
125
+  pre.src-mksh:before  { content: 'mksh'; }
126
+  pre.src-posh:before  { content: 'posh'; }
127
+  /* Additional Emacs modes also supported by the LaTeX listings package */
128
+  pre.src-ada:before { content: 'Ada'; }
129
+  pre.src-asm:before { content: 'Assembler'; }
130
+  pre.src-caml:before { content: 'Caml'; }
131
+  pre.src-delphi:before { content: 'Delphi'; }
132
+  pre.src-html:before { content: 'HTML'; }
133
+  pre.src-idl:before { content: 'IDL'; }
134
+  pre.src-mercury:before { content: 'Mercury'; }
135
+  pre.src-metapost:before { content: 'MetaPost'; }
136
+  pre.src-modula-2:before { content: 'Modula-2'; }
137
+  pre.src-pascal:before { content: 'Pascal'; }
138
+  pre.src-ps:before { content: 'PostScript'; }
139
+  pre.src-prolog:before { content: 'Prolog'; }
140
+  pre.src-simula:before { content: 'Simula'; }
141
+  pre.src-tcl:before { content: 'tcl'; }
142
+  pre.src-tex:before { content: 'TeX'; }
143
+  pre.src-plain-tex:before { content: 'Plain TeX'; }
144
+  pre.src-verilog:before { content: 'Verilog'; }
145
+  pre.src-vhdl:before { content: 'VHDL'; }
146
+  pre.src-xml:before { content: 'XML'; }
147
+  pre.src-nxml:before { content: 'XML'; }
148
+  /* add a generic configuration mode; LaTeX export needs an additional
149
+     (add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
150
+  pre.src-conf:before { content: 'Configuration File'; }
151
+
152
+  table { border-collapse:collapse; }
153
+  caption.t-above { caption-side: top; }
154
+  caption.t-bottom { caption-side: bottom; }
155
+  td, th { vertical-align:top;  }
156
+  th.org-right  { text-align: center;  }
157
+  th.org-left   { text-align: center;   }
158
+  th.org-center { text-align: center; }
159
+  td.org-right  { text-align: right;  }
160
+  td.org-left   { text-align: left;   }
161
+  td.org-center { text-align: center; }
162
+  dt { font-weight: bold; }
163
+  .footpara { display: inline; }
164
+  .footdef  { margin-bottom: 1em; }
165
+  .figure { padding: 1em; }
166
+  .figure p { text-align: center; }
167
+  .inlinetask {
168
+    padding: 10px;
169
+    border: 2px solid gray;
170
+    margin: 10px;
171
+    background: #ffffcc;
172
+  }
173
+  #org-div-home-and-up
174
+   { text-align: right; font-size: 70%; white-space: nowrap; }
175
+  textarea { overflow-x: auto; }
176
+  .linenr { font-size: smaller }
177
+  .code-highlighted { background-color: #ffff00; }
178
+  .org-info-js_info-navigation { border-style: none; }
179
+  #org-info-js_console-label
180
+    { font-size: 10px; font-weight: bold; white-space: nowrap; }
181
+  .org-info-js_search-highlight
182
+    { background-color: #ffff00; color: #000000; font-weight: bold; }
183
+  .org-svg { width: 90%; }
184
+  /*]]>*/-->
185
+</style>
186
+<link rel="stylesheet" type="text/css" href="freedombone.css" />
187
+<script type="text/javascript">
188
+/*
189
+@licstart  The following is the entire license notice for the
190
+JavaScript code in this tag.
191
+
192
+Copyright (C) 2012-2017 Free Software Foundation, Inc.
193
+
194
+The JavaScript code in this tag is free software: you can
195
+redistribute it and/or modify it under the terms of the GNU
196
+General Public License (GNU GPL) as published by the Free Software
197
+Foundation, either version 3 of the License, or (at your option)
198
+any later version.  The code is distributed WITHOUT ANY WARRANTY;
199
+without even the implied warranty of MERCHANTABILITY or FITNESS
200
+FOR A PARTICULAR PURPOSE.  See the GNU GPL for more details.
201
+
202
+As additional permission under GNU GPL version 3 section 7, you
203
+may distribute non-source (e.g., minimized or compacted) forms of
204
+that code without the copy of the GNU GPL normally required by
205
+section 4, provided you include this license notice and a URL
206
+through which recipients can access the Corresponding Source.
207
+
208
+
209
+@licend  The above is the entire license notice
210
+for the JavaScript code in this tag.
211
+*/
212
+<!--/*--><![CDATA[/*><!--*/
213
+ function CodeHighlightOn(elem, id)
214
+ {
215
+   var target = document.getElementById(id);
216
+   if(null != target) {
217
+     elem.cacheClassElem = elem.className;
218
+     elem.cacheClassTarget = target.className;
219
+     target.className = "code-highlighted";
220
+     elem.className   = "code-highlighted";
221
+   }
222
+ }
223
+ function CodeHighlightOff(elem, id)
224
+ {
225
+   var target = document.getElementById(id);
226
+   if(elem.cacheClassElem)
227
+     elem.className = elem.cacheClassElem;
228
+   if(elem.cacheClassTarget)
229
+     target.className = elem.cacheClassTarget;
230
+ }
231
+/*]]>*///-->
232
+</script>
233
+</head>
234
+<body>
235
+<div id="preamble" class="status">
236
+<a name="top" id="top"></a>
237
+</div>
238
+<div id="content">
239
+<div class="org-center">
240
+
241
+<div class="figure">
242
+<p><img src="images/logo.png" alt="logo.png" />
243
+</p>
244
+</div>
245
+</div>
246
+
247
+
248
+<center><h1>Installing on Armbian</h1></center>
249
+
250
+<p>
251
+If you have a single board ARM computer which isn't one of the supported ones then you can probably still install Freedombone onto it if it has a <a href="https://www.armbian.com/download/">Debian Stretch Armbian image</a> available for it.
252
+</p>
253
+
254
+<p>
255
+Download the Armbian image for your board. It must be version 9 (Stretch), otherwise it won't work. Extract the image from its archive, then copy it to a microSD card:
256
+</p>
257
+
258
+<div class="org-src-container">
259
+<pre class="src src-bash">sudo dd <span class="org-variable-name">if</span>=[Armbian .img file] <span class="org-variable-name">of</span>=/dev/sdX
260
+</pre>
261
+</div>
262
+
263
+<p>
264
+Where <b>/dev/sdX</b> is the path for the microSD drive on your system.
265
+</p>
266
+
267
+<p>
268
+When that's done use a tool such as <b>Gparted</b> to resize the partition on the microSD card to fill up any remaining available space.
269
+</p>
270
+
271
+<p>
272
+Insert the microSD drive into your ARM board, connect it to your internet router with an ethernet cable and plug in the power.
273
+</p>
274
+
275
+<p>
276
+The board should then show up somewhere on your local network. You can log into your internet router to see what devices are connected and obtain the local IP address for the board that way, or use a network scanning tool.
277
+</p>
278
+
279
+<p>
280
+Once you know the local IP address of your ARM board then you can log into it with:
281
+</p>
282
+
283
+<div class="org-src-container">
284
+<pre class="src src-bash">ssh root@[local IP address]
285
+</pre>
286
+</div>
287
+
288
+<p>
289
+Using the default Armbian password of <b>1234</b>. You should see the Armbian welcome message and will be asked to change the password, then create a new user account.
290
+</p>
291
+
292
+<p>
293
+When the user account is created type <b>exit</b> to leave the ssh session then log back in with your new user account.
294
+</p>
295
+
296
+<div class="org-src-container">
297
+<pre class="src src-bash">ssh myusername@[local IP address]
298
+</pre>
299
+</div>
300
+
301
+<p>
302
+Become the root user:
303
+</p>
304
+
305
+<div class="org-src-container">
306
+<pre class="src src-bash">sudo su
307
+</pre>
308
+</div>
309
+
310
+<p>
311
+Then clone the Freedombone repository and checkout the stretch development branch.
312
+</p>
313
+
314
+<div class="org-src-container">
315
+<pre class="src src-bash">git clone https://github.com/bashrc/freedombone
316
+<span class="org-builtin">cd</span> freedombone
317
+git checkout stretch
318
+</pre>
319
+</div>
320
+
321
+<p>
322
+Install the Freedombone commands:
323
+</p>
324
+
325
+<div class="org-src-container">
326
+<pre class="src src-bash">make install
327
+</pre>
328
+</div>
329
+
330
+<p>
331
+And now you can begin installing the Freedombone system. There are two ways of doing this. If you already own a domain name which you want to use then run:
332
+</p>
333
+
334
+<div class="org-src-container">
335
+<pre class="src src-bash">freedombone menuconfig
336
+</pre>
337
+</div>
338
+
339
+<p>
340
+Alternatively, if you don't own a domain name, don't have administrator access to your internet router or if you want to be able to access your sites only via onion addresses then run:
341
+</p>
342
+
343
+<div class="org-src-container">
344
+<pre class="src src-bash">freedombone menuconfig-onion
345
+</pre>
346
+</div>
347
+
348
+<p>
349
+You will then be taken through a few questions and the system will install. Afterwards you'll be able to log into your system with:
350
+</p>
351
+
352
+<div class="org-src-container">
353
+<pre class="src src-bash">ssh myusername@freedombone.local -p 2222
354
+</pre>
355
+</div>
356
+
357
+<p>
358
+Then select <b>Administrator options</b>. If you chose the first install option using a domain name then go to <b>Show Firewall</b> and make sure that the ports shown are forwarded from your internet router to your ARM board.
359
+</p>
360
+
361
+<p>
362
+You can then <a href="./apps.html">add or remove apps</a> as needed.
363
+</p>
364
+</div>
365
+<div id="postamble" class="status">
366
+
367
+<style type="text/css">
368
+.back-to-top {
369
+    position: fixed;
370
+    bottom: 2em;
371
+    right: 0px;
372
+    text-decoration: none;
373
+    color: #000000;
374
+    background-color: rgba(235, 235, 235, 0.80);
375
+    font-size: 12px;
376
+    padding: 1em;
377
+    display: none;
378
+}
379
+
380
+.back-to-top:hover {
381
+    background-color: rgba(135, 135, 135, 0.50);
382
+}
383
+</style>
384
+
385
+<div class="back-to-top">
386
+<a href="#top">Back to top</a> | <a href="mailto:bob@freedombone.net">E-mail me</a>
387
+</div>
388
+</div>
389
+</body>
390
+</html>

+ 6
- 2
website/EN/index.html Ver fichero

@@ -3,10 +3,10 @@
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
-<!-- 2017-07-20 Thu 14:24 -->
6
+<!-- 2017-09-20 Wed 19:14 -->
7 7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8 8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9
-<title></title>
9
+<title>&lrm;</title>
10 10
 <meta name="generator" content="Org mode" />
11 11
 <meta name="author" content="Bob Mottram" />
12 12
 <meta name="description" content="Turn the Beaglebone Black into a personal communications server"
@@ -276,6 +276,10 @@ Or you can install <a href="./debianinstall.html">onto an existing Debian system
276 276
 </p>
277 277
 
278 278
 <p>
279
+If you have a single board ARM computer which isn't one of the officially supported ones, such as Raspberry Pi, then you may still be able to install <a href="./armbian.html">Freedombone with Armbian</a>.
280
+</p>
281
+
282
+<p>
279 283
 Want to make a community mesh network which doesn't depend upon the internet? The <a href="./mesh.html">Freedombone Mesh</a> is a wireless solution for autonomous communication that can be rapidly deployed in temporary, emergency or post-disaster situations where internet access is unavailable or compromised.
280 284
 </p>
281 285