]> pere.pagekite.me Git - homepage.git/blob - blog/index.rss
Generated.
[homepage.git] / blog / index.rss
1 <?xml version="1.0" encoding="utf-8"?>
2 <rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom="http://www.w3.org/2005/Atom">
3 <channel>
4 <title>Petter Reinholdtsen</title>
5 <description></description>
6 <link>http://people.skolelinux.org/pere/blog/</link>
7 <atom:link href="http://people.skolelinux.org/pere/blog/index.rss" rel="self" type="application/rss+xml" />
8
9 <item>
10 <title>Running TP-Link MR3040 as a batman-adv mesh node using openwrt</title>
11 <link>http://people.skolelinux.org/pere/blog/Running_TP_Link_MR3040_as_a_batman_adv_mesh_node_using_openwrt.html</link>
12 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Running_TP_Link_MR3040_as_a_batman_adv_mesh_node_using_openwrt.html</guid>
13 <pubDate>Sun, 10 Nov 2013 23:00:00 +0100</pubDate>
14 <description>&lt;p&gt;Continuing my research into mesh networking, I was recommended to
15 use TP-Link 3040 and 3600 access points as mesh nodes, and the pair I
16 bought arrived on Friday. Here are my notes on how to set up the
17 MR3040 as a mesh node using
18 &lt;a href=&quot;http://www.openwrt.org/&quot;&gt;OpenWrt&lt;/a&gt;.&lt;/p&gt;
19
20 &lt;p&gt;I started by following the instructions on the OpenWRT wiki for
21 &lt;a href=&quot;http://wiki.openwrt.org/toh/tp-link/tl-mr3040&quot;&gt;TL-MR3040&lt;/a&gt;,
22 and downloaded
23 &lt;a href=&quot;http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-mr3040-v2-squashfs-factory.bin&quot;&gt;the
24 recommended firmware image&lt;/a&gt;
25 (openwrt-ar71xx-generic-tl-mr3040-v2-squashfs-factory.bin) and
26 uploaded it into the original web interface. The flashing went fine,
27 and the machine was available via telnet on the ethernet port. After
28 logging in and setting the root password, ssh was available and I
29 could start to set it up as a batman-adv mesh node.&lt;/p&gt;
30
31 &lt;p&gt;I started off by reading the instructions from
32 &lt;a href=&quot;http://wirelessafrica.meraka.org.za/wiki/index.php?title=Antoine&#39;s_Research&quot;&gt;Wireless
33 Africa&lt;/a&gt;, which had quite a lot of useful information, but
34 eventually I followed the recipe from the Open Mesh wiki for
35 &lt;a href=&quot;http://www.open-mesh.org/projects/batman-adv/wiki/Batman-adv-openwrt-config&quot;&gt;using
36 batman-adv on OpenWrt&lt;/a&gt;. A small snag was the fact that the
37 &lt;tt&gt;opkg install kmod-batman-adv&lt;/tt&gt; command did not work as it
38 should. The batman-adv kernel module would fail to load because its
39 dependency crc16 was not already loaded. I
40 &lt;a href=&quot;https://dev.openwrt.org/ticket/14452&quot;&gt;reported the bug&lt;/a&gt; to
41 the openwrt project and hope it will be fixed soon. But the problem
42 only seem to affect initial testing of batman-adv, as configuration
43 seem to work when booting from scratch.&lt;/p&gt;
44
45 &lt;p&gt;The setup is done using files in /etc/config/. I did not bridge
46 the Ethernet and mesh interfaces this time, to be able to hook up the
47 box on my local network and log into it for configuration updates.
48 The following files were changed and look like this after modifying
49 them:&lt;/p&gt;
50
51 &lt;p&gt;&lt;tt&gt;/etc/config/network&lt;/tt&gt;&lt;/p&gt;
52
53 &lt;pre&gt;
54
55 config interface &#39;loopback&#39;
56 option ifname &#39;lo&#39;
57 option proto &#39;static&#39;
58 option ipaddr &#39;127.0.0.1&#39;
59 option netmask &#39;255.0.0.0&#39;
60
61 config globals &#39;globals&#39;
62 option ula_prefix &#39;fdbf:4c12:3fed::/48&#39;
63
64 config interface &#39;lan&#39;
65 option ifname &#39;eth0&#39;
66 option type &#39;bridge&#39;
67 option proto &#39;dhcp&#39;
68 option ipaddr &#39;192.168.1.1&#39;
69 option netmask &#39;255.255.255.0&#39;
70 option hostname &#39;tl-mr3040&#39;
71 option ip6assign &#39;60&#39;
72
73 config interface &#39;mesh&#39;
74 option ifname &#39;adhoc0&#39;
75 option mtu &#39;1528&#39;
76 option proto &#39;batadv&#39;
77 option mesh &#39;bat0&#39;
78 &lt;/pre&gt;
79
80 &lt;p&gt;&lt;tt&gt;/etc/config/wireless&lt;/tt&gt;&lt;/p&gt;
81 &lt;pre&gt;
82
83 config wifi-device &#39;radio0&#39;
84 option type &#39;mac80211&#39;
85 option channel &#39;11&#39;
86 option hwmode &#39;11ng&#39;
87 option path &#39;platform/ar933x_wmac&#39;
88 option htmode &#39;HT20&#39;
89 list ht_capab &#39;SHORT-GI-20&#39;
90 list ht_capab &#39;SHORT-GI-40&#39;
91 list ht_capab &#39;RX-STBC1&#39;
92 list ht_capab &#39;DSSS_CCK-40&#39;
93 option disabled &#39;0&#39;
94
95 config wifi-iface &#39;wmesh&#39;
96 option device &#39;radio0&#39;
97 option ifname &#39;adhoc0&#39;
98 option network &#39;mesh&#39;
99 option encryption &#39;none&#39;
100 option mode &#39;adhoc&#39;
101 option bssid &#39;02:BA:00:00:00:01&#39;
102 option ssid &#39;meshfx@hackeriet&#39;
103 &lt;/pre&gt;
104 &lt;p&gt;&lt;tt&gt;/etc/config/batman-adv&lt;/tt&gt;&lt;/p&gt;
105 &lt;pre&gt;
106
107 config &#39;mesh&#39; &#39;bat0&#39;
108 option interfaces &#39;adhoc0&#39;
109 option &#39;aggregated_ogms&#39;
110 option &#39;ap_isolation&#39;
111 option &#39;bonding&#39;
112 option &#39;fragmentation&#39;
113 option &#39;gw_bandwidth&#39;
114 option &#39;gw_mode&#39;
115 option &#39;gw_sel_class&#39;
116 option &#39;log_level&#39;
117 option &#39;orig_interval&#39;
118 option &#39;vis_mode&#39;
119 option &#39;bridge_loop_avoidance&#39;
120 option &#39;distributed_arp_table&#39;
121 option &#39;network_coding&#39;
122 option &#39;hop_penalty&#39;
123
124 # yet another batX instance
125 # config &#39;mesh&#39; &#39;bat5&#39;
126 # option &#39;interfaces&#39; &#39;second_mesh&#39;
127 &lt;/pre&gt;
128
129 &lt;p&gt;The mesh node is now operational. I have yet to test its range,
130 but I hope it is good. I have not yet tested the TP-Link 3600 box
131 still wrapped up in plastic.&lt;/p&gt;
132 </description>
133 </item>
134
135 <item>
136 <title>Debian init.d boot script example for rsyslog</title>
137 <link>http://people.skolelinux.org/pere/blog/Debian_init_d_boot_script_example_for_rsyslog.html</link>
138 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Debian_init_d_boot_script_example_for_rsyslog.html</guid>
139 <pubDate>Sat, 2 Nov 2013 22:40:00 +0100</pubDate>
140 <description>&lt;p&gt;If one of the points of switching to a new init system in Debian is
141 &lt;a href=&quot;http://thomas.goirand.fr/blog/?p=147&quot;&gt;to get rid of huge
142 init.d scripts&lt;/a&gt;, I doubt we need to switch away from sysvinit and
143 init.d scripts at all. Here is an example init.d script, ie a rewrite
144 of /etc/init.d/rsyslog:&lt;/p&gt;
145
146 &lt;p&gt;&lt;pre&gt;
147 #!/lib/init/init-d-script
148 ### BEGIN INIT INFO
149 # Provides: rsyslog
150 # Required-Start: $remote_fs $time
151 # Required-Stop: umountnfs $time
152 # X-Stop-After: sendsigs
153 # Default-Start: 2 3 4 5
154 # Default-Stop: 0 1 6
155 # Short-Description: enhanced syslogd
156 # Description: Rsyslog is an enhanced multi-threaded syslogd.
157 # It is quite compatible to stock sysklogd and can be
158 # used as a drop-in replacement.
159 ### END INIT INFO
160 DESC=&quot;enhanced syslogd&quot;
161 DAEMON=/usr/sbin/rsyslogd
162 &lt;/pre&gt;&lt;/p&gt;
163
164 &lt;p&gt;Pretty minimalistic to me... For the record, the original sysv-rc
165 script was 137 lines, and the above is just 15 lines, most of it meta
166 info/comments.&lt;/p&gt;
167
168 &lt;p&gt;How to do this, you ask? Well, one create a new script
169 /lib/init/init-d-script looking something like this:
170
171 &lt;p&gt;&lt;pre&gt;
172 #!/bin/sh
173
174 # Define LSB log_* functions.
175 # Depend on lsb-base (&gt;= 3.2-14) to ensure that this file is present
176 # and status_of_proc is working.
177 . /lib/lsb/init-functions
178
179 #
180 # Function that starts the daemon/service
181
182 #
183 do_start()
184 {
185 # Return
186 # 0 if daemon has been started
187 # 1 if daemon was already running
188 # 2 if daemon could not be started
189 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test &gt; /dev/null \
190 || return 1
191 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
192 $DAEMON_ARGS \
193 || return 2
194 # Add code here, if necessary, that waits for the process to be ready
195 # to handle requests from services started subsequently which depend
196 # on this one. As a last resort, sleep for some time.
197 }
198
199 #
200 # Function that stops the daemon/service
201 #
202 do_stop()
203 {
204 # Return
205 # 0 if daemon has been stopped
206 # 1 if daemon was already stopped
207 # 2 if daemon could not be stopped
208 # other if a failure occurred
209 start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
210 RETVAL=&quot;$?&quot;
211 [ &quot;$RETVAL&quot; = 2 ] &amp;&amp; return 2
212 # Wait for children to finish too if this is a daemon that forks
213 # and if the daemon is only ever run from this initscript.
214 # If the above conditions are not satisfied then add some other code
215 # that waits for the process to drop all resources that could be
216 # needed by services started subsequently. A last resort is to
217 # sleep for some time.
218 start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
219 [ &quot;$?&quot; = 2 ] &amp;&amp; return 2
220 # Many daemons don&#39;t delete their pidfiles when they exit.
221 rm -f $PIDFILE
222 return &quot;$RETVAL&quot;
223 }
224
225 #
226 # Function that sends a SIGHUP to the daemon/service
227 #
228 do_reload() {
229 #
230 # If the daemon can reload its configuration without
231 # restarting (for example, when it is sent a SIGHUP),
232 # then implement that here.
233 #
234 start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
235 return 0
236 }
237
238 SCRIPTNAME=$1
239 scriptbasename=&quot;$(basename $1)&quot;
240 echo &quot;SN: $scriptbasename&quot;
241 if [ &quot;$scriptbasename&quot; != &quot;init-d-library&quot; ] ; then
242 script=&quot;$1&quot;
243 shift
244 . $script
245 else
246 exit 0
247 fi
248
249 NAME=$(basename $DAEMON)
250 PIDFILE=/var/run/$NAME.pid
251
252 # Exit if the package is not installed
253 #[ -x &quot;$DAEMON&quot; ] || exit 0
254
255 # Read configuration variable file if it is present
256 [ -r /etc/default/$NAME ] &amp;&amp; . /etc/default/$NAME
257
258 # Load the VERBOSE setting and other rcS variables
259 . /lib/init/vars.sh
260
261 case &quot;$1&quot; in
262 start)
263 [ &quot;$VERBOSE&quot; != no ] &amp;&amp; log_daemon_msg &quot;Starting $DESC&quot; &quot;$NAME&quot;
264 do_start
265 case &quot;$?&quot; in
266 0|1) [ &quot;$VERBOSE&quot; != no ] &amp;&amp; log_end_msg 0 ;;
267 2) [ &quot;$VERBOSE&quot; != no ] &amp;&amp; log_end_msg 1 ;;
268 esac
269 ;;
270 stop)
271 [ &quot;$VERBOSE&quot; != no ] &amp;&amp; log_daemon_msg &quot;Stopping $DESC&quot; &quot;$NAME&quot;
272 do_stop
273 case &quot;$?&quot; in
274 0|1) [ &quot;$VERBOSE&quot; != no ] &amp;&amp; log_end_msg 0 ;;
275 2) [ &quot;$VERBOSE&quot; != no ] &amp;&amp; log_end_msg 1 ;;
276 esac
277 ;;
278 status)
279 status_of_proc &quot;$DAEMON&quot; &quot;$NAME&quot; &amp;&amp; exit 0 || exit $?
280 ;;
281 #reload|force-reload)
282 #
283 # If do_reload() is not implemented then leave this commented out
284 # and leave &#39;force-reload&#39; as an alias for &#39;restart&#39;.
285 #
286 #log_daemon_msg &quot;Reloading $DESC&quot; &quot;$NAME&quot;
287 #do_reload
288 #log_end_msg $?
289 #;;
290 restart|force-reload)
291 #
292 # If the &quot;reload&quot; option is implemented then remove the
293 # &#39;force-reload&#39; alias
294 #
295 log_daemon_msg &quot;Restarting $DESC&quot; &quot;$NAME&quot;
296 do_stop
297 case &quot;$?&quot; in
298 0|1)
299 do_start
300 case &quot;$?&quot; in
301 0) log_end_msg 0 ;;
302 1) log_end_msg 1 ;; # Old process is still running
303 *) log_end_msg 1 ;; # Failed to start
304 esac
305 ;;
306 *)
307 # Failed to stop
308 log_end_msg 1
309 ;;
310 esac
311 ;;
312 *)
313 echo &quot;Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}&quot; &gt;&amp;2
314 exit 3
315 ;;
316 esac
317
318 :
319 &lt;/pre&gt;&lt;/p&gt;
320
321 &lt;p&gt;It is based on /etc/init.d/skeleton, and could be improved quite a
322 lot. I did not really polish the approach, so it might not always
323 work out of the box, but you get the idea. I did not try very hard to
324 optimize it nor make it more robust either.&lt;/p&gt;
325
326 &lt;p&gt;A better argument for switching init system in Debian than reducing
327 the size of init scripts (which is a good thing to do anyway), is to
328 get boot system that is able to handle the kernel events sensibly and
329 robustly, and do not depend on the boot to run sequentially. The boot
330 and the kernel have not behaved sequentially in years.&lt;/p&gt;
331 </description>
332 </item>
333
334 <item>
335 <title>Browser plugin for SPICE (spice-xpi) uploaded to Debian</title>
336 <link>http://people.skolelinux.org/pere/blog/Browser_plugin_for_SPICE__spice_xpi__uploaded_to_Debian.html</link>
337 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Browser_plugin_for_SPICE__spice_xpi__uploaded_to_Debian.html</guid>
338 <pubDate>Fri, 1 Nov 2013 11:00:00 +0100</pubDate>
339 <description>&lt;p&gt;&lt;a href=&quot;http://www.spice-space.org/&quot;&gt;The SPICE protocol&lt;/a&gt; for
340 remote display access is the preferred solution with oVirt and RedHat
341 Enterprise Virtualization, and I was sad to discover the other day
342 that the browser plugin needed to use these systems seamlessly was
343 missing in Debian. The &lt;a href=&quot;http://bugs.debian.org/668284&quot;&gt;request
344 for a package&lt;/a&gt; was from 2012-04-10 with no progress since
345 2013-04-01, so I decided to wrap up a package based on the great work
346 from Cajus Pollmeier and put it in a collab-maint maintained git
347 repository to get a package I could use. I would very much like
348 others to help me maintain the package (or just take over, I do not
349 mind), but as no-one had volunteered so far, I just uploaded it to
350 NEW. I hope it will be available in Debian in a few days.&lt;/p&gt;
351
352 &lt;p&gt;The source is now available from
353 &lt;a href=&quot;http://anonscm.debian.org/gitweb/?p=collab-maint/spice-xpi.git;a=summary&quot;&gt;http://anonscm.debian.org/gitweb/?p=collab-maint/spice-xpi.git;a=summary&lt;/a&gt;.&lt;/p&gt;
354 </description>
355 </item>
356
357 <item>
358 <title>Teaching vmdebootstrap to create Raspberry Pi SD card images</title>
359 <link>http://people.skolelinux.org/pere/blog/Teaching_vmdebootstrap_to_create_Raspberry_Pi_SD_card_images.html</link>
360 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Teaching_vmdebootstrap_to_create_Raspberry_Pi_SD_card_images.html</guid>
361 <pubDate>Sun, 27 Oct 2013 17:00:00 +0100</pubDate>
362 <description>&lt;p&gt;The
363 &lt;a href=&quot;http://packages.qa.debian.org/v/vmdebootstrap.html&quot;&gt;vmdebootstrap&lt;/a&gt;
364 program is a a very nice system to create virtual machine images. It
365 create a image file, add a partition table, mount it and run
366 debootstrap in the mounted directory to create a Debian system on a
367 stick. Yesterday, I decided to try to teach it how to make images for
368 &lt;a href=&quot;https://wiki.debian.org/RaspberryPi&quot;&gt;Raspberry Pi&lt;/a&gt;, as part
369 of a plan to simplify the build system for
370 &lt;a href=&quot;https://wiki.debian.org/FreedomBox&quot;&gt;the FreedomBox
371 project&lt;/a&gt;. The FreedomBox project already uses vmdebootstrap for
372 the virtualbox images, but its current build system made multistrap
373 based system for Dreamplug images, and it is lacking support for
374 Raspberry Pi.&lt;/p&gt;
375
376 &lt;p&gt;Armed with the knowledge on how to build &quot;foreign&quot; (aka non-native
377 architecture) chroots for Raspberry Pi, I dived into the vmdebootstrap
378 code and adjusted it to be able to build armel images on my amd64
379 Debian laptop. I ended up giving vmdebootstrap five new options,
380 allowing me to replicate the image creation process I use to make
381 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/A_Raspberry_Pi_based_batman_adv_Mesh_network_node.html&quot;&gt;Debian
382 Jessie based mesh node images for the Raspberry Pi&lt;/a&gt;. First, the
383 &lt;tt&gt;--foreign /path/to/binfm_handler&lt;/tt&gt; option tell vmdebootstrap to
384 call debootstrap with --foreign and to copy the handler into the
385 generated chroot before running the second stage. This allow
386 vmdebootstrap to create armel images on an amd64 host. Next I added
387 two new options &lt;tt&gt;--bootsize size&lt;/tt&gt; and &lt;tt&gt;--boottype
388 fstype&lt;/tt&gt; to teach it to create a separate /boot/ partition with the
389 given file system type, allowing me to create an image with a vfat
390 partition for the /boot/ stuff. I also added a &lt;tt&gt;--variant
391 variant&lt;/tt&gt; option to allow me to create smaller images without the
392 Debian base system packages installed. Finally, I added an option
393 &lt;tt&gt;--no-extlinux&lt;/tt&gt; to tell vmdebootstrap to not install extlinux
394 as a boot loader. It is not needed on the Raspberry Pi and probably
395 most other non-x86 architectures. The changes were accepted by the
396 upstream author of vmdebootstrap yesterday and today, and is now
397 available from
398 &lt;a href=&quot;http://git.liw.fi/cgi-bin/cgit/cgit.cgi/vmdebootstrap/&quot;&gt;the
399 upstream project page&lt;/a&gt;.&lt;/p&gt;
400
401 &lt;p&gt;To use it to build a Raspberry Pi image using Debian Jessie, first
402 create a small script (the customize script) to add the non-free
403 binary blob needed to boot the Raspberry Pi and the APT source
404 list:&lt;/p&gt;
405
406 &lt;p&gt;&lt;pre&gt;
407 #!/bin/sh
408 set -e # Exit on first error
409 rootdir=&quot;$1&quot;
410 cd &quot;$rootdir&quot;
411 cat &amp;lt;&amp;lt;EOF &gt; etc/apt/sources.list
412 deb http://http.debian.net/debian/ jessie main contrib non-free
413 EOF
414 # Install non-free binary blob needed to boot Raspberry Pi. This
415 # install a kernel somewhere too.
416 wget https://raw.github.com/Hexxeh/rpi-update/master/rpi-update \
417 -O $rootdir/usr/bin/rpi-update
418 chmod a+x $rootdir/usr/bin/rpi-update
419 mkdir -p $rootdir/lib/modules
420 touch $rootdir/boot/start.elf
421 chroot $rootdir rpi-update
422 &lt;/pre&gt;&lt;/p&gt;
423
424 &lt;p&gt;Next, fetch the latest vmdebootstrap script and call it like this
425 to build the image:&lt;/p&gt;
426
427 &lt;pre&gt;
428 sudo ./vmdebootstrap \
429 --variant minbase \
430 --arch armel \
431 --distribution jessie \
432 --mirror http://http.debian.net/debian \
433 --image test.img \
434 --size 600M \
435 --bootsize 64M \
436 --boottype vfat \
437 --log-level debug \
438 --verbose \
439 --no-kernel \
440 --no-extlinux \
441 --root-password raspberry \
442 --hostname raspberrypi \
443 --foreign /usr/bin/qemu-arm-static \
444 --customize `pwd`/customize \
445 --package netbase \
446 --package git-core \
447 --package binutils \
448 --package ca-certificates \
449 --package wget \
450 --package kmod
451 &lt;/pre&gt;&lt;/p&gt;
452
453 &lt;p&gt;The list of packages being installed are the ones needed by
454 rpi-update to make the image bootable on the Raspberry Pi, with the
455 exception of netbase, which is needed by debootstrap to find
456 /etc/hosts with the minbase variant. I really wish there was a way to
457 set up an Raspberry Pi using only packages in the Debian archive, but
458 that is not possible as far as I know, because it boots from the GPU
459 using a non-free binary blob.&lt;/p&gt;
460
461 &lt;p&gt;The build host need debootstrap, kpartx and qemu-user-static and
462 probably a few others installed. I have not checked the complete
463 build dependency list.&lt;/p&gt;
464
465 &lt;p&gt;The resulting image will not use the hardware floating point unit
466 on the Raspberry PI, because the armel architecture in Debian is not
467 optimized for that use. So the images created will be a bit slower
468 than &lt;a href=&quot;http://www.raspbian.org/&quot;&gt;Raspbian&lt;/a&gt; based images.&lt;/p&gt;
469 </description>
470 </item>
471
472 <item>
473 <title>Det er jo makta som er mest sårbar ved massiv overvåkning av Internett</title>
474 <link>http://people.skolelinux.org/pere/blog/Det_er_jo_makta_som_er_mest_s_rbar_ved_massiv_overv_kning_av_Internett.html</link>
475 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Det_er_jo_makta_som_er_mest_s_rbar_ved_massiv_overv_kning_av_Internett.html</guid>
476 <pubDate>Sat, 26 Oct 2013 20:30:00 +0200</pubDate>
477 <description>&lt;p&gt;De siste måneders eksponering av
478 &lt;a href=&quot;http://www.aftenposten.no/nyheter/uriks/Her-er-Edvard-Snowdens-mest-omtalte-avsloringer-7351734.html&quot;&gt;den
479 totale overvåkningen som foregår i den vestlige verden dokumenterer
480 hvor sårbare vi er&lt;/a&gt;. Men det slår meg at de som er mest sårbare
481 for dette, myndighetspersoner på alle nivåer, neppe har innsett at de
482 selv er de mest interessante personene å lage profiler på, for å kunne
483 påvirke dem.&lt;/p&gt;
484
485 &lt;p&gt;For å ta et lite eksempel: Stortingets nettsted,
486 &lt;a href=&quot;http://www.stortinget.no/&quot;&gt;www.stortinget.no&lt;/a&gt; (og
487 forsåvidt også
488 &lt;a href=&quot;http://data.stortinget.no/&quot;&gt;data.stortinget.no&lt;/a&gt;),
489 inneholder informasjon om det som foregår på Stortinget, og jeg antar
490 de største brukerne av informasjonen der er representanter og
491 rådgivere på Stortinget. Intet overraskende med det. Det som derimot
492 er mer skjult er at Stortingets nettsted bruker
493 &lt;a href=&quot;http://en.wikipedia.org/wiki/Google_Analytics&quot;&gt;Google
494 Analytics&lt;/a&gt;, hvilket gjør at enhver som besøker nettsidene der også
495 rapporterer om besøket via Internett-linjer som passerer Sverige,
496 England og videre til USA. Det betyr at informasjon om ethvert besøk
497 på stortingets nettsider kan snappes opp av svensk, britisk og USAs
498 etterretningsvesen. De kan dermed holde et øye med hvilke
499 Stortingssaker stortingsrepresentantene synes er interessante å sjekke
500 ut, og hvilke sider rådgivere og andre på stortinget synes er
501 interessant å besøke, når de gjør det og hvilke andre representanter
502 som sjekker de samme sidene omtrent samtidig. Stortingets bruk av
503 Google Analytics gjør det dermed enkelt for utenlands etteretning å
504 spore representantenes aktivitet og interesse. Hvis noen av
505 representantene bruker Google Mail eller noen andre tjenestene som
506 krever innlogging, så vil det være enda enklere å finne ut nøyaktig
507 hvilke personer som bruker hvilke nettlesere og dermed knytte
508 informasjonen opp til enkeltpersoner på Stortinget.&lt;/p&gt;
509
510 &lt;p&gt;Og jo flere nettsteder som bruker Google Analytics, jo bedre
511 oversikt over stortingsrepresentantenes lesevaner og interesse blir
512 tilgjengelig for svensk, britisk og USAs etterretning. Hva de kan
513 bruke den informasjonen til overlater jeg til leseren å undres
514 over.&lt;/p&gt;
515 </description>
516 </item>
517
518 <item>
519 <title>A Raspberry Pi based batman-adv Mesh network node</title>
520 <link>http://people.skolelinux.org/pere/blog/A_Raspberry_Pi_based_batman_adv_Mesh_network_node.html</link>
521 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/A_Raspberry_Pi_based_batman_adv_Mesh_network_node.html</guid>
522 <pubDate>Mon, 21 Oct 2013 11:40:00 +0200</pubDate>
523 <description>&lt;p&gt;The last few days I have been experimenting with
524 &lt;a href=&quot;http://www.open-mesh.org/projects/batman-adv/wiki&quot;&gt;the
525 batman-adv mesh technology&lt;/a&gt;. I want to gain some experience to see
526 if it will fit &lt;a href=&quot;https://wiki.debian.org/FreedomBox&quot;&gt;the
527 Freedombox project&lt;/a&gt;, and together with my neighbors try to build a
528 mesh network around the park where I live. Batman-adv is a layer 2
529 mesh system (&quot;ethernet&quot; in other words), where the mesh network appear
530 as if all the mesh clients are connected to the same switch.&lt;/p&gt;
531
532 &lt;p&gt;My hardware of choice was the Linksys WRT54GL routers I had lying
533 around, but I&#39;ve been unable to get them working with batman-adv. So
534 instead, I started playing with a
535 &lt;a href=&quot;http://www.raspberrypi.org/&quot;&gt;Raspberry Pi&lt;/a&gt;, and tried to
536 get it working as a mesh node. My idea is to use it to create a mesh
537 node which function as a switch port, where everything connected to
538 the Raspberry Pi ethernet plug is connected (bridged) to the mesh
539 network. This allow me to hook a wifi base station like the Linksys
540 WRT54GL to the mesh by plugging it into a Raspberry Pi, and allow
541 non-mesh clients to hook up to the mesh. This in turn is useful for
542 Android phones using &lt;a href=&quot;http://servalproject.org/&quot;&gt;the Serval
543 Project&lt;/a&gt; voip client, allowing every one around the playground to
544 phone and message each other for free. The reason is that Android
545 phones do not see ad-hoc wifi networks (they are filtered away from
546 the GUI view), and can not join the mesh without being rooted. But if
547 they are connected using a normal wifi base station, they can talk to
548 every client on the local network.&lt;/p&gt;
549
550 &lt;p&gt;To get this working, I&#39;ve created a debian package
551 &lt;a href=&quot;https://github.com/petterreinholdtsen/meshfx-node&quot;&gt;meshfx-node&lt;/a&gt;
552 and a script
553 &lt;a href=&quot;https://github.com/petterreinholdtsen/meshfx-node/blob/master/build-rpi-mesh-node&quot;&gt;build-rpi-mesh-node&lt;/a&gt;
554 to create the Raspberry Pi boot image. I&#39;m using Debian Jessie (and
555 not Raspbian), to get more control over the packages available.
556 Unfortunately a huge binary blob need to be inserted into the boot
557 image to get it booting, but I&#39;ll ignore that for now. Also, as
558 Debian lack support for the CPU features available in the Raspberry
559 Pi, the system do not use the hardware floating point unit. I hope
560 the routing performance isn&#39;t affected by the lack of hardware FPU
561 support.&lt;/p&gt;
562
563 &lt;p&gt;To create an image, run the following with a sudo enabled user
564 after inserting the target SD card into the build machine:&lt;/p&gt;
565
566 &lt;p&gt;&lt;pre&gt;
567 % wget -O build-rpi-mesh-node \
568 https://raw.github.com/petterreinholdtsen/meshfx-node/master/build-rpi-mesh-node
569 % sudo bash -x ./build-rpi-mesh-node &gt; build.log 2&gt;&amp;1
570 % dd if=/root/rpi/rpi_basic_jessie_$(date +%Y%m%d).img of=/dev/mmcblk0 bs=1M
571 %
572 &lt;/pre&gt;&lt;/p&gt;
573
574 &lt;p&gt;Booting with the resulting SD card on a Raspberry PI with a USB
575 wifi card inserted should give you a mesh node. At least it does for
576 me with a the wifi card I am using. The default mesh settings are the
577 ones used by the Oslo mesh project at Hackeriet, as I mentioned in
578 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/Oslo_community_mesh_network___with_NUUG_and_Hackeriet_at_Hausmania.html&quot;&gt;an
579 earlier blog post about this mesh testing&lt;/a&gt;.&lt;/p&gt;
580
581 &lt;p&gt;The mesh node was not horribly expensive either. I bought
582 everything over the counter in shops nearby. If I had ordered online
583 from the lowest bidder, the price should be significantly lower:&lt;/p&gt;
584
585 &lt;p&gt;&lt;table&gt;
586
587 &lt;tr&gt;&lt;th&gt;Supplier&lt;/th&gt;&lt;th&gt;Model&lt;/th&gt;&lt;th&gt;NOK&lt;/th&gt;&lt;/tr&gt;
588 &lt;tr&gt;&lt;td&gt;Teknikkmagasinet&lt;/td&gt;&lt;td&gt;Raspberry Pi model B&lt;/td&gt;&lt;td&gt;349.90&lt;/td&gt;&lt;/tr&gt;
589 &lt;tr&gt;&lt;td&gt;Teknikkmagasinet&lt;/td&gt;&lt;td&gt;Raspberry Pi type B case&lt;/td&gt;&lt;td&gt;99.90&lt;/td&gt;&lt;/tr&gt;
590 &lt;tr&gt;&lt;td&gt;Lefdal&lt;/td&gt;&lt;td&gt;Jensen Air:Link 25150&lt;/td&gt;&lt;td&gt;295.-&lt;/td&gt;&lt;/tr&gt;
591 &lt;tr&gt;&lt;td&gt;Clas Ohlson&lt;/td&gt;&lt;td&gt;Kingston 16 GB SD card&lt;/td&gt;&lt;td&gt;199.-&lt;/td&gt;&lt;/tr&gt;
592 &lt;tr&gt;&lt;td&gt;Total cost&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;943.80&lt;/td&gt;&lt;/tr&gt;
593
594 &lt;/table&gt;&lt;/p&gt;
595
596 &lt;p&gt;Now my mesh network at home consist of one laptop in the basement
597 connected to my production network, one Raspberry Pi node on the 1th
598 floor that can be seen by my neighbor across the park, and one
599 play-node I use to develop the image building script. And some times
600 I hook up my work horse laptop to the mesh to test it. I look forward
601 to figuring out what kind of latency the batman-adv setup will give,
602 and how much packet loss we will experience around the park. :)&lt;/p&gt;
603 </description>
604 </item>
605
606 <item>
607 <title>Perl library to control the Spykee robot moved to github</title>
608 <link>http://people.skolelinux.org/pere/blog/Perl_library_to_control_the_Spykee_robot_moved_to_github.html</link>
609 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Perl_library_to_control_the_Spykee_robot_moved_to_github.html</guid>
610 <pubDate>Sat, 19 Oct 2013 10:20:00 +0200</pubDate>
611 <description>&lt;p&gt;Back in 2010, I created a Perl library to talk to
612 &lt;a href=&quot;http://en.wikipedia.org/wiki/Spykee&quot;&gt;the Spykee robot&lt;/a&gt;
613 (with two belts, wifi, USB and Linux) and made it available from my
614 web page. Today I concluded that it should move to a site that is
615 easier to use to cooperate with others, and moved it to github. If
616 you got a Spykee robot, you might want to check out
617 &lt;a href=&quot;https://github.com/petterreinholdtsen/libspykee-perl&quot;&gt;the
618 libspykee-perl github repository&lt;/a&gt;.&lt;/p&gt;
619 </description>
620 </item>
621
622 <item>
623 <title>Good causes: Debian Outreach Program for Women, EFF documenting the spying and Open access in Norway</title>
624 <link>http://people.skolelinux.org/pere/blog/Good_causes__Debian_Outreach_Program_for_Women__EFF_documenting_the_spying_and_Open_access_in_Norway.html</link>
625 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Good_causes__Debian_Outreach_Program_for_Women__EFF_documenting_the_spying_and_Open_access_in_Norway.html</guid>
626 <pubDate>Tue, 15 Oct 2013 21:30:00 +0200</pubDate>
627 <description>&lt;p&gt;The last few days I came across a few good causes that should get
628 wider attention. I recommend signing and donating to each one of
629 these. :)&lt;/p&gt;
630
631 &lt;p&gt;Via &lt;a href=&quot;http://www.debian.org/News/weekly/2013/18/&quot;&gt;Debian
632 Project News for 2013-10-14&lt;/a&gt; I came across the Outreach Program for
633 Women program which is a Google Summer of Code like initiative to get
634 more women involved in free software. One debian sponsor has offered
635 to match &lt;a href=&quot;http://debian.ch/opw2013&quot;&gt;any donation done to Debian
636 earmarked&lt;/a&gt; for this initiative. I donated a few minutes ago, and
637 hope you will to. :)&lt;/p&gt;
638
639 &lt;p&gt;And the Electronic Frontier Foundation just announced plans to
640 create &lt;a href=&quot;https://supporters.eff.org/donate/nsa-videos&quot;&gt;video
641 documentaries about the excessive spying&lt;/a&gt; on every Internet user that
642 take place these days, and their need to fund the work. I&#39;ve already
643 donated. Are you next?&lt;/p&gt;
644
645 &lt;p&gt;For my Norwegian audience, the organisation Studentenes og
646 Akademikernes Internasjonale Hjelpefond is collecting signatures for a
647 statement under the heading
648 &lt;a href=&quot;http://saih.no/Bloggers_United/&quot;&gt;Bloggers United for Open
649 Access&lt;/a&gt; for those of us asking for more focus on open access in the
650 Norwegian government. So far 499 signatures. I hope you will sign it
651 too.&lt;/p&gt;
652 </description>
653 </item>
654
655 <item>
656 <title>Oslo community mesh network - with NUUG and Hackeriet at Hausmania</title>
657 <link>http://people.skolelinux.org/pere/blog/Oslo_community_mesh_network___with_NUUG_and_Hackeriet_at_Hausmania.html</link>
658 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Oslo_community_mesh_network___with_NUUG_and_Hackeriet_at_Hausmania.html</guid>
659 <pubDate>Fri, 11 Oct 2013 14:10:00 +0200</pubDate>
660 <description>&lt;p&gt;Wireless mesh networks are self organising and self healing
661 networks that can be used to connect computers across small and large
662 areas, depending on the radio technology used. Normal wifi equipment
663 can be used to create home made radio networks, and there are several
664 successful examples like
665 &lt;a href=&quot;http://www.freifunk.net/&quot;&gt;Freifunk&lt;/a&gt; and
666 &lt;a href=&quot;http://www.awmn.net/&quot;&gt;Athens Wireless Metropolitan Network&lt;/a&gt;
667 (see
668 &lt;a href=&quot;http://en.wikipedia.org/wiki/List_of_wireless_community_networks_by_region#Greece&quot;&gt;wikipedia
669 for a large list&lt;/a&gt;) around the globe. To give you an idea how it
670 work, check out the nice overview of the Kiel Freifunk community which
671 can be seen from their
672 &lt;a href=&quot;http://freifunk.in-kiel.de/ffmap/nodes.html&quot;&gt;dynamically
673 updated node graph and map&lt;/a&gt;, where one can see how the mesh nodes
674 automatically handle routing and recover from nodes disappearing.
675 There is also a small community mesh network group in Oslo, Norway,
676 and that is the main topic of this blog post.&lt;/p&gt;
677
678 &lt;p&gt;I&#39;ve wanted to check out mesh networks for a while now, and hoped
679 to do it as part of my involvement with the &lt;a
680 href=&quot;http://www.nuug.no/&quot;&gt;NUUG member organisation&lt;/a&gt; community, and
681 my recent involvement in
682 &lt;a href=&quot;https://wiki.debian.org/FreedomBox&quot;&gt;the Freedombox project&lt;/a&gt;
683 finally lead me to give mesh networks some priority, as I suspect a
684 Freedombox should use mesh networks to connect neighbours and family
685 when possible, given that most communication between people are
686 between those nearby (as shown for example by research on Facebook
687 communication patterns). It also allow people to communicate without
688 any central hub to tap into for those that want to listen in on the
689 private communication of citizens, which have become more and more
690 important over the years.&lt;/p&gt;
691
692 &lt;p&gt;So far I have only been able to find one group of people in Oslo
693 working on community mesh networks, over at the hack space
694 &lt;a href=&quot;http://hackeriet.no/&quot;&gt;Hackeriet&lt;/a&gt; at Husmania. They seem to
695 have started with some Freifunk based effort using OLSR, called
696 &lt;a href=&quot;http://oslo.freifunk.net/index.php?title=Main_Page&quot;&gt;the Oslo
697 Freifunk project&lt;/a&gt;, but that effort is now dead and the people
698 behind it have moved on to a batman-adv based system called
699 &lt;a href=&quot;http://meshfx.org/trac&quot;&gt;meshfx&lt;/a&gt;. Unfortunately the wiki
700 site for the Oslo Freifunk project is no longer possible to update to
701 reflect this fact, so the old project page can&#39;t be updated to point to
702 the new project. A while back, the people at Hackeriet invited people
703 from the Freifunk community to Oslo to talk about mesh networks. I
704 came across this video where Hans Jørgen Lysglimt interview the
705 speakers about this talk (from
706 &lt;a href=&quot;https://www.youtube.com/watch?v=N2Kd7CLkhSY&quot;&gt;youtube&lt;/a&gt;):&lt;/p&gt;
707
708 &lt;p&gt;&lt;iframe width=&quot;420&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/N2Kd7CLkhSY&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;/p&gt;
709
710 &lt;p&gt;I mentioned OLSR and batman-adv, which are mesh routing protocols.
711 There are heaps of different protocols, and I am still struggling to
712 figure out which one would be &quot;best&quot; for some definitions of best, but
713 given that the community mesh group in Oslo is so small, I believe it
714 is best to hook up with the existing one instead of trying to create a
715 completely different setup, and thus I have decided to focus on
716 batman-adv for now. It sure help me to know that the very cool
717 &lt;a href=&quot;http://www.servalproject.org/&quot;&gt;Serval project in Australia&lt;/a&gt;
718 is using batman-adv as their meshing technology when it create a self
719 organizing and self healing telephony system for disaster areas and
720 less industrialized communities. Check out this cool video presenting
721 that project (from
722 &lt;a href=&quot;https://www.youtube.com/watch?v=30qNfzJCQOA&quot;&gt;youtube&lt;/a&gt;):&lt;/p&gt;
723
724 &lt;p&gt;&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/30qNfzJCQOA&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;/p&gt;
725
726 &lt;p&gt;According to the wikipedia page on
727 &lt;a href=&quot;http://en.wikipedia.org/wiki/Wireless_mesh_network&quot;&gt;Wireless
728 mesh network&lt;/a&gt; there are around 70 competing schemes for routing
729 packets across mesh networks, and OLSR, B.A.T.M.A.N. and
730 B.A.T.M.A.N. advanced are protocols used by several free software
731 based community mesh networks.&lt;/p&gt;
732
733 &lt;p&gt;The batman-adv protocol is a bit special, as it provide layer 2
734 (as in ethernet ) routing, allowing ipv4 and ipv6 to work on the same
735 network. One way to think about it is that it provide a mesh based
736 vlan you can bridge to or handle like any other vlan connected to your
737 computer. The required drivers are already in the Linux kernel at
738 least since Debian Wheezy, and it is fairly easy to set up. A
739 &lt;a href=&quot;http://www.open-mesh.org/projects/batman-adv/wiki/Quick-start-guide&quot;&gt;good
740 introduction&lt;/a&gt; is available from the Open Mesh project. These are
741 the key settings needed to join the Oslo meshfx network:&lt;/p&gt;
742
743 &lt;p&gt;&lt;table&gt;
744 &lt;tr&gt;&lt;th&gt;Setting&lt;/th&gt;&lt;th&gt;Value&lt;/th&gt;&lt;/tr&gt;
745 &lt;tr&gt;&lt;td&gt;Protocol / kernel module&lt;/td&gt;&lt;td&gt;batman-adv&lt;/td&gt;&lt;/tr&gt;
746 &lt;tr&gt;&lt;td&gt;ESSID&lt;/td&gt;&lt;td&gt;meshfx@hackeriet&lt;/td&gt;&lt;/tr&gt;
747 &lt;td&gt;Channel / Frequency&lt;/td&gt;&lt;td&gt;11 / 2462&lt;/td&gt;&lt;/tr&gt;
748 &lt;td&gt;Cell ID&lt;/td&gt;&lt;td&gt;02:BA:00:00:00:01&lt;/td&gt;
749 &lt;/table&gt;&lt;/p&gt;
750
751 &lt;p&gt;The reason for setting ad-hoc wifi Cell ID is to work around bugs
752 in firmware used in wifi card and wifi drivers. (See a nice post from
753 VillageTelco about
754 &quot;&lt;a href=&quot;http://tiebing.blogspot.no/2009/12/ad-hoc-cell-splitting-re-post-original.html&quot;&gt;Information
755 about cell-id splitting, stuck beacons, and failed IBSS merges!&lt;/a&gt;
756 for details.) When these settings are activated and you have some
757 other mesh node nearby, your computer will be connected to the mesh
758 network and can communicate with any mesh node that is connected to
759 any of the nodes in your network of nodes. :)&lt;/p&gt;
760
761 &lt;p&gt;My initial plan was to reuse my old Linksys WRT54GL as a mesh node,
762 but that seem to be very hard, as I have not been able to locate a
763 firmware supporting batman-adv. If anyone know how to use that old
764 wifi access point with batman-adv these days, please let me know.&lt;/p&gt;
765
766 &lt;p&gt;If you find this project interesting and want to join, please join
767 us on IRC, either channel
768 &lt;a href=&quot;irc://irc.freenode.net/#oslohackerspace&quot;&gt;#oslohackerspace&lt;/a&gt;
769 or &lt;a href=&quot;irc://irc.freenode.net/#nuug&quot;&gt;#nuug&lt;/a&gt; on
770 irc.freenode.net.&lt;/p&gt;
771
772 &lt;p&gt;While investigating mesh networks in Oslo, I came across an old
773 research paper from the university of Stavanger and Telenor Research
774 and Innovation called
775 &lt;a href=&quot;http://folk.uio.no/paalee/publications/netrel-egeland-iswcs-2008.pdf&quot;&gt;The
776 reliability of wireless backhaul mesh networks&lt;/a&gt; and elsewhere
777 learned that Telenor have been experimenting with mesh networks at
778 Grünerløkka in Oslo. So mesh networks are also interesting for
779 commercial companies, even though Telenor discovered that it was hard
780 to figure out a good business plan for mesh networking and as far as I
781 know have closed down the experiment. Perhaps Telenor or others would
782 be interested in a cooperation?&lt;/p&gt;
783
784 &lt;p&gt;&lt;strong&gt;Update 2013-10-12&lt;/strong&gt;: I was just
785 &lt;a href=&quot;http://lists.alioth.debian.org/pipermail/freedombox-discuss/2013-October/005900.html&quot;&gt;told
786 by the Serval project developers&lt;/a&gt; that they no longer use
787 batman-adv (but are compatible with it), but their own crypto based
788 mesh system.&lt;/p&gt;
789 </description>
790 </item>
791
792 <item>
793 <title>Skolelinux / Debian Edu 7.1 install and overview video from Marcelo Salvador</title>
794 <link>http://people.skolelinux.org/pere/blog/Skolelinux___Debian_Edu_7_1_install_and_overview_video_from_Marcelo_Salvador.html</link>
795 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Skolelinux___Debian_Edu_7_1_install_and_overview_video_from_Marcelo_Salvador.html</guid>
796 <pubDate>Tue, 8 Oct 2013 17:10:00 +0200</pubDate>
797 <description>&lt;p&gt;The other day I was pleased and surprised to discover that Marcelo
798 Salvador had published a
799 &lt;a href=&quot;https://www.youtube.com/watch?v=w-GgpdqgLFc&quot;&gt;video on
800 Youtube&lt;/a&gt; showing how to install the standalone Debian Edu /
801 Skolelinux profile. This is the profile intended for use at home or
802 on laptops that should not be integrated into the provided network
803 services (no central home directory, no Kerberos / LDAP directory etc,
804 in other word a single user machine). The result is 11 minutes long,
805 and show some user applications (seem to be rather randomly picked).
806 Missed a few of my favorites like celestia, planets and chromium
807 showing the &lt;a href=&quot;http://www.zygotebody.com/&quot;&gt;Zygote Body 3D model
808 of the human body&lt;/a&gt;, but I guess he did not know about those or find
809 other programs more interesting. :) And the video do not show the
810 advantages I believe is one of the most valuable featuers in Debian
811 Edu, its central school server making it possible to run hundreds of
812 computers without hard drives by installing one central
813 &lt;a href=&quot;http://www.ltsp.org/&quot;&gt;LTSP server&lt;/a&gt;.&lt;/p&gt;
814
815 &lt;p&gt;Anyway, check out the video, embedded below and linked to above:&lt;/p&gt;
816
817 &lt;iframe width=&quot;420&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/w-GgpdqgLFc&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;
818
819 &lt;p&gt;Are there other nice videos demonstrating Skolelinux? Please let
820 me know. :)&lt;/p&gt;
821 </description>
822 </item>
823
824 </channel>
825 </rss>