]> pere.pagekite.me Git - homepage.git/blob - blog/archive/2013/01/01.rss
974f95b0b4421808d28c2d0a8ab137469825c84e
[homepage.git] / blog / archive / 2013 / 01 / 01.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 January 2013</title>
5 <description>Entries from January 2013</description>
6 <link>http://people.skolelinux.org/pere/blog/</link>
7
8
9 <item>
10 <title>What is the most supported MIME type in Debian?</title>
11 <link>http://people.skolelinux.org/pere/blog/What_is_the_most_supported_MIME_type_in_Debian_.html</link>
12 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/What_is_the_most_supported_MIME_type_in_Debian_.html</guid>
13 <pubDate>Wed, 16 Jan 2013 10:10:00 +0100</pubDate>
14 <description>&lt;p&gt;The &lt;a href=&quot;http://wiki.debian.org/AppStreamDebianProposal&quot;&gt;DEP-11
15 proposal to add AppStream information to the Debian archive&lt;/a&gt;, is a
16 proposal to make it possible for a Desktop application to propose to
17 the user some package to install to gain support for a given MIME
18 type, font, library etc. that is currently missing. With such
19 mechanism in place, it would be possible for the desktop to
20 automatically propose and install leocad if some LDraw file is
21 downloaded by the browser.&lt;/p&gt;
22
23 &lt;p&gt;To get some idea about the current content of the archive, I decided
24 to write a simple program to extract all .desktop files from the
25 Debian archive and look up the claimed MIME support there. The result
26 can be found on the
27 &lt;a href=&quot;http://ftp.skolelinux.org/pub/AppStreamTest&quot;&gt;Skolelinux FTP
28 site&lt;/a&gt;. Using the collected information, it become possible to
29 answer the question in the title. Here are the 20 most supported MIME
30 types in Debian stable (Squeeze), testing (Wheezy) and unstable (Sid).
31 The complete list is available from the link above.&lt;/p&gt;
32
33 &lt;p&gt;&lt;strong&gt;Debian Stable:&lt;/strong&gt;&lt;/p&gt;
34
35 &lt;pre&gt;
36 count MIME type
37 ----- -----------------------
38 32 text/plain
39 30 audio/mpeg
40 29 image/png
41 28 image/jpeg
42 27 application/ogg
43 26 audio/x-mp3
44 25 image/tiff
45 25 image/gif
46 22 image/bmp
47 22 audio/x-wav
48 20 audio/x-flac
49 19 audio/x-mpegurl
50 18 video/x-ms-asf
51 18 audio/x-musepack
52 18 audio/x-mpeg
53 18 application/x-ogg
54 17 video/mpeg
55 17 audio/x-scpls
56 17 audio/ogg
57 16 video/x-ms-wmv
58 &lt;/pre&gt;
59
60 &lt;p&gt;&lt;strong&gt;Debian Testing:&lt;/strong&gt;&lt;/p&gt;
61
62 &lt;pre&gt;
63 count MIME type
64 ----- -----------------------
65 33 text/plain
66 32 image/png
67 32 image/jpeg
68 29 audio/mpeg
69 27 image/gif
70 26 image/tiff
71 26 application/ogg
72 25 audio/x-mp3
73 22 image/bmp
74 21 audio/x-wav
75 19 audio/x-mpegurl
76 19 audio/x-mpeg
77 18 video/mpeg
78 18 audio/x-scpls
79 18 audio/x-flac
80 18 application/x-ogg
81 17 video/x-ms-asf
82 17 text/html
83 17 audio/x-musepack
84 16 image/x-xbitmap
85 &lt;/pre&gt;
86
87 &lt;p&gt;&lt;strong&gt;Debian Unstable:&lt;/strong&gt;&lt;/p&gt;
88
89 &lt;pre&gt;
90 count MIME type
91 ----- -----------------------
92 31 text/plain
93 31 image/png
94 31 image/jpeg
95 29 audio/mpeg
96 28 application/ogg
97 27 image/gif
98 26 image/tiff
99 26 audio/x-mp3
100 23 audio/x-wav
101 22 image/bmp
102 21 audio/x-flac
103 20 audio/x-mpegurl
104 19 audio/x-mpeg
105 18 video/x-ms-asf
106 18 video/mpeg
107 18 audio/x-scpls
108 18 application/x-ogg
109 17 audio/x-musepack
110 16 video/x-ms-wmv
111 16 video/x-msvideo
112 &lt;/pre&gt;
113
114 &lt;p&gt;I am told that PackageKit can provide an API to access the kind of
115 information mentioned in DEP-11. I have not yet had time to look at
116 it, but hope the PackageKit people in Debian are on top of these
117 issues.&lt;/p&gt;
118
119 &lt;p&gt;&lt;strong&gt;Update 2013-01-16 13:35&lt;/strong&gt;: Updated numbers after
120 discovering a typo in my script.&lt;/p&gt;
121 </description>
122 </item>
123
124 <item>
125 <title>Using modalias info to find packages handling my hardware</title>
126 <link>http://people.skolelinux.org/pere/blog/Using_modalias_info_to_find_packages_handling_my_hardware.html</link>
127 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Using_modalias_info_to_find_packages_handling_my_hardware.html</guid>
128 <pubDate>Tue, 15 Jan 2013 08:00:00 +0100</pubDate>
129 <description>&lt;p&gt;Yesterday, I wrote about the
130 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/Modalias_strings___a_practical_way_to_map__stuff__to_hardware.html&quot;&gt;modalias
131 values provided by the Linux kernel&lt;/a&gt; following my hope for
132 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/Lets_make_hardware_dongles_easier_to_use_in_Debian.html&quot;&gt;better
133 dongle support in Debian&lt;/a&gt;. Using this knowledge, I have tested how
134 modalias values attached to package names can be used to map packages
135 to hardware. This allow the system to look up and suggest relevant
136 packages when I plug in some new hardware into my machine, and replace
137 discover and discover-data as the database used to map hardware to
138 packages.&lt;/p&gt;
139
140 &lt;p&gt;I create a modaliases file with entries like the following,
141 containing package name, kernel module name (if relevant, otherwise
142 the package name) and globs matching the relevant hardware
143 modalias.&lt;/p&gt;
144
145 &lt;p&gt;&lt;blockquote&gt;
146 Package: package-name
147 &lt;br&gt;Modaliases: module(modaliasglob, modaliasglob, modaliasglob)&lt;/p&gt;
148 &lt;/blockquote&gt;&lt;/p&gt;
149
150 &lt;p&gt;It is fairly trivial to write code to find the relevant packages
151 for a given modalias value using this file.&lt;/p&gt;
152
153 &lt;p&gt;An entry like this would suggest the video and picture application
154 cheese for many USB web cameras (interface bus class 0E01):&lt;/p&gt;
155
156 &lt;p&gt;&lt;blockquote&gt;
157 Package: cheese
158 &lt;br&gt;Modaliases: cheese(usb:v*p*d*dc*dsc*dp*ic0Eisc01ip*)&lt;/p&gt;
159 &lt;/blockquote&gt;&lt;/p&gt;
160
161 &lt;p&gt;An entry like this would suggest the pcmciautils package when a
162 CardBus bridge (bus class 0607) PCI device is present:&lt;/p&gt;
163
164 &lt;p&gt;&lt;blockquote&gt;
165 Package: pcmciautils
166 &lt;br&gt;Modaliases: pcmciautils(pci:v*d*sv*sd*bc06sc07i*)
167 &lt;/blockquote&gt;&lt;/p&gt;
168
169 &lt;p&gt;An entry like this would suggest the package colorhug-client when
170 plugging in a ColorHug with USB IDs 04D8:F8DA:&lt;/p&gt;
171
172 &lt;p&gt;&lt;blockquote&gt;
173 Package: colorhug-client
174 &lt;br&gt;Modaliases: colorhug-client(usb:v04D8pF8DAd*)&lt;/p&gt;
175 &lt;/blockquote&gt;&lt;/p&gt;
176
177 &lt;p&gt;I believe the format is compatible with the format of the Packages
178 file in the Debian archive. Ubuntu already uses their Packages file
179 to store their mappings from packages to hardware.&lt;/p&gt;
180
181 &lt;p&gt;By adding a XB-Modaliases: header in debian/control, any .deb can
182 announce the hardware it support in a way my prototype understand.
183 This allow those publishing packages in an APT source outside the
184 Debian archive as well as those backporting packages to make sure the
185 hardware mapping are included in the package meta information. I&#39;ve
186 tested such header in the pymissile package, and its modalias mapping
187 is working as it should with my prototype. It even made it to Ubuntu
188 Raring.&lt;/p&gt;
189
190 &lt;p&gt;To test if it was possible to look up supported hardware using only
191 the shell tools available in the Debian installer, I wrote a shell
192 implementation of the lookup code. The idea is to create files for
193 each modalias and let the shell do the matching. Please check out and
194 try the
195 &lt;a href=&quot;http://anonscm.debian.org/viewvc/debian-edu/trunk/src/hw-support-handler/hw-support-lookup?view=co&quot;&gt;hw-support-lookup&lt;/a&gt;
196 shell script. It run without any extra dependencies and fetch the
197 hardware mappings from the Debian archive and the subversion
198 repository where I currently work on my prototype.&lt;/p&gt;
199
200 &lt;p&gt;When I use it on a machine with a yubikey inserted, it suggest to
201 install yubikey-personalization:&lt;/p&gt;
202
203 &lt;p&gt;&lt;blockquote&gt;
204 % ./hw-support-lookup
205 &lt;br&gt;yubikey-personalization
206 &lt;br&gt;%
207 &lt;/blockquote&gt;&lt;/p&gt;
208
209 &lt;p&gt;When I run it on my Thinkpad X40 with a PCMCIA/CardBus slot, it
210 propose to install the pcmciautils package:&lt;/p&gt;
211
212 &lt;p&gt;&lt;blockquote&gt;
213 % ./hw-support-lookup
214 &lt;br&gt;pcmciautils
215 &lt;br&gt;%
216 &lt;/blockquote&gt;&lt;/p&gt;
217
218 &lt;p&gt;If you know of any hardware-package mapping that should be added to
219 &lt;a href=&quot;http://anonscm.debian.org/viewvc/debian-edu/trunk/src/hw-support-handler/modaliases?view=co&quot;&gt;my
220 database&lt;/a&gt;, please tell me about it.&lt;/p&gt;
221
222 &lt;p&gt;It could be possible to generate several of the mappings between
223 packages and hardware. One source would be to look at packages with
224 kernel modules, ie packages with *.ko files in /lib/modules/, and
225 extract their modalias information. Another would be to look at
226 packages with udev rules, ie packages with files in
227 /lib/udev/rules.d/, and extract their vendor/model information to
228 generate a modalias matching rule. I have not tested any of these to
229 see if it work.&lt;/p&gt;
230
231 &lt;p&gt;If you want to help implementing a system to let us propose what
232 packages to install when new hardware is plugged into a Debian
233 machine, please send me an email or talk to me on
234 &lt;a href=&quot;irc://irc.debian.org/%23debian-devel&quot;&gt;#debian-devel&lt;/a&gt;.&lt;/p&gt;
235 </description>
236 </item>
237
238 <item>
239 <title>Modalias strings - a practical way to map &quot;stuff&quot; to hardware</title>
240 <link>http://people.skolelinux.org/pere/blog/Modalias_strings___a_practical_way_to_map__stuff__to_hardware.html</link>
241 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Modalias_strings___a_practical_way_to_map__stuff__to_hardware.html</guid>
242 <pubDate>Mon, 14 Jan 2013 11:20:00 +0100</pubDate>
243 <description>&lt;p&gt;While looking into how to look up Debian packages based on hardware
244 information, to find the packages that support a given piece of
245 hardware, I refreshed my memory regarding modalias values, and decided
246 to document the details. Here are my findings so far, also available
247 in
248 &lt;a href=&quot;http://anonscm.debian.org/viewvc/debian-edu/trunk/src/hw-support-handler/&quot;&gt;the
249 Debian Edu subversion repository&lt;/a&gt;:
250
251 &lt;p&gt;&lt;strong&gt;Modalias decoded&lt;/strong&gt;&lt;/p&gt;
252
253 &lt;p&gt;This document try to explain what the different types of modalias
254 values stands for. It is in part based on information from
255 &amp;lt;URL: &lt;a href=&quot;https://wiki.archlinux.org/index.php/Modalias&quot;&gt;https://wiki.archlinux.org/index.php/Modalias&lt;/a&gt; &amp;gt;,
256 &amp;lt;URL: &lt;a href=&quot;http://unix.stackexchange.com/questions/26132/how-to-assign-usb-driver-to-device&quot;&gt;http://unix.stackexchange.com/questions/26132/how-to-assign-usb-driver-to-device&lt;/a&gt; &amp;gt;,
257 &amp;lt;URL: &lt;a href=&quot;http://code.metager.de/source/history/linux/stable/scripts/mod/file2alias.c&quot;&gt;http://code.metager.de/source/history/linux/stable/scripts/mod/file2alias.c&lt;/a&gt; &amp;gt; and
258 &amp;lt;URL: &lt;a href=&quot;http://cvs.savannah.gnu.org/viewvc/dmidecode/dmidecode.c?root=dmidecode&amp;view=markup&quot;&gt;http://cvs.savannah.gnu.org/viewvc/dmidecode/dmidecode.c?root=dmidecode&amp;view=markup&lt;/a&gt; &amp;gt;.
259
260 &lt;p&gt;The modalias entries for a given Linux machine can be found using
261 this shell script:&lt;/p&gt;
262
263 &lt;pre&gt;
264 find /sys -name modalias -print0 | xargs -0 cat | sort -u
265 &lt;/pre&gt;
266
267 &lt;p&gt;The supported modalias globs for a given kernel module can be found
268 using modinfo:&lt;/p&gt;
269
270 &lt;pre&gt;
271 % /sbin/modinfo psmouse | grep alias:
272 alias: serio:ty05pr*id*ex*
273 alias: serio:ty01pr*id*ex*
274 %
275 &lt;/pre&gt;
276
277 &lt;p&gt;&lt;strong&gt;PCI subtype&lt;/strong&gt;&lt;/p&gt;
278
279 &lt;p&gt;A typical PCI entry can look like this. This is an Intel Host
280 Bridge memory controller:&lt;/p&gt;
281
282 &lt;p&gt;&lt;blockquote&gt;
283 pci:v00008086d00002770sv00001028sd000001ADbc06sc00i00
284 &lt;/blockquote&gt;&lt;/p&gt;
285
286 &lt;p&gt;This represent these values:&lt;/p&gt;
287
288 &lt;pre&gt;
289 v 00008086 (vendor)
290 d 00002770 (device)
291 sv 00001028 (subvendor)
292 sd 000001AD (subdevice)
293 bc 06 (bus class)
294 sc 00 (bus subclass)
295 i 00 (interface)
296 &lt;/pre&gt;
297
298 &lt;p&gt;The vendor/device values are the same values outputted from &#39;lspci
299 -n&#39; as 8086:2770. The bus class/subclass is also shown by lspci as
300 0600. The 0600 class is a host bridge. Other useful bus values are
301 0300 (VGA compatible card) and 0200 (Ethernet controller).&lt;/p&gt;
302
303 &lt;p&gt;Not sure how to figure out the interface value, nor what it
304 means.&lt;/p&gt;
305
306 &lt;p&gt;&lt;strong&gt;USB subtype&lt;/strong&gt;&lt;/p&gt;
307
308 &lt;p&gt;Some typical USB entries can look like this. This is an internal
309 USB hub in a laptop:&lt;/p&gt;
310
311 &lt;p&gt;&lt;blockquote&gt;
312 usb:v1D6Bp0001d0206dc09dsc00dp00ic09isc00ip00
313 &lt;/blockquote&gt;&lt;/p&gt;
314
315 &lt;p&gt;Here is the values included in this alias:&lt;/p&gt;
316
317 &lt;pre&gt;
318 v 1D6B (device vendor)
319 p 0001 (device product)
320 d 0206 (bcddevice)
321 dc 09 (device class)
322 dsc 00 (device subclass)
323 dp 00 (device protocol)
324 ic 09 (interface class)
325 isc 00 (interface subclass)
326 ip 00 (interface protocol)
327 &lt;/pre&gt;
328
329 &lt;p&gt;The 0900 device class/subclass means hub. Some times the relevant
330 class is in the interface class section. For a simple USB web camera,
331 these alias entries show up:&lt;/p&gt;
332
333 &lt;p&gt;&lt;blockquote&gt;
334 usb:v0AC8p3420d5000dcEFdsc02dp01ic01isc01ip00
335 &lt;br&gt;usb:v0AC8p3420d5000dcEFdsc02dp01ic01isc02ip00
336 &lt;br&gt;usb:v0AC8p3420d5000dcEFdsc02dp01ic0Eisc01ip00
337 &lt;br&gt;usb:v0AC8p3420d5000dcEFdsc02dp01ic0Eisc02ip00
338 &lt;/blockquote&gt;&lt;/p&gt;
339
340 &lt;p&gt;Interface class 0E01 is video control, 0E02 is video streaming (aka
341 camera), 0101 is audio control device and 0102 is audio streaming (aka
342 microphone). Thus this is a camera with microphone included.&lt;/p&gt;
343
344 &lt;p&gt;&lt;strong&gt;ACPI subtype&lt;/strong&gt;&lt;/p&gt;
345
346 &lt;p&gt;The ACPI type is used for several non-PCI/USB stuff. This is an IR
347 receiver in a Thinkpad X40:&lt;/p&gt;
348
349 &lt;p&gt;&lt;blockquote&gt;
350 acpi:IBM0071:PNP0511:
351 &lt;/blockquote&gt;&lt;/p&gt;
352
353 &lt;p&gt;The values between the colons are IDs.&lt;/p&gt;
354
355 &lt;p&gt;&lt;strong&gt;DMI subtype&lt;/strong&gt;&lt;/p&gt;
356
357 &lt;p&gt;The DMI table contain lots of information about the computer case
358 and model. This is an entry for a IBM Thinkpad X40, fetched from
359 /sys/devices/virtual/dmi/id/modalias:&lt;/p&gt;
360
361 &lt;p&gt;&lt;blockquote&gt;
362 dmi:bvnIBM:bvr1UETB6WW(1.66):bd06/15/2005:svnIBM:pn2371H4G:pvrThinkPadX40:rvnIBM:rn2371H4G:rvrNotAvailable:cvnIBM:ct10:cvrNotAvailable:
363 &lt;/blockquote&gt;&lt;/p&gt;
364
365 &lt;p&gt;The values present are&lt;/p&gt;
366
367 &lt;pre&gt;
368 bvn IBM (BIOS vendor)
369 bvr 1UETB6WW(1.66) (BIOS version)
370 bd 06/15/2005 (BIOS date)
371 svn IBM (system vendor)
372 pn 2371H4G (product name)
373 pvr ThinkPadX40 (product version)
374 rvn IBM (board vendor)
375 rn 2371H4G (board name)
376 rvr NotAvailable (board version)
377 cvn IBM (chassis vendor)
378 ct 10 (chassis type)
379 cvr NotAvailable (chassis version)
380 &lt;/pre&gt;
381
382 &lt;p&gt;The chassis type 10 is Notebook. Other interesting values can be
383 found in the dmidecode source:&lt;/p&gt;
384
385 &lt;pre&gt;
386 3 Desktop
387 4 Low Profile Desktop
388 5 Pizza Box
389 6 Mini Tower
390 7 Tower
391 8 Portable
392 9 Laptop
393 10 Notebook
394 11 Hand Held
395 12 Docking Station
396 13 All In One
397 14 Sub Notebook
398 15 Space-saving
399 16 Lunch Box
400 17 Main Server Chassis
401 18 Expansion Chassis
402 19 Sub Chassis
403 20 Bus Expansion Chassis
404 21 Peripheral Chassis
405 22 RAID Chassis
406 23 Rack Mount Chassis
407 24 Sealed-case PC
408 25 Multi-system
409 26 CompactPCI
410 27 AdvancedTCA
411 28 Blade
412 29 Blade Enclosing
413 &lt;/pre&gt;
414
415 &lt;p&gt;The chassis type values are not always accurately set in the DMI
416 table. For example my home server is a tower, but the DMI modalias
417 claim it is a desktop.&lt;/p&gt;
418
419 &lt;p&gt;&lt;strong&gt;SerIO subtype&lt;/strong&gt;&lt;/p&gt;
420
421 &lt;p&gt;This type is used for PS/2 mouse plugs. One example is from my
422 test machine:&lt;/p&gt;
423
424 &lt;p&gt;&lt;blockquote&gt;
425 serio:ty01pr00id00ex00
426 &lt;/blockquote&gt;&lt;/p&gt;
427
428 &lt;p&gt;The values present are&lt;/p&gt;
429
430 &lt;pre&gt;
431 ty 01 (type)
432 pr 00 (prototype)
433 id 00 (id)
434 ex 00 (extra)
435 &lt;/pre&gt;
436
437 &lt;p&gt;This type is supported by the psmouse driver. I am not sure what
438 the valid values are.&lt;/p&gt;
439
440 &lt;p&gt;&lt;strong&gt;Other subtypes&lt;/strong&gt;&lt;/p&gt;
441
442 &lt;p&gt;There are heaps of other modalias subtypes according to
443 file2alias.c. There is the rest of the list from that source: amba,
444 ap, bcma, ccw, css, eisa, hid, i2c, ieee1394, input, ipack, isapnp,
445 mdio, of, parisc, pcmcia, platform, scsi, sdio, spi, ssb, vio, virtio,
446 vmbus, x86cpu and zorro. I did not spend time documenting all of
447 these, as they do not seem relevant for my intended use with mapping
448 hardware to packages when new stuff is inserted during run time.&lt;/p&gt;
449
450 &lt;p&gt;&lt;strong&gt;Looking up kernel modules using modalias values&lt;/strong&gt;&lt;/p&gt;
451
452 &lt;p&gt;To check which kernel modules provide support for a given modalias,
453 one can use the following shell script:&lt;/p&gt;
454
455 &lt;pre&gt;
456 for id in $(find /sys -name modalias -print0 | xargs -0 cat | sort -u); do \
457 echo &quot;$id&quot; ; \
458 /sbin/modprobe --show-depends &quot;$id&quot;|sed &#39;s/^/ /&#39; ; \
459 done
460 &lt;/pre&gt;
461
462 &lt;p&gt;The output can look like this (only the first few entries as the
463 list is very long on my test machine):&lt;/p&gt;
464
465 &lt;pre&gt;
466 acpi:ACPI0003:
467 insmod /lib/modules/2.6.32-5-686/kernel/drivers/acpi/ac.ko
468 acpi:device:
469 FATAL: Module acpi:device: not found.
470 acpi:IBM0068:
471 insmod /lib/modules/2.6.32-5-686/kernel/drivers/char/nvram.ko
472 insmod /lib/modules/2.6.32-5-686/kernel/drivers/leds/led-class.ko
473 insmod /lib/modules/2.6.32-5-686/kernel/net/rfkill/rfkill.ko
474 insmod /lib/modules/2.6.32-5-686/kernel/drivers/platform/x86/thinkpad_acpi.ko
475 acpi:IBM0071:PNP0511:
476 insmod /lib/modules/2.6.32-5-686/kernel/lib/crc-ccitt.ko
477 insmod /lib/modules/2.6.32-5-686/kernel/net/irda/irda.ko
478 insmod /lib/modules/2.6.32-5-686/kernel/drivers/net/irda/nsc-ircc.ko
479 [...]
480 &lt;/pre&gt;
481
482 &lt;p&gt;If you want to help implementing a system to let us propose what
483 packages to install when new hardware is plugged into a Debian
484 machine, please send me an email or talk to me on
485 &lt;a href=&quot;irc://irc.debian.org/%23debian-devel&quot;&gt;#debian-devel&lt;/a&gt;.&lt;/p&gt;
486
487 &lt;p&gt;&lt;strong&gt;Update 2013-01-15:&lt;/strong&gt; Rewrite &quot;cat $(find ...)&quot; to
488 &quot;find ... -print0 | xargs -0 cat&quot; to make sure it handle directories
489 in /sys/ with space in them.&lt;/p&gt;
490 </description>
491 </item>
492
493 <item>
494 <title>Moved the pymissile Debian packaging to collab-maint</title>
495 <link>http://people.skolelinux.org/pere/blog/Moved_the_pymissile_Debian_packaging_to_collab_maint.html</link>
496 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Moved_the_pymissile_Debian_packaging_to_collab_maint.html</guid>
497 <pubDate>Thu, 10 Jan 2013 20:40:00 +0100</pubDate>
498 <description>&lt;p&gt;As part of my investigation on how to improve the support in Debian
499 for hardware dongles, I dug up my old Mark and Spencer USB Rocket
500 Launcher and updated the Debian package
501 &lt;a href=&quot;http://packages.qa.debian.org/pymissile&quot;&gt;pymissile&lt;/a&gt; to make
502 sure udev will fix the device permissions when it is plugged in. I
503 also added a &quot;Modaliases&quot; header to test it in the Debian archive and
504 hopefully make the package be proposed by jockey in Ubuntu when a user
505 plug in his rocket launcher. In the process I moved the source to a
506 git repository under collab-maint, to make it easier for any DD to
507 contribute. &lt;a href=&quot;http://code.google.com/p/pymissile/&quot;&gt;Upstream&lt;/a&gt;
508 is not very active, but the software still work for me even after five
509 years of relative silence. The new git repository is not listed in
510 the uploaded package yet, because I want to test the other changes a
511 bit more before I upload the new version. If you want to check out
512 the new version with a .desktop file included, visit the
513 &lt;a href=&quot;http://anonscm.debian.org/gitweb/?p=collab-maint/pymissile.git&quot;&gt;gitweb
514 view&lt;/a&gt; or use &quot;&lt;tt&gt;git clone
515 git://anonscm.debian.org/collab-maint/pymissile.git&lt;/tt&gt;&quot;.&lt;/p&gt;
516 </description>
517 </item>
518
519 <item>
520 <title>Lets make hardware dongles easier to use in Debian</title>
521 <link>http://people.skolelinux.org/pere/blog/Lets_make_hardware_dongles_easier_to_use_in_Debian.html</link>
522 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Lets_make_hardware_dongles_easier_to_use_in_Debian.html</guid>
523 <pubDate>Wed, 9 Jan 2013 15:40:00 +0100</pubDate>
524 <description>&lt;p&gt;One thing that annoys me with Debian and Linux distributions in
525 general, is that there is a great package management system with the
526 ability to automatically install software packages by downloading them
527 from the distribution mirrors, but no way to get it to automatically
528 install the packages I need to use the hardware I plug into my
529 machine. Even if the package to use it is easily available from the
530 Linux distribution. When I plug in a LEGO Mindstorms NXT, it could
531 suggest to automatically install the python-nxt, nbc and t2n packages
532 I need to talk to it. When I plug in a Yubikey, it could propose the
533 yubikey-personalization package. The information required to do this
534 is available, but no-one have pulled all the pieces together.&lt;/p&gt;
535
536 &lt;p&gt;Some years ago, I proposed to
537 &lt;a href=&quot;http://lists.debian.org/debian-devel/2010/05/msg01206.html&quot;&gt;use
538 the discover subsystem to implement this&lt;/a&gt;. The idea is fairly
539 simple:
540
541 &lt;ul&gt;
542
543 &lt;li&gt;Add a desktop entry in /usr/share/autostart/ pointing to a program
544 starting when a user log in.&lt;/li&gt;
545
546 &lt;li&gt;Set this program up to listen for kernel events emitted when new
547 hardware is inserted into the computer.&lt;/li&gt;
548
549 &lt;li&gt;When new hardware is inserted, look up the hardware ID in a
550 database mapping to packages, and take note of any non-installed
551 packages.&lt;/li&gt;
552
553 &lt;li&gt;Show a message to the user proposing to install the discovered
554 package, and make it easy to install it.&lt;/li&gt;
555
556 &lt;/ul&gt;
557
558 &lt;p&gt;I am not sure what the best way to implement this is, but my
559 initial idea was to use dbus events to discover new hardware, the
560 discover database to find packages and
561 &lt;a href=&quot;http://www.packagekit.org/&quot;&gt;PackageKit&lt;/a&gt; to install
562 packages.&lt;/p&gt;
563
564 &lt;p&gt;Yesterday, I found time to try to implement this idea, and the
565 draft package is now checked into
566 &lt;a href=&quot;http://anonscm.debian.org/viewvc/debian-edu/trunk/src/hw-support-handler/&quot;&gt;the
567 Debian Edu subversion repository&lt;/a&gt;. In the process, I updated the
568 &lt;a href=&quot;http://packages.qa.debian.org/d/discover-data.html&quot;&gt;discover-data&lt;/a&gt;
569 package to map the USB ids of LEGO Mindstorms and Yubikey devices to
570 the relevant packages in Debian, and uploaded a new version
571 2.2013.01.09 to unstable. I also discovered that the current
572 &lt;a href=&quot;http://packages.qa.debian.org/d/discover.html&quot;&gt;discover&lt;/a&gt;
573 package in Debian no longer discovered any USB devices, because
574 /proc/bus/usb/devices is no longer present. I ported it to use
575 libusb as a fall back option to get it working. The fixed package
576 version 2.1.2-6 is now in experimental (didn&#39;t upload it to unstable
577 because of the freeze).&lt;/p&gt;
578
579 &lt;p&gt;With this prototype in place, I can insert my Yubikey, and get this
580 desktop notification to show up (only once, the first time it is
581 inserted):&lt;/p&gt;
582
583 &lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;http://people.skolelinux.org/pere/blog/images/2013-01-09-hw-autoinstall.png&quot;&gt;&lt;/p&gt;
584
585 &lt;p&gt;For this prototype to be really useful, some way to automatically
586 install the proposed packages by pressing the &quot;Please install
587 program(s)&quot; button should to be implemented.&lt;/p&gt;
588
589 &lt;p&gt;If this idea seem useful to you, and you want to help make it
590 happen, please help me update the discover-data database with mappings
591 from hardware to Debian packages. Check if &#39;discover-pkginstall -l&#39;
592 list the package you would like to have installed when a given
593 hardware device is inserted into your computer, and report bugs using
594 reportbug if it isn&#39;t. Or, if you know of a better way to provide
595 such mapping, please let me know.&lt;/p&gt;
596
597 &lt;p&gt;This prototype need more work, and there are several questions that
598 should be considered before it is ready for production use. Is dbus
599 the correct way to detect new hardware? At the moment I look for HAL
600 dbus events on the system bus, because that is the events I could see
601 on my Debian Squeeze KDE desktop. Are there better events to use?
602 How should the user be notified? Is the desktop notification
603 mechanism the best option, or should the background daemon raise a
604 popup instead? How should packages be installed? When should they
605 not be installed?&lt;/p&gt;
606
607 &lt;p&gt;If you want to help getting such feature implemented in Debian,
608 please send me an email. :)&lt;/p&gt;
609 </description>
610 </item>
611
612 <item>
613 <title>New IRC channel for LEGO designers using Debian</title>
614 <link>http://people.skolelinux.org/pere/blog/New_IRC_channel_for_LEGO_designers_using_Debian.html</link>
615 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/New_IRC_channel_for_LEGO_designers_using_Debian.html</guid>
616 <pubDate>Wed, 2 Jan 2013 15:40:00 +0100</pubDate>
617 <description>&lt;p&gt;During Christmas, I have worked a bit on the Debian support for
618 &lt;a href=&quot;http://mindstorms.lego.com/en-us/Default.aspx&quot;&gt;LEGO Mindstorm
619 NXT&lt;/a&gt;. My son and I have played a bit with my NXT set, and I
620 discovered I had to build all the tools myself because none were
621 already in Debian Squeeze. If Debian support for LEGO is something
622 you care about, please join me on the IRC channel
623 &lt;a href=&quot;irc://irc.debian.org/%23debian-lego&quot;&gt;#debian-lego&lt;/a&gt; (server
624 irc.debian.org). There is a lot that could be done to improve the
625 Debian support for LEGO designers. For example both CAD software
626 and Mindstorm compilers are missing. :)&lt;/p&gt;
627
628 &lt;p&gt;Update 2012-01-03: A
629 &lt;a href=&quot;http://wiki.debian.org/LegoDesigners&quot;&gt;project page&lt;/a&gt;
630 including links to Lego related packages is now available.&lt;/p&gt;
631 </description>
632 </item>
633
634 <item>
635 <title>Lenker for 2013-01-01</title>
636 <link>http://people.skolelinux.org/pere/blog/Lenker_for_2013_01_01.html</link>
637 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Lenker_for_2013_01_01.html</guid>
638 <pubDate>Tue, 1 Jan 2013 09:20:00 +0100</pubDate>
639 <description>&lt;p&gt;Her er noen lenker til tekster jeg har satt pris på å lese den
640 siste måneden.&lt;/p&gt;
641
642 &lt;ul&gt;
643
644 &lt;li&gt;2012-12-07
645 &lt;a href=&quot;http://www.idg.no/computerworld/article262047.ece&quot;&gt;Myter og
646 FUD om fri programvare&lt;/a&gt; av min venn Christer Gundersen som
647 kommenterer noen av de påstandene som er spredt via Computerworld
648 Norge de siste månedene.&lt;/li&gt;
649
650 &lt;li&gt;BankID er et opplegg der utsteder (dvs. banken eller dens
651 leverandør) sitter på alt som trengs for å bruke BankID, men har
652 lovet å ikke bruke den unntatt på oppdrag fra deg. Det er greit nok
653 for banktjenester, der banken allerede har full kontroll over
654 resultatet, men problematisk når det gjelder tilgang til
655 helseopplysninger og avtaleinngåelse med andre enn banken. Jeg
656 håper protestene brer om seg.
657
658 &lt;ul&gt;
659
660 &lt;li&gt;2012-12-11 &lt;a href=&quot;http://www.aftenposten.no/meninger/debatt/BankID-blottlegger-helseopplysninger-7067148.html&quot;&gt;BankID
661 blottlegger helseopplysninger&lt;/a&gt;&lt;/li&gt;
662
663 &lt;li&gt;2012-12-07 &lt;a href=&quot;http://www.nrk.no/nyheter/norge/1.9695027&quot;&gt;-
664 Helseopplysningene ikke sikre med Bank-ID&lt;/a&gt;&lt;/li&gt;
665
666 &lt;li&gt;2012-12-07
667 &lt;a href=&quot;https://www.bankid.no/Presse-og-nyheter/Nyhetsarkiv/2012/Papeker-alvorlige-men-kjente-utfordringer/&quot;&gt;Påpeker
668 alvorlige, men kjente utfordringer&lt;/a&gt; er den offisielle
669 holdningen til de som lager BankID.&lt;/li&gt;
670
671 &lt;li&gt;2012-12-08
672 &lt;a href=&quot;http://www.tnp.no/norway/panorama/3419-ntnu-researcher-warns-against-security-of-bank-id-password&quot;&gt;NTNU
673 Researcher Warns against Security of Bank ID Password&lt;/a&gt;
674
675 &lt;/ul&gt;
676
677 &lt;li&gt;2012-12-11 &lt;a href=&quot;http://www.aftenposten.no/nyheter/iriks/Norske-elever-er-darligst-i-Europa-pa-algebra-7066752.html&quot;&gt;Norske elever er dårligst i Europa på algebra&lt;/a&gt;
678
679 &lt;li&gt;2012-12-11
680 &lt;a href=&quot;http://www.aftenposten.no/meninger/debatt/Realfagsdodaren-7067173.html&quot;&gt;Realfagsdødaren&lt;/a&gt;
681
682 &lt;li&gt;2012-12-21
683 &lt;a href=&quot;http://www.bt.no/nyheter/innenriks/112/--Forventningene-er-for-hoye-2816450.html&quot;&gt;-
684 Noen må bli skuffet&lt;/a&gt; - Politiet i Bergen forteller hvor lavt de
685 prioriterer hverdagskriminalitet.&lt;/li&gt;
686
687 &lt;li&gt;2012-05-03
688 &lt;a href=&quot;http://e24.no/jobb/kripos-ansatt-doemt-for-snoking-for-venn/20208585&quot;&gt;
689 Kripos-ansatt dømt for snoking for venn&lt;/A&gt; - viser hvor svak
690 reaksjonen blir når politiet misbruker innsamlet informasjon. En
691 forvarsel på konsekvensene av nasjonal brev- og besøkskontroll -
692 ofte kalt Datalagringsdirektivet.&lt;/li&gt;
693
694 &lt;li&gt;2012-12-14
695 &lt;a href=&quot;http://www.dagbladet.no/2012/12/14/kultur/debatt/kronikk/jul/ensomhet/24838541/&quot;&gt;Å
696 smøre en forskjell&lt;/a&gt; - om ensomhet og jul.&lt;/li&gt;
697
698 &lt;li&gt;2012-12-18
699 &lt;a href=&quot;http://www.aftenposten.no/meninger/kronikker/n-krise-av-gangen_-takk-7072452.html&quot;&gt;Én
700 krise av gangen, takk!&lt;/a&gt;
701
702
703 &lt;li&gt;2012-12-17
704 &lt;a href=&quot;http://www.aftenposten.no/meninger/NAV-Et-mangehodet-monster--7072165.html&quot;&gt;NAV:
705 Et mangehodet monster&lt;/a&gt;&lt;/li&gt;
706
707 &lt;li&gt;2011-01-12
708 &lt;a href=&quot;http://www.dagbladet.no/2011/01/12/kultur/debatt/kronikk/personvern/15027203/&quot;&gt;Pasienter
709 uten vern&lt;/a&gt; - forteller litt om hvordan Norsk Pasientregister og
710 andre helseregister raderer bort pasienters privatsfære.&lt;/li&gt;
711
712
713 &lt;li&gt;2012-12-19
714 &lt;a href=&quot;http://www.aftenposten.no/meninger/debatt/Hvorfor-er-barnefamilier-fattige-7073951.html&quot;&gt;Hvorfor
715 er barnefamilier fattige?&lt;/a&gt;&lt;/li&gt;
716
717 &lt;li&gt;2012-12-25
718 &lt;a href=&quot;http://www.aftenposten.no/meninger/spaltister/Den-skjulte-minoriteten--konservative-kristne-i-Norge-7075518.html&quot;&gt;Den
719 skjulte minoriteten – konservative kristne i Norge&lt;/a&gt; - kronikk av
720 Bjørn Stærk fra aftenposten&lt;/li&gt;
721
722 &lt;li&gt;2009-05-04
723 &lt;a href=&quot;http://deltemeninger.no/-/bulletin/show/303429_folkebiblioteket-2-0?ref=checkpoint&quot;&gt;Folkebiblioteket
724 2.0&lt;/a&gt; - Min venn Sturle om opphavsrett og Internett, i debatt med
725 Olav Torvund.&lt;/li&gt;
726
727 &lt;/ul&gt;
728
729 &lt;p&gt;Og et godt nytt år til dere alle!&lt;/p&gt;
730 </description>
731 </item>
732
733 </channel>
734 </rss>