Don't rely upon github

This commit is contained in:
Bob Mottram 2016-09-01 11:32:01 +01:00
parent f3b7768a1f
commit 84062a6eb5
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
2 changed files with 42 additions and 34 deletions

View File

@ -73,19 +73,23 @@ If you have a few Beaglebone Blacks to use as routers then repeat the /dd/ comma
* To build the disk image yourself
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.
First you will need to create an image. On a Debian based system:
First you will need to create an image. On a Debian based system (tested on Debian Jessie and Trisquel 7):
#+begin_src bash
sudo su
apt-get -y install build-essential libc6-dev-i386 \
sudo apt-get -y install build-essential libc6-dev-i386 wget \
gcc-multilib g++-multilib git python-docutils mktorrent \
vmdebootstrap xz-utils dosfstools btrfs-tools extlinux \
python-distro-info mbr qemu-user-static binfmt-support \
u-boot-tools qemu
git clone https://github.com/bashrc/freedombone
wget https://freedombone.net/downloads/freedombone-mesh-source.tar.gz
wget https://freedombone.net/downloads/freedombone-mesh-source.tar.gz.sig
gpg --verify freedombone-mesh-source.tar.gz.sig
sha256sum freedombone-mesh-source.tar.gz
912a881e32c2846337f19d60bc4685f745b252858b8bccb5d07d009e67c80c33
tar -xzvf freedombone-mesh-source.tar.gz
cd freedombone
git checkout stockholm
make install
sudo make install
freedombone-image -t i386 -v meshclient
#+end_src
@ -108,7 +112,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 bs=1M if=myimagefile.img of=/dev/sdX conv=fdatasync
sudo dd bs=1M if=myimagefile.img of=/dev/sdX conv=fdatasync
#+end_src
And wait. Again it will take a while to copy over. When that's done plug it into the laptop or netbook which you want to use on the mesh, power on and set the BIOS to boot from the USB stick.

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>
<!-- 2016-09-01 Thu 10:55 -->
<!-- 2016-09-01 Thu 11:31 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title></title>
@ -257,17 +257,17 @@ Mesh networks are useful as a quick way to make a fully decentralised communicat
</p>
<ul class="org-ul">
<li><a href="#org760a031">Ready made images</a></li>
<li><a href="#org800eb33">To build the disk image yourself</a></li>
<li><a href="#org2f93077">How to use it</a></li>
<li><a href="#org58fc760">Ready made images</a></li>
<li><a href="#orgd79f2a2">To build the disk image yourself</a></li>
<li><a href="#org1a1359a">How to use it</a></li>
</ul>
<div id="outline-container-org760a031" class="outline-2">
<h2 id="org760a031">Ready made images</h2>
<div class="outline-text-2" id="text-org760a031">
</div><div id="outline-container-org66c2a01" class="outline-3">
<h3 id="org66c2a01">Client images</h3>
<div class="outline-text-3" id="text-org66c2a01">
<div id="outline-container-org58fc760" class="outline-2">
<h2 id="org58fc760">Ready made images</h2>
<div class="outline-text-2" id="text-org58fc760">
</div><div id="outline-container-org8b67c9e" class="outline-3">
<h3 id="org8b67c9e">Client images</h3>
<div class="outline-text-3" id="text-org8b67c9e">
<p>
"Client" isn't exactly the right term, but it's a mesh peer with a user interface. These images can be copied to a USB drive, then you can plug it into a laptop/netbook/desktop machine and boot from it. You will probably also need an Atheros USB wifi dongle, because most built-in wifi usually requires proprietary firmware. In the commands below substitute /dev/sdX with the USB drive device, excluding any trailing numbers (eg. /dev/sdb).
</p>
@ -308,16 +308,16 @@ sudo dd <span class="org-variable-name">bs</span>=1M <span class="org-variable-n
</div>
</div>
<div id="outline-container-org67334a7" class="outline-3">
<h3 id="org67334a7">Router images</h3>
<div class="outline-text-3" id="text-org67334a7">
<div id="outline-container-orgcde0031" class="outline-3">
<h3 id="orgcde0031">Router images</h3>
<div class="outline-text-3" id="text-orgcde0031">
<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. 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-org6711b0a" class="outline-4">
<h4 id="org6711b0a">Beaglebone Black</h4>
<div class="outline-text-4" id="text-org6711b0a">
<div id="outline-container-org7419bac" class="outline-4">
<h4 id="org7419bac">Beaglebone Black</h4>
<div class="outline-text-4" id="text-org7419bac">
<div class="org-src-container">
<pre class="src src-bash">sudo apt-get install xz-utils wget
@ -339,29 +339,33 @@ If you have a few Beaglebone Blacks to use as routers then repeat the <i>dd</i>
</div>
</div>
<div id="outline-container-org800eb33" class="outline-2">
<h2 id="org800eb33">To build the disk image yourself</h2>
<div class="outline-text-2" id="text-org800eb33">
<div id="outline-container-orgd79f2a2" class="outline-2">
<h2 id="orgd79f2a2">To build the disk image yourself</h2>
<div class="outline-text-2" id="text-orgd79f2a2">
<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>
<p>
First you will need to create an image. On a Debian based system:
First you will need to create an image. On a Debian based system (tested on Debian Jessie and Trisquel 7):
</p>
<div class="org-src-container">
<pre class="src src-bash">sudo su
apt-get -y install build-essential libc6-dev-i386 <span class="org-sh-escaped-newline">\</span>
<pre class="src src-bash">sudo apt-get -y install build-essential libc6-dev-i386 wget <span class="org-sh-escaped-newline">\</span>
gcc-multilib g++-multilib git python-docutils mktorrent <span class="org-sh-escaped-newline">\</span>
vmdebootstrap xz-utils dosfstools btrfs-tools extlinux <span class="org-sh-escaped-newline">\</span>
python-distro-info mbr qemu-user-static binfmt-support <span class="org-sh-escaped-newline">\</span>
u-boot-tools qemu
git clone https://github.com/bashrc/freedombone
wget https://freedombone.net/downloads/freedombone-mesh-source.tar.gz
wget https://freedombone.net/downloads/freedombone-mesh-source.tar.gz.sig
gpg --verify freedombone-mesh-source.tar.gz.sig
sha256sum freedombone-mesh-source.tar.gz
912a881e32c2846337f19d60bc4685f745b252858b8bccb5d07d009e67c80c33
tar -xzvf freedombone-mesh-source.tar.gz
<span class="org-builtin">cd</span> freedombone
git checkout stockholm
make install
sudo make install
freedombone-image -t i386 -v meshclient
</pre>
</div>
@ -400,7 +404,7 @@ You can now copy the image to the USB thumb drive, replacing <b>sdX</b> with the
<div class="org-src-container">
<pre 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 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>
</div>
@ -432,9 +436,9 @@ The resulting image can be copied to a microSD card, inserted into a Beaglebone
</div>
</div>
<div id="outline-container-org2f93077" class="outline-2">
<h2 id="org2f93077">How to use it</h2>
<div class="outline-text-2" id="text-org2f93077">
<div id="outline-container-org1a1359a" class="outline-2">
<h2 id="org1a1359a">How to use it</h2>
<div class="outline-text-2" id="text-org1a1359a">
<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>