123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556 |
- <?xml version="1.0" encoding="utf-8"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
- <head>
- <title></title>
- <!-- 2018-04-12 Thu 18:25 -->
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
- <meta name="generator" content="Org-mode" />
- <meta name="author" content="Bob Mottram" />
- <meta name="description" content="How to use the Freedombone mesh network"
- />
- <meta name="keywords" content="mesh, network, freedombone" />
- <style type="text/css">
- <!--/*--><![CDATA[/*><!--*/
- .title { text-align: center; }
- .todo { font-family: monospace; color: red; }
- .done { color: green; }
- .tag { background-color: #eee; font-family: monospace;
- padding: 2px; font-size: 80%; font-weight: normal; }
- .timestamp { color: #bebebe; }
- .timestamp-kwd { color: #5f9ea0; }
- .right { margin-left: auto; margin-right: 0px; text-align: right; }
- .left { margin-left: 0px; margin-right: auto; text-align: left; }
- .center { margin-left: auto; margin-right: auto; text-align: center; }
- .underline { text-decoration: underline; }
- #postamble p, #preamble p { font-size: 90%; margin: .2em; }
- p.verse { margin-left: 3%; }
- pre {
- border: 1px solid #ccc;
- box-shadow: 3px 3px 3px #eee;
- padding: 8pt;
- font-family: monospace;
- overflow: auto;
- margin: 1.2em;
- }
- pre.src {
- position: relative;
- overflow: visible;
- padding-top: 1.2em;
- }
- pre.src:before {
- display: none;
- position: absolute;
- background-color: white;
- top: -10px;
- right: 10px;
- padding: 3px;
- border: 1px solid black;
- }
- pre.src:hover:before { display: inline;}
- pre.src-sh:before { content: 'sh'; }
- pre.src-bash:before { content: 'sh'; }
- pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
- pre.src-R:before { content: 'R'; }
- pre.src-perl:before { content: 'Perl'; }
- pre.src-java:before { content: 'Java'; }
- pre.src-sql:before { content: 'SQL'; }
-
- table { border-collapse:collapse; }
- caption.t-above { caption-side: top; }
- caption.t-bottom { caption-side: bottom; }
- td, th { vertical-align:top; }
- th.right { text-align: center; }
- th.left { text-align: center; }
- th.center { text-align: center; }
- td.right { text-align: right; }
- td.left { text-align: left; }
- td.center { text-align: center; }
- dt { font-weight: bold; }
- .footpara:nth-child(2) { display: inline; }
- .footpara { display: block; }
- .footdef { margin-bottom: 1em; }
- .figure { padding: 1em; }
- .figure p { text-align: center; }
- .inlinetask {
- padding: 10px;
- border: 2px solid gray;
- margin: 10px;
- background: #ffffcc;
- }
- #org-div-home-and-up
- { text-align: right; font-size: 70%; white-space: nowrap; }
- textarea { overflow-x: auto; }
- .linenr { font-size: smaller }
- .code-highlighted { background-color: #ffff00; }
- .org-info-js_info-navigation { border-style: none; }
- #org-info-js_console-label
- { font-size: 10px; font-weight: bold; white-space: nowrap; }
- .org-info-js_search-highlight
- { background-color: #ffff00; color: #000000; font-weight: bold; }
- /*]]>*/-->
- </style>
- <link rel="stylesheet" type="text/css" href="freedombone.css" />
- <script type="text/javascript">
- /*
- @licstart The following is the entire license notice for the
- JavaScript code in this tag.
-
- Copyright (C) 2012-2013 Free Software Foundation, Inc.
-
- The JavaScript code in this tag is free software: you can
- redistribute it and/or modify it under the terms of the GNU
- General Public License (GNU GPL) as published by the Free Software
- Foundation, either version 3 of the License, or (at your option)
- any later version. The code is distributed WITHOUT ANY WARRANTY;
- without even the implied warranty of MERCHANTABILITY or FITNESS
- FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
-
- As additional permission under GNU GPL version 3 section 7, you
- may distribute non-source (e.g., minimized or compacted) forms of
- that code without the copy of the GNU GPL normally required by
- section 4, provided you include this license notice and a URL
- through which recipients can access the Corresponding Source.
-
-
- @licend The above is the entire license notice
- for the JavaScript code in this tag.
- */
- <!--/*--><![CDATA[/*><!--*/
- function CodeHighlightOn(elem, id)
- {
- var target = document.getElementById(id);
- if(null != target) {
- elem.cacheClassElem = elem.className;
- elem.cacheClassTarget = target.className;
- target.className = "code-highlighted";
- elem.className = "code-highlighted";
- }
- }
- function CodeHighlightOff(elem, id)
- {
- var target = document.getElementById(id);
- if(elem.cacheClassElem)
- elem.className = elem.cacheClassElem;
- if(elem.cacheClassTarget)
- target.className = elem.cacheClassTarget;
- }
- /*]]>*///-->
- </script>
- </head>
- <body>
- <div id="preamble" class="status">
- <a name="top" id="top"></a>
- </div>
- <div id="content">
- <h1 class="title"></h1>
-
- <div class="figure">
- <p><img src="images/logo.png" alt="logo.png" width="80%" height="10%" align="center" />
- </p>
- </div>
-
- <div id="outline-container-sec-1" class="outline-2">
- <h2 id="sec-1">Mesh Network: How to use it</h2>
- <div class="outline-text-2" id="text-1">
- <ul class="org-ul">
- <li><a href="#sec-2">Boot trouble</a>
- </li>
- <li><a href="#sec-3">Set the Date</a>
- </li>
- <li><a href="#sec-4">Check network status</a>
- </li>
- <li><a href="#sec-5">Connecting to the internet</a>
- </li>
- <li><a href="#sec-6">Connecting two meshes over the internet via a VPN tunnel</a>
- </li>
- <li><a href="#sec-7">Mobile devices (phones, etc)</a>
- </li>
- <li><a href="#sec-8">Chat System</a>
- </li>
- <li><a href="#sec-9">Collaborative document editing</a>
- </li>
- <li><a href="#sec-10">Social Network</a>
- </li>
- <li><a href="#sec-11">Sharing Files</a>
- </li>
- <li><a href="#sec-12">Blogging</a>
- </li>
- </ul>
-
- <p>
- When you first boot from the USB drive the system will create some encryption keys, assign a unique network address to the system and then reboot itself. When that's done you should see a prompt asking for a username. This username just makes it easy for others to initially find you on the mesh and will appear in the list of users.
- </p>
-
-
- <div class="figure">
- <p><img src="images/mesh_initial_login.jpg" alt="mesh_initial_login.jpg" width="100%" align="center" />
- </p>
- </div>
-
-
- <p>
- After a minute or two if you are within wifi range and there is at least one other user on the network then you should see additional icons appear on the desktop, such as <i>Other Users</i> and <i>Chat</i>.
- </p>
- </div>
- </div>
-
- <div id="outline-container-sec-2" class="outline-2">
- <h2 id="sec-2">Boot trouble</h2>
- <div class="outline-text-2" id="text-2">
- <p>
- If the system doesn't boot and reports an error which includes <b>/dev/mapper/loop0p1</b> then reboot with <b>Ctrl-Alt-Del</b> and when you see the grub menu press <b>e</b> and manually change <b>/dev/mapper/loop0p1</b> to <b>/dev/sdb1</b>, then press <b>Ctrl-x</b>. If that doesn't work then reboot and try <b>/dev/sdc1</b> instead.
- </p>
-
- <p>
- After the system has booted successfully the problem should resolve itself on subsequent reboots.
- </p>
- </div>
- </div>
- <div id="outline-container-sec-3" class="outline-2">
- <h2 id="sec-3">Set the Date</h2>
- <div class="outline-text-2" id="text-3">
- <p>
- On the ordinary internet the date and time of your system would be set automatically via NTP. But this is not the internet and so you will need to manually ensure that your date and time settings are correct. You might need to periodically do this if your clock drifts. It's not essential that the time on your system be highly accurate, but if it drifts too far or goes back to epoch then things could become a little confusing in regard to the order of blog posts.
- </p>
-
- <p>
- <b>Right click on the date</b> in the top right corner of the screen. Select <b>preferences</b>, then click the <b>Time Settings</b> button. You can then select the date from the calendar and set the time, then click the <b>Set System Time</b> button. Enter the default password, which is <i>freedombone</i>.
- </p>
- </div>
- </div>
- <div id="outline-container-sec-4" class="outline-2">
- <h2 id="sec-4">Check network status</h2>
- <div class="outline-text-2" id="text-4">
- <p>
- Unlike with ordinary wifi, on the mesh you don't get a signal strength icon and so it's not simple to see if you have a good connection.
- </p>
-
- <p>
- Select the wifi icon on the desktop and enter the password '<i>freedombone</i>'. The network configuration will go into a monitoring mode and in the bottom right side of the window you will be able to see signal strength and other parameters. This can help you to locate systems or adjust antennas to get the best wifi performance.
- </p>
-
-
- <div class="figure">
- <p><img src="images/mesh_signal.jpg" alt="mesh_signal.jpg" width="70%" align="center" />
- </p>
- </div>
-
- <p>
- When you are finished close the window and then select the <i>Network Restart</i> desktop icon, which will restart the B.A.T.M.A.N. network. You can also use the restart icon if you are within range of the mesh network but the <i>Chat</i> and <i>Other Users</i> icons do not automatically appear after a few minutes.
- </p>
- </div>
- </div>
- <div id="outline-container-sec-5" class="outline-2">
- <h2 id="sec-5">Connecting to the internet</h2>
- <div class="outline-text-2" id="text-5">
-
- <div class="figure">
- <p><img src="images/mesh_architecture2.jpg" alt="mesh_architecture2.jpg" width="100%" align="center" />
- </p>
- </div>
-
- <p>
- If you need to be able to access the internet from the mesh then connect one of the peers to an internet router using an ethernet cable (shown as yellow above), then reboot it. Other peers in the mesh, including any attached mobile devices, will then be able to access the internet using the ethernet attached peer as a gateway. <a href="https://en.wikipedia.org/wiki/Freifunk">Freifunk</a> works in a similar way.
- </p>
-
- <p>
- After connecting one peer to the internet you may need to reboot other peers in order to update their network configurations.
- </p>
-
- <p>
- If for legal reasons you need to connect to the internet via a VPN then openvpn is preinstalled and you can run the command:
- </p>
-
- <div class="org-src-container">
-
- <pre class="src src-bash">sudo openvpn myclient.ovpn
- </pre>
- </div>
-
- <p>
- Where <i>myclient.ovpn</i> comes from your VPN provider and with the password "<i>freedombone</i>".
- </p>
- </div>
- </div>
- <div id="outline-container-sec-6" class="outline-2">
- <h2 id="sec-6">Connecting two meshes over the internet via a VPN tunnel</h2>
- <div class="outline-text-2" id="text-6">
-
- <div class="figure">
- <p><img src="images/mesh_architecture_vpn.jpg" alt="mesh_architecture_vpn.jpg" width="100%" align="center" />
- </p>
- </div>
-
- <p>
- Maybe the internet exists, but you don't care about getting any content from it and just want to use it as a way to connect mesh networks from different geographical locations together.
- </p>
-
- <p>
- In your home directory on a system connected via ethernet to an internet router you'll find a file called <b>vpn.tar.gz</b>. If you want another mesh to be able to connect to yours then send them this file and get them to uncompress it into their home directory also on an internet gateway machine. If they have an external IP address or domain name for your router then they will be able to VPN connect using the <b>Connect Meshes</b> icon. They should also forward port 653 from their internet router to the mesh gateway machine.
- </p>
-
-
- <div class="figure">
- <p><img src="images/mesh_connect.png" alt="mesh_connect.png" width="80%" align="center" />
- </p>
- </div>
-
- <p>
- You should create a new <b>vpn.tar.gz</b> file for every other mesh which wants to be able to connect to yours. If you are prompted for a password it is 'freedombone'.
- </p>
-
- <p>
- From a deep packet inspection point of view the traffic going over the internet between mesh gateways will just look like any other TLS connection to a server.
- </p>
- </div>
- </div>
-
- <div id="outline-container-sec-7" class="outline-2">
- <h2 id="sec-7">Mobile devices (phones, etc)</h2>
- <div class="outline-text-2" id="text-7">
-
- <div class="figure">
- <p><img src="images/mesh_architecture3.jpg" alt="mesh_architecture3.jpg" width="100%" align="center" />
- </p>
- </div>
-
- <p>
- To allow mobile devices to connect to the mesh you will need a second wifi adapter connected to your laptop/netbook/SBC. Plug in a second wifi adapter then reboot the system. The second adaptor will then create a wifi hotspot (the connection shown in green above) which mobile devices can connect to. The hotspot name also contains its local IP address (eg. "<i>mesh-192.168.1.83</i>").
- </p>
-
- <p>
- On a typical Android device go to <b>Settings</b> then <b>Security</b> and ensure that <b>Unknown sources</b> is enabled. Also within <b>Wifi</b> from the <b>Settings</b> screen select the mesh hotspot. The password is "<i>freedombone</i>". Open a non-Tor browser and navigate to the IP address showing in the hotspot name. You can then download and install mesh apps.
- </p>
-
-
- <div class="figure">
- <p><img src="images/mesh_mobileapps.jpg" alt="mesh_mobileapps.jpg" width="50%" align="center" />
- </p>
- </div>
-
- <p>
- On some android devices you may need to move the downloaded APK file from the <b>Downloads</b> directory to your <b>home</b> directory before you can install it.
- </p>
- </div>
- </div>
- <div id="outline-container-sec-8" class="outline-2">
- <h2 id="sec-8">Chat System</h2>
- <div class="outline-text-2" id="text-8">
- <p>
- Ensure that you're within wifi range of at least one other mesh peer (could be a router or client) and then you should see that the <i>Chat</i> and <i>Other Users</i> icons appear. Select the users icon and you should see a list of users on the mesh.
- </p>
-
-
- <div class="figure">
- <p><img src="images/mesh_peerslist.png" alt="mesh_peerslist.png" width="50%" align="center" />
- </p>
- </div>
-
- <p>
- Selecting a user followed by the Ok button will copy their Tox ID to the clipboard.
- </p>
-
- <p>
- Now select the <i>Chat</i> icon and once you are connected you should see the status light turn green. If after a few minutes you don't get the green status light then try closing and re-opening the Tox chat application. Select the plus button to add a friend and then paste in a Tox ID.
- </p>
-
-
- <div class="figure">
- <p><img src="images/mesh_paste_tox_id.jpg" alt="mesh_paste_tox_id.jpg" width="80%" align="center" />
- </p>
- </div>
-
- <p>
- The other user can then accept or decline your friend request.
- </p>
-
-
- <div class="figure">
- <p><img src="images/mesh_friend_request.jpg" alt="mesh_friend_request.jpg" width="80%" align="center" />
- </p>
- </div>
-
- <p>
- You can also select an avatar by selecting the grey head and shoulders image.
- </p>
-
-
- <div class="figure">
- <p><img src="images/mesh_choose_avatar.jpg" alt="mesh_choose_avatar.jpg" width="100%" align="center" />
- </p>
- </div>
-
- <p>
- And by selecting the user from the list on the left hand side the chat can begin.
- </p>
-
-
- <div class="figure">
- <p><img src="images/mesh_text_chat.jpg" alt="mesh_text_chat.jpg" width="100%" align="center" />
- </p>
- </div>
-
- <p>
- One important point is that by default the microphone is turned off. When doing voice chat you can select the microphone volume with the drop down slider in the top right corner of the screen.
- </p>
-
- <p>
- At present video doesn't work reliably, but text and voice chat do work well.
- </p>
- </div>
- </div>
-
- <div id="outline-container-sec-9" class="outline-2">
- <h2 id="sec-9">Collaborative document editing</h2>
- <div class="outline-text-2" id="text-9">
- <p>
- The mesh system includes the ability to collaboratively edit various sorts of documents using CryptPad. CryptPad is an almost peer-to-peer system in that it is designed for a client/server environment but that the server aspect of it is very minimal and limited to orchestrating the connected clients. With CryptPad installed on each mesh peer it effectively enables peer-to-peer collaborative editing. Documents are ephemeral and forgotten unless they're exported or copy-pasted to permanent storage.
- </p>
-
-
- <div class="figure">
- <p><img src="images/mesh_cryptpad1.jpg" alt="mesh_cryptpad1.jpg" width="100%" align="center" />
- </p>
- </div>
-
- <p>
- To create a document click on the CryptPad icon. Depending upon the specifications of your system it may take a few seconds to load, so don't be too disturned if the browser contents look blank for a while. Select <span class="underline">Rich Text Pad</span> and give yourself a username.
- </p>
-
-
- <div class="figure">
- <p><img src="images/mesh_cryptpad2.jpg" alt="mesh_cryptpad2.jpg" width="100%" align="center" />
- </p>
- </div>
-
- <p>
- If you have the chat system running you can then copy and paste the URL for your pad into the chat, and the other user can then open the link and edit the document with you. You can repeat that for however many other users you wish to be able to edit.
- </p>
- </div>
- </div>
-
- <div id="outline-container-sec-10" class="outline-2">
- <h2 id="sec-10">Social Network</h2>
- <div class="outline-text-2" id="text-10">
- <p>
- Patchwork is available as a social networking system for the mesh. Like all social network systems it has a stream of posts and you can follow or unfollow other users. You can also send private messages to other users with end-to-end encryption.
- </p>
-
- <p>
- Double click on the "Social" icon to open the app, then add your nickname and optionally a description. If you want to choose an avatar image some can be found within the directory <b>/usr/share/freedombone/avatars</b>. On older systems or systems without a hardware random number generator, Patchwork sometimes takes a long time (a few minutes) to open for the first time after clicking the icon. This is most likely due to the initial generation of encryption keys, so be patient.
- </p>
-
-
- <div class="figure">
- <p><img src="images/patchwork_setup.jpg" alt="patchwork_setup.jpg" width="80%" align="center" />
- </p>
- </div>
-
- <p>
- Other Patchwork users on the mesh will appear automatically under the <b>local</b> list and you can select and follow them if you wish. It's also possible to select the dark theme from <b>settings</b> on the drop down menu if you prefer.
- </p>
-
-
- <div class="figure">
- <p><img src="images/patchwork_public.jpg" alt="patchwork_public.jpg" width="80%" align="center" />
- </p>
- </div>
-
- <p>
- The Secure Scuttlebutt protocol which Patchwork is based upon is intended to be robust to intermittent network connectivity, so you can write posts when out of range and they will sync once you are back in the network.
- </p>
- </div>
- </div>
-
- <div id="outline-container-sec-11" class="outline-2">
- <h2 id="sec-11">Sharing Files</h2>
- <div class="outline-text-2" id="text-11">
- <p>
- You can make files publicly available on the network simply by dragging and dropping them into the <i>Public</i> folder on the desktop. To view the files belonging to another user select the desktop icon called <i>Visit a site</i> and enter the username or Tox ID of the other user.
- </p>
-
-
- <div class="figure">
- <p><img src="images/mesh_share_files.jpg" alt="mesh_share_files.jpg" width="80%" align="center" />
- </p>
- </div>
- </div>
- </div>
-
- <div id="outline-container-sec-12" class="outline-2">
- <h2 id="sec-12">Blogging</h2>
- <div class="outline-text-2" id="text-12">
- <p>
- To create a blog post select the <i>Blog</i> icon on the desktop and then select <b>New blog entry</b> and <b>Ok</b>. Edit the title of the entry and add your text. You can also include photos if you wish - just copy them to the <b>CreateBlog/content/images</b> directory and then link to them as shown.
- </p>
-
-
- <div class="figure">
- <p><img src="images/mesh_blog.png" alt="mesh_blog.png" width="50%" align="center" />
- </p>
- </div>
-
- <p>
- To finish your blog entry just select <i>Save</i> and then close the editor. On older hardware it may take a while to publish the results, and this depends upon the amount of computation needed by IPFS to create file hashes. If you make no changes to the default text then the new blog entry will not be saved.
- </p>
-
-
- <div class="figure">
- <p><img src="images/mesh_new_blog2.jpg" alt="mesh_new_blog2.jpg" width="80%" align="center" />
- </p>
- </div>
-
-
-
- <div class="figure">
- <p><img src="images/mesh_view_blog.jpg" alt="mesh_view_blog.jpg" width="80%" align="center" />
- </p>
- </div>
-
- <p>
- You can also visit other blogs, edit or delete your previous entry and change your blog theme.
- </p>
-
-
- <div class="figure">
- <p><img src="images/mesh_select_blog_theme.png" alt="mesh_select_blog_theme.png" width="80%" align="center" />
- </p>
- </div>
-
-
-
- <div class="figure">
- <p><a href="fdl-1.3.txt" width="10%" height="2%" align="center"><img src="images/gfdl.png" alt="gfdl.png" width="10%" height="2%" align="center" /></a>
- </p>
- </div>
- </div>
- </div>
- </div>
- <div id="postamble" class="status">
-
- <style type="text/css">
- .back-to-top {
- position: fixed;
- bottom: 2em;
- right: 0px;
- text-decoration: none;
- color: #000000;
- background-color: rgba(235, 235, 235, 0.80);
- font-size: 12px;
- padding: 1em;
- display: none;
- }
-
- .back-to-top:hover {
- background-color: rgba(135, 135, 135, 0.50);
- }
- </style>
-
- <div class="back-to-top">
- <a href="#top">Back to top</a> | <a href="mailto:bob@freedombone.net">E-mail me</a>
- </div>
- </div>
- </body>
- </html>
|