diff options
Diffstat (limited to 'template/install-on-archpi.html.j2')
-rw-r--r-- | template/install-on-archpi.html.j2 | 246 |
1 files changed, 124 insertions, 122 deletions
diff --git a/template/install-on-archpi.html.j2 b/template/install-on-archpi.html.j2 index 8d467074..fccf46e3 100644 --- a/template/install-on-archpi.html.j2 +++ b/template/install-on-archpi.html.j2 | |||
@@ -1,128 +1,130 @@ | |||
1 | {% extends "common/base.j2" %} | 1 | {% extends "common/base.j2" %} |
2 | {% block body_content %} | 2 | {% block body_content %} |
3 | <div class="container"> | 3 | <article class="container"> |
4 | 4 | ||
5 | <h2>{{ _("Tutorial: GNUnet on Archlinux/Pi") }}</h2> | 5 | <header> |
6 | 6 | <h1>{{ _("Tutorial: GNUnet on Archlinux/Pi") }}</h1> | |
7 | Welcome to this GNUnet tutorial for Archlinux on a Raspberry Pi 3. If you want | 7 | </header> |
8 | to run a GNUnet node on a separte system, permanently online, with low energy | 8 | |
9 | consumption, this might be the thing for you. This tutorial shows you how to | 9 | |
10 | install, run, and operate it. | 10 | Welcome to this GNUnet tutorial for Archlinux on a Raspberry Pi 3. If you want |
11 | 11 | to run a GNUnet node on a separte system, permanently online, with low energy | |
12 | <h3>{{ _("Requirements") }}</h3> | 12 | consumption, this might be the thing for you. This tutorial shows you how to |
13 | 13 | install, run, and operate it. | |
14 | <p>First you need the hardware. This tutorial works with a Raspberry Pi 3. The | 14 | |
15 | other Pi versions I haven't tested, but they should probably work, too. To | 15 | <h2>{{ _("Requirements") }}</h2> |
16 | install Archlinux on the Pi3, follow the instructions from <a | 16 | |
17 | href="https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3">archlinuxarm.org</a>.</p> | 17 | <p>First you need the hardware. This tutorial works with a Raspberry Pi 3. The |
18 | 18 | other Pi versions I haven't tested, but they should probably work, too. To | |
19 | <p>That was easy, right? Our goal now is to build GNUnet from source. So, let's | 19 | install Archlinux on the Pi3, follow the instructions from <a |
20 | install the tools for building new software.</p> | 20 | href="https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3">archlinuxarm.org</a>.</p> |
21 | 21 | ||
22 | <p><code> | 22 | <p>That was easy, right? Our goal now is to build GNUnet from source. So, let's |
23 | > sudo pacman -S base-devel | 23 | install the tools for building new software.</p> |
24 | </code></p> | 24 | |
25 | 25 | <p><code> | |
26 | <p>Now we can continue to install the following Archlinux dependencies to | 26 | > sudo pacman -S base-devel |
27 | compile GNUnet on our Pi.</p> | 27 | </code></p> |
28 | 28 | ||
29 | <p><code> | 29 | <p>Now we can continue to install the following Archlinux dependencies to |
30 | $ pacman -Su libmicrohttpd libgcrypt gnurl libunistring gnutls libidn | 30 | compile GNUnet on our Pi.</p> |
31 | libextractor openssl libltdl sqlite texinfo which gettext zlib | 31 | |
32 | pkg-config git miniupnpc libextractor jansson nim | 32 | <p><code> |
33 | </code></p> | 33 | $ pacman -Su libmicrohttpd libgcrypt gnurl libunistring gnutls libidn |
34 | 34 | libextractor openssl libltdl sqlite texinfo which gettext zlib | |
35 | <h3>{{ _("Get the Source Code") }}</h3> | 35 | pkg-config git miniupnpc libextractor jansson nim |
36 | 36 | </code></p> | |
37 | <p>We are getting closer. Download the GNUnet source code which we will build | 37 | |
38 | in the next step:<p> | 38 | <h2>{{ _("Get the Source Code") }}</h2> |
39 | 39 | ||
40 | <p><code> | 40 | <p>We are getting closer. Download the GNUnet source code which we will build |
41 | > git clone https://gnunet.org/git/gnunet.git<br> | 41 | in the next step:<p> |
42 | </code></p> | 42 | |
43 | 43 | <p><code> | |
44 | <p>Now it's time to compile GNUnet.</p> | 44 | > git clone https://gnunet.org/git/gnunet.git<br> |
45 | 45 | </code></p> | |
46 | <p><code> | 46 | |
47 | > cd gnunet<br> | 47 | <p>Now it's time to compile GNUnet.</p> |
48 | > ./bootstrap # Run this to generate the configure files.<br> | 48 | |
49 | > ./configure # Use --help to see the various flags available to you.<br> | 49 | <p><code> |
50 | > make -j$(nproc || echo -n 1)<br> | 50 | > cd gnunet<br> |
51 | > sudo make install<br> | 51 | > ./bootstrap # Run this to generate the configure files.<br> |
52 | </code></p> | 52 | > ./configure # Use --help to see the various flags available to you.<br> |
53 | 53 | > make -j$(nproc || echo -n 1)<br> | |
54 | <p>Congrats! GNUnet is now installed!</p> | 54 | > sudo make install<br> |
55 | 55 | </code></p> | |
56 | <h3>{{ _("Run") }}</h3> | 56 | |
57 | 57 | <p>Congrats! GNUnet is now installed!</p> | |
58 | <p>By default GNUnet looks in our home directory for the file | 58 | |
59 | ~/.config/gnunet.conf. We can start with an empty file for now:</p> | 59 | <h2>{{ _("Run") }}</h2> |
60 | 60 | ||
61 | <p><code> | 61 | <p>By default GNUnet looks in our home directory for the file |
62 | > touch ~/.config/gnunet.conf | 62 | ~/.config/gnunet.conf. We can start with an empty file for now:</p> |
63 | </code></p> | 63 | |
64 | <br /> | 64 | <p><code> |
65 | <p> | 65 | > touch ~/.config/gnunet.conf |
66 | It's reccomended that you increase your bandwidth restrictions | 66 | </code></p> |
67 | from the acutely low defaults. The example below sets the WAN | 67 | <br /> |
68 | and LAN limits to the value "unlimited". | 68 | <p> |
69 | </p> | 69 | It's reccomended that you increase your bandwidth restrictions |
70 | <br /> | 70 | from the acutely low defaults. The example below sets the WAN |
71 | <code> | 71 | and LAN limits to the value "unlimited". |
72 | $ gnunet-config -s ats -o WAN_QUOTA_IN -V unlimited<br /> | 72 | </p> |
73 | $ gnunet-config -s ats -o WAN_QUOTA_OUT -V unlimited<br /> | 73 | <br /> |
74 | $ gnunet-config -s ats -o LAN_QUOTA_IN -V unlimited<br /> | 74 | <code> |
75 | $ gnunet-config -s ats -o LAN_QUOTA_OUT -V unlimited<br /> | 75 | $ gnunet-config -s ats -o WAN_QUOTA_IN -V unlimited<br /> |
76 | </code> | 76 | $ gnunet-config -s ats -o WAN_QUOTA_OUT -V unlimited<br /> |
77 | <br /> | 77 | $ gnunet-config -s ats -o LAN_QUOTA_IN -V unlimited<br /> |
78 | <p>Now we can start it with the commandline tool gnunet-arm (Automatic Restart | 78 | $ gnunet-config -s ats -o LAN_QUOTA_OUT -V unlimited<br /> |
79 | Manager).</p> | 79 | </code> |
80 | 80 | <br /> | |
81 | <p><code> | 81 | <p>Now we can start it with the commandline tool gnunet-arm (Automatic Restart |
82 | > gnunet-arm -s | 82 | Manager).</p> |
83 | </code></p> | 83 | |
84 | 84 | <p><code> | |
85 | <p>It starts the default GNUnet services. We can list them with the -I option:</p> | 85 | > gnunet-arm -s |
86 | 86 | </code></p> | |
87 | <p><code> | 87 | |
88 | > gnunet-arm -I<br> | 88 | <p>It starts the default GNUnet services. We can list them with the -I option:</p> |
89 | Running services:<br> | 89 | |
90 | ats (gnunet-service-ats)<br> | 90 | <p><code> |
91 | revocation (gnunet-service-revocation)<br> | 91 | > gnunet-arm -I<br> |
92 | set (gnunet-service-set)<br> | 92 | Running services:<br> |
93 | nat (gnunet-service-nat)<br> | 93 | ats (gnunet-service-ats)<br> |
94 | transport (gnunet-service-transport)<br> | 94 | revocation (gnunet-service-revocation)<br> |
95 | peerstore (gnunet-service-peerstore)<br> | 95 | set (gnunet-service-set)<br> |
96 | hostlist (gnunet-daemon-hostlist)<br> | 96 | nat (gnunet-service-nat)<br> |
97 | identity (gnunet-service-identity)<br> | 97 | transport (gnunet-service-transport)<br> |
98 | namecache (gnunet-service-namecache)<br> | 98 | peerstore (gnunet-service-peerstore)<br> |
99 | peerinfo (gnunet-service-peerinfo)<br> | 99 | hostlist (gnunet-daemon-hostlist)<br> |
100 | datastore (gnunet-service-datastore)<br> | 100 | identity (gnunet-service-identity)<br> |
101 | zonemaster (gnunet-service-zonemaster)<br> | 101 | namecache (gnunet-service-namecache)<br> |
102 | zonemaster-monitor (gnunet-service-zonemaster-monitor)<br> | 102 | peerinfo (gnunet-service-peerinfo)<br> |
103 | nse (gnunet-service-nse)<br> | 103 | datastore (gnunet-service-datastore)<br> |
104 | cadet (gnunet-service-cadet)<br> | 104 | zonemaster (gnunet-service-zonemaster)<br> |
105 | dht (gnunet-service-dht)<br> | 105 | zonemaster-monitor (gnunet-service-zonemaster-monitor)<br> |
106 | core (gnunet-service-core)<br> | 106 | nse (gnunet-service-nse)<br> |
107 | gns (gnunet-service-gns)<br> | 107 | cadet (gnunet-service-cadet)<br> |
108 | statistics (gnunet-service-statistics)<br> | 108 | dht (gnunet-service-dht)<br> |
109 | topology (gnunet-daemon-topology)<br> | 109 | core (gnunet-service-core)<br> |
110 | fs (gnunet-service-fs)<br> | 110 | gns (gnunet-service-gns)<br> |
111 | namestore (gnunet-service-namestore)<br> | 111 | statistics (gnunet-service-statistics)<br> |
112 | vpn (gnunet-service-vpn)<br> | 112 | topology (gnunet-daemon-topology)<br> |
113 | </code></p> | 113 | fs (gnunet-service-fs)<br> |
114 | 114 | namestore (gnunet-service-namestore)<br> | |
115 | <p>For stopping GNUnet again we can use the -e option.</p> | 115 | vpn (gnunet-service-vpn)<br> |
116 | 116 | </code></p> | |
117 | <p><code> | 117 | |
118 | > gnunet-arm -e | 118 | <p>For stopping GNUnet again we can use the -e option.</p> |
119 | </code></p> | 119 | |
120 | 120 | <p><code> | |
121 | <h3>{{ _("Make sure, it works!") }}</h3> | 121 | > gnunet-arm -e |
122 | </code></p> | ||
123 | |||
124 | <h2>{{ _("Make sure, it works!") }}</h2> | ||
122 | <p> | 125 | <p> |
123 | Please head over here: <a href="https://gnunet.org/en/use.html">Use!</a> | 126 | Please head over here: <a href="https://gnunet.org/en/use.html">Use!</a> |
124 | <p> | 127 | <p> |
125 | </section> | ||
126 | 128 | ||
127 | </div> | 129 | </article> |
128 | {% endblock body_content %} | 130 | {% endblock body_content %} |