From 84062a6eb526dbcb0c186d5cbd1e80a3c29b3aa6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 1 Sep 2016 11:32:01 +0100 Subject: [PATCH] Don't rely upon github --- doc/EN/mesh.org | 16 +++++++----- website/EN/mesh.html | 60 +++++++++++++++++++++++--------------------- 2 files changed, 42 insertions(+), 34 deletions(-) diff --git a/doc/EN/mesh.org b/doc/EN/mesh.org index 31e8dbc2..c6656d14 100644 --- a/doc/EN/mesh.org +++ b/doc/EN/mesh.org @@ -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. diff --git a/website/EN/mesh.html b/website/EN/mesh.html index f59738d3..cd4f3cf4 100644 --- a/website/EN/mesh.html +++ b/website/EN/mesh.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + @@ -257,17 +257,17 @@ Mesh networks are useful as a quick way to make a fully decentralised communicat

-
-

Ready made images

-
-
-

Client images

-
+
+

Ready made images

+
+
+

Client images

+

"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).

@@ -308,16 +308,16 @@ sudo dd bs=1M -

Router images

-
+
+

Router images

+

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.

-
-

Beaglebone Black

-
+
+

Beaglebone Black

+
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 dd
 
-
-

To build the disk image yourself

-
+
+

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):

-
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
 
@@ -400,7 +404,7 @@ You can now copy the image to the USB thumb drive, replacing sdX with the
-
dd bs=1M if=myimagefile.img of=/dev/sdX conv=fdatasync
+
sudo dd bs=1M if=myimagefile.img of=/dev/sdX conv=fdatasync
 
@@ -432,9 +436,9 @@ The resulting image can be copied to a microSD card, inserted into a Beaglebone
-
-

How to use it

-
+
+

How to use it

+

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.