ソースを参照

get source code via dat

Bob Mottram 6 年 前
コミット
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,15 +141,41 @@ It's better not to trust images downloaded from random places on the interwebs.
141 141
 First you will need to create an image. On a Debian based system (tested on Debian Stretch):
142 142
 
143 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 158
 gpg --verify freedombone.tar.gz.sig
159
+#+end_src
160
+
161
+Install it:
162
+
163
+#+begin_src bash
148 164
 tar -xzvf freedombone.tar.gz
149 165
 cd freedombone
150 166
 git checkout stretch
151 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 173
 freedombone-image --setup debian
174
+#+end_src
175
+
176
+And then build the image:
177
+
178
+#+begin_src bash
153 179
 freedombone-image -t i386 -v meshclient
154 180
 #+end_src
155 181
 

+ 54
- 8
website/EN/mesh_images.html ファイルの表示

@@ -4,7 +4,7 @@
4 4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5 5
 <head>
6 6
 <title></title>
7
-<!-- 2018-06-16 Sat 11:38 -->
7
+<!-- 2018-06-16 Sat 12:10 -->
8 8
 <meta  http-equiv="Content-Type" content="text/html;charset=utf-8" />
9 9
 <meta  name="generator" content="Org-mode" />
10 10
 <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
390 390
 
391 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 426
 cd freedombone
399 427
 git checkout stretch
400 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 449
 </pre>
404 450
 </div>
405 451