get source code via dat

This commit is contained in:
Bob Mottram 2018-06-16 12:11:12 +01:00
parent 60c89bc7eb
commit f3a2772e96
2 changed files with 83 additions and 11 deletions

View File

@ -141,15 +141,41 @@ It's better not to trust images downloaded from random places on the interwebs.
First you will need to create an image. On a Debian based system (tested on Debian Stretch):
#+begin_src bash
sudo apt-get -y install git wget build-essential
wget https://freedombone.net/downloads/v31/freedombone.tar.gz
wget https://freedombone.net/downloads/v31/freedombone.tar.gz.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://e9cbf606e55cdaa85199f4e6ec25ff7456775389979a668b3faf33e057493f8e/
cd e9cbf606e55cdaa85199f4e6ec25ff7456775389979a668b3faf33e057493f8e
#+end_src
Check the signature:
#+begin_src bash
gpg --verify freedombone.tar.gz.sig
#+end_src
Install it:
#+begin_src bash
tar -xzvf freedombone.tar.gz
cd freedombone
git checkout stretch
sudo make install
#+end_src
Setup your build environment. If you're using Arch/Parabola substitute /debian/ for /parabola/.
#+begin_src bash
freedombone-image --setup debian
#+end_src
And then build the image:
#+begin_src bash
freedombone-image -t i386 -v meshclient
#+end_src

View File

@ -4,7 +4,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title></title>
<!-- 2018-06-16 Sat 11:38 -->
<!-- 2018-06-16 Sat 12:10 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="generator" content="Org-mode" />
<meta name="author" content="Bob Mottram" />
@ -390,16 +390,62 @@ First you will need to create an image. On a Debian based system (tested on Debi
<div class="org-src-container">
<pre class="src src-bash">sudo apt-get -y install git wget build-essential
wget https://freedombone.net/downloads/v31/freedombone.tar.gz
wget https://freedombone.net/downloads/v31/freedombone.tar.gz.sig
gpg --verify freedombone.tar.gz.sig
tar -xzvf freedombone.tar.gz
<pre class="src src-bash">sudo apt-get install xz-utils nodejs
sudo npm install -g dat
</pre>
</div>
<p>
To download images with dat:
</p>
<div class="org-src-container">
<pre class="src src-bash">dat clone dat://e9cbf606e55cdaa85199f4e6ec25ff7456775389979a668b3faf33e057493f8e/
cd e9cbf606e55cdaa85199f4e6ec25ff7456775389979a668b3faf33e057493f8e
</pre>
</div>
<p>
Check the signature:
</p>
<div class="org-src-container">
<pre class="src src-bash">gpg --verify freedombone.tar.gz.sig
</pre>
</div>
<p>
Install it:
</p>
<div class="org-src-container">
<pre class="src src-bash">tar -xzvf freedombone.tar.gz
cd freedombone
git checkout stretch
sudo make install
freedombone-image --setup debian
freedombone-image -t i386 -v meshclient
</pre>
</div>
<p>
Setup your build environment. If you're using Arch/Parabola substitute <i>debian</i> for <i>parabola</i>.
</p>
<div class="org-src-container">
<pre class="src src-bash">freedombone-image --setup debian
</pre>
</div>
<p>
And then build the image:
</p>
<div class="org-src-container">
<pre class="src src-bash">freedombone-image -t i386 -v meshclient
</pre>
</div>