From 60c89bc7eb630337089e6ff569459dca6078e697 Mon Sep 17 00:00:00 2001
From: Bob Mottram
Date: Sat, 16 Jun 2018 11:38:29 +0100
Subject: [PATCH] Moving to image distribution via dat
This will scale much better
---
doc/EN/mesh_images.org | 47 +++++++++++++-----------
website/EN/mesh_images.html | 71 ++++++++++++++++++++++---------------
2 files changed, 69 insertions(+), 49 deletions(-)
diff --git a/doc/EN/mesh_images.org b/doc/EN/mesh_images.org
index 7d96ccd3..2d23bc8e 100644
--- a/doc/EN/mesh_images.org
+++ b/doc/EN/mesh_images.org
@@ -38,7 +38,8 @@ The MultiWriter tool is also available within mesh client images, so that you ca
Install some prerequisites:
#+begin_src bash
-sudo apt-get install xz-utils wget
+sudo apt-get install xz-utils nodejs
+sudo npm install -g dat
#+end_src
To download images with dat:
@@ -48,13 +49,6 @@ dat clone dat://e2ed9767d6ab64f4c43a2adbce65af225133fec7ba95737f0a2f6ae292ba358e
cd e2ed9767d6ab64f4c43a2adbce65af225133fec7ba95737f0a2f6ae292ba358e
#+end_src
-Or to download images directly with wget (may be slower):
-
-#+begin_src bash
-wget https://freedombone.net/downloads/v31/freedombone-meshclient-i386.img.xz
-wget https://freedombone.net/downloads/v31/freedombone-meshclient-i386.img.xz.sig
-#+end_src
-
Check the signature:
#+begin_src bash
@@ -76,7 +70,8 @@ If you're in an emergency and don't have Atheros wifi dongles then there is also
Install some prerequisites:
#+begin_src bash
-sudo apt-get install xz-utils wget
+sudo apt-get install xz-utils nodejs
+sudo npm install -g dat
#+end_src
To download images with dat:
@@ -86,13 +81,6 @@ dat clone dat://6d1b73d13b6f9b5c481c6dfd64be6aa58e1cd2d153a6bb04bbc177999ee9925e
cd 6d1b73d13b6f9b5c481c6dfd64be6aa58e1cd2d153a6bb04bbc177999ee9925e
#+end_src
-Or to download images directly with wget (may be slower):
-
-#+begin_src bash
-wget https://freedombone.net/downloads/v31/freedombone-meshclient-insecure-i386.img.xz
-wget https://freedombone.net/downloads/v31/freedombone-meshclient-insecure-i386.img.xz.sig
-#+end_src
-
Check the signature:
#+begin_src bash
@@ -115,12 +103,31 @@ Routers are intended to build network coverage for an area using small and low c
The above picture shows a Beaglebone Black with the image copied onto a microSD card (there's no need to do anything with the internal EMMC). A USB Atheros wifi adaptor with a large antenna is attached and in this case power is from the mains, although it could be from a battery or solar power system capable of supplying 5 volts and maybe 1A (depending upon how active the router is).
+Install some prerequisites:
+
#+begin_src bash
-sudo apt-get install xz-utils wget
-wget https://freedombone.net/downloads/v31/freedombone-mesh_beaglebone-armhf.img.xz
-wget https://freedombone.net/downloads/v31/freedombone-mesh_beaglebone-armhf.img.xz.sig
-gpg --verify freedombone-mesh_beaglebone-armhf.img.xz.sig
+sudo apt-get install xz-utils nodejs
+sudo npm install -g dat
+#+end_src
+
+To download images with dat:
+
+#+begin_src bash
+dat clone dat://a4e79e49c6e77b919d4ae4827037e813ef1ba2734c342d0d78146ce16a819ebb/
+cd a4e79e49c6e77b919d4ae4827037e813ef1ba2734c342d0d78146ce16a819ebb
+#+end_src
+
+Check the signature:
+
+#+begin_src bash
+gpg --verify freedombone-mesh_beaglebone-armhf.img.sig
unxz freedombone-mesh_beaglebone-armhf.img.xz
+#+end_src
+
+Then clone to the microSD drive, where sdX is your device name:
+
+#+begin_src bash
+sudo dd if=/dev/zero of=/dev/sdX bs=32M count=8
sudo dd bs=32M if=freedombone-mesh_beaglebone-armhf.img of=/dev/sdX conv=fdatasync,sync,noerror
#+end_src
diff --git a/website/EN/mesh_images.html b/website/EN/mesh_images.html
index 4a7a4dae..ac777694 100644
--- a/website/EN/mesh_images.html
+++ b/website/EN/mesh_images.html
@@ -4,7 +4,7 @@
-
+
@@ -209,7 +209,8 @@ Install some prerequisites:
-
sudo apt-get install xz-utils wget
+sudo apt-get install xz-utils nodejs
+sudo npm install -g dat
@@ -224,17 +225,6 @@ cd e2ed9767d6ab64f4c43a2adbce65af225133fec7ba95737f0a2f6ae292ba358e
-
-Or to download images directly with wget (may be slower):
-
-
-
-
-
wget https://freedombone.net/downloads/v31/freedombone-meshclient-i386.img.xz
-wget https://freedombone.net/downloads/v31/freedombone-meshclient-i386.img.xz.sig
-
-
-
Check the signature:
@@ -271,7 +261,8 @@ Install some prerequisites:
-
sudo apt-get install xz-utils wget
+sudo apt-get install xz-utils nodejs
+sudo npm install -g dat
@@ -286,17 +277,6 @@ cd 6d1b73d13b6f9b5c481c6dfd64be6aa58e1cd2d153a6bb04bbc177999ee9925e
-
-Or to download images directly with wget (may be slower):
-
-
-
-
-
wget https://freedombone.net/downloads/v31/freedombone-meshclient-insecure-i386.img.xz
-wget https://freedombone.net/downloads/v31/freedombone-meshclient-insecure-i386.img.xz.sig
-
-
-
Check the signature:
@@ -341,13 +321,46 @@ Routers are intended to build network coverage for an area using small and low c
The above picture shows a Beaglebone Black with the image copied onto a microSD card (there's no need to do anything with the internal EMMC). A USB Atheros wifi adaptor with a large antenna is attached and in this case power is from the mains, although it could be from a battery or solar power system capable of supplying 5 volts and maybe 1A (depending upon how active the router is).
+
+Install some prerequisites:
+
+
-
sudo apt-get install xz-utils wget
-wget https://freedombone.net/downloads/v31/freedombone-mesh_beaglebone-armhf.img.xz
-wget https://freedombone.net/downloads/v31/freedombone-mesh_beaglebone-armhf.img.xz.sig
-gpg --verify freedombone-mesh_beaglebone-armhf.img.xz.sig
+sudo apt-get install xz-utils nodejs
+sudo npm install -g dat
+
+
+
+
+To download images with dat:
+
+
+
+
+
dat clone dat://a4e79e49c6e77b919d4ae4827037e813ef1ba2734c342d0d78146ce16a819ebb/
+cd a4e79e49c6e77b919d4ae4827037e813ef1ba2734c342d0d78146ce16a819ebb
+
+
+
+
+Check the signature:
+
+
+
+
+
gpg --verify freedombone-mesh_beaglebone-armhf.img.sig
unxz freedombone-mesh_beaglebone-armhf.img.xz
+
+
+
+
+Then clone to the microSD drive, where sdX is your device name:
+
+
+
+
+
sudo dd if=/dev/zero of=/dev/sdX bs=32M count=8
sudo dd bs=32M if=freedombone-mesh_beaglebone-armhf.img of=/dev/sdX conv=fdatasync,sync,noerror