]> pere.pagekite.me Git - homepage.git/blob - blog/archive/2013/11/11.rss
Generated.
[homepage.git] / blog / archive / 2013 / 11 / 11.rss
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/'>
3 <channel>
4 <title>Petter Reinholdtsen - Entries from November 2013</title>
5 <description>Entries from November 2013</description>
6 <link>http://people.skolelinux.org/pere/blog/</link>
7
8
9 <item>
10 <title>New chrpath release 0.15</title>
11 <link>http://people.skolelinux.org/pere/blog/New_chrpath_release_0_15.html</link>
12 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/New_chrpath_release_0_15.html</guid>
13 <pubDate>Sun, 24 Nov 2013 09:30:00 +0100</pubDate>
14 <description>&lt;p&gt;After many years break from the package and a vain hope that
15 development would be continued by someone else, I finally pulled my
16 acts together this morning and wrapped up a new release of chrpath,
17 the command line tool to modify the rpath and runpath of already
18 compiled ELF programs. The update was triggered by the persistence of
19 Isha Vishnoi at IBM, which needed a new config.guess file to get
20 support for the ppc64le architecture (powerpc 64-bit Little Endian) he
21 is working on. I checked the
22 &lt;a href=&quot;http://packages.qa.debian.org/chrpath&quot;&gt;Debian&lt;/a&gt;,
23 &lt;a href=&quot;https://launchpad.net/ubuntu/+source/chrpath&quot;&gt;Ubuntu&lt;/a&gt; and
24 &lt;a href=&quot;https://admin.fedoraproject.org/pkgdb/acls/name/chrpath&quot;&gt;Fedora&lt;/a&gt;
25 packages for interesting patches (failed to find the source from
26 OpenSUSE and Mandriva packages), and found quite a few nice fixes.
27 These are the release notes:&lt;/p&gt;
28
29 &lt;p&gt;New in 0.15 released 2013-11-24:&lt;/p&gt;
30
31 &lt;ul&gt;
32
33 &lt;li&gt;Updated config.sub and config.guess from the GNU project to work
34 with newer architectures. Thanks to isha vishnoi for the heads
35 up.&lt;/li&gt;
36
37 &lt;li&gt;Updated README with current URLs.&lt;/li&gt;
38
39 &lt;li&gt;Added byteswap fix found in Ubuntu, credited Jeremy Kerr and
40 Matthias Klose.&lt;/li&gt;
41
42 &lt;li&gt;Added missing help for -k|--keepgoing option, using patch by
43 Petr Machata found in Fedora.&lt;/li&gt;
44
45 &lt;li&gt;Rewrite removal of RPATH/RUNPATH to make sure the entry in
46 .dynamic is a NULL terminated string. Based on patch found in
47 Fedora credited Axel Thimm and Christian Krause.&lt;/li&gt;
48
49 &lt;/ul&gt;
50
51 &lt;p&gt;You can
52 &lt;a href=&quot;https://alioth.debian.org/frs/?group_id=31052&quot;&gt;download the
53 new version 0.15 from alioth&lt;/a&gt;. Please let us know via the Alioth
54 project if something is wrong with the new release. The test suite
55 did not discover any old errors, so if you find a new one, please also
56 include a testsuite check.&lt;/p&gt;
57 </description>
58 </item>
59
60 <item>
61 <title>RSS-kilde for fritekstsøk i offentlige anbud hos Doffin</title>
62 <link>http://people.skolelinux.org/pere/blog/RSS_kilde_for_friteksts_k_i_offentlige_anbud_hos_Doffin.html</link>
63 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/RSS_kilde_for_friteksts_k_i_offentlige_anbud_hos_Doffin.html</guid>
64 <pubDate>Fri, 22 Nov 2013 13:40:00 +0100</pubDate>
65 <description>&lt;p&gt;I fjor sommer lagde jeg en
66 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/SQL_database_med_anbud_publisert_p__Doffin.html&quot;&gt;offentlig
67 tilgjengelig SQL-database over offentlig anbud&lt;/a&gt; basert på skraping
68 av HTML-data fra Doffin. Den har stått og gått siden da, og har nå
69 ca. 28000 oppføringer. Jeg oppdaget da jeg tittet innom at noen
70 oppføringer var ikke blitt med, antagelig på grunn av at de fikk
71 tildelt sekvensnummer i Doffin en godt stund før de ble publisert,
72 slik at min nettsideskraper som fortsatte skrapingen der den slapp
73 sist ikke fikk dem med seg. Jeg har fikset litt slik at skraperen nå
74 ser litt tilbake i tid for å se om den har gått glipp av noen
75 oppføringer, og har skrapet på nytt fra midten av september 2013 og
76 fremover. Det bør dermed bli en mer komplett database for kommende
77 måneder. Hvis jeg får tid skal jeg forsøke å skrape &quot;glemte&quot; data fra
78 før midten av september 2013, men tør ikke garantere at det blir
79 prioritert med det første. &lt;/p&gt;
80
81 &lt;p&gt;Men målet med denne bloggposten er å vise hvordan denne
82 Doffin-databasen kan brukes og integreres med en RSS-leser, slik at en
83 kan la datamaskinen holde et øye med Doffin-annonseringer etter
84 nøkkelord. En kan lage sitt eget søk ved å besøke
85 &lt;ahref=&quot;https://classic.scraperwiki.com/docs/api?name=norwegian-doffin#sqlite&quot;&gt;API-et
86 hos Scraperwiki&lt;/a&gt;, velge format rss2 og så legge inn noe ala dette i
87 &quot;query in SQL&quot;:&lt;/p&gt;
88
89 &lt;p&gt;&lt;pre&gt;
90 select title, scrapedurl as link, abstract as description,
91 publishdate as pubDate from &#39;swdata&#39;
92 where abstract like &#39;%linux%&#39; or title like &#39;%linux%&#39;
93 order by seq desc limit 20
94 &lt;/pre&gt;&lt;/p&gt;
95
96 &lt;p&gt;Dette vil søke opp alle anbud med ordet linux i oppsummering eller
97 tittel. En kan lage mer avanserte søk hvis en ønsker det. URL-en som
98 dukker opp nederst på siden kan en så gi til sin RSS-leser (jeg bruker
99 akregator selv), og så automatisk få beskjed hvis det dukker opp anbud
100 med det aktuelle nøkkelordet i teksten. Merk at kapasiteten og
101 ytelsen hos Scraperwiki er begrenset, så ikke be RSS-leseren hente ned
102 oftere enn en gang hver dag.&lt;/p&gt;
103
104 &lt;p&gt;Du lurer kanskje på hva slags informasjon en kan få ut fra denne
105 databasen. Her er to RSS-kilder, med søkeordet
106 &quot;&lt;a href=&quot;https://api.scraperwiki.com/api/1.0/datastore/sqlite?format=rss2&amp;name=norwegian-doffin&amp;query=select%20title%2C%20scrapedurl%20as%20link%2C%20abstract%20as%20description%2C%0A%20%20%20%20%20%20%20publishdate%20as%20pubDate%20from%20&#39;swdata&#39;%0A%20%20%20where%20abstract%20like%20&#39;%25linux%25&#39;%20or%20title%20like%20&#39;%25linux%25&#39;%0A%20%20%20order%20by%20seq%20desc%20limit%2020&quot;&gt;linux&lt;/a&gt;&quot;,
107 søkeordet
108 &quot;&lt;a href=&quot;https://api.scraperwiki.com/api/1.0/datastore/sqlite?format=rss2&amp;name=norwegian-doffin&amp;query=select%20title%2C%20scrapedurl%20as%20link%2C%20abstract%20as%20description%2C%0A%20%20%20%20%20%20%20publishdate%20as%20pubDate%20from%20&#39;swdata&#39;%0A%20%20%20where%20abstract%20like%20&#39;%25fri%20programvare%25&#39;%20or%20title%20like%20&#39;%25fri%20programvare%25&#39;%0A%20%20%20order%20by%20seq%20desc%20limit%2020&quot;&gt;fri
109 programvare&lt;/a&gt;&quot;
110 og søkeordet
111 &quot;&lt;a href=&quot;https://api.scraperwiki.com/api/1.0/datastore/sqlite?format=rss2&amp;name=norwegian-doffin&amp;query=select%20title%2C%20scrapedurl%20as%20link%2C%20abstract%20as%20description%2C%0A%20%20%20%20%20%20%20publishdate%20as%20pubDate%20from%20&#39;swdata&#39;%0A%20%20%20where%20abstract%20like%20&#39;%25odf%25&#39;%20or%20title%20like%20&#39;%25odf%25&#39;%0A%20%20%20order%20by%20seq%20desc%20limit%2020&quot;&gt;odf&lt;/a&gt;&quot;.
112 Det er bare å søke på det en er interessert i. Kopier gjerne
113 datasettet og sett opp din egen tjeneste hvis du vil gjøre mer
114 avanserte søk. SQLite-filen med Doffin-oppføringer kan lastes med fra
115 Scraperwiki for de som vil grave dypere.&lt;/p&gt;
116 </description>
117 </item>
118
119 <item>
120 <title>All drones should be radio marked with what they do and who they belong to</title>
121 <link>http://people.skolelinux.org/pere/blog/All_drones_should_be_radio_marked_with_what_they_do_and_who_they_belong_to.html</link>
122 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/All_drones_should_be_radio_marked_with_what_they_do_and_who_they_belong_to.html</guid>
123 <pubDate>Thu, 21 Nov 2013 15:40:00 +0100</pubDate>
124 <description>&lt;p&gt;Drones, flying robots, are getting more and more popular. The most
125 know ones are the killer drones used by some government to murder
126 people they do not like without giving them the chance of a fair
127 trial, but the technology have many good uses too, from mapping and
128 forest maintenance to photography and search and rescue. I am sure it
129 is just a question of time before &quot;bad drones&quot; are in the hands of
130 private enterprises and not only state criminals but petty criminals
131 too. The drone technology is very useful and very dangerous. To have
132 some control over the use of drones, I agree with Daniel Suarez in his
133 TED talk
134 &quot;&lt;a href=&quot;https://archive.org/details/DanielSuarez_2013G&quot;&gt;The kill
135 decision shouldn&#39;t belong to a robot&lt;/a&gt;&quot;, where he suggested this
136 little gem to keep the good while limiting the bad use of drones:&lt;/p&gt;
137
138 &lt;blockquote&gt;
139
140 &lt;p&gt;Each robot and drone should have a cryptographically signed
141 I.D. burned in at the factory that can be used to track its movement
142 through public spaces. We have license plates on cars, tail numbers on
143 aircraft. This is no different. And every citizen should be able to
144 download an app that shows the population of drones and autonomous
145 vehicles moving through public spaces around them, both right now and
146 historically. And civic leaders should deploy sensors and civic drones
147 to detect rogue drones, and instead of sending killer drones of their
148 own up to shoot them down, they should notify humans to their
149 presence. And in certain very high-security areas, perhaps civic
150 drones would snare them and drag them off to a bomb disposal facility.&lt;/p&gt;
151
152 &lt;p&gt;But notice, this is more an immune system than a weapons system. It
153 would allow us to avail ourselves of the use of autonomous vehicles
154 and drones while still preserving our open, civil society.&lt;/p&gt;
155
156 &lt;/blockquote&gt;
157
158 &lt;p&gt;The key is that &lt;em&gt;every citizen&lt;/em&gt; should be able to read the
159 radio beacons sent from the drones in the area, to be able to check
160 both the government and others use of drones. For such control to be
161 effective, everyone must be able to do it. What should such beacon
162 contain? At least formal owner, purpose, contact information and GPS
163 location. Probably also the origin and target position of the current
164 flight. And perhaps some registration number to be able to look up
165 the drone in a central database tracking their movement. Robots
166 should not have privacy. It is people who need privacy.&lt;/p&gt;
167 </description>
168 </item>
169
170 <item>
171 <title>Lets make a wireless community network in Oslo!</title>
172 <link>http://people.skolelinux.org/pere/blog/Lets_make_a_wireless_community_network_in_Oslo_.html</link>
173 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Lets_make_a_wireless_community_network_in_Oslo_.html</guid>
174 <pubDate>Wed, 13 Nov 2013 21:00:00 +0100</pubDate>
175 <description>&lt;p&gt;Today NUUG and Hackeriet announced
176 &lt;a href=&quot;http://www.nuug.no/news/Bli_med___bygge_dugnadsnett_for_alle_i_Oslo.shtml&quot;&gt;our
177 plans to join forces and create a wireless community network in
178 Oslo&lt;/a&gt;. The workshop to help people get started will take place
179 Thursday 2013-11-28, but we already are collecting the geolocation of
180 people joining forces to make this happen. We have
181 &lt;a href=&quot;https://github.com/petterreinholdtsen/meshfx-node/blob/master/oslo-nodes.geojson&quot;&gt;9
182 locations plotted on the map&lt;/a&gt;, but we will need more before we have
183 a connected mesh spread across Oslo. If this sound interesting to
184 you, please join us at the workshop. If you are too impatient to wait
185 15 days, please join us on the IRC channel
186 &lt;a href=&quot;irc://irc.freenode.net/%23nuug&quot;&gt;#nuug on irc.freenode.net&lt;/a&gt;
187 right away. :)&lt;/p&gt;
188 </description>
189 </item>
190
191 <item>
192 <title>Running TP-Link MR3040 as a batman-adv mesh node using openwrt</title>
193 <link>http://people.skolelinux.org/pere/blog/Running_TP_Link_MR3040_as_a_batman_adv_mesh_node_using_openwrt.html</link>
194 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Running_TP_Link_MR3040_as_a_batman_adv_mesh_node_using_openwrt.html</guid>
195 <pubDate>Sun, 10 Nov 2013 23:00:00 +0100</pubDate>
196 <description>&lt;p&gt;Continuing my research into mesh networking, I was recommended to
197 use TP-Link 3040 and 3600 access points as mesh nodes, and the pair I
198 bought arrived on Friday. Here are my notes on how to set up the
199 MR3040 as a mesh node using
200 &lt;a href=&quot;http://www.openwrt.org/&quot;&gt;OpenWrt&lt;/a&gt;.&lt;/p&gt;
201
202 &lt;p&gt;I started by following the instructions on the OpenWRT wiki for
203 &lt;a href=&quot;http://wiki.openwrt.org/toh/tp-link/tl-mr3040&quot;&gt;TL-MR3040&lt;/a&gt;,
204 and downloaded
205 &lt;a href=&quot;http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-mr3040-v2-squashfs-factory.bin&quot;&gt;the
206 recommended firmware image&lt;/a&gt;
207 (openwrt-ar71xx-generic-tl-mr3040-v2-squashfs-factory.bin) and
208 uploaded it into the original web interface. The flashing went fine,
209 and the machine was available via telnet on the ethernet port. After
210 logging in and setting the root password, ssh was available and I
211 could start to set it up as a batman-adv mesh node.&lt;/p&gt;
212
213 &lt;p&gt;I started off by reading the instructions from
214 &lt;a href=&quot;http://wirelessafrica.meraka.org.za/wiki/index.php?title=Antoine&#39;s_Research&quot;&gt;Wireless
215 Africa&lt;/a&gt;, which had quite a lot of useful information, but
216 eventually I followed the recipe from the Open Mesh wiki for
217 &lt;a href=&quot;http://www.open-mesh.org/projects/batman-adv/wiki/Batman-adv-openwrt-config&quot;&gt;using
218 batman-adv on OpenWrt&lt;/a&gt;. A small snag was the fact that the
219 &lt;tt&gt;opkg install kmod-batman-adv&lt;/tt&gt; command did not work as it
220 should. The batman-adv kernel module would fail to load because its
221 dependency crc16 was not already loaded. I
222 &lt;a href=&quot;https://dev.openwrt.org/ticket/14452&quot;&gt;reported the bug&lt;/a&gt; to
223 the openwrt project and hope it will be fixed soon. But the problem
224 only seem to affect initial testing of batman-adv, as configuration
225 seem to work when booting from scratch.&lt;/p&gt;
226
227 &lt;p&gt;The setup is done using files in /etc/config/. I did not bridge
228 the Ethernet and mesh interfaces this time, to be able to hook up the
229 box on my local network and log into it for configuration updates.
230 The following files were changed and look like this after modifying
231 them:&lt;/p&gt;
232
233 &lt;p&gt;&lt;tt&gt;/etc/config/network&lt;/tt&gt;&lt;/p&gt;
234
235 &lt;pre&gt;
236
237 config interface &#39;loopback&#39;
238 option ifname &#39;lo&#39;
239 option proto &#39;static&#39;
240 option ipaddr &#39;127.0.0.1&#39;
241 option netmask &#39;255.0.0.0&#39;
242
243 config globals &#39;globals&#39;
244 option ula_prefix &#39;fdbf:4c12:3fed::/48&#39;
245
246 config interface &#39;lan&#39;
247 option ifname &#39;eth0&#39;
248 option type &#39;bridge&#39;
249 option proto &#39;dhcp&#39;
250 option ipaddr &#39;192.168.1.1&#39;
251 option netmask &#39;255.255.255.0&#39;
252 option hostname &#39;tl-mr3040&#39;
253 option ip6assign &#39;60&#39;
254
255 config interface &#39;mesh&#39;
256 option ifname &#39;adhoc0&#39;
257 option mtu &#39;1528&#39;
258 option proto &#39;batadv&#39;
259 option mesh &#39;bat0&#39;
260 &lt;/pre&gt;
261
262 &lt;p&gt;&lt;tt&gt;/etc/config/wireless&lt;/tt&gt;&lt;/p&gt;
263 &lt;pre&gt;
264
265 config wifi-device &#39;radio0&#39;
266 option type &#39;mac80211&#39;
267 option channel &#39;11&#39;
268 option hwmode &#39;11ng&#39;
269 option path &#39;platform/ar933x_wmac&#39;
270 option htmode &#39;HT20&#39;
271 list ht_capab &#39;SHORT-GI-20&#39;
272 list ht_capab &#39;SHORT-GI-40&#39;
273 list ht_capab &#39;RX-STBC1&#39;
274 list ht_capab &#39;DSSS_CCK-40&#39;
275 option disabled &#39;0&#39;
276
277 config wifi-iface &#39;wmesh&#39;
278 option device &#39;radio0&#39;
279 option ifname &#39;adhoc0&#39;
280 option network &#39;mesh&#39;
281 option encryption &#39;none&#39;
282 option mode &#39;adhoc&#39;
283 option bssid &#39;02:BA:00:00:00:01&#39;
284 option ssid &#39;meshfx@hackeriet&#39;
285 &lt;/pre&gt;
286 &lt;p&gt;&lt;tt&gt;/etc/config/batman-adv&lt;/tt&gt;&lt;/p&gt;
287 &lt;pre&gt;
288
289 config &#39;mesh&#39; &#39;bat0&#39;
290 option interfaces &#39;adhoc0&#39;
291 option &#39;aggregated_ogms&#39;
292 option &#39;ap_isolation&#39;
293 option &#39;bonding&#39;
294 option &#39;fragmentation&#39;
295 option &#39;gw_bandwidth&#39;
296 option &#39;gw_mode&#39;
297 option &#39;gw_sel_class&#39;
298 option &#39;log_level&#39;
299 option &#39;orig_interval&#39;
300 option &#39;vis_mode&#39;
301 option &#39;bridge_loop_avoidance&#39;
302 option &#39;distributed_arp_table&#39;
303 option &#39;network_coding&#39;
304 option &#39;hop_penalty&#39;
305
306 # yet another batX instance
307 # config &#39;mesh&#39; &#39;bat5&#39;
308 # option &#39;interfaces&#39; &#39;second_mesh&#39;
309 &lt;/pre&gt;
310
311 &lt;p&gt;The mesh node is now operational. I have yet to test its range,
312 but I hope it is good. I have not yet tested the TP-Link 3600 box
313 still wrapped up in plastic.&lt;/p&gt;
314 </description>
315 </item>
316
317 <item>
318 <title>Debian init.d boot script example for rsyslog</title>
319 <link>http://people.skolelinux.org/pere/blog/Debian_init_d_boot_script_example_for_rsyslog.html</link>
320 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Debian_init_d_boot_script_example_for_rsyslog.html</guid>
321 <pubDate>Sat, 2 Nov 2013 22:40:00 +0100</pubDate>
322 <description>&lt;p&gt;If one of the points of switching to a new init system in Debian is
323 &lt;a href=&quot;http://thomas.goirand.fr/blog/?p=147&quot;&gt;to get rid of huge
324 init.d scripts&lt;/a&gt;, I doubt we need to switch away from sysvinit and
325 init.d scripts at all. Here is an example init.d script, ie a rewrite
326 of /etc/init.d/rsyslog:&lt;/p&gt;
327
328 &lt;p&gt;&lt;pre&gt;
329 #!/lib/init/init-d-script
330 ### BEGIN INIT INFO
331 # Provides: rsyslog
332 # Required-Start: $remote_fs $time
333 # Required-Stop: umountnfs $time
334 # X-Stop-After: sendsigs
335 # Default-Start: 2 3 4 5
336 # Default-Stop: 0 1 6
337 # Short-Description: enhanced syslogd
338 # Description: Rsyslog is an enhanced multi-threaded syslogd.
339 # It is quite compatible to stock sysklogd and can be
340 # used as a drop-in replacement.
341 ### END INIT INFO
342 DESC=&quot;enhanced syslogd&quot;
343 DAEMON=/usr/sbin/rsyslogd
344 &lt;/pre&gt;&lt;/p&gt;
345
346 &lt;p&gt;Pretty minimalistic to me... For the record, the original sysv-rc
347 script was 137 lines, and the above is just 15 lines, most of it meta
348 info/comments.&lt;/p&gt;
349
350 &lt;p&gt;How to do this, you ask? Well, one create a new script
351 /lib/init/init-d-script looking something like this:
352
353 &lt;p&gt;&lt;pre&gt;
354 #!/bin/sh
355
356 # Define LSB log_* functions.
357 # Depend on lsb-base (&gt;= 3.2-14) to ensure that this file is present
358 # and status_of_proc is working.
359 . /lib/lsb/init-functions
360
361 #
362 # Function that starts the daemon/service
363
364 #
365 do_start()
366 {
367 # Return
368 # 0 if daemon has been started
369 # 1 if daemon was already running
370 # 2 if daemon could not be started
371 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test &gt; /dev/null \
372 || return 1
373 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
374 $DAEMON_ARGS \
375 || return 2
376 # Add code here, if necessary, that waits for the process to be ready
377 # to handle requests from services started subsequently which depend
378 # on this one. As a last resort, sleep for some time.
379 }
380
381 #
382 # Function that stops the daemon/service
383 #
384 do_stop()
385 {
386 # Return
387 # 0 if daemon has been stopped
388 # 1 if daemon was already stopped
389 # 2 if daemon could not be stopped
390 # other if a failure occurred
391 start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
392 RETVAL=&quot;$?&quot;
393 [ &quot;$RETVAL&quot; = 2 ] &amp;&amp; return 2
394 # Wait for children to finish too if this is a daemon that forks
395 # and if the daemon is only ever run from this initscript.
396 # If the above conditions are not satisfied then add some other code
397 # that waits for the process to drop all resources that could be
398 # needed by services started subsequently. A last resort is to
399 # sleep for some time.
400 start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
401 [ &quot;$?&quot; = 2 ] &amp;&amp; return 2
402 # Many daemons don&#39;t delete their pidfiles when they exit.
403 rm -f $PIDFILE
404 return &quot;$RETVAL&quot;
405 }
406
407 #
408 # Function that sends a SIGHUP to the daemon/service
409 #
410 do_reload() {
411 #
412 # If the daemon can reload its configuration without
413 # restarting (for example, when it is sent a SIGHUP),
414 # then implement that here.
415 #
416 start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
417 return 0
418 }
419
420 SCRIPTNAME=$1
421 scriptbasename=&quot;$(basename $1)&quot;
422 echo &quot;SN: $scriptbasename&quot;
423 if [ &quot;$scriptbasename&quot; != &quot;init-d-library&quot; ] ; then
424 script=&quot;$1&quot;
425 shift
426 . $script
427 else
428 exit 0
429 fi
430
431 NAME=$(basename $DAEMON)
432 PIDFILE=/var/run/$NAME.pid
433
434 # Exit if the package is not installed
435 #[ -x &quot;$DAEMON&quot; ] || exit 0
436
437 # Read configuration variable file if it is present
438 [ -r /etc/default/$NAME ] &amp;&amp; . /etc/default/$NAME
439
440 # Load the VERBOSE setting and other rcS variables
441 . /lib/init/vars.sh
442
443 case &quot;$1&quot; in
444 start)
445 [ &quot;$VERBOSE&quot; != no ] &amp;&amp; log_daemon_msg &quot;Starting $DESC&quot; &quot;$NAME&quot;
446 do_start
447 case &quot;$?&quot; in
448 0|1) [ &quot;$VERBOSE&quot; != no ] &amp;&amp; log_end_msg 0 ;;
449 2) [ &quot;$VERBOSE&quot; != no ] &amp;&amp; log_end_msg 1 ;;
450 esac
451 ;;
452 stop)
453 [ &quot;$VERBOSE&quot; != no ] &amp;&amp; log_daemon_msg &quot;Stopping $DESC&quot; &quot;$NAME&quot;
454 do_stop
455 case &quot;$?&quot; in
456 0|1) [ &quot;$VERBOSE&quot; != no ] &amp;&amp; log_end_msg 0 ;;
457 2) [ &quot;$VERBOSE&quot; != no ] &amp;&amp; log_end_msg 1 ;;
458 esac
459 ;;
460 status)
461 status_of_proc &quot;$DAEMON&quot; &quot;$NAME&quot; &amp;&amp; exit 0 || exit $?
462 ;;
463 #reload|force-reload)
464 #
465 # If do_reload() is not implemented then leave this commented out
466 # and leave &#39;force-reload&#39; as an alias for &#39;restart&#39;.
467 #
468 #log_daemon_msg &quot;Reloading $DESC&quot; &quot;$NAME&quot;
469 #do_reload
470 #log_end_msg $?
471 #;;
472 restart|force-reload)
473 #
474 # If the &quot;reload&quot; option is implemented then remove the
475 # &#39;force-reload&#39; alias
476 #
477 log_daemon_msg &quot;Restarting $DESC&quot; &quot;$NAME&quot;
478 do_stop
479 case &quot;$?&quot; in
480 0|1)
481 do_start
482 case &quot;$?&quot; in
483 0) log_end_msg 0 ;;
484 1) log_end_msg 1 ;; # Old process is still running
485 *) log_end_msg 1 ;; # Failed to start
486 esac
487 ;;
488 *)
489 # Failed to stop
490 log_end_msg 1
491 ;;
492 esac
493 ;;
494 *)
495 echo &quot;Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}&quot; &gt;&amp;2
496 exit 3
497 ;;
498 esac
499
500 :
501 &lt;/pre&gt;&lt;/p&gt;
502
503 &lt;p&gt;It is based on /etc/init.d/skeleton, and could be improved quite a
504 lot. I did not really polish the approach, so it might not always
505 work out of the box, but you get the idea. I did not try very hard to
506 optimize it nor make it more robust either.&lt;/p&gt;
507
508 &lt;p&gt;A better argument for switching init system in Debian than reducing
509 the size of init scripts (which is a good thing to do anyway), is to
510 get boot system that is able to handle the kernel events sensibly and
511 robustly, and do not depend on the boot to run sequentially. The boot
512 and the kernel have not behaved sequentially in years.&lt;/p&gt;
513 </description>
514 </item>
515
516 <item>
517 <title>Browser plugin for SPICE (spice-xpi) uploaded to Debian</title>
518 <link>http://people.skolelinux.org/pere/blog/Browser_plugin_for_SPICE__spice_xpi__uploaded_to_Debian.html</link>
519 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Browser_plugin_for_SPICE__spice_xpi__uploaded_to_Debian.html</guid>
520 <pubDate>Fri, 1 Nov 2013 11:00:00 +0100</pubDate>
521 <description>&lt;p&gt;&lt;a href=&quot;http://www.spice-space.org/&quot;&gt;The SPICE protocol&lt;/a&gt; for
522 remote display access is the preferred solution with oVirt and RedHat
523 Enterprise Virtualization, and I was sad to discover the other day
524 that the browser plugin needed to use these systems seamlessly was
525 missing in Debian. The &lt;a href=&quot;http://bugs.debian.org/668284&quot;&gt;request
526 for a package&lt;/a&gt; was from 2012-04-10 with no progress since
527 2013-04-01, so I decided to wrap up a package based on the great work
528 from Cajus Pollmeier and put it in a collab-maint maintained git
529 repository to get a package I could use. I would very much like
530 others to help me maintain the package (or just take over, I do not
531 mind), but as no-one had volunteered so far, I just uploaded it to
532 NEW. I hope it will be available in Debian in a few days.&lt;/p&gt;
533
534 &lt;p&gt;The source is now available from
535 &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;
536 </description>
537 </item>
538
539 </channel>
540 </rss>