Zero initial bytes

This commit is contained in:
Bob Mottram 2017-09-15 22:20:14 +01:00
parent f6810fbba6
commit c44743a509
4 changed files with 61 additions and 53 deletions

View File

@ -74,6 +74,7 @@ Now plug in the USB thumb drive, and do the same again. Notice which drive lette
You can now copy the image to the USB thumb drive, replacing *sdX* with the identifier of the USB thumb drive. Don't include any numbers (so for example use *sdc* instead of *sdc1*).
#+begin_src bash
dd if=/dev/zero of=/dev/sdX bs=1M count=8
dd bs=1M if=myimagefile.img of=/dev/sdX conv=fdatasync
#+end_src

View File

@ -73,6 +73,7 @@ gpg --verify freedombone-meshclient-3_all-i386.img.xz.sig
sha256sum freedombone-meshclient-3_all-i386.img.xz
74f9eaad479f84d3bf9cb002067074d35a97028145e781c5746c74577f777ee5
unxz freedombone-meshclient-3_all-i386.img.xz
sudo dd if=/dev/zero of=/dev/sdX bs=1M count=8
sudo dd bs=1M if=freedombone-meshclient-3_all-i386.img of=/dev/sdX conv=fdatasync
#+end_src
@ -88,6 +89,7 @@ gpg --verify freedombone-meshclient-insecure-3_all-i386.img.xz.sig
sha256sum freedombone-meshclient-insecure-3_all-i386.img.xz
f1c5df24a4bfca47bd5c41dfd2568925e63a1abf83aecf0250480b4b8edc071d
unxz freedombone-meshclient-insecure-3_all-i386.img.xz
sudo dd if=/dev/zero of=/dev/sdX bs=1M count=8
sudo dd bs=1M if=freedombone-meshclient-insecure-3_all-i386.img of=/dev/sdX conv=fdatasync
#+end_src
@ -154,6 +156,7 @@ Now plug in the USB thumb drive, and do the same again. Notice which drive lette
You can now copy the image to the USB thumb drive, replacing *sdX* with the identifier of the USB thumb drive. Don't include any numbers (so for example use *sdc* instead of *sdc1*).
#+begin_src bash
sudo dd if=/dev/zero of=/dev/sdX bs=1M count=8
sudo dd bs=1M if=myimagefile.img of=/dev/sdX conv=fdatasync
#+end_src

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2017-09-12 Tue 10:06 -->
<!-- 2017-09-15 Fri 22:17 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title></title>
@ -340,7 +340,8 @@ You can now copy the image to the USB thumb drive, replacing <b>sdX</b> with the
</p>
<div class="org-src-container">
<pre><code class="src src-bash">dd <span class="org-variable-name">bs</span>=1M <span class="org-variable-name">if</span>=myimagefile.img <span class="org-variable-name">of</span>=/dev/sdX <span class="org-variable-name">conv</span>=fdatasync
<pre><code class="src src-bash">dd <span class="org-variable-name">if</span>=/dev/zero <span class="org-variable-name">of</span>=/dev/sdX <span class="org-variable-name">bs</span>=1M <span class="org-variable-name">count</span>=8
dd <span class="org-variable-name">bs</span>=1M <span class="org-variable-name">if</span>=myimagefile.img <span class="org-variable-name">of</span>=/dev/sdX <span class="org-variable-name">conv</span>=fdatasync
</code></pre>
</div>

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2017-07-04 Tue 10:14 -->
<!-- 2017-09-15 Fri 22:19 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title></title>
@ -274,13 +274,13 @@ for the JavaScript code in this tag.
</colgroup>
<tbody>
<tr>
<td class="org-left"><a href="#org43720c8">What the system can do</a></td>
<td class="org-left"><a href="#orgc6406cc">What the system can do</a></td>
<td class="org-left">-</td>
<td class="org-left"><a href="#orgf236d1b">Disk Images</a></td>
<td class="org-left"><a href="#orgf24c15c">Disk Images</a></td>
<td class="org-left">-</td>
<td class="org-left"><a href="#org3279497">Building Disk Images</a></td>
<td class="org-left"><a href="#org08c02eb">Building Disk Images</a></td>
<td class="org-left">-</td>
<td class="org-left"><a href="#org52b6ecb">How to use it</a></td>
<td class="org-left"><a href="#orgfce6a77">How to use it</a></td>
</tr>
</tbody>
</table>
@ -293,9 +293,9 @@ The Freedombone Mesh is a wireless solution for autonomous communication that ca
Mesh networks are useful as a quick way to make a fully decentralised communications system which is not connected to or reliant upon the internet. Think festivals, hacker conferences, onboard ships at sea, disaster/war zones, small business internal office communications, protests, remote areas of the world, temporary "digital blackouts", scientific expeditions and off-world space colonies. The down side is that you can't access any internet content. The upside is that you can securely communicate with anyone on the local mesh. No ISPs. No payments or subscriptions beyond the cost of obtaining the hardware. Systems need to be within wifi range of each other for the mesh to be created. It can be an ultra-convenient way to do purely local communications.
</p>
<div id="outline-container-org43720c8" class="outline-2">
<h2 id="org43720c8">What the system can do</h2>
<div class="outline-text-2" id="text-org43720c8">
<div id="outline-container-orgc6406cc" class="outline-2">
<h2 id="orgc6406cc">What the system can do</h2>
<div class="outline-text-2" id="text-orgc6406cc">
<ul class="org-ul">
<li>Discovery of other users on the network</li>
<li>Text based chat, one-to-one and in groups</li>
@ -316,13 +316,13 @@ This system should be quite scalable. Both qTox and IPFS are based upon distribu
</div>
</div>
<div id="outline-container-orgf236d1b" class="outline-2">
<h2 id="orgf236d1b">Disk Images</h2>
<div class="outline-text-2" id="text-orgf236d1b">
<div id="outline-container-orgf24c15c" class="outline-2">
<h2 id="orgf24c15c">Disk Images</h2>
<div class="outline-text-2" id="text-orgf24c15c">
</div>
<div id="outline-container-org84d3aa9" class="outline-3">
<h3 id="org84d3aa9">Writing many images quickly</h3>
<div class="outline-text-3" id="text-org84d3aa9">
<div id="outline-container-org88842fc" class="outline-3">
<h3 id="org88842fc">Writing many images quickly</h3>
<div class="outline-text-3" id="text-org88842fc">
<p>
There may be situations where you need to write the same disk image to multiple drives at the same time in order to maximize rate of deployment. In the instructions given below the <b>dd</b> command is used for writing to the target drive, but to write to multiple drives you can use a tool such as <a href="https://wiki.gnome.org/Apps/MultiWriter">GNOME MultiWriter</a>.
</p>
@ -346,9 +346,9 @@ Or on Debian based systems:
</div>
</div>
</div>
<div id="outline-container-orga950e86" class="outline-3">
<h3 id="orga950e86">Client images</h3>
<div class="outline-text-3" id="text-orga950e86">
<div id="outline-container-org4a8b638" class="outline-3">
<h3 id="org4a8b638">Client images</h3>
<div class="outline-text-3" id="text-org4a8b638">
<div class="org-center">
<div class="figure">
@ -369,6 +369,7 @@ gpg --verify freedombone-meshclient-3_all-i386.img.xz.sig
sha256sum freedombone-meshclient-3_all-i386.img.xz
74f9eaad479f84d3bf9cb002067074d35a97028145e781c5746c74577f777ee5
unxz freedombone-meshclient-3_all-i386.img.xz
sudo dd <span class="org-variable-name">if</span>=/dev/zero <span class="org-variable-name">of</span>=/dev/sdX <span class="org-variable-name">bs</span>=1M <span class="org-variable-name">count</span>=8
sudo dd <span class="org-variable-name">bs</span>=1M <span class="org-variable-name">if</span>=freedombone-meshclient-3_all-i386.img <span class="org-variable-name">of</span>=/dev/sdX <span class="org-variable-name">conv</span>=fdatasync
</code></pre>
</div>
@ -389,22 +390,23 @@ gpg --verify freedombone-meshclient-insecure-3_all-i386.img.xz.sig
sha256sum freedombone-meshclient-insecure-3_all-i386.img.xz
f1c5df24a4bfca47bd5c41dfd2568925e63a1abf83aecf0250480b4b8edc071d
unxz freedombone-meshclient-insecure-3_all-i386.img.xz
sudo dd <span class="org-variable-name">if</span>=/dev/zero <span class="org-variable-name">of</span>=/dev/sdX <span class="org-variable-name">bs</span>=1M <span class="org-variable-name">count</span>=8
sudo dd <span class="org-variable-name">bs</span>=1M <span class="org-variable-name">if</span>=freedombone-meshclient-insecure-3_all-i386.img <span class="org-variable-name">of</span>=/dev/sdX <span class="org-variable-name">conv</span>=fdatasync
</code></pre>
</div>
</div>
</div>
<div id="outline-container-org7a83803" class="outline-3">
<h3 id="org7a83803">Router images</h3>
<div class="outline-text-3" id="text-org7a83803">
<div id="outline-container-org519744c" class="outline-3">
<h3 id="org519744c">Router images</h3>
<div class="outline-text-3" id="text-org519744c">
<p>
Routers are intended to build network coverage for an area using small and low cost hardware. You can bolt them to walls or leave them on window ledges. They don't have any user interface and their only job is to haul network traffic across the mesh and to enable peers to find each other via running bootstrap nodes for Tox and IPFS. Copy the image to a microSD card and insert it into the router, plug in an Atheros wifi dongle and power on. That should be all you need to do.
</p>
</div>
<div id="outline-container-orgff96209" class="outline-4">
<h4 id="orgff96209">Beaglebone Black</h4>
<div class="outline-text-4" id="text-orgff96209">
<div id="outline-container-org909807a" class="outline-4">
<h4 id="org909807a">Beaglebone Black</h4>
<div class="outline-text-4" id="text-org909807a">
<div class="org-center">
<div class="figure">
@ -441,9 +443,9 @@ There is still a software freedom issue with the Beaglebone Black, but it doesn'
</div>
</div>
<div id="outline-container-org3279497" class="outline-2">
<h2 id="org3279497">Building Disk Images</h2>
<div class="outline-text-2" id="text-org3279497">
<div id="outline-container-org08c02eb" class="outline-2">
<h2 id="org08c02eb">Building Disk Images</h2>
<div class="outline-text-2" id="text-org08c02eb">
<p>
It's better not to trust images downloaded from random places on the interwebs. Chances are that unless you are in the web of trust of the above GPG signatures then they don't mean very much to you. If you actually want something trustworthy then build the images from scratch. It will take some time. Here's how to do it.
</p>
@ -499,7 +501,8 @@ You can now copy the image to the USB thumb drive, replacing <b>sdX</b> with the
</p>
<div class="org-src-container">
<pre><code class="src src-bash">sudo dd <span class="org-variable-name">bs</span>=1M <span class="org-variable-name">if</span>=myimagefile.img <span class="org-variable-name">of</span>=/dev/sdX <span class="org-variable-name">conv</span>=fdatasync
<pre><code class="src src-bash">sudo dd <span class="org-variable-name">if</span>=/dev/zero <span class="org-variable-name">of</span>=/dev/sdX <span class="org-variable-name">bs</span>=1M <span class="org-variable-name">count</span>=8
sudo dd <span class="org-variable-name">bs</span>=1M <span class="org-variable-name">if</span>=myimagefile.img <span class="org-variable-name">of</span>=/dev/sdX <span class="org-variable-name">conv</span>=fdatasync
</code></pre>
</div>
@ -530,9 +533,9 @@ The resulting image can be copied to a microSD card, inserted into a Beaglebone
</div>
</div>
<div id="outline-container-org8da4b39" class="outline-2">
<h2 id="org8da4b39">Customisation</h2>
<div class="outline-text-2" id="text-org8da4b39">
<div id="outline-container-org0dec35a" class="outline-2">
<h2 id="org0dec35a">Customisation</h2>
<div class="outline-text-2" id="text-org0dec35a">
<p>
If you want to make your own specially branded version, such as for a particular event, then to change the default desktop backgrounds edit the images within <b>img/backgrounds</b> and to change the available avatars and desktop icons edit the images within <b>img/avatars</b>. Re-create disk images using the instructions shown previously.
</p>
@ -542,9 +545,9 @@ If you need particular <i>dconf</i> commands to alter desktop appearance or beha
</p>
</div>
</div>
<div id="outline-container-org52b6ecb" class="outline-2">
<h2 id="org52b6ecb">How to use it</h2>
<div class="outline-text-2" id="text-org52b6ecb">
<div id="outline-container-orgfce6a77" class="outline-2">
<h2 id="orgfce6a77">How to use it</h2>
<div class="outline-text-2" id="text-orgfce6a77">
<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>
@ -554,9 +557,9 @@ After a minute or two if you are within wifi range and there is at least one oth
</p>
</div>
<div id="outline-container-org218c967" class="outline-3">
<h3 id="org218c967">Boot trouble</h3>
<div class="outline-text-3" id="text-org218c967">
<div id="outline-container-org2a6eb8c" class="outline-3">
<h3 id="org2a6eb8c">Boot trouble</h3>
<div class="outline-text-3" id="text-org2a6eb8c">
<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>
@ -566,9 +569,9 @@ After the system has booted successfully the problem should resolve itself on su
</p>
</div>
</div>
<div id="outline-container-org6c9bd07" class="outline-3">
<h3 id="org6c9bd07">Set the Date</h3>
<div class="outline-text-3" id="text-org6c9bd07">
<div id="outline-container-org92cd6d5" class="outline-3">
<h3 id="org92cd6d5">Set the Date</h3>
<div class="outline-text-3" id="text-org92cd6d5">
<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>
@ -578,9 +581,9 @@ On the ordinary internet the date and time of your system would be set automatic
</p>
</div>
</div>
<div id="outline-container-org351f6a2" class="outline-3">
<h3 id="org351f6a2">Check network status</h3>
<div class="outline-text-3" id="text-org351f6a2">
<div id="outline-container-org2aa12f0" class="outline-3">
<h3 id="org2aa12f0">Check network status</h3>
<div class="outline-text-3" id="text-org2aa12f0">
<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>
@ -604,9 +607,9 @@ When you are finished close the window and then select the <i>Network Restart</i
</div>
</div>
<div id="outline-container-org90f8f7b" class="outline-3">
<h3 id="org90f8f7b">Chat System</h3>
<div class="outline-text-3" id="text-org90f8f7b">
<div id="outline-container-org2f1dfa6" class="outline-3">
<h3 id="org2f1dfa6">Chat System</h3>
<div class="outline-text-3" id="text-org2f1dfa6">
<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. 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 copy and paste in a Tox ID from the users list.
</p>
@ -665,9 +668,9 @@ At present video doesn't work reliably, but text and voice chat do work well.
</div>
</div>
<div id="outline-container-orgb0ff834" class="outline-3">
<h3 id="orgb0ff834">Sharing Files</h3>
<div class="outline-text-3" id="text-orgb0ff834">
<div id="outline-container-org75993b2" class="outline-3">
<h3 id="org75993b2">Sharing Files</h3>
<div class="outline-text-3" id="text-org75993b2">
<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>
@ -682,9 +685,9 @@ You can make files publicly available on the network simply by dragging and drop
</div>
</div>
<div id="outline-container-org9f54fb7" class="outline-3">
<h3 id="org9f54fb7">Blogging</h3>
<div class="outline-text-3" id="text-org9f54fb7">
<div id="outline-container-org86cab79" class="outline-3">
<h3 id="org86cab79">Blogging</h3>
<div class="outline-text-3" id="text-org86cab79">
<p>
To create a blog post select the <i>Blog</i> icon on the desktop and then use the up and down cursor keys, space bar and enter key to add a new entry. 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>