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