]> pere.pagekite.me Git - homepage.git/blob - blog/archive/2013/11/index.html
Generated.
[homepage.git] / blog / archive / 2013 / 11 / index.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
6 <title>Petter Reinholdtsen: entries from November 2013</title>
7 <link rel="stylesheet" type="text/css" media="screen" href="http://people.skolelinux.org/pere/blog/style.css" />
8 <link rel="stylesheet" type="text/css" media="screen" href="http://people.skolelinux.org/pere/blog/vim.css" />
9 <link rel="alternate" title="RSS Feed" href="11.rss" type="application/rss+xml" />
10 </head>
11 <body>
12 <!-- XML FEED -->
13 <div class="title">
14 <h1>
15 <a href="http://people.skolelinux.org/pere/blog/">Petter Reinholdtsen</a>
16
17 </h1>
18
19 </div>
20
21
22 <h3>Entries from November 2013.</h3>
23
24 <div class="entry">
25 <div class="title">
26 <a href="http://people.skolelinux.org/pere/blog/New_chrpath_release_0_15.html">New chrpath release 0.15</a>
27 </div>
28 <div class="date">
29 24th November 2013
30 </div>
31 <div class="body">
32 <p>After many years break from the package and a vain hope that
33 development would be continued by someone else, I finally pulled my
34 acts together this morning and wrapped up a new release of chrpath,
35 the command line tool to modify the rpath and runpath of already
36 compiled ELF programs. The update was triggered by the persistence of
37 Isha Vishnoi at IBM, which needed a new config.guess file to get
38 support for the ppc64le architecture (powerpc 64-bit Little Endian) he
39 is working on. I checked the
40 <a href="http://packages.qa.debian.org/chrpath">Debian</a>,
41 <a href="https://launchpad.net/ubuntu/+source/chrpath">Ubuntu</a> and
42 <a href="https://admin.fedoraproject.org/pkgdb/acls/name/chrpath">Fedora</a>
43 packages for interesting patches (failed to find the source from
44 OpenSUSE and Mandriva packages), and found quite a few nice fixes.
45 These are the release notes:</p>
46
47 <p>New in 0.15 released 2013-11-24:</p>
48
49 <ul>
50
51 <li>Updated config.sub and config.guess from the GNU project to work
52 with newer architectures. Thanks to isha vishnoi for the heads
53 up.</li>
54
55 <li>Updated README with current URLs.</li>
56
57 <li>Added byteswap fix found in Ubuntu, credited Jeremy Kerr and
58 Matthias Klose.</li>
59
60 <li>Added missing help for -k|--keepgoing option, using patch by
61 Petr Machata found in Fedora.</li>
62
63 <li>Rewrite removal of RPATH/RUNPATH to make sure the entry in
64 .dynamic is a NULL terminated string. Based on patch found in
65 Fedora credited Axel Thimm and Christian Krause.</li>
66
67 </ul>
68
69 <p>You can
70 <a href="https://alioth.debian.org/frs/?group_id=31052">download the
71 new version 0.15 from alioth</a>. Please let us know via the Alioth
72 project if something is wrong with the new release. The test suite
73 did not discover any old errors, so if you find a new one, please also
74 include a testsuite check.</p>
75
76 </div>
77 <div class="tags">
78
79
80 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian">debian</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>.
81
82
83 </div>
84 </div>
85 <div class="padding"></div>
86
87 <div class="entry">
88 <div class="title">
89 <a href="http://people.skolelinux.org/pere/blog/RSS_kilde_for_friteksts_k_i_offentlige_anbud_hos_Doffin.html">RSS-kilde for fritekstsøk i offentlige anbud hos Doffin</a>
90 </div>
91 <div class="date">
92 22nd November 2013
93 </div>
94 <div class="body">
95 <p>I fjor sommer lagde jeg en
96 <a href="http://people.skolelinux.org/pere/blog/SQL_database_med_anbud_publisert_p__Doffin.html">offentlig
97 tilgjengelig SQL-database over offentlig anbud</a> basert på skraping
98 av HTML-data fra Doffin. Den har stått og gått siden da, og har nå
99 ca. 28000 oppføringer. Jeg oppdaget da jeg tittet innom at noen
100 oppføringer var ikke blitt med, antagelig på grunn av at de fikk
101 tildelt sekvensnummer i Doffin en godt stund før de ble publisert,
102 slik at min nettsideskraper som fortsatte skrapingen der den slapp
103 sist ikke fikk dem med seg. Jeg har fikset litt slik at skraperen nå
104 ser litt tilbake i tid for å se om den har gått glipp av noen
105 oppføringer, og har skrapet på nytt fra midten av september 2013 og
106 fremover. Det bør dermed bli en mer komplett database for kommende
107 måneder. Hvis jeg får tid skal jeg forsøke å skrape "glemte" data fra
108 før midten av september 2013, men tør ikke garantere at det blir
109 prioritert med det første. </p>
110
111 <p>Men målet med denne bloggposten er å vise hvordan denne
112 Doffin-databasen kan brukes og integreres med en RSS-leser, slik at en
113 kan la datamaskinen holde et øye med Doffin-annonseringer etter
114 nøkkelord. En kan lage sitt eget søk ved å besøke
115 <ahref="https://classic.scraperwiki.com/docs/api?name=norwegian-doffin#sqlite">API-et
116 hos Scraperwiki</a>, velge format rss2 og så legge inn noe ala dette i
117 "query in SQL":</p>
118
119 <p><pre>
120 select title, scrapedurl as link, abstract as description,
121 publishdate as pubDate from 'swdata'
122 where abstract like '%linux%' or title like '%linux%'
123 order by seq desc limit 20
124 </pre></p>
125
126 <p>Dette vil søke opp alle anbud med ordet linux i oppsummering eller
127 tittel. En kan lage mer avanserte søk hvis en ønsker det. URL-en som
128 dukker opp nederst på siden kan en så gi til sin RSS-leser (jeg bruker
129 akregator selv), og så automatisk få beskjed hvis det dukker opp anbud
130 med det aktuelle nøkkelordet i teksten. Merk at kapasiteten og
131 ytelsen hos Scraperwiki er begrenset, så ikke be RSS-leseren hente ned
132 oftere enn en gang hver dag.</p>
133
134 <p>Du lurer kanskje på hva slags informasjon en kan få ut fra denne
135 databasen. Her er to RSS-kilder, med søkeordet
136 "<a href="https://api.scraperwiki.com/api/1.0/datastore/sqlite?format=rss2&name=norwegian-doffin&query=select%20title%2C%20scrapedurl%20as%20link%2C%20abstract%20as%20description%2C%0A%20%20%20%20%20%20%20publishdate%20as%20pubDate%20from%20'swdata'%0A%20%20%20where%20abstract%20like%20'%25linux%25'%20or%20title%20like%20'%25linux%25'%0A%20%20%20order%20by%20seq%20desc%20limit%2020">linux</a>",
137 søkeordet
138 "<a href="https://api.scraperwiki.com/api/1.0/datastore/sqlite?format=rss2&name=norwegian-doffin&query=select%20title%2C%20scrapedurl%20as%20link%2C%20abstract%20as%20description%2C%0A%20%20%20%20%20%20%20publishdate%20as%20pubDate%20from%20'swdata'%0A%20%20%20where%20abstract%20like%20'%25fri%20programvare%25'%20or%20title%20like%20'%25fri%20programvare%25'%0A%20%20%20order%20by%20seq%20desc%20limit%2020">fri
139 programvare</a>"
140 og søkeordet
141 "<a href="https://api.scraperwiki.com/api/1.0/datastore/sqlite?format=rss2&name=norwegian-doffin&query=select%20title%2C%20scrapedurl%20as%20link%2C%20abstract%20as%20description%2C%0A%20%20%20%20%20%20%20publishdate%20as%20pubDate%20from%20'swdata'%0A%20%20%20where%20abstract%20like%20'%25odf%25'%20or%20title%20like%20'%25odf%25'%0A%20%20%20order%20by%20seq%20desc%20limit%2020">odf</a>".
142 Det er bare å søke på det en er interessert i. Kopier gjerne
143 datasettet og sett opp din egen tjeneste hvis du vil gjøre mer
144 avanserte søk. SQLite-filen med Doffin-oppføringer kan lastes med fra
145 Scraperwiki for de som vil grave dypere.</p>
146
147 </div>
148 <div class="tags">
149
150
151 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/norsk">norsk</a>, <a href="http://people.skolelinux.org/pere/blog/tags/nuug">nuug</a>, <a href="http://people.skolelinux.org/pere/blog/tags/offentlig innsyn">offentlig innsyn</a>.
152
153
154 </div>
155 </div>
156 <div class="padding"></div>
157
158 <div class="entry">
159 <div class="title">
160 <a href="http://people.skolelinux.org/pere/blog/All_drones_should_be_radio_marked_with_what_they_do_and_who_they_belong_to.html">All drones should be radio marked with what they do and who they belong to</a>
161 </div>
162 <div class="date">
163 21st November 2013
164 </div>
165 <div class="body">
166 <p>Drones, flying robots, are getting more and more popular. The most
167 know ones are the killer drones used by some government to murder
168 people they do not like without giving them the chance of a fair
169 trial, but the technology have many good uses too, from mapping and
170 forest maintenance to photography and search and rescue. I am sure it
171 is just a question of time before "bad drones" are in the hands of
172 private enterprises and not only state criminals but petty criminals
173 too. The drone technology is very useful and very dangerous. To have
174 some control over the use of drones, I agree with Daniel Suarez in his
175 TED talk
176 "<a href="https://archive.org/details/DanielSuarez_2013G">The kill
177 decision shouldn't belong to a robot</a>", where he suggested this
178 little gem to keep the good while limiting the bad use of drones:</p>
179
180 <blockquote>
181
182 <p>Each robot and drone should have a cryptographically signed
183 I.D. burned in at the factory that can be used to track its movement
184 through public spaces. We have license plates on cars, tail numbers on
185 aircraft. This is no different. And every citizen should be able to
186 download an app that shows the population of drones and autonomous
187 vehicles moving through public spaces around them, both right now and
188 historically. And civic leaders should deploy sensors and civic drones
189 to detect rogue drones, and instead of sending killer drones of their
190 own up to shoot them down, they should notify humans to their
191 presence. And in certain very high-security areas, perhaps civic
192 drones would snare them and drag them off to a bomb disposal facility.</p>
193
194 <p>But notice, this is more an immune system than a weapons system. It
195 would allow us to avail ourselves of the use of autonomous vehicles
196 and drones while still preserving our open, civil society.</p>
197
198 </blockquote>
199
200 <p>The key is that <em>every citizen</em> should be able to read the
201 radio beacons sent from the drones in the area, to be able to check
202 both the government and others use of drones. For such control to be
203 effective, everyone must be able to do it. What should such beacon
204 contain? At least formal owner, purpose, contact information and GPS
205 location. Probably also the origin and target position of the current
206 flight. And perhaps some registration number to be able to look up
207 the drone in a central database tracking their movement. Robots
208 should not have privacy. It is people who need privacy.</p>
209
210 </div>
211 <div class="tags">
212
213
214 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>, <a href="http://people.skolelinux.org/pere/blog/tags/robot">robot</a>, <a href="http://people.skolelinux.org/pere/blog/tags/sikkerhet">sikkerhet</a>, <a href="http://people.skolelinux.org/pere/blog/tags/surveillance">surveillance</a>.
215
216
217 </div>
218 </div>
219 <div class="padding"></div>
220
221 <div class="entry">
222 <div class="title">
223 <a href="http://people.skolelinux.org/pere/blog/Lets_make_a_wireless_community_network_in_Oslo_.html">Lets make a wireless community network in Oslo!</a>
224 </div>
225 <div class="date">
226 13th November 2013
227 </div>
228 <div class="body">
229 <p>Today NUUG and Hackeriet announced
230 <a href="http://www.nuug.no/news/Bli_med___bygge_dugnadsnett_for_alle_i_Oslo.shtml">our
231 plans to join forces and create a wireless community network in
232 Oslo</a>. The workshop to help people get started will take place
233 Thursday 2013-11-28, but we already are collecting the geolocation of
234 people joining forces to make this happen. We have
235 <a href="https://github.com/petterreinholdtsen/meshfx-node/blob/master/oslo-nodes.geojson">9
236 locations plotted on the map</a>, but we will need more before we have
237 a connected mesh spread across Oslo. If this sound interesting to
238 you, please join us at the workshop. If you are too impatient to wait
239 15 days, please join us on the IRC channel
240 <a href="irc://irc.freenode.net/%23nuug">#nuug on irc.freenode.net</a>
241 right away. :)</p>
242
243 </div>
244 <div class="tags">
245
246
247 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>, <a href="http://people.skolelinux.org/pere/blog/tags/mesh network">mesh network</a>, <a href="http://people.skolelinux.org/pere/blog/tags/nuug">nuug</a>.
248
249
250 </div>
251 </div>
252 <div class="padding"></div>
253
254 <div class="entry">
255 <div class="title">
256 <a href="http://people.skolelinux.org/pere/blog/Running_TP_Link_MR3040_as_a_batman_adv_mesh_node_using_openwrt.html">Running TP-Link MR3040 as a batman-adv mesh node using openwrt</a>
257 </div>
258 <div class="date">
259 10th November 2013
260 </div>
261 <div class="body">
262 <p>Continuing my research into mesh networking, I was recommended to
263 use TP-Link 3040 and 3600 access points as mesh nodes, and the pair I
264 bought arrived on Friday. Here are my notes on how to set up the
265 MR3040 as a mesh node using
266 <a href="http://www.openwrt.org/">OpenWrt</a>.</p>
267
268 <p>I started by following the instructions on the OpenWRT wiki for
269 <a href="http://wiki.openwrt.org/toh/tp-link/tl-mr3040">TL-MR3040</a>,
270 and downloaded
271 <a href="http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-mr3040-v2-squashfs-factory.bin">the
272 recommended firmware image</a>
273 (openwrt-ar71xx-generic-tl-mr3040-v2-squashfs-factory.bin) and
274 uploaded it into the original web interface. The flashing went fine,
275 and the machine was available via telnet on the ethernet port. After
276 logging in and setting the root password, ssh was available and I
277 could start to set it up as a batman-adv mesh node.</p>
278
279 <p>I started off by reading the instructions from
280 <a href="http://wirelessafrica.meraka.org.za/wiki/index.php?title=Antoine's_Research">Wireless
281 Africa</a>, which had quite a lot of useful information, but
282 eventually I followed the recipe from the Open Mesh wiki for
283 <a href="http://www.open-mesh.org/projects/batman-adv/wiki/Batman-adv-openwrt-config">using
284 batman-adv on OpenWrt</a>. A small snag was the fact that the
285 <tt>opkg install kmod-batman-adv</tt> command did not work as it
286 should. The batman-adv kernel module would fail to load because its
287 dependency crc16 was not already loaded. I
288 <a href="https://dev.openwrt.org/ticket/14452">reported the bug</a> to
289 the openwrt project and hope it will be fixed soon. But the problem
290 only seem to affect initial testing of batman-adv, as configuration
291 seem to work when booting from scratch.</p>
292
293 <p>The setup is done using files in /etc/config/. I did not bridge
294 the Ethernet and mesh interfaces this time, to be able to hook up the
295 box on my local network and log into it for configuration updates.
296 The following files were changed and look like this after modifying
297 them:</p>
298
299 <p><tt>/etc/config/network</tt></p>
300
301 <pre>
302
303 config interface 'loopback'
304 option ifname 'lo'
305 option proto 'static'
306 option ipaddr '127.0.0.1'
307 option netmask '255.0.0.0'
308
309 config globals 'globals'
310 option ula_prefix 'fdbf:4c12:3fed::/48'
311
312 config interface 'lan'
313 option ifname 'eth0'
314 option type 'bridge'
315 option proto 'dhcp'
316 option ipaddr '192.168.1.1'
317 option netmask '255.255.255.0'
318 option hostname 'tl-mr3040'
319 option ip6assign '60'
320
321 config interface 'mesh'
322 option ifname 'adhoc0'
323 option mtu '1528'
324 option proto 'batadv'
325 option mesh 'bat0'
326 </pre>
327
328 <p><tt>/etc/config/wireless</tt></p>
329 <pre>
330
331 config wifi-device 'radio0'
332 option type 'mac80211'
333 option channel '11'
334 option hwmode '11ng'
335 option path 'platform/ar933x_wmac'
336 option htmode 'HT20'
337 list ht_capab 'SHORT-GI-20'
338 list ht_capab 'SHORT-GI-40'
339 list ht_capab 'RX-STBC1'
340 list ht_capab 'DSSS_CCK-40'
341 option disabled '0'
342
343 config wifi-iface 'wmesh'
344 option device 'radio0'
345 option ifname 'adhoc0'
346 option network 'mesh'
347 option encryption 'none'
348 option mode 'adhoc'
349 option bssid '02:BA:00:00:00:01'
350 option ssid 'meshfx@hackeriet'
351 </pre>
352 <p><tt>/etc/config/batman-adv</tt></p>
353 <pre>
354
355 config 'mesh' 'bat0'
356 option interfaces 'adhoc0'
357 option 'aggregated_ogms'
358 option 'ap_isolation'
359 option 'bonding'
360 option 'fragmentation'
361 option 'gw_bandwidth'
362 option 'gw_mode'
363 option 'gw_sel_class'
364 option 'log_level'
365 option 'orig_interval'
366 option 'vis_mode'
367 option 'bridge_loop_avoidance'
368 option 'distributed_arp_table'
369 option 'network_coding'
370 option 'hop_penalty'
371
372 # yet another batX instance
373 # config 'mesh' 'bat5'
374 # option 'interfaces' 'second_mesh'
375 </pre>
376
377 <p>The mesh node is now operational. I have yet to test its range,
378 but I hope it is good. I have not yet tested the TP-Link 3600 box
379 still wrapped up in plastic.</p>
380
381 </div>
382 <div class="tags">
383
384
385 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>, <a href="http://people.skolelinux.org/pere/blog/tags/mesh network">mesh network</a>, <a href="http://people.skolelinux.org/pere/blog/tags/nuug">nuug</a>.
386
387
388 </div>
389 </div>
390 <div class="padding"></div>
391
392 <div class="entry">
393 <div class="title">
394 <a href="http://people.skolelinux.org/pere/blog/Debian_init_d_boot_script_example_for_rsyslog.html">Debian init.d boot script example for rsyslog</a>
395 </div>
396 <div class="date">
397 2nd November 2013
398 </div>
399 <div class="body">
400 <p>If one of the points of switching to a new init system in Debian is
401 <a href="http://thomas.goirand.fr/blog/?p=147">to get rid of huge
402 init.d scripts</a>, I doubt we need to switch away from sysvinit and
403 init.d scripts at all. Here is an example init.d script, ie a rewrite
404 of /etc/init.d/rsyslog:</p>
405
406 <p><pre>
407 #!/lib/init/init-d-script
408 ### BEGIN INIT INFO
409 # Provides: rsyslog
410 # Required-Start: $remote_fs $time
411 # Required-Stop: umountnfs $time
412 # X-Stop-After: sendsigs
413 # Default-Start: 2 3 4 5
414 # Default-Stop: 0 1 6
415 # Short-Description: enhanced syslogd
416 # Description: Rsyslog is an enhanced multi-threaded syslogd.
417 # It is quite compatible to stock sysklogd and can be
418 # used as a drop-in replacement.
419 ### END INIT INFO
420 DESC="enhanced syslogd"
421 DAEMON=/usr/sbin/rsyslogd
422 </pre></p>
423
424 <p>Pretty minimalistic to me... For the record, the original sysv-rc
425 script was 137 lines, and the above is just 15 lines, most of it meta
426 info/comments.</p>
427
428 <p>How to do this, you ask? Well, one create a new script
429 /lib/init/init-d-script looking something like this:
430
431 <p><pre>
432 #!/bin/sh
433
434 # Define LSB log_* functions.
435 # Depend on lsb-base (>= 3.2-14) to ensure that this file is present
436 # and status_of_proc is working.
437 . /lib/lsb/init-functions
438
439 #
440 # Function that starts the daemon/service
441
442 #
443 do_start()
444 {
445 # Return
446 # 0 if daemon has been started
447 # 1 if daemon was already running
448 # 2 if daemon could not be started
449 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
450 || return 1
451 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
452 $DAEMON_ARGS \
453 || return 2
454 # Add code here, if necessary, that waits for the process to be ready
455 # to handle requests from services started subsequently which depend
456 # on this one. As a last resort, sleep for some time.
457 }
458
459 #
460 # Function that stops the daemon/service
461 #
462 do_stop()
463 {
464 # Return
465 # 0 if daemon has been stopped
466 # 1 if daemon was already stopped
467 # 2 if daemon could not be stopped
468 # other if a failure occurred
469 start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
470 RETVAL="$?"
471 [ "$RETVAL" = 2 ] && return 2
472 # Wait for children to finish too if this is a daemon that forks
473 # and if the daemon is only ever run from this initscript.
474 # If the above conditions are not satisfied then add some other code
475 # that waits for the process to drop all resources that could be
476 # needed by services started subsequently. A last resort is to
477 # sleep for some time.
478 start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
479 [ "$?" = 2 ] && return 2
480 # Many daemons don't delete their pidfiles when they exit.
481 rm -f $PIDFILE
482 return "$RETVAL"
483 }
484
485 #
486 # Function that sends a SIGHUP to the daemon/service
487 #
488 do_reload() {
489 #
490 # If the daemon can reload its configuration without
491 # restarting (for example, when it is sent a SIGHUP),
492 # then implement that here.
493 #
494 start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
495 return 0
496 }
497
498 SCRIPTNAME=$1
499 scriptbasename="$(basename $1)"
500 echo "SN: $scriptbasename"
501 if [ "$scriptbasename" != "init-d-library" ] ; then
502 script="$1"
503 shift
504 . $script
505 else
506 exit 0
507 fi
508
509 NAME=$(basename $DAEMON)
510 PIDFILE=/var/run/$NAME.pid
511
512 # Exit if the package is not installed
513 #[ -x "$DAEMON" ] || exit 0
514
515 # Read configuration variable file if it is present
516 [ -r /etc/default/$NAME ] && . /etc/default/$NAME
517
518 # Load the VERBOSE setting and other rcS variables
519 . /lib/init/vars.sh
520
521 case "$1" in
522 start)
523 [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
524 do_start
525 case "$?" in
526 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
527 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
528 esac
529 ;;
530 stop)
531 [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
532 do_stop
533 case "$?" in
534 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
535 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
536 esac
537 ;;
538 status)
539 status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
540 ;;
541 #reload|force-reload)
542 #
543 # If do_reload() is not implemented then leave this commented out
544 # and leave 'force-reload' as an alias for 'restart'.
545 #
546 #log_daemon_msg "Reloading $DESC" "$NAME"
547 #do_reload
548 #log_end_msg $?
549 #;;
550 restart|force-reload)
551 #
552 # If the "reload" option is implemented then remove the
553 # 'force-reload' alias
554 #
555 log_daemon_msg "Restarting $DESC" "$NAME"
556 do_stop
557 case "$?" in
558 0|1)
559 do_start
560 case "$?" in
561 0) log_end_msg 0 ;;
562 1) log_end_msg 1 ;; # Old process is still running
563 *) log_end_msg 1 ;; # Failed to start
564 esac
565 ;;
566 *)
567 # Failed to stop
568 log_end_msg 1
569 ;;
570 esac
571 ;;
572 *)
573 echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
574 exit 3
575 ;;
576 esac
577
578 :
579 </pre></p>
580
581 <p>It is based on /etc/init.d/skeleton, and could be improved quite a
582 lot. I did not really polish the approach, so it might not always
583 work out of the box, but you get the idea. I did not try very hard to
584 optimize it nor make it more robust either.</p>
585
586 <p>A better argument for switching init system in Debian than reducing
587 the size of init scripts (which is a good thing to do anyway), is to
588 get boot system that is able to handle the kernel events sensibly and
589 robustly, and do not depend on the boot to run sequentially. The boot
590 and the kernel have not behaved sequentially in years.</p>
591
592 </div>
593 <div class="tags">
594
595
596 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/bootsystem">bootsystem</a>, <a href="http://people.skolelinux.org/pere/blog/tags/debian">debian</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>.
597
598
599 </div>
600 </div>
601 <div class="padding"></div>
602
603 <div class="entry">
604 <div class="title">
605 <a href="http://people.skolelinux.org/pere/blog/Browser_plugin_for_SPICE__spice_xpi__uploaded_to_Debian.html">Browser plugin for SPICE (spice-xpi) uploaded to Debian</a>
606 </div>
607 <div class="date">
608 1st November 2013
609 </div>
610 <div class="body">
611 <p><a href="http://www.spice-space.org/">The SPICE protocol</a> for
612 remote display access is the preferred solution with oVirt and RedHat
613 Enterprise Virtualization, and I was sad to discover the other day
614 that the browser plugin needed to use these systems seamlessly was
615 missing in Debian. The <a href="http://bugs.debian.org/668284">request
616 for a package</a> was from 2012-04-10 with no progress since
617 2013-04-01, so I decided to wrap up a package based on the great work
618 from Cajus Pollmeier and put it in a collab-maint maintained git
619 repository to get a package I could use. I would very much like
620 others to help me maintain the package (or just take over, I do not
621 mind), but as no-one had volunteered so far, I just uploaded it to
622 NEW. I hope it will be available in Debian in a few days.</p>
623
624 <p>The source is now available from
625 <a href="http://anonscm.debian.org/gitweb/?p=collab-maint/spice-xpi.git;a=summary">http://anonscm.debian.org/gitweb/?p=collab-maint/spice-xpi.git;a=summary</a>.</p>
626
627 </div>
628 <div class="tags">
629
630
631 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian">debian</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>.
632
633
634 </div>
635 </div>
636 <div class="padding"></div>
637
638 <p style="text-align: right;"><a href="11.rss"><img src="http://people.skolelinux.org/pere/blog/xml.gif" alt="RSS Feed" width="36" height="14" /></a></p>
639 <div id="sidebar">
640
641
642
643 <h2>Archive</h2>
644 <ul>
645
646 <li>2013
647 <ul>
648
649 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/01/">January (11)</a></li>
650
651 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/02/">February (9)</a></li>
652
653 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/03/">March (9)</a></li>
654
655 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/04/">April (6)</a></li>
656
657 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/05/">May (9)</a></li>
658
659 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/06/">June (10)</a></li>
660
661 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/07/">July (7)</a></li>
662
663 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/08/">August (3)</a></li>
664
665 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/09/">September (5)</a></li>
666
667 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/10/">October (7)</a></li>
668
669 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/11/">November (7)</a></li>
670
671 </ul></li>
672
673 <li>2012
674 <ul>
675
676 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/01/">January (7)</a></li>
677
678 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/02/">February (10)</a></li>
679
680 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/03/">March (17)</a></li>
681
682 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/04/">April (12)</a></li>
683
684 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/05/">May (12)</a></li>
685
686 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/06/">June (20)</a></li>
687
688 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/07/">July (17)</a></li>
689
690 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/08/">August (6)</a></li>
691
692 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/09/">September (9)</a></li>
693
694 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/10/">October (17)</a></li>
695
696 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/11/">November (10)</a></li>
697
698 <li><a href="http://people.skolelinux.org/pere/blog/archive/2012/12/">December (7)</a></li>
699
700 </ul></li>
701
702 <li>2011
703 <ul>
704
705 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/01/">January (16)</a></li>
706
707 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/02/">February (6)</a></li>
708
709 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/03/">March (6)</a></li>
710
711 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/04/">April (7)</a></li>
712
713 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/05/">May (3)</a></li>
714
715 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/06/">June (2)</a></li>
716
717 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/07/">July (7)</a></li>
718
719 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/08/">August (6)</a></li>
720
721 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/09/">September (4)</a></li>
722
723 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/10/">October (2)</a></li>
724
725 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/11/">November (3)</a></li>
726
727 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/12/">December (1)</a></li>
728
729 </ul></li>
730
731 <li>2010
732 <ul>
733
734 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/01/">January (2)</a></li>
735
736 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/02/">February (1)</a></li>
737
738 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/03/">March (3)</a></li>
739
740 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/04/">April (3)</a></li>
741
742 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/05/">May (9)</a></li>
743
744 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/06/">June (14)</a></li>
745
746 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/07/">July (12)</a></li>
747
748 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/08/">August (13)</a></li>
749
750 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/09/">September (7)</a></li>
751
752 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/10/">October (9)</a></li>
753
754 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/11/">November (13)</a></li>
755
756 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/12/">December (12)</a></li>
757
758 </ul></li>
759
760 <li>2009
761 <ul>
762
763 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/01/">January (8)</a></li>
764
765 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/02/">February (8)</a></li>
766
767 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/03/">March (12)</a></li>
768
769 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/04/">April (10)</a></li>
770
771 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/05/">May (9)</a></li>
772
773 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/06/">June (3)</a></li>
774
775 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/07/">July (4)</a></li>
776
777 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/08/">August (3)</a></li>
778
779 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/09/">September (1)</a></li>
780
781 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/10/">October (2)</a></li>
782
783 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/11/">November (3)</a></li>
784
785 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/12/">December (3)</a></li>
786
787 </ul></li>
788
789 <li>2008
790 <ul>
791
792 <li><a href="http://people.skolelinux.org/pere/blog/archive/2008/11/">November (5)</a></li>
793
794 <li><a href="http://people.skolelinux.org/pere/blog/archive/2008/12/">December (7)</a></li>
795
796 </ul></li>
797
798 </ul>
799
800
801
802 <h2>Tags</h2>
803 <ul>
804
805 <li><a href="http://people.skolelinux.org/pere/blog/tags/3d-printer">3d-printer (13)</a></li>
806
807 <li><a href="http://people.skolelinux.org/pere/blog/tags/amiga">amiga (1)</a></li>
808
809 <li><a href="http://people.skolelinux.org/pere/blog/tags/aros">aros (1)</a></li>
810
811 <li><a href="http://people.skolelinux.org/pere/blog/tags/bankid">bankid (4)</a></li>
812
813 <li><a href="http://people.skolelinux.org/pere/blog/tags/bitcoin">bitcoin (7)</a></li>
814
815 <li><a href="http://people.skolelinux.org/pere/blog/tags/bootsystem">bootsystem (13)</a></li>
816
817 <li><a href="http://people.skolelinux.org/pere/blog/tags/bsa">bsa (2)</a></li>
818
819 <li><a href="http://people.skolelinux.org/pere/blog/tags/debian">debian (91)</a></li>
820
821 <li><a href="http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu (142)</a></li>
822
823 <li><a href="http://people.skolelinux.org/pere/blog/tags/digistan">digistan (10)</a></li>
824
825 <li><a href="http://people.skolelinux.org/pere/blog/tags/docbook">docbook (10)</a></li>
826
827 <li><a href="http://people.skolelinux.org/pere/blog/tags/drivstoffpriser">drivstoffpriser (4)</a></li>
828
829 <li><a href="http://people.skolelinux.org/pere/blog/tags/english">english (229)</a></li>
830
831 <li><a href="http://people.skolelinux.org/pere/blog/tags/fiksgatami">fiksgatami (21)</a></li>
832
833 <li><a href="http://people.skolelinux.org/pere/blog/tags/fildeling">fildeling (12)</a></li>
834
835 <li><a href="http://people.skolelinux.org/pere/blog/tags/freeculture">freeculture (12)</a></li>
836
837 <li><a href="http://people.skolelinux.org/pere/blog/tags/freedombox">freedombox (5)</a></li>
838
839 <li><a href="http://people.skolelinux.org/pere/blog/tags/frikanalen">frikanalen (11)</a></li>
840
841 <li><a href="http://people.skolelinux.org/pere/blog/tags/intervju">intervju (37)</a></li>
842
843 <li><a href="http://people.skolelinux.org/pere/blog/tags/isenkram">isenkram (7)</a></li>
844
845 <li><a href="http://people.skolelinux.org/pere/blog/tags/kart">kart (18)</a></li>
846
847 <li><a href="http://people.skolelinux.org/pere/blog/tags/ldap">ldap (8)</a></li>
848
849 <li><a href="http://people.skolelinux.org/pere/blog/tags/lenker">lenker (6)</a></li>
850
851 <li><a href="http://people.skolelinux.org/pere/blog/tags/ltsp">ltsp (1)</a></li>
852
853 <li><a href="http://people.skolelinux.org/pere/blog/tags/mesh network">mesh network (5)</a></li>
854
855 <li><a href="http://people.skolelinux.org/pere/blog/tags/multimedia">multimedia (25)</a></li>
856
857 <li><a href="http://people.skolelinux.org/pere/blog/tags/norsk">norsk (237)</a></li>
858
859 <li><a href="http://people.skolelinux.org/pere/blog/tags/nuug">nuug (159)</a></li>
860
861 <li><a href="http://people.skolelinux.org/pere/blog/tags/offentlig innsyn">offentlig innsyn (9)</a></li>
862
863 <li><a href="http://people.skolelinux.org/pere/blog/tags/open311">open311 (2)</a></li>
864
865 <li><a href="http://people.skolelinux.org/pere/blog/tags/opphavsrett">opphavsrett (45)</a></li>
866
867 <li><a href="http://people.skolelinux.org/pere/blog/tags/personvern">personvern (67)</a></li>
868
869 <li><a href="http://people.skolelinux.org/pere/blog/tags/raid">raid (1)</a></li>
870
871 <li><a href="http://people.skolelinux.org/pere/blog/tags/reprap">reprap (11)</a></li>
872
873 <li><a href="http://people.skolelinux.org/pere/blog/tags/rfid">rfid (2)</a></li>
874
875 <li><a href="http://people.skolelinux.org/pere/blog/tags/robot">robot (9)</a></li>
876
877 <li><a href="http://people.skolelinux.org/pere/blog/tags/rss">rss (1)</a></li>
878
879 <li><a href="http://people.skolelinux.org/pere/blog/tags/ruter">ruter (4)</a></li>
880
881 <li><a href="http://people.skolelinux.org/pere/blog/tags/scraperwiki">scraperwiki (2)</a></li>
882
883 <li><a href="http://people.skolelinux.org/pere/blog/tags/sikkerhet">sikkerhet (33)</a></li>
884
885 <li><a href="http://people.skolelinux.org/pere/blog/tags/sitesummary">sitesummary (4)</a></li>
886
887 <li><a href="http://people.skolelinux.org/pere/blog/tags/skepsis">skepsis (4)</a></li>
888
889 <li><a href="http://people.skolelinux.org/pere/blog/tags/standard">standard (43)</a></li>
890
891 <li><a href="http://people.skolelinux.org/pere/blog/tags/stavekontroll">stavekontroll (3)</a></li>
892
893 <li><a href="http://people.skolelinux.org/pere/blog/tags/stortinget">stortinget (9)</a></li>
894
895 <li><a href="http://people.skolelinux.org/pere/blog/tags/surveillance">surveillance (21)</a></li>
896
897 <li><a href="http://people.skolelinux.org/pere/blog/tags/sysadmin">sysadmin (1)</a></li>
898
899 <li><a href="http://people.skolelinux.org/pere/blog/tags/valg">valg (8)</a></li>
900
901 <li><a href="http://people.skolelinux.org/pere/blog/tags/video">video (39)</a></li>
902
903 <li><a href="http://people.skolelinux.org/pere/blog/tags/vitenskap">vitenskap (4)</a></li>
904
905 <li><a href="http://people.skolelinux.org/pere/blog/tags/web">web (28)</a></li>
906
907 </ul>
908
909
910 </div>
911 <p style="text-align: right">
912 Created by <a href="http://steve.org.uk/Software/chronicle">Chronicle v4.6</a>
913 </p>
914
915 </body>
916 </html>