installation.html 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731
  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. <title></title>
  7. <!-- 2018-06-04 Mon 18:35 -->
  8. <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  9. <meta name="generator" content="Org-mode" />
  10. <meta name="author" content="Bob Mottram" />
  11. <meta name="description" content="Freedombone installation"
  12. />
  13. <meta name="keywords" content="freedombone, installation" />
  14. <style type="text/css">
  15. <!--/*--><![CDATA[/*><!--*/
  16. .title { text-align: center; }
  17. .todo { font-family: monospace; color: red; }
  18. .done { color: green; }
  19. .tag { background-color: #eee; font-family: monospace;
  20. padding: 2px; font-size: 80%; font-weight: normal; }
  21. .timestamp { color: #bebebe; }
  22. .timestamp-kwd { color: #5f9ea0; }
  23. .right { margin-left: auto; margin-right: 0px; text-align: right; }
  24. .left { margin-left: 0px; margin-right: auto; text-align: left; }
  25. .center { margin-left: auto; margin-right: auto; text-align: center; }
  26. .underline { text-decoration: underline; }
  27. #postamble p, #preamble p { font-size: 90%; margin: .2em; }
  28. p.verse { margin-left: 3%; }
  29. pre {
  30. border: 1px solid #ccc;
  31. box-shadow: 3px 3px 3px #eee;
  32. padding: 8pt;
  33. font-family: monospace;
  34. overflow: auto;
  35. margin: 1.2em;
  36. }
  37. pre.src {
  38. position: relative;
  39. overflow: visible;
  40. padding-top: 1.2em;
  41. }
  42. pre.src:before {
  43. display: none;
  44. position: absolute;
  45. background-color: white;
  46. top: -10px;
  47. right: 10px;
  48. padding: 3px;
  49. border: 1px solid black;
  50. }
  51. pre.src:hover:before { display: inline;}
  52. pre.src-sh:before { content: 'sh'; }
  53. pre.src-bash:before { content: 'sh'; }
  54. pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
  55. pre.src-R:before { content: 'R'; }
  56. pre.src-perl:before { content: 'Perl'; }
  57. pre.src-java:before { content: 'Java'; }
  58. pre.src-sql:before { content: 'SQL'; }
  59. table { border-collapse:collapse; }
  60. caption.t-above { caption-side: top; }
  61. caption.t-bottom { caption-side: bottom; }
  62. td, th { vertical-align:top; }
  63. th.right { text-align: center; }
  64. th.left { text-align: center; }
  65. th.center { text-align: center; }
  66. td.right { text-align: right; }
  67. td.left { text-align: left; }
  68. td.center { text-align: center; }
  69. dt { font-weight: bold; }
  70. .footpara:nth-child(2) { display: inline; }
  71. .footpara { display: block; }
  72. .footdef { margin-bottom: 1em; }
  73. .figure { padding: 1em; }
  74. .figure p { text-align: center; }
  75. .inlinetask {
  76. padding: 10px;
  77. border: 2px solid gray;
  78. margin: 10px;
  79. background: #ffffcc;
  80. }
  81. #org-div-home-and-up
  82. { text-align: right; font-size: 70%; white-space: nowrap; }
  83. textarea { overflow-x: auto; }
  84. .linenr { font-size: smaller }
  85. .code-highlighted { background-color: #ffff00; }
  86. .org-info-js_info-navigation { border-style: none; }
  87. #org-info-js_console-label
  88. { font-size: 10px; font-weight: bold; white-space: nowrap; }
  89. .org-info-js_search-highlight
  90. { background-color: #ffff00; color: #000000; font-weight: bold; }
  91. /*]]>*/-->
  92. </style>
  93. <link rel="stylesheet" type="text/css" href="freedombone.css" />
  94. <script type="text/javascript">
  95. /*
  96. @licstart The following is the entire license notice for the
  97. JavaScript code in this tag.
  98. Copyright (C) 2012-2013 Free Software Foundation, Inc.
  99. The JavaScript code in this tag is free software: you can
  100. redistribute it and/or modify it under the terms of the GNU
  101. General Public License (GNU GPL) as published by the Free Software
  102. Foundation, either version 3 of the License, or (at your option)
  103. any later version. The code is distributed WITHOUT ANY WARRANTY;
  104. without even the implied warranty of MERCHANTABILITY or FITNESS
  105. FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
  106. As additional permission under GNU GPL version 3 section 7, you
  107. may distribute non-source (e.g., minimized or compacted) forms of
  108. that code without the copy of the GNU GPL normally required by
  109. section 4, provided you include this license notice and a URL
  110. through which recipients can access the Corresponding Source.
  111. @licend The above is the entire license notice
  112. for the JavaScript code in this tag.
  113. */
  114. <!--/*--><![CDATA[/*><!--*/
  115. function CodeHighlightOn(elem, id)
  116. {
  117. var target = document.getElementById(id);
  118. if(null != target) {
  119. elem.cacheClassElem = elem.className;
  120. elem.cacheClassTarget = target.className;
  121. target.className = "code-highlighted";
  122. elem.className = "code-highlighted";
  123. }
  124. }
  125. function CodeHighlightOff(elem, id)
  126. {
  127. var target = document.getElementById(id);
  128. if(elem.cacheClassElem)
  129. elem.className = elem.cacheClassElem;
  130. if(elem.cacheClassTarget)
  131. target.className = elem.cacheClassTarget;
  132. }
  133. /*]]>*///-->
  134. </script>
  135. </head>
  136. <body>
  137. <div id="preamble" class="status">
  138. <a name="top" id="top"></a>
  139. </div>
  140. <div id="content">
  141. <h1 class="title"></h1>
  142. <div class="figure">
  143. <p><img src="images/logo.png" alt="logo.png" width="80%" height="10%" align="center" />
  144. </p>
  145. </div>
  146. <div id="outline-container-sec-1" class="outline-2">
  147. <h2 id="sec-1">Installation</h2>
  148. <div class="outline-text-2" id="text-1">
  149. <table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
  150. <colgroup>
  151. <col class="left" />
  152. </colgroup>
  153. <tbody>
  154. <tr>
  155. <td class="left"><a href="#sec-2">Building an image for a Single Board Computer or Virtual Machine</a></td>
  156. </tr>
  157. <tr>
  158. <td class="left"><a href="#sec-3">Checklist</a></td>
  159. </tr>
  160. <tr>
  161. <td class="left"><a href="./mesh.html">Mesh network</a></td>
  162. </tr>
  163. <tr>
  164. <td class="left"><a href="#sec-1">Installation</a></td>
  165. </tr>
  166. <tr>
  167. <td class="left"><a href="#sec-5">Social Key Management - the 'Unforgettable Key'</a></td>
  168. </tr>
  169. <tr>
  170. <td class="left"><a href="#sec-6">Final Setup</a></td>
  171. </tr>
  172. <tr>
  173. <td class="left"><a href="#sec-7">Keydrives</a></td>
  174. </tr>
  175. <tr>
  176. <td class="left"><a href="#sec-8">On Client Machines</a></td>
  177. </tr>
  178. <tr>
  179. <td class="left"><a href="#sec-9">Administering the system</a></td>
  180. </tr>
  181. </tbody>
  182. </table>
  183. </div>
  184. </div>
  185. <div id="outline-container-sec-2" class="outline-2">
  186. <h2 id="sec-2">Building an image for a Single Board Computer or Virtual Machine</h2>
  187. <div class="outline-text-2" id="text-2">
  188. <p>
  189. 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.
  190. </p>
  191. <p>
  192. Install the freedombone commands onto your laptop/desktop:
  193. </p>
  194. <div class="org-src-container">
  195. <pre class="src src-bash">sudo apt-get install git build-essential dialog
  196. git clone https://code.freedombone.net/bashrc/freedombone
  197. cd freedombone
  198. git checkout stretch
  199. sudo make install
  200. </pre>
  201. </div>
  202. <p>
  203. Then install packages needed for building images:
  204. </p>
  205. <div class="org-src-container">
  206. <pre class="src src-bash">freedombone-image --setup debian
  207. </pre>
  208. </div>
  209. <p>
  210. or on an Arch/Parabola system:
  211. </p>
  212. <div class="org-src-container">
  213. <pre class="src src-bash">freedombone-image --setup parabola
  214. </pre>
  215. </div>
  216. <p>
  217. 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.
  218. </p>
  219. <div class="org-src-container">
  220. <pre class="src src-bash">freedombone-image -t beaglebone -s 8G
  221. </pre>
  222. </div>
  223. <p>
  224. If you prefer an advanced installation with all of the options available then use:
  225. </p>
  226. <div class="org-src-container">
  227. <pre class="src src-bash">freedombone-image -t beaglebone -s 8G --minimal no
  228. </pre>
  229. </div>
  230. <p>
  231. To build a 64bit Qemu image:
  232. </p>
  233. <div class="org-src-container">
  234. <pre class="src src-bash">freedombone-image -t qemu-x86_64 -s 8G
  235. </pre>
  236. </div>
  237. <p>
  238. Other supported boards are cubieboard2, cubietruck, olinuxino-lime, olinuxino-lime2 and olinuxino-micro.
  239. </p>
  240. <p>
  241. If the image build fails with an error such as "<i>Error reading from server. Remote end closed connection</i>" then you can specify a debian package mirror repository manually with:
  242. </p>
  243. <div class="org-src-container">
  244. <pre class="src src-bash">freedombone-image -t beaglebone -s 8G -m http://ftp.de.debian.org/debian
  245. </pre>
  246. </div>
  247. </div>
  248. </div>
  249. <div id="outline-container-sec-3" class="outline-2">
  250. <h2 id="sec-3">Checklist</h2>
  251. <div class="outline-text-2" id="text-3">
  252. <p>
  253. Before installing Freedombone you will need a few things.
  254. </p>
  255. <ul class="org-ul">
  256. <li>Have some domains, or subdomains, registered with a dynamic DNS service. For the full install you may need two "official" purchased domains or be using a subdomain provider which is supported by Let's Encrypt.
  257. </li>
  258. <li>System with a new installation of Debian Stretch or a downloaded/prepared disk image
  259. </li>
  260. <li>Ethernet connection between the system and your internet router
  261. </li>
  262. <li>That it is possible to forward ports from the internet router to the system, typically via firewall settings
  263. </li>
  264. <li>Have ssh access to the system, typically via fbone@freedombone.local on port 2222
  265. </li>
  266. </ul>
  267. </div>
  268. </div>
  269. <div id="outline-container-sec-4" class="outline-2">
  270. <h2 id="sec-4">Installation</h2>
  271. <div class="outline-text-2" id="text-4">
  272. <p>
  273. There are three install options: Laptop/Desktop/Netbook, SBC and Virtual Machine.
  274. </p>
  275. </div>
  276. <div id="outline-container-sec-4-1" class="outline-3">
  277. <h3 id="sec-4-1">On a Laptop, Netbook or Desktop machine</h3>
  278. <div class="outline-text-3" id="text-4-1">
  279. <p>
  280. 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 Stretch 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:
  281. </p>
  282. <div class="org-src-container">
  283. <pre class="src src-bash">su
  284. apt-get update
  285. apt-get -y install git dialog build-essential
  286. git clone https://code.freedombone.net/bashrc/freedombone
  287. cd freedombone
  288. git checkout stretch
  289. make install
  290. freedombone menuconfig
  291. </pre>
  292. </div>
  293. </div>
  294. </div>
  295. <div id="outline-container-sec-4-2" class="outline-3">
  296. <h3 id="sec-4-2">On a single board computer (SBC)</h3>
  297. <div class="outline-text-3" id="text-4-2">
  298. <p>
  299. Currently the following boards are supported:
  300. </p>
  301. <ul class="org-ul">
  302. <li><a href="https://beagleboard.org/BLACK">Beaglebone Black</a>
  303. </li>
  304. <li><a href="https://linux-sunxi.org/Cubietech_Cubieboard2">Cubieboard 2</a>
  305. </li>
  306. <li><a href="https://linux-sunxi.org/Cubietruck">Cubietruck (Cubieboard 3)</a>
  307. </li>
  308. <li><a href="https://www.sparkfun.com/products/retired/12856">PCDuino3</a>
  309. </li>
  310. <li><a href="https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXIno-LIME/open-source-hardware">olinuxino Lime</a>
  311. </li>
  312. <li><a href="https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXIno-LIME2/open-source-hardware">olinuxino Lime2</a>
  313. </li>
  314. <li><a href="https://www.olimex.com/Products/OlinuXino/A20/A20-OlinuXino-MICRO/open-source-hardware">olinuxino Micro</a>
  315. </li>
  316. </ul>
  317. <p>
  318. 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:
  319. </p>
  320. <div class="org-src-container">
  321. <pre class="src src-bash">gpg --verify filename.img.asc
  322. </pre>
  323. </div>
  324. <p>
  325. And the hash with:
  326. </p>
  327. <div class="org-src-container">
  328. <pre class="src src-bash">sha256sum filename.img
  329. </pre>
  330. </div>
  331. <p>
  332. If the image is compressed then decompress it with:
  333. </p>
  334. <div class="org-src-container">
  335. <pre class="src src-bash">unxz filename.img.xz
  336. </pre>
  337. </div>
  338. <p>
  339. Then copy it to a microSD card. Depending on your system you may need an adaptor to be able to do that.
  340. </p>
  341. <div class="org-src-container">
  342. <pre class="src src-bash">sudo dd bs=32M if=filename.img of=/dev/sdX conv=fdatasync,sync,noerror
  343. </pre>
  344. </div>
  345. <p>
  346. Where <b>sdX</b> is the microSD drive. You can check which drive is the microSD drive using:
  347. </p>
  348. <div class="org-src-container">
  349. <pre class="src src-bash">ls /dev/sd*
  350. </pre>
  351. </div>
  352. <p>
  353. 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.
  354. </p>
  355. <p>
  356. With the board connected and running you can ssh into the system with:
  357. </p>
  358. <div class="org-src-container">
  359. <pre class="src src-bash">ssh fbone@freedombone.local -p 2222
  360. </pre>
  361. </div>
  362. <p>
  363. Using the password 'freedombone'. Take a note of the new login password and then you can proceed through the rest of the installation.
  364. </p>
  365. </div>
  366. </div>
  367. <div id="outline-container-sec-4-3" class="outline-3">
  368. <h3 id="sec-4-3">As a Virtual Machine</h3>
  369. <div class="outline-text-3" id="text-4-3">
  370. <p>
  371. Qemu is currently supported, since it's s fully free software system. You can run a 64 bit Qemu image with:
  372. </p>
  373. <div class="org-src-container">
  374. <pre class="src src-bash">qemu-system-x86_64 -m 1G filename.img
  375. </pre>
  376. </div>
  377. <p>
  378. 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.
  379. </p>
  380. </div>
  381. </div>
  382. </div>
  383. <div id="outline-container-sec-5" class="outline-2">
  384. <h2 id="sec-5">Social Key Management - the 'Unforgettable Key'</h2>
  385. <div class="outline-text-2" id="text-5">
  386. <p>
  387. During the install procedure you will be asked 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
  388. </p>
  389. </div>
  390. <div id="outline-container-sec-5-1" class="outline-3">
  391. <h3 id="sec-5-1">You have the gnupg keyring on an encrypted USB drive</h3>
  392. <div class="outline-text-3" id="text-5-1">
  393. <p>
  394. 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.
  395. </p>
  396. </div>
  397. </div>
  398. <div id="outline-container-sec-5-2" class="outline-3">
  399. <h3 id="sec-5-2">You have a number of key fragments on USB drives retrieved from friends</h3>
  400. <div class="outline-text-3" id="text-5-2">
  401. <p>
  402. 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="#sec-7">Keydrives</a>.
  403. </p>
  404. </div>
  405. </div>
  406. <div id="outline-container-sec-5-3" class="outline-3">
  407. <h3 id="sec-5-3">You can specify some ssh login details for friends servers containing key fragments</h3>
  408. <div class="outline-text-3" id="text-5-3">
  409. <p>
  410. 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.
  411. </p>
  412. </div>
  413. </div>
  414. </div>
  415. <div id="outline-container-sec-6" class="outline-2">
  416. <h2 id="sec-6">Final Setup</h2>
  417. <div class="outline-text-2" id="text-6">
  418. <p>
  419. Any manual post-installation setup instructions or passwords can be found in /home/username/README.
  420. </p>
  421. <p>
  422. On your internet router, typically under firewall settings, open the following ports and forward them to your server.
  423. </p>
  424. <table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
  425. <colgroup>
  426. <col class="left" />
  427. <col class="right" />
  428. </colgroup>
  429. <thead>
  430. <tr>
  431. <th scope="col" class="left">Service</th>
  432. <th scope="col" class="right">Ports</th>
  433. </tr>
  434. </thead>
  435. <tbody>
  436. <tr>
  437. <td class="left">HTTP</td>
  438. <td class="right">80</td>
  439. </tr>
  440. <tr>
  441. <td class="left">HTTPS</td>
  442. <td class="right">443</td>
  443. </tr>
  444. <tr>
  445. <td class="left">SSH</td>
  446. <td class="right">2222</td>
  447. </tr>
  448. <tr>
  449. <td class="left">DLNA</td>
  450. <td class="right">1900</td>
  451. </tr>
  452. <tr>
  453. <td class="left">DLNA</td>
  454. <td class="right">8200</td>
  455. </tr>
  456. <tr>
  457. <td class="left">XMPP</td>
  458. <td class="right">5222..5223</td>
  459. </tr>
  460. <tr>
  461. <td class="left">XMPP</td>
  462. <td class="right">5269</td>
  463. </tr>
  464. <tr>
  465. <td class="left">XMPP</td>
  466. <td class="right">5280..5281</td>
  467. </tr>
  468. <tr>
  469. <td class="left">IRC</td>
  470. <td class="right">6697</td>
  471. </tr>
  472. <tr>
  473. <td class="left">Git</td>
  474. <td class="right">9418</td>
  475. </tr>
  476. <tr>
  477. <td class="left">Email</td>
  478. <td class="right">25</td>
  479. </tr>
  480. <tr>
  481. <td class="left">Email</td>
  482. <td class="right">587</td>
  483. </tr>
  484. <tr>
  485. <td class="left">Email</td>
  486. <td class="right">465</td>
  487. </tr>
  488. <tr>
  489. <td class="left">Email</td>
  490. <td class="right">993</td>
  491. </tr>
  492. <tr>
  493. <td class="left">VoIP</td>
  494. <td class="right">64738</td>
  495. </tr>
  496. <tr>
  497. <td class="left">VoIP</td>
  498. <td class="right">5060</td>
  499. </tr>
  500. <tr>
  501. <td class="left">Tox</td>
  502. <td class="right">33445</td>
  503. </tr>
  504. <tr>
  505. <td class="left">Syncthing</td>
  506. <td class="right">22000</td>
  507. </tr>
  508. </tbody>
  509. </table>
  510. </div>
  511. </div>
  512. <div id="outline-container-sec-7" class="outline-2">
  513. <h2 id="sec-7">Keydrives</h2>
  514. <div class="outline-text-2" id="text-7">
  515. <p>
  516. 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:
  517. </p>
  518. </div>
  519. <div id="outline-container-sec-7-1" class="outline-3">
  520. <h3 id="sec-7-1">Master Keydrive</h3>
  521. <div class="outline-text-3" id="text-7-1">
  522. <p>
  523. 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:
  524. </p>
  525. <div class="org-src-container">
  526. <pre class="src src-bash">ssh myusername@mydomainname -p 2222
  527. </pre>
  528. </div>
  529. <p>
  530. Select <i>Administrator controls</i> then <i>Backup and Restore</i> then <i>Backup GPG key to USB (master keydrive)</i>.
  531. </p>
  532. </div>
  533. </div>
  534. <div id="outline-container-sec-7-2" class="outline-3">
  535. <h3 id="sec-7-2">Fragment keydrives</h3>
  536. <div class="outline-text-3" id="text-7-2">
  537. <p>
  538. 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:
  539. </p>
  540. <div class="org-src-container">
  541. <pre class="src src-bash">ssh myusername@mydomainname -p 2222
  542. </pre>
  543. </div>
  544. <p>
  545. Select <i>Administrator controls</i> then <i>Backup and Restore</i> then <i>Backup GPG key to USB (fragment keydrive)</i>.
  546. </p>
  547. <p>
  548. Fragments are randomly assigned and so you will need at least three or four keydrives to have enough fragments to reconstruct your original key in a worst case scenario. You can store fragments for different Freedombone systems on the same encrypted USB drive, so you can help to ensure that your friends can also recover their systems. This might be called "<i>the web of backups</i>" or "<i>the web of encryption</i>". Since you can only write a single key fragment from your Freedombone system to a given USB drive each friend doesn't have enough information to decrypt your backups or steal your identity, even if they turn evil. This is based on the assumption that it may be difficult to get three or more friends to conspire against you all at once.
  549. </p>
  550. </div>
  551. </div>
  552. </div>
  553. <div id="outline-container-sec-8" class="outline-2">
  554. <h2 id="sec-8">On Client Machines</h2>
  555. <div class="outline-text-2" id="text-8">
  556. <p>
  557. You can configure laptops or desktop machines which connect to the Freedombone server in the following way. This alters encryption settings to improve overall security.
  558. </p>
  559. <div class="org-src-container">
  560. <pre class="src src-bash">sudo apt-get update
  561. sudo apt-get install git dialog haveged build-essential
  562. git clone https://code.freedombone.net/bashrc/freedombone
  563. cd freedombone
  564. git checkout stretch
  565. sudo make install
  566. freedombone-client
  567. </pre>
  568. </div>
  569. </div>
  570. </div>
  571. <div id="outline-container-sec-9" class="outline-2">
  572. <h2 id="sec-9">Administering the system</h2>
  573. <div class="outline-text-2" id="text-9">
  574. <p>
  575. To administer the system after installation log in via ssh, become the root user and then launch the control panel.
  576. </p>
  577. <div class="org-src-container">
  578. <pre class="src src-bash">ssh myusername@freedombone.local -p 2222
  579. </pre>
  580. </div>
  581. <p>
  582. Select <i>Administrator controls</i> then from there you will be able to perform various tasks, such as backups, adding and removing users and so on. You can also do this via commands, which are typically installed as /usr/local/bin/freedombone* and the corresponding manpages.
  583. </p>
  584. <div class="export">
  585. <p>
  586. &lt;center&gt;
  587. Return to the &lt;a href="index.html"&gt;home page&lt;/a&gt;
  588. &lt;/center&gt;
  589. </p>
  590. </div>
  591. </div>
  592. </div>
  593. </div>
  594. <div id="postamble" class="status">
  595. <style type="text/css">
  596. .back-to-top {
  597. position: fixed;
  598. bottom: 2em;
  599. right: 0px;
  600. text-decoration: none;
  601. color: #000000;
  602. background-color: rgba(235, 235, 235, 0.80);
  603. font-size: 12px;
  604. padding: 1em;
  605. display: none;
  606. }
  607. .back-to-top:hover {
  608. background-color: rgba(135, 135, 135, 0.50);
  609. }
  610. </style>
  611. <div class="back-to-top">
  612. <a href="#top">Back to top</a> | <a href="mailto:bob@freedombone.net">E-mail me</a>
  613. </div>
  614. </div>
  615. </body>
  616. </html>