소스 검색

Merge branch 'stretch' of https://github.com/bashrc/freedombone

Bob Mottram 7 년 전
부모
커밋
124c398720
4개의 변경된 파일172개의 추가작업 그리고 37개의 파일을 삭제
  1. 1
    1
      doc/EN/armbian.org
  2. 57
    2
      doc/EN/mobile.org
  3. 2
    2
      website/EN/armbian.html
  4. 112
    32
      website/EN/mobile.html

+ 1
- 1
doc/EN/armbian.org 파일 보기

20
 Download the Armbian image for your board. It must be version 9 (Stretch), otherwise it won't work. Extract the image from its archive, then copy it to a microSD card:
20
 Download the Armbian image for your board. It must be version 9 (Stretch), otherwise it won't work. Extract the image from its archive, then copy it to a microSD card:
21
 
21
 
22
 #+begin_src bash
22
 #+begin_src bash
23
-sudo dd if=[Armbian .img file] of=/dev/sdX
23
+sudo dd bs=1M if=[Armbian .img file] of=/dev/sdX conv=fdatasync
24
 #+end_src
24
 #+end_src
25
 
25
 
26
 Where */dev/sdX* is the path for the microSD drive on your system.
26
 Where */dev/sdX* is the path for the microSD drive on your system.

+ 57
- 2
doc/EN/mobile.org 파일 보기

24
   <tr>
24
   <tr>
25
     <td><center><b><h3>Open</h3></b><br>Use a free and open source operating system. Open means more trustworthy</center></td>
25
     <td><center><b><h3>Open</h3></b><br>Use a free and open source operating system. Open means more trustworthy</center></td>
26
     <td><center><b><h3>Remove</h3></b><br>If there are any proprietary apps then remove or deactivete them</center></td>
26
     <td><center><b><h3>Remove</h3></b><br>If there are any proprietary apps then remove or deactivete them</center></td>
27
-    <td><center><b><h3>Encrypt</h3></b><br>Make sure your phone is encrypted with a password which isn't easy to guess</center></td>
28
   </tr>
27
   </tr>
29
   <tr>
28
   <tr>
29
+    <td><center><b><h3>Encrypt</h3></b><br>Make sure your phone is encrypted with a password which isn't easy to guess</center></td>
30
     <td><center><b><h3>Apps</h3></b><br>Use F-droid to install new apps</center></td>
30
     <td><center><b><h3>Apps</h3></b><br>Use F-droid to install new apps</center></td>
31
+  </tr>
32
+  <tr>
31
     <td><center><b><h3>Lock</h3></b><br>Enable a lock screen with a maximum number of password guesses</center></td>
33
     <td><center><b><h3>Lock</h3></b><br>Enable a lock screen with a maximum number of password guesses</center></td>
32
     <td><center><b><h3>Onion</h3></b><br>Onion route your connections to avoid bulk metadata collection</center></td>
34
     <td><center><b><h3>Onion</h3></b><br>Onion route your connections to avoid bulk metadata collection</center></td>
33
   </tr>
35
   </tr>
34
   <tr>
36
   <tr>
35
     <td><center><b><h3>Email</h3></b><br>Access webmail in a browser</center></td>
37
     <td><center><b><h3>Email</h3></b><br>Access webmail in a browser</center></td>
36
     <td><center><b><h3>Services</h3></b><br>Connect to the Freedombone services</center></td>
38
     <td><center><b><h3>Services</h3></b><br>Connect to the Freedombone services</center></td>
39
+  </tr>
40
+  <tr>
37
     <td><center><b><h3>Battery</h3></b><br>Avoid battery-eating apps</center></td>
41
     <td><center><b><h3>Battery</h3></b><br>Avoid battery-eating apps</center></td>
42
+    <td><center><b><h3>Block</h3></b><br>Prevent access to know bad domains</center></td>
38
   </tr>
43
   </tr>
39
 </table>
44
 </table>
40
 </center>
45
 </center>
41
 #+END_EXPORT
46
 #+END_EXPORT
42
 
47
 
43
 * Open
48
 * Open
44
-Use a Linux based phone operating system. Typically this will mean Android, but could also mean Cyanogenmod or Replicant. Cyanogen is the most preferable, because you can usually get an up to date image with a recent kernel which will give you better security against exploits. If you're buying a phone then look for a model which is supported by Cyanogenmod. Replicant is the most free (as in freedom) but only runs on a small number of phone models. If you have a phone which runs a full GNU/Linux system then that's fantastic, and you can probably use it in much the same way as a desktop system and the rest of the advice on this page won't apply. If you don't have a phone capable of running a Linux based operating system then consider selling, giving away or bartering your existing one.
49
+Use a Linux based phone operating system. Typically this will mean Android, but could also mean LineageOS or Replicant. LineageOS is the most preferable, because you can usually get an up to date image with a recent kernel which will give you better security against exploits. If you're buying a phone then look for a model which is supported by LineageOS. Replicant is the most free (as in freedom) but only runs on a small number of phone models. If you have a phone which runs a full GNU/Linux system then that's fantastic, and you can probably use it in much the same way as a desktop system and the rest of the advice on this page won't apply. If you don't have a phone capable of running a Linux based operating system then consider selling, giving away or bartering your existing one.
45
 
50
 
46
 Why is it so important to run Linux on a phone? Aren't /iThings/ supposed to be highly secure? Isn't the CEO of Apple a good guy, fighting for freedom against the evil Feds? In the end it comes down to the fact that /if the source code for the device cannot be independently audited to check for backdoors, bugs and so on, then it can't actually be trusted/. No matter how well-meaning or brave people running companies may be, local laws may force them to add backdoors into their systems or to give away the encryption keys (Lavabit) or they may also do that purely for business reasons such as being able to sell you to their advertising customers and so on.
51
 Why is it so important to run Linux on a phone? Aren't /iThings/ supposed to be highly secure? Isn't the CEO of Apple a good guy, fighting for freedom against the evil Feds? In the end it comes down to the fact that /if the source code for the device cannot be independently audited to check for backdoors, bugs and so on, then it can't actually be trusted/. No matter how well-meaning or brave people running companies may be, local laws may force them to add backdoors into their systems or to give away the encryption keys (Lavabit) or they may also do that purely for business reasons such as being able to sell you to their advertising customers and so on.
47
 
52
 
77
 
82
 
78
 If you have Syncthing installed then change the settings so that it only syncs when charging and when on wifi. Avoid any apps which might be continuously polling and preventing the device from going into sleep mode when it's not used.
83
 If you have Syncthing installed then change the settings so that it only syncs when charging and when on wifi. Avoid any apps which might be continuously polling and preventing the device from going into sleep mode when it's not used.
79
 
84
 
85
+* Blocking bad domains
86
+You can block known bad domains by editing the */system/etc/hosts* file on your device. It is possible to use extensive ad-blocking hosts files used by other ad-blocking systems such as pi-hole, but merely blocking Facebook and Google Analytics will protect you against much of the corporate surveillance which goes on. Even if you don't have a Facebook account this may still be useful since they will still try to create a "ghost profile" of you, so the less data they have the better.
87
+
88
+On the device enable *Developer Options* by going to *Settings* then *About* then pressing on *Build number* a few times.
89
+
90
+Go to *Settings* then *Developer Options* then set *Root access* to *ADB only* and enable *Android debugging*.
91
+
92
+On your system (not the device) install the *android-tools* package. For example, on Arch/Parabola:
93
+
94
+#+begin_src bash
95
+sudo pacman -S android-tools
96
+#+end_src
97
+
98
+Connect the device to your system via a USB cable, then:
99
+
100
+#+begin_src bash
101
+adb root
102
+adb remount
103
+adb pull /system/etc/hosts
104
+#+end_src
105
+
106
+Now edit the hosts file which was pulled and append:
107
+
108
+#+begin_src bash
109
+127.0.0.1       www.facebook.com
110
+127.0.0.1       facebook.com
111
+127.0.0.1       static.ak.fbcdn.net
112
+127.0.0.1       www.static.ak.fbcdn.net
113
+127.0.0.1       login.facebook.com
114
+127.0.0.1       www.login.facebook.com
115
+127.0.0.1       fbcdn.net
116
+127.0.0.1       www.fbcdn.net
117
+127.0.0.1       fbcdn.com
118
+127.0.0.1       www.fbcdn.com
119
+127.0.0.1       static.ak.connect.facebook.com
120
+127.0.0.1       www.static.ak.connect.facebook.com
121
+
122
+127.0.0.1       www.google-analytics.com
123
+127.0.0.1       google-analytics.com
124
+127.0.0.1       ssl.google-analytics.com
125
+#+end_src
126
+
127
+Then upload the hosts file back again with:
128
+
129
+#+begin_src bash
130
+adb push hosts /system/etc/hosts
131
+#+end_src
132
+
133
+Once that's done you may want to set *Root access* on the device back to *Disabled* and turn *Android debugging* off.
134
+
80
 #+BEGIN_EXPORT html
135
 #+BEGIN_EXPORT html
81
 <center>
136
 <center>
82
 Return to the <a href="index.html">home page</a>
137
 Return to the <a href="index.html">home page</a>

+ 2
- 2
website/EN/armbian.html 파일 보기

3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
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
-<!-- 2017-09-20 Wed 20:03 -->
6
+<!-- 2017-09-21 Thu 11:11 -->
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9
 <title>&lrm;</title>
9
 <title>&lrm;</title>
256
 </p>
256
 </p>
257
 
257
 
258
 <div class="org-src-container">
258
 <div class="org-src-container">
259
-<pre class="src src-bash">sudo dd <span class="org-variable-name">if</span>=[Armbian .img file] <span class="org-variable-name">of</span>=/dev/sdX
259
+<pre class="src src-bash">sudo dd <span class="org-variable-name">bs</span>=1M <span class="org-variable-name">if</span>=[Armbian .img file] <span class="org-variable-name">of</span>=/dev/sdX <span class="org-variable-name">conv</span>=fdatasync
260
 </pre>
260
 </pre>
261
 </div>
261
 </div>
262
 
262
 

+ 112
- 32
website/EN/mobile.html 파일 보기

3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
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
-<!-- 2016-12-02 Fri 22:24 -->
6
+<!-- 2017-09-22 Fri 13:18 -->
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9
-<title></title>
9
+<title>&lrm;</title>
10
 <meta name="generator" content="Org mode" />
10
 <meta name="generator" content="Org mode" />
11
 <meta name="author" content="Bob Mottram" />
11
 <meta name="author" content="Bob Mottram" />
12
 <meta name="description" content="Turn the Beaglebone Black into a personal communications server"
12
 <meta name="description" content="Turn the Beaglebone Black into a personal communications server"
71
   pre.src-fortran:before { content: 'Fortran'; }
71
   pre.src-fortran:before { content: 'Fortran'; }
72
   pre.src-gnuplot:before { content: 'gnuplot'; }
72
   pre.src-gnuplot:before { content: 'gnuplot'; }
73
   pre.src-haskell:before { content: 'Haskell'; }
73
   pre.src-haskell:before { content: 'Haskell'; }
74
+  pre.src-hledger:before { content: 'hledger'; }
74
   pre.src-java:before { content: 'Java'; }
75
   pre.src-java:before { content: 'Java'; }
75
   pre.src-js:before { content: 'Javascript'; }
76
   pre.src-js:before { content: 'Javascript'; }
76
   pre.src-latex:before { content: 'LaTeX'; }
77
   pre.src-latex:before { content: 'LaTeX'; }
188
 @licstart  The following is the entire license notice for the
189
 @licstart  The following is the entire license notice for the
189
 JavaScript code in this tag.
190
 JavaScript code in this tag.
190
 
191
 
191
-Copyright (C) 2012-2013 Free Software Foundation, Inc.
192
+Copyright (C) 2012-2017 Free Software Foundation, Inc.
192
 
193
 
193
 The JavaScript code in this tag is free software: you can
194
 The JavaScript code in this tag is free software: you can
194
 redistribute it and/or modify it under the terms of the GNU
195
 redistribute it and/or modify it under the terms of the GNU
256
   <tr>
257
   <tr>
257
     <td><center><b><h3>Open</h3></b><br>Use a free and open source operating system. Open means more trustworthy</center></td>
258
     <td><center><b><h3>Open</h3></b><br>Use a free and open source operating system. Open means more trustworthy</center></td>
258
     <td><center><b><h3>Remove</h3></b><br>If there are any proprietary apps then remove or deactivete them</center></td>
259
     <td><center><b><h3>Remove</h3></b><br>If there are any proprietary apps then remove or deactivete them</center></td>
259
-    <td><center><b><h3>Encrypt</h3></b><br>Make sure your phone is encrypted with a password which isn't easy to guess</center></td>
260
   </tr>
260
   </tr>
261
   <tr>
261
   <tr>
262
+    <td><center><b><h3>Encrypt</h3></b><br>Make sure your phone is encrypted with a password which isn't easy to guess</center></td>
262
     <td><center><b><h3>Apps</h3></b><br>Use F-droid to install new apps</center></td>
263
     <td><center><b><h3>Apps</h3></b><br>Use F-droid to install new apps</center></td>
264
+  </tr>
265
+  <tr>
263
     <td><center><b><h3>Lock</h3></b><br>Enable a lock screen with a maximum number of password guesses</center></td>
266
     <td><center><b><h3>Lock</h3></b><br>Enable a lock screen with a maximum number of password guesses</center></td>
264
     <td><center><b><h3>Onion</h3></b><br>Onion route your connections to avoid bulk metadata collection</center></td>
267
     <td><center><b><h3>Onion</h3></b><br>Onion route your connections to avoid bulk metadata collection</center></td>
265
   </tr>
268
   </tr>
266
   <tr>
269
   <tr>
267
     <td><center><b><h3>Email</h3></b><br>Access webmail in a browser</center></td>
270
     <td><center><b><h3>Email</h3></b><br>Access webmail in a browser</center></td>
268
     <td><center><b><h3>Services</h3></b><br>Connect to the Freedombone services</center></td>
271
     <td><center><b><h3>Services</h3></b><br>Connect to the Freedombone services</center></td>
272
+  </tr>
273
+  <tr>
269
     <td><center><b><h3>Battery</h3></b><br>Avoid battery-eating apps</center></td>
274
     <td><center><b><h3>Battery</h3></b><br>Avoid battery-eating apps</center></td>
275
+    <td><center><b><h3>Block</h3></b><br>Prevent access to know bad domains</center></td>
270
   </tr>
276
   </tr>
271
 </table>
277
 </table>
272
 </center>
278
 </center>
273
 
279
 
274
-<div id="outline-container-org3265d12" class="outline-2">
275
-<h2 id="org3265d12">Open</h2>
276
-<div class="outline-text-2" id="text-org3265d12">
280
+<div id="outline-container-org066f7fb" class="outline-2">
281
+<h2 id="org066f7fb">Open</h2>
282
+<div class="outline-text-2" id="text-org066f7fb">
277
 <p>
283
 <p>
278
-Use a Linux based phone operating system. Typically this will mean Android, but could also mean Cyanogenmod or Replicant. Cyanogen is the most preferable, because you can usually get an up to date image with a recent kernel which will give you better security against exploits. If you're buying a phone then look for a model which is supported by Cyanogenmod. Replicant is the most free (as in freedom) but only runs on a small number of phone models. If you have a phone which runs a full GNU/Linux system then that's fantastic, and you can probably use it in much the same way as a desktop system and the rest of the advice on this page won't apply. If you don't have a phone capable of running a Linux based operating system then consider selling, giving away or bartering your existing one.
284
+Use a Linux based phone operating system. Typically this will mean Android, but could also mean LineageOS or Replicant. LineageOS is the most preferable, because you can usually get an up to date image with a recent kernel which will give you better security against exploits. If you're buying a phone then look for a model which is supported by LineageOS. Replicant is the most free (as in freedom) but only runs on a small number of phone models. If you have a phone which runs a full GNU/Linux system then that's fantastic, and you can probably use it in much the same way as a desktop system and the rest of the advice on this page won't apply. If you don't have a phone capable of running a Linux based operating system then consider selling, giving away or bartering your existing one.
279
 </p>
285
 </p>
280
 
286
 
281
 <p>
287
 <p>
284
 </div>
290
 </div>
285
 </div>
291
 </div>
286
 
292
 
287
-<div id="outline-container-org891847d" class="outline-2">
288
-<h2 id="org891847d">Remove</h2>
289
-<div class="outline-text-2" id="text-org891847d">
293
+<div id="outline-container-org1a24680" class="outline-2">
294
+<h2 id="org1a24680">Remove</h2>
295
+<div class="outline-text-2" id="text-org1a24680">
290
 <p>
296
 <p>
291
 So maybe you're running Android and the phone came with some apps already installed. Almost certainly they'll be proprietary. Go to Settings/Apps and then uninstall or deactivate any apps which you really don't need. Mostly preinstalled apps are intended to send your data to companies who will then sell it to advertisers or governments under the business model of <i>surveillance capital</i>. It's not a good idea to get caught up in that, and to avoid becoming addicted to apps which are surveilling you without consent or installing spyware in the background without your knowledge.
297
 So maybe you're running Android and the phone came with some apps already installed. Almost certainly they'll be proprietary. Go to Settings/Apps and then uninstall or deactivate any apps which you really don't need. Mostly preinstalled apps are intended to send your data to companies who will then sell it to advertisers or governments under the business model of <i>surveillance capital</i>. It's not a good idea to get caught up in that, and to avoid becoming addicted to apps which are surveilling you without consent or installing spyware in the background without your knowledge.
292
 </p>
298
 </p>
293
 </div>
299
 </div>
294
 </div>
300
 </div>
295
 
301
 
296
-<div id="outline-container-org7e4c55a" class="outline-2">
297
-<h2 id="org7e4c55a">Encrypt</h2>
298
-<div class="outline-text-2" id="text-org7e4c55a">
302
+<div id="outline-container-org390d2d0" class="outline-2">
303
+<h2 id="org390d2d0">Encrypt</h2>
304
+<div class="outline-text-2" id="text-org390d2d0">
299
 <p>
305
 <p>
300
 Encrypt your phone. This can usually be done via <b>Settings/Security</b> and you may need to fully charge the phone first. Encryption means that if you lose your phone or it gets stolen then there is less chance that anyone who picks it up will get access to your data, photos and so on.
306
 Encrypt your phone. This can usually be done via <b>Settings/Security</b> and you may need to fully charge the phone first. Encryption means that if you lose your phone or it gets stolen then there is less chance that anyone who picks it up will get access to your data, photos and so on.
301
 </p>
307
 </p>
302
 </div>
308
 </div>
303
 </div>
309
 </div>
304
 
310
 
305
-<div id="outline-container-org4332e13" class="outline-2">
306
-<h2 id="org4332e13">Apps</h2>
307
-<div class="outline-text-2" id="text-org4332e13">
311
+<div id="outline-container-org3d6081e" class="outline-2">
312
+<h2 id="org3d6081e">Apps</h2>
313
+<div class="outline-text-2" id="text-org3d6081e">
308
 <p>
314
 <p>
309
 Installing <b>F-droid</b> and only adding any new apps via F-droid will ensure that you are always using free and open source software. Open source is not a panacea, since bugs can and do still occur, but it will help you to avoid the worst security and privacy pitfalls.
315
 Installing <b>F-droid</b> and only adding any new apps via F-droid will ensure that you are always using free and open source software. Open source is not a panacea, since bugs can and do still occur, but it will help you to avoid the worst security and privacy pitfalls.
310
 </p>
316
 </p>
311
 </div>
317
 </div>
312
 </div>
318
 </div>
313
 
319
 
314
-<div id="outline-container-org09c549d" class="outline-2">
315
-<h2 id="org09c549d">Lock</h2>
316
-<div class="outline-text-2" id="text-org09c549d">
320
+<div id="outline-container-org5a55ec6" class="outline-2">
321
+<h2 id="org5a55ec6">Lock</h2>
322
+<div class="outline-text-2" id="text-org5a55ec6">
317
 <p>
323
 <p>
318
 Add a lock screen, preferably with a password which is not easy for other people to guess or for quicker access with a PIN number. Install an app called <b>Locker</b>, activate it and set the maximum number of password guesses to ten (or whatever you feel comfortable with). If bad people get hold of your phone then they may try to brute force your lock screen password or PIN (i.e. automatically trying millions of common word and number combinations) and the locker app will prevent them from succeeding by resetting the phone back to its factory default condition and wiping the data.
324
 Add a lock screen, preferably with a password which is not easy for other people to guess or for quicker access with a PIN number. Install an app called <b>Locker</b>, activate it and set the maximum number of password guesses to ten (or whatever you feel comfortable with). If bad people get hold of your phone then they may try to brute force your lock screen password or PIN (i.e. automatically trying millions of common word and number combinations) and the locker app will prevent them from succeeding by resetting the phone back to its factory default condition and wiping the data.
319
 </p>
325
 </p>
320
 </div>
326
 </div>
321
 </div>
327
 </div>
322
 
328
 
323
-<div id="outline-container-org40ecb38" class="outline-2">
324
-<h2 id="org40ecb38">Onion</h2>
325
-<div class="outline-text-2" id="text-org40ecb38">
329
+<div id="outline-container-orgaf7fb89" class="outline-2">
330
+<h2 id="orgaf7fb89">Onion</h2>
331
+<div class="outline-text-2" id="text-orgaf7fb89">
326
 <p>
332
 <p>
327
 Both governments and corporations want to compile matadata dossiers about you. Who you communicated with, when and how often. They want this so that they can data mine, simulate, predict and then ultimately influence (sometimes also called "nudge") your actions and preferences in the directions they prefer. By routing your connections through a number of proxy servers (Tor routers) you can make it perhaps not <i>theoretically</i> impossible but at least <i>very hard</i> for them to have a complete and accurate list of who your friends are, your religion, politics, likely health issues, sexual orientation and what news sites or books you read.
333
 Both governments and corporations want to compile matadata dossiers about you. Who you communicated with, when and how often. They want this so that they can data mine, simulate, predict and then ultimately influence (sometimes also called "nudge") your actions and preferences in the directions they prefer. By routing your connections through a number of proxy servers (Tor routers) you can make it perhaps not <i>theoretically</i> impossible but at least <i>very hard</i> for them to have a complete and accurate list of who your friends are, your religion, politics, likely health issues, sexual orientation and what news sites or books you read.
328
 </p>
334
 </p>
333
 </div>
339
 </div>
334
 </div>
340
 </div>
335
 
341
 
336
-<div id="outline-container-orgb19c9b5" class="outline-2">
337
-<h2 id="orgb19c9b5">Email</h2>
338
-<div class="outline-text-2" id="text-orgb19c9b5">
342
+<div id="outline-container-orgc7a0b9e" class="outline-2">
343
+<h2 id="orgc7a0b9e">Email</h2>
344
+<div class="outline-text-2" id="text-orgc7a0b9e">
339
 <p>
345
 <p>
340
 The easiest way to access email is by installing the <a href="./app_mailpile.html">Mailpile</a> app. This keeps your GPG keys off of possibly insecure mobile devices but still enables encrypted email communications in an easy way. You can use K9 mail if you prefer, but that will require installing OpenKeychain and having your GPG keys on the device, which is a lot more risky.
346
 The easiest way to access email is by installing the <a href="./app_mailpile.html">Mailpile</a> app. This keeps your GPG keys off of possibly insecure mobile devices but still enables encrypted email communications in an easy way. You can use K9 mail if you prefer, but that will require installing OpenKeychain and having your GPG keys on the device, which is a lot more risky.
341
 </p>
347
 </p>
342
 </div>
348
 </div>
343
 </div>
349
 </div>
344
-<div id="outline-container-org3359ddc" class="outline-2">
345
-<h2 id="org3359ddc">Services</h2>
346
-<div class="outline-text-2" id="text-org3359ddc">
350
+<div id="outline-container-orgfcecdf8" class="outline-2">
351
+<h2 id="orgfcecdf8">Services</h2>
352
+<div class="outline-text-2" id="text-orgfcecdf8">
347
 <p>
353
 <p>
348
 For information on configuring various apps to work with Freedombone see the <a href="./usage.html">usage section</a>. Also see advice on chat apps in the <a href="./faq.html">FAQ</a>.
354
 For information on configuring various apps to work with Freedombone see the <a href="./usage.html">usage section</a>. Also see advice on chat apps in the <a href="./faq.html">FAQ</a>.
349
 </p>
355
 </p>
350
 </div>
356
 </div>
351
 </div>
357
 </div>
352
 
358
 
353
-<div id="outline-container-orgd1a021e" class="outline-2">
354
-<h2 id="orgd1a021e">Battery preservation</h2>
355
-<div class="outline-text-2" id="text-orgd1a021e">
359
+<div id="outline-container-org469e667" class="outline-2">
360
+<h2 id="org469e667">Battery preservation</h2>
361
+<div class="outline-text-2" id="text-org469e667">
356
 <p>
362
 <p>
357
 Even with free software apps it's not difficult to get into a situation where your battery doesn't last for long. To maximize battery life access RSS feeds via the onion-based mobile reader within a Tor-compatible browser and not from a locally installed RSS app.
363
 Even with free software apps it's not difficult to get into a situation where your battery doesn't last for long. To maximize battery life access RSS feeds via the onion-based mobile reader within a Tor-compatible browser and not from a locally installed RSS app.
358
 </p>
364
 </p>
360
 <p>
366
 <p>
361
 If you have Syncthing installed then change the settings so that it only syncs when charging and when on wifi. Avoid any apps which might be continuously polling and preventing the device from going into sleep mode when it's not used.
367
 If you have Syncthing installed then change the settings so that it only syncs when charging and when on wifi. Avoid any apps which might be continuously polling and preventing the device from going into sleep mode when it's not used.
362
 </p>
368
 </p>
369
+</div>
370
+</div>
371
+
372
+<div id="outline-container-orgcaf0530" class="outline-2">
373
+<h2 id="orgcaf0530">Blocking bad domains</h2>
374
+<div class="outline-text-2" id="text-orgcaf0530">
375
+<p>
376
+You can block known bad domains by editing the <b>/system/etc/hosts</b> file on your device. It is possible to use extensive ad-blocking hosts files used by other ad-blocking systems such as pi-hole, but merely blocking Facebook and Google Analytics will protect you against much of the corporate surveillance which goes on. Even if you don't have a Facebook account this may still be useful since they will still try to create a "ghost profile" of you, so the less data they have the better.
377
+</p>
378
+
379
+<p>
380
+On the device enable <b>Developer Options</b> by going to <b>Settings</b> then <b>About</b> then pressing on <b>Build number</b> a few times.
381
+</p>
382
+
383
+<p>
384
+Go to <b>Settings</b> then <b>Developer Options</b> then set <b>Root access</b> to <b>ADB only</b> and enable <b>Android debugging</b>.
385
+</p>
386
+
387
+<p>
388
+On your system (not the device) install the <b>android-tools</b> package. For example, on Arch/Parabola:
389
+</p>
390
+
391
+<div class="org-src-container">
392
+<pre class="src src-bash">sudo pacman -S android-tools
393
+</pre>
394
+</div>
395
+
396
+<p>
397
+Connect the device to your system via a USB cable, then:
398
+</p>
399
+
400
+<div class="org-src-container">
401
+<pre class="src src-bash">adb root
402
+adb remount
403
+adb pull /system/etc/hosts
404
+</pre>
405
+</div>
406
+
407
+<p>
408
+Now edit the hosts file which was pulled and append:
409
+</p>
410
+
411
+<div class="org-src-container">
412
+<pre class="src src-bash">127.0.0.1       www.facebook.com
413
+127.0.0.1       facebook.com
414
+127.0.0.1       static.ak.fbcdn.net
415
+127.0.0.1       www.static.ak.fbcdn.net
416
+127.0.0.1       login.facebook.com
417
+127.0.0.1       www.login.facebook.com
418
+127.0.0.1       fbcdn.net
419
+127.0.0.1       www.fbcdn.net
420
+127.0.0.1       fbcdn.com
421
+127.0.0.1       www.fbcdn.com
422
+127.0.0.1       static.ak.connect.facebook.com
423
+127.0.0.1       www.static.ak.connect.facebook.com
424
+
425
+127.0.0.1       www.google-analytics.com
426
+127.0.0.1       google-analytics.com
427
+127.0.0.1       ssl.google-analytics.com
428
+</pre>
429
+</div>
430
+
431
+<p>
432
+Then upload the hosts file back again with:
433
+</p>
434
+
435
+<div class="org-src-container">
436
+<pre class="src src-bash">adb push hosts /system/etc/hosts
437
+</pre>
438
+</div>
439
+
440
+<p>
441
+Once that's done you may want to set <b>Root access</b> on the device back to <b>Disabled</b> and turn <b>Android debugging</b> off.
442
+</p>
363
 
443
 
364
 <center>
444
 <center>
365
 Return to the <a href="index.html">home page</a>
445
 Return to the <a href="index.html">home page</a>