浏览代码

get source code via dat

Bob Mottram 7 年前
父节点
当前提交
f3a2772e96
共有 2 个文件被更改,包括 83 次插入11 次删除
  1. 29
    3
      doc/EN/mesh_images.org
  2. 54
    8
      website/EN/mesh_images.html

+ 29
- 3
doc/EN/mesh_images.org 查看文件

141
 First you will need to create an image. On a Debian based system (tested on Debian Stretch):
141
 First you will need to create an image. On a Debian based system (tested on Debian Stretch):
142
 
142
 
143
 #+begin_src bash
143
 #+begin_src bash
144
-sudo apt-get -y install git wget build-essential
145
-wget https://freedombone.net/downloads/v31/freedombone.tar.gz
146
-wget https://freedombone.net/downloads/v31/freedombone.tar.gz.sig
144
+sudo apt-get install xz-utils nodejs
145
+sudo npm install -g dat
146
+#+end_src
147
+
148
+To download images with dat:
149
+
150
+#+begin_src bash
151
+dat clone dat://e9cbf606e55cdaa85199f4e6ec25ff7456775389979a668b3faf33e057493f8e/
152
+cd e9cbf606e55cdaa85199f4e6ec25ff7456775389979a668b3faf33e057493f8e
153
+#+end_src
154
+
155
+Check the signature:
156
+
157
+#+begin_src bash
147
 gpg --verify freedombone.tar.gz.sig
158
 gpg --verify freedombone.tar.gz.sig
159
+#+end_src
160
+
161
+Install it:
162
+
163
+#+begin_src bash
148
 tar -xzvf freedombone.tar.gz
164
 tar -xzvf freedombone.tar.gz
149
 cd freedombone
165
 cd freedombone
150
 git checkout stretch
166
 git checkout stretch
151
 sudo make install
167
 sudo make install
168
+#+end_src
169
+
170
+Setup your build environment. If you're using Arch/Parabola substitute /debian/ for /parabola/.
171
+
172
+#+begin_src bash
152
 freedombone-image --setup debian
173
 freedombone-image --setup debian
174
+#+end_src
175
+
176
+And then build the image:
177
+
178
+#+begin_src bash
153
 freedombone-image -t i386 -v meshclient
179
 freedombone-image -t i386 -v meshclient
154
 #+end_src
180
 #+end_src
155
 
181
 

+ 54
- 8
website/EN/mesh_images.html 查看文件

4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5
 <head>
5
 <head>
6
 <title></title>
6
 <title></title>
7
-<!-- 2018-06-16 Sat 11:38 -->
7
+<!-- 2018-06-16 Sat 12:10 -->
8
 <meta  http-equiv="Content-Type" content="text/html;charset=utf-8" />
8
 <meta  http-equiv="Content-Type" content="text/html;charset=utf-8" />
9
 <meta  name="generator" content="Org-mode" />
9
 <meta  name="generator" content="Org-mode" />
10
 <meta  name="author" content="Bob Mottram" />
10
 <meta  name="author" content="Bob Mottram" />
390
 
390
 
391
 <div class="org-src-container">
391
 <div class="org-src-container">
392
 
392
 
393
-<pre class="src src-bash">sudo apt-get -y install git wget build-essential
394
-wget https://freedombone.net/downloads/v31/freedombone.tar.gz
395
-wget https://freedombone.net/downloads/v31/freedombone.tar.gz.sig
396
-gpg --verify freedombone.tar.gz.sig
397
-tar -xzvf freedombone.tar.gz
393
+<pre class="src src-bash">sudo apt-get install xz-utils nodejs
394
+sudo npm install -g dat
395
+</pre>
396
+</div>
397
+
398
+<p>
399
+To download images with dat:
400
+</p>
401
+
402
+<div class="org-src-container">
403
+
404
+<pre class="src src-bash">dat clone dat://e9cbf606e55cdaa85199f4e6ec25ff7456775389979a668b3faf33e057493f8e/
405
+cd e9cbf606e55cdaa85199f4e6ec25ff7456775389979a668b3faf33e057493f8e
406
+</pre>
407
+</div>
408
+
409
+<p>
410
+Check the signature:
411
+</p>
412
+
413
+<div class="org-src-container">
414
+
415
+<pre class="src src-bash">gpg --verify freedombone.tar.gz.sig
416
+</pre>
417
+</div>
418
+
419
+<p>
420
+Install it:
421
+</p>
422
+
423
+<div class="org-src-container">
424
+
425
+<pre class="src src-bash">tar -xzvf freedombone.tar.gz
398
 cd freedombone
426
 cd freedombone
399
 git checkout stretch
427
 git checkout stretch
400
 sudo make install
428
 sudo make install
401
-freedombone-image --setup debian
402
-freedombone-image -t i386 -v meshclient
429
+</pre>
430
+</div>
431
+
432
+<p>
433
+Setup your build environment. If you're using Arch/Parabola substitute <i>debian</i> for <i>parabola</i>.
434
+</p>
435
+
436
+<div class="org-src-container">
437
+
438
+<pre class="src src-bash">freedombone-image --setup debian
439
+</pre>
440
+</div>
441
+
442
+<p>
443
+And then build the image:
444
+</p>
445
+
446
+<div class="org-src-container">
447
+
448
+<pre class="src src-bash">freedombone-image -t i386 -v meshclient
403
 </pre>
449
 </pre>
404
 </div>
450
 </div>
405
 
451