]> pere.pagekite.me Git - homepage.git/blob - blog/index.rss
Generated.
[homepage.git] / blog / index.rss
1 <?xml version="1.0" encoding="utf-8"?>
2 <rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom="http://www.w3.org/2005/Atom">
3 <channel>
4 <title>Petter Reinholdtsen</title>
5 <description></description>
6 <link>http://people.skolelinux.org/pere/blog/</link>
7 <atom:link href="http://people.skolelinux.org/pere/blog/index.rss" rel="self" type="application/rss+xml" />
8
9 <item>
10 <title>Modalias strings - a practical way to map &quot;stuff&quot; to hardware</title>
11 <link>http://people.skolelinux.org/pere/blog/Modalias_strings___a_practical_way_to_map__stuff__to_hardware.html</link>
12 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Modalias_strings___a_practical_way_to_map__stuff__to_hardware.html</guid>
13 <pubDate>Mon, 14 Jan 2013 11:10:00 +0100</pubDate>
14 <description>&lt;p&gt;While looking into how to look up Debian packages based on hardware
15 information, to find the packages that support a given piece of
16 hardware, I refreshed my memory regarding modalias values, and decided
17 to document the details. Here are my findings so far, also available
18 in
19 &lt;a href=&quot;http://anonscm.debian.org/viewvc/debian-edu/trunk/src/hw-support-handler/&quot;&gt;the
20 Debian Edu subversion repository&lt;/a&gt;:
21
22 &lt;p&gt;&lt;strong&gt;Modalias decoded&lt;/strong&gt;&lt;/p&gt;
23
24 &lt;p&gt;This document try to explain what the different types of modalias
25 values stands for. It is in part based on information from
26 &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;,
27 &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;,
28 &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
29 &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;.
30
31 &lt;p&gt;The modalias entries for a given Linux machine can be found using
32 this shell script:&lt;/p&gt;
33
34 &lt;pre&gt;
35 cat $(find /sys -name modalias) | sort -u
36 &lt;/pre&gt;
37
38 &lt;p&gt;The supported modalias globs for a given kernel module can be found
39 using modinfo:&lt;/p&gt;
40
41 &lt;pre&gt;
42 % /sbin/modinfo psmouse | grep alias:
43 alias: serio:ty05pr*id*ex*
44 alias: serio:ty01pr*id*ex*
45 %
46 &lt;/pre&gt;
47
48 &lt;p&gt;&lt;strong&gt;PCI subtype&lt;/strong&gt;&lt;/p&gt;
49
50 &lt;p&gt;A typical PCI entry can look like this. This is an Intel Host
51 Bridge memory controller:&lt;/p&gt;
52
53 &lt;p&gt;&lt;blockquote&gt;
54 pci:v00008086d00002770sv00001028sd000001ADbc06sc00i00
55 &lt;/blockquote&gt;&lt;/p&gt;
56
57 &lt;p&gt;This represent these values:&lt;/p&gt;
58
59 &lt;pre&gt;
60 v 00008086 (vendor)
61 d 00002770 (device)
62 sv 00001028 (subvendor)
63 sd 000001AD (subdevice)
64 bc 06 (bus class)
65 sc 00 (bus subclass)
66 i 00 (interface)
67 &lt;/pre&gt;
68
69 &lt;p&gt;The vendor/device values are the same values outputted from &#39;lspci
70 -n&#39; as 8086:2770. The bus class/subclass is also shown by lspci as
71 0600. The 0600 class is a host bridge. Other useful bus values are
72 0300 (VGA compatible card) and 0200 (Ethernet controller).&lt;/p&gt;
73
74 &lt;p&gt;Not sure how to figure out the interface value, nor what it
75 means.&lt;/p&gt;
76
77 &lt;p&gt;&lt;strong&gt;USB subtype&lt;/strong&gt;&lt;/p&gt;
78
79 &lt;p&gt;Some typical USB entries can look like this. This is an internal
80 USB hub in a laptop:&lt;/p&gt;
81
82 &lt;p&gt;&lt;blockquote&gt;
83 usb:v1D6Bp0001d0206dc09dsc00dp00ic09isc00ip00
84 &lt;/blockquote&gt;&lt;/p&gt;
85
86 &lt;p&gt;Here is the values included in this alias:&lt;/p&gt;
87
88 &lt;pre&gt;
89 v 1D6B (device vendor)
90 p 0001 (device product)
91 d 0206 (bcddevice)
92 dc 09 (device class)
93 dsc 00 (device subclass)
94 dp 00 (device protocol)
95 ic 09 (interface class)
96 isc 00 (interface subclass)
97 ip 00 (interface protocol)
98 &lt;/pre&gt;
99
100 &lt;p&gt;The 0900 device class/subclass means hub. Some times the relevant
101 class is in the interface class section. For a simple USB web camera,
102 these alias entries show up:&lt;/p&gt;
103
104 &lt;p&gt;&lt;blockquote&gt;
105 usb:v0AC8p3420d5000dcEFdsc02dp01ic01isc01ip00
106 &lt;br&gt;usb:v0AC8p3420d5000dcEFdsc02dp01ic01isc02ip00
107 &lt;br&gt;usb:v0AC8p3420d5000dcEFdsc02dp01ic0Eisc01ip00
108 &lt;br&gt;usb:v0AC8p3420d5000dcEFdsc02dp01ic0Eisc02ip00
109 &lt;/blockquote&gt;&lt;/p&gt;
110
111 &lt;p&gt;Interface class 0E01 is video control, 0E02 is video streaming (aka
112 camera), 0101 is audio control device and 0102 is audio streaming (aka
113 microphone). Thus this is a camera with microphone included.&lt;/p&gt;
114
115 &lt;p&gt;&lt;strong&gt;ACPI subtype&lt;/strong&gt;&lt;/p&gt;
116
117 &lt;p&gt;The ACPI type is used for several non-PCI/USB stuff. This is an IR
118 receiver in a Thinkpad X40:&lt;/p&gt;
119
120 &lt;p&gt;&lt;blockquote&gt;
121 acpi:IBM0071:PNP0511:
122 &lt;/blockquote&gt;&lt;/p&gt;
123
124 &lt;p&gt;The values between the colons are IDs.&lt;/p&gt;
125
126 &lt;p&gt;&lt;strong&gt;DMI subtype&lt;/strong&gt;&lt;/p&gt;
127
128 &lt;p&gt;The DMI table contain lots of information about the computer case
129 and model. This is an entry for a IBM Thinkpad X40, fetched from
130 /sys/devices/virtual/dmi/id/modalias:&lt;/p&gt;
131
132 &lt;p&gt;&lt;blockquote&gt;
133 dmi:bvnIBM:bvr1UETB6WW(1.66):bd06/15/2005:svnIBM:pn2371H4G:pvrThinkPadX40:rvnIBM:rn2371H4G:rvrNotAvailable:cvnIBM:ct10:cvrNotAvailable:
134 &lt;/blockquote&gt;&lt;/p&gt;
135
136 &lt;p&gt;The values present are&lt;/p&gt;
137
138 &lt;pre&gt;
139 bvn IBM (BIOS vendor)
140 bvr 1UETB6WW(1.66) (BIOS version)
141 bd 06/15/2005 (BIOS date)
142 svn IBM (system vendor)
143 pn 2371H4G (product name)
144 pvr ThinkPadX40 (product version)
145 rvn IBM (board vendor)
146 rn 2371H4G (board name)
147 rvr NotAvailable (board version)
148 cvn IBM (chassis vendor)
149 ct 10 (chassis type)
150 cvr NotAvailable (chassis version)
151 &lt;/pre&gt;
152
153 &lt;p&gt;The chassis type 10 is Notebook. Other interesting values can be
154 found in the dmidecode source:&lt;/p&gt;
155
156 &lt;pre&gt;
157 3 Desktop
158 4 Low Profile Desktop
159 5 Pizza Box
160 6 Mini Tower
161 7 Tower
162 8 Portable
163 9 Laptop
164 10 Notebook
165 11 Hand Held
166 12 Docking Station
167 13 All In One
168 14 Sub Notebook
169 15 Space-saving
170 16 Lunch Box
171 17 Main Server Chassis
172 18 Expansion Chassis
173 19 Sub Chassis
174 20 Bus Expansion Chassis
175 21 Peripheral Chassis
176 22 RAID Chassis
177 23 Rack Mount Chassis
178 24 Sealed-case PC
179 25 Multi-system
180 26 CompactPCI
181 27 AdvancedTCA
182 28 Blade
183 29 Blade Enclosing
184 &lt;/pre&gt;
185
186 &lt;p&gt;The chassis type values are not always accurately set in the DMI
187 table. For example my home server is a tower, but the DMI modalias
188 claim it is a desktop.&lt;/p&gt;
189
190 &lt;p&gt;&lt;strong&gt;SerIO subtype&lt;/strong&gt;&lt;/p&gt;
191
192 &lt;p&gt;This type is used for PS/2 mouse plugs. One example is from my
193 test machine:&lt;/p&gt;
194
195 &lt;p&gt;&lt;blockquote&gt;
196 serio:ty01pr00id00ex00
197 &lt;/blockquote&gt;&lt;/p&gt;
198
199 &lt;p&gt;The values present are&lt;/p&gt;
200
201 &lt;pre&gt;
202 ty 01 (type)
203 pr 00 (prototype)
204 id 00 (id)
205 ex 00 (extra)
206 &lt;/pre&gt;
207
208 &lt;p&gt;This type is supported by the psmouse driver. I am not sure what
209 the valid values are.&lt;/p&gt;
210
211 &lt;p&gt;&lt;strong&gt;Other subtypes&lt;/strong&gt;&lt;/p&gt;
212
213 &lt;p&gt;There are heaps of other modalias subtypes according to
214 file2alias.c. There is the rest of the list from that source: amba,
215 ap, bcma, ccw, css, eisa, hid, i2c, ieee1394, input, ipack, isapnp,
216 mdio, of, parisc, pcmcia, platform, scsi, sdio, spi, ssb, vio, virtio,
217 vmbus, x86cpu and zorro. I did not spend time documenting all of
218 these, as they do not seem relevant for my intended use with mapping
219 hardware to packages when new stuff is inserted during run time.&lt;/p&gt;
220
221 &lt;p&gt;&lt;strong&gt;Looking up kernel modules using modalias values&lt;/strong&gt;&lt;/p&gt;
222
223 &lt;p&gt;To check which kernel modules provide support for a given modalias,
224 one can use the following shell script:&lt;/p&gt;
225
226 &lt;pre&gt;
227 for id in $(cat $(find /sys -name modalias)|sort -u); do \
228 echo &quot;$id&quot; ; \
229 /sbin/modprobe --show-depends &quot;$id&quot;|sed &#39;s/^/ /&#39; ; \
230 done
231 &lt;/pre&gt;
232
233 &lt;p&gt;The output can look like this (only the first few entries as the
234 list is very long on my test machine):&lt;/p&gt;
235
236 &lt;pre&gt;
237 acpi:ACPI0003:
238 insmod /lib/modules/2.6.32-5-686/kernel/drivers/acpi/ac.ko
239 acpi:device:
240 FATAL: Module acpi:device: not found.
241 acpi:IBM0068:
242 insmod /lib/modules/2.6.32-5-686/kernel/drivers/char/nvram.ko
243 insmod /lib/modules/2.6.32-5-686/kernel/drivers/leds/led-class.ko
244 insmod /lib/modules/2.6.32-5-686/kernel/net/rfkill/rfkill.ko
245 insmod /lib/modules/2.6.32-5-686/kernel/drivers/platform/x86/thinkpad_acpi.ko
246 acpi:IBM0071:PNP0511:
247 insmod /lib/modules/2.6.32-5-686/kernel/lib/crc-ccitt.ko
248 insmod /lib/modules/2.6.32-5-686/kernel/net/irda/irda.ko
249 insmod /lib/modules/2.6.32-5-686/kernel/drivers/net/irda/nsc-ircc.ko
250 [...]
251 &lt;/pre&gt;
252
253 &lt;p&gt;If you want to help implementing a system to let us propose what
254 packages to install when new hardware is plugged into a Debian
255 machine, please send me an email or talk to me on
256 &lt;a href=&quot;irc://irc.debian.org/%23debian-devel&quot;&gt;#debian-devel&lt;/a&gt;.&lt;/p&gt;
257 </description>
258 </item>
259
260 <item>
261 <title>Moved the pymissile Debian packaging to collab-maint</title>
262 <link>http://people.skolelinux.org/pere/blog/Moved_the_pymissile_Debian_packaging_to_collab_maint.html</link>
263 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Moved_the_pymissile_Debian_packaging_to_collab_maint.html</guid>
264 <pubDate>Thu, 10 Jan 2013 20:40:00 +0100</pubDate>
265 <description>&lt;p&gt;As part of my investigation on how to improve the support in Debian
266 for hardware dongles, I dug up my old Mark and Spencer USB Rocket
267 Launcher and updated the Debian package
268 &lt;a href=&quot;http://packages.qa.debian.org/pymissile&quot;&gt;pymissile&lt;/a&gt; to make
269 sure udev will fix the device permissions when it is plugged in. I
270 also added a &quot;Modaliases&quot; header to test it in the Debian archive and
271 hopefully make the package be proposed by jockey in Ubuntu when a user
272 plug in his rocket launcher. In the process I moved the source to a
273 git repository under collab-maint, to make it easier for any DD to
274 contribute. &lt;a href=&quot;http://code.google.com/p/pymissile/&quot;&gt;Upstream&lt;/a&gt;
275 is not very active, but the software still work for me even after five
276 years of relative silence. The new git repository is not listed in
277 the uploaded package yet, because I want to test the other changes a
278 bit more before I upload the new version. If you want to check out
279 the new version with a .desktop file included, visit the
280 &lt;a href=&quot;http://anonscm.debian.org/gitweb/?p=collab-maint/pymissile.git&quot;&gt;gitweb
281 view&lt;/a&gt; or use &quot;&lt;tt&gt;git clone
282 git://anonscm.debian.org/collab-maint/pymissile.git&lt;/tt&gt;&quot;.&lt;/p&gt;
283 </description>
284 </item>
285
286 <item>
287 <title>Lets make hardware dongles easier to use in Debian</title>
288 <link>http://people.skolelinux.org/pere/blog/Lets_make_hardware_dongles_easier_to_use_in_Debian.html</link>
289 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Lets_make_hardware_dongles_easier_to_use_in_Debian.html</guid>
290 <pubDate>Wed, 9 Jan 2013 15:40:00 +0100</pubDate>
291 <description>&lt;p&gt;One thing that annoys me with Debian and Linux distributions in
292 general, is that there is a great package management system with the
293 ability to automatically install software packages by downloading them
294 from the distribution mirrors, but no way to get it to automatically
295 install the packages I need to use the hardware I plug into my
296 machine. Even if the package to use it is easily available from the
297 Linux distribution. When I plug in a LEGO Mindstorms NXT, it could
298 suggest to automatically install the python-nxt, nbc and t2n packages
299 I need to talk to it. When I plug in a Yubikey, it could propose the
300 yubikey-personalization package. The information required to do this
301 is available, but no-one have pulled all the pieces together.&lt;/p&gt;
302
303 &lt;p&gt;Some years ago, I proposed to
304 &lt;a href=&quot;http://lists.debian.org/debian-devel/2010/05/msg01206.html&quot;&gt;use
305 the discover subsystem to implement this&lt;/a&gt;. The idea is fairly
306 simple:
307
308 &lt;ul&gt;
309
310 &lt;li&gt;Add a desktop entry in /usr/share/autostart/ pointing to a program
311 starting when a user log in.&lt;/li&gt;
312
313 &lt;li&gt;Set this program up to listen for kernel events emitted when new
314 hardware is inserted into the computer.&lt;/li&gt;
315
316 &lt;li&gt;When new hardware is inserted, look up the hardware ID in a
317 database mapping to packages, and take note of any non-installed
318 packages.&lt;/li&gt;
319
320 &lt;li&gt;Show a message to the user proposing to install the discovered
321 package, and make it easy to install it.&lt;/li&gt;
322
323 &lt;/ul&gt;
324
325 &lt;p&gt;I am not sure what the best way to implement this is, but my
326 initial idea was to use dbus events to discover new hardware, the
327 discover database to find packages and
328 &lt;a href=&quot;http://www.packagekit.org/&quot;&gt;PackageKit&lt;/a&gt; to install
329 packages.&lt;/p&gt;
330
331 &lt;p&gt;Yesterday, I found time to try to implement this idea, and the
332 draft package is now checked into
333 &lt;a href=&quot;http://anonscm.debian.org/viewvc/debian-edu/trunk/src/hw-support-handler/&quot;&gt;the
334 Debian Edu subversion repository&lt;/a&gt;. In the process, I updated the
335 &lt;a href=&quot;http://packages.qa.debian.org/d/discover-data.html&quot;&gt;discover-data&lt;/a&gt;
336 package to map the USB ids of LEGO Mindstorms and Yubikey devices to
337 the relevant packages in Debian, and uploaded a new version
338 2.2013.01.09 to unstable. I also discovered that the current
339 &lt;a href=&quot;http://packages.qa.debian.org/d/discover.html&quot;&gt;discover&lt;/a&gt;
340 package in Debian no longer discovered any USB devices, because
341 /proc/bus/usb/devices is no longer present. I ported it to use
342 libusb as a fall back option to get it working. The fixed package
343 version 2.1.2-6 is now in experimental (didn&#39;t upload it to unstable
344 because of the freeze).&lt;/p&gt;
345
346 &lt;p&gt;With this prototype in place, I can insert my Yubikey, and get this
347 desktop notification to show up (only once, the first time it is
348 inserted):&lt;/p&gt;
349
350 &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;
351
352 &lt;p&gt;For this prototype to be really useful, some way to automatically
353 install the proposed packages by pressing the &quot;Please install
354 program(s)&quot; button should to be implemented.&lt;/p&gt;
355
356 &lt;p&gt;If this idea seem useful to you, and you want to help make it
357 happen, please help me update the discover-data database with mappings
358 from hardware to Debian packages. Check if &#39;discover-pkginstall -l&#39;
359 list the package you would like to have installed when a given
360 hardware device is inserted into your computer, and report bugs using
361 reportbug if it isn&#39;t. Or, if you know of a better way to provide
362 such mapping, please let me know.&lt;/p&gt;
363
364 &lt;p&gt;This prototype need more work, and there are several questions that
365 should be considered before it is ready for production use. Is dbus
366 the correct way to detect new hardware? At the moment I look for HAL
367 dbus events on the system bus, because that is the events I could see
368 on my Debian Squeeze KDE desktop. Are there better events to use?
369 How should the user be notified? Is the desktop notification
370 mechanism the best option, or should the background daemon raise a
371 popup instead? How should packages be installed? When should they
372 not be installed?&lt;/p&gt;
373
374 &lt;p&gt;If you want to help getting such feature implemented in Debian,
375 please send me an email. :)&lt;/p&gt;
376 </description>
377 </item>
378
379 <item>
380 <title>New IRC channel for LEGO designers using Debian</title>
381 <link>http://people.skolelinux.org/pere/blog/New_IRC_channel_for_LEGO_designers_using_Debian.html</link>
382 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/New_IRC_channel_for_LEGO_designers_using_Debian.html</guid>
383 <pubDate>Wed, 2 Jan 2013 15:40:00 +0100</pubDate>
384 <description>&lt;p&gt;During Christmas, I have worked a bit on the Debian support for
385 &lt;a href=&quot;http://mindstorms.lego.com/en-us/Default.aspx&quot;&gt;LEGO Mindstorm
386 NXT&lt;/a&gt;. My son and I have played a bit with my NXT set, and I
387 discovered I had to build all the tools myself because none were
388 already in Debian Squeeze. If Debian support for LEGO is something
389 you care about, please join me on the IRC channel
390 &lt;a href=&quot;irc://irc.debian.org/%23debian-lego&quot;&gt;#debian-lego&lt;/a&gt; (server
391 irc.debian.org). There is a lot that could be done to improve the
392 Debian support for LEGO designers. For example both CAD software
393 and Mindstorm compilers are missing. :)&lt;/p&gt;
394
395 &lt;p&gt;Update 2012-01-03: A
396 &lt;a href=&quot;http://wiki.debian.org/LegoDesigners&quot;&gt;project page&lt;/a&gt;
397 including links to Lego related packages is now available.&lt;/p&gt;
398 </description>
399 </item>
400
401 <item>
402 <title>Lenker for 2013-01-01</title>
403 <link>http://people.skolelinux.org/pere/blog/Lenker_for_2013_01_01.html</link>
404 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Lenker_for_2013_01_01.html</guid>
405 <pubDate>Tue, 1 Jan 2013 09:20:00 +0100</pubDate>
406 <description>&lt;p&gt;Her er noen lenker til tekster jeg har satt pris på å lese den
407 siste måneden.&lt;/p&gt;
408
409 &lt;ul&gt;
410
411 &lt;li&gt;2012-12-07
412 &lt;a href=&quot;http://www.idg.no/computerworld/article262047.ece&quot;&gt;Myter og
413 FUD om fri programvare&lt;/a&gt; av min venn Christer Gundersen som
414 kommenterer noen av de påstandene som er spredt via Computerworld
415 Norge de siste månedene.&lt;/li&gt;
416
417 &lt;li&gt;BankID er et opplegg der utsteder (dvs. banken eller dens
418 leverandør) sitter på alt som trengs for å bruke BankID, men har
419 lovet å ikke bruke den unntatt på oppdrag fra deg. Det er greit nok
420 for banktjenester, der banken allerede har full kontroll over
421 resultatet, men problematisk når det gjelder tilgang til
422 helseopplysninger og avtaleinngåelse med andre enn banken. Jeg
423 håper protestene brer om seg.
424
425 &lt;ul&gt;
426
427 &lt;li&gt;2012-12-11 &lt;a href=&quot;http://www.aftenposten.no/meninger/debatt/BankID-blottlegger-helseopplysninger-7067148.html&quot;&gt;BankID
428 blottlegger helseopplysninger&lt;/a&gt;&lt;/li&gt;
429
430 &lt;li&gt;2012-12-07 &lt;a href=&quot;http://www.nrk.no/nyheter/norge/1.9695027&quot;&gt;-
431 Helseopplysningene ikke sikre med Bank-ID&lt;/a&gt;&lt;/li&gt;
432
433 &lt;li&gt;2012-12-07
434 &lt;a href=&quot;https://www.bankid.no/Presse-og-nyheter/Nyhetsarkiv/2012/Papeker-alvorlige-men-kjente-utfordringer/&quot;&gt;Påpeker
435 alvorlige, men kjente utfordringer&lt;/a&gt; er den offisielle
436 holdningen til de som lager BankID.&lt;/li&gt;
437
438 &lt;li&gt;2012-12-08
439 &lt;a href=&quot;http://www.tnp.no/norway/panorama/3419-ntnu-researcher-warns-against-security-of-bank-id-password&quot;&gt;NTNU
440 Researcher Warns against Security of Bank ID Password&lt;/a&gt;
441
442 &lt;/ul&gt;
443
444 &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;
445
446 &lt;li&gt;2012-12-11
447 &lt;a href=&quot;http://www.aftenposten.no/meninger/debatt/Realfagsdodaren-7067173.html&quot;&gt;Realfagsdødaren&lt;/a&gt;
448
449 &lt;li&gt;2012-12-21
450 &lt;a href=&quot;http://www.bt.no/nyheter/innenriks/112/--Forventningene-er-for-hoye-2816450.html&quot;&gt;-
451 Noen må bli skuffet&lt;/a&gt; - Politiet i Bergen forteller hvor lavt de
452 prioriterer hverdagskriminalitet.&lt;/li&gt;
453
454 &lt;li&gt;2012-05-03
455 &lt;a href=&quot;http://e24.no/jobb/kripos-ansatt-doemt-for-snoking-for-venn/20208585&quot;&gt;
456 Kripos-ansatt dømt for snoking for venn&lt;/A&gt; - viser hvor svak
457 reaksjonen blir når politiet misbruker innsamlet informasjon. En
458 forvarsel på konsekvensene av nasjonal brev- og besøkskontroll -
459 ofte kalt Datalagringsdirektivet.&lt;/li&gt;
460
461 &lt;li&gt;2012-12-14
462 &lt;a href=&quot;http://www.dagbladet.no/2012/12/14/kultur/debatt/kronikk/jul/ensomhet/24838541/&quot;&gt;Å
463 smøre en forskjell&lt;/a&gt; - om ensomhet og jul.&lt;/li&gt;
464
465 &lt;li&gt;2012-12-18
466 &lt;a href=&quot;http://www.aftenposten.no/meninger/kronikker/n-krise-av-gangen_-takk-7072452.html&quot;&gt;Én
467 krise av gangen, takk!&lt;/a&gt;
468
469
470 &lt;li&gt;2012-12-17
471 &lt;a href=&quot;http://www.aftenposten.no/meninger/NAV-Et-mangehodet-monster--7072165.html&quot;&gt;NAV:
472 Et mangehodet monster&lt;/a&gt;&lt;/li&gt;
473
474 &lt;li&gt;2011-01-12
475 &lt;a href=&quot;http://www.dagbladet.no/2011/01/12/kultur/debatt/kronikk/personvern/15027203/&quot;&gt;Pasienter
476 uten vern&lt;/a&gt; - forteller litt om hvordan Norsk Pasientregister og
477 andre helseregister raderer bort pasienters privatsfære.&lt;/li&gt;
478
479
480 &lt;li&gt;2012-12-19
481 &lt;a href=&quot;http://www.aftenposten.no/meninger/debatt/Hvorfor-er-barnefamilier-fattige-7073951.html&quot;&gt;Hvorfor
482 er barnefamilier fattige?&lt;/a&gt;&lt;/li&gt;
483
484 &lt;li&gt;2012-12-25
485 &lt;a href=&quot;http://www.aftenposten.no/meninger/spaltister/Den-skjulte-minoriteten--konservative-kristne-i-Norge-7075518.html&quot;&gt;Den
486 skjulte minoriteten – konservative kristne i Norge&lt;/a&gt; - kronikk av
487 Bjørn Stærk fra aftenposten&lt;/li&gt;
488
489 &lt;li&gt;2009-05-04
490 &lt;a href=&quot;http://deltemeninger.no/-/bulletin/show/303429_folkebiblioteket-2-0?ref=checkpoint&quot;&gt;Folkebiblioteket
491 2.0&lt;/a&gt; - Min venn Sturle om opphavsrett og Internett, i debatt med
492 Olav Torvund.&lt;/li&gt;
493
494 &lt;/ul&gt;
495
496 &lt;p&gt;Og et godt nytt år til dere alle!&lt;/p&gt;
497 </description>
498 </item>
499
500 <item>
501 <title>A Christmas present for Skolelinux / Debian Edu</title>
502 <link>http://people.skolelinux.org/pere/blog/A_Christmas_present_for_Skolelinux___Debian_Edu.html</link>
503 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/A_Christmas_present_for_Skolelinux___Debian_Edu.html</guid>
504 <pubDate>Fri, 28 Dec 2012 09:20:00 +0100</pubDate>
505 <description>&lt;p&gt;I was happy to discover a few days ago that the
506 &lt;a href=&quot;http://www.skolelinux.org/&quot;&gt;Skolelinux / Debian Edu&lt;/a&gt;
507 project also this year received a Christmas present from Another
508 Agency in Trondheim. NOK 1000,- showed up on our donation account
509 December 24th. I want to express our thanks for this very welcome
510 present. As the Debian Edu / Skolelinux project is very short on
511 funding these days, and thus lack the money to do regular developer
512 gatherings, this donation was most welcome. One developer gathering
513 cost around NOK 15&amp;nbsp;000,-, so we need quite a lot more to keep the
514 development pace we want. Thus, I hope their example this year is
515 followed by many others. :)&lt;/p&gt;
516
517 &lt;p&gt;The public list of donors can be found on
518 &lt;a href=&quot;http://www.linuxiskolen.no/slxdebianlabs/donations.html&quot;&gt;the
519 donation page&lt;/a&gt; for the project, which also contain instructions if
520 you want to donate to the project.&lt;/p&gt;
521 </description>
522 </item>
523
524 <item>
525 <title>How to backport bitcoin-qt version 0.7.2-2 to Debian Squeeze</title>
526 <link>http://people.skolelinux.org/pere/blog/How_to_backport_bitcoin_qt_version_0_7_2_2_to_Debian_Squeeze.html</link>
527 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/How_to_backport_bitcoin_qt_version_0_7_2_2_to_Debian_Squeeze.html</guid>
528 <pubDate>Tue, 25 Dec 2012 20:50:00 +0100</pubDate>
529 <description>&lt;p&gt;Let me start by wishing you all marry Christmas and a happy new
530 year! I hope next year will prove to be a good year.&lt;/p&gt;
531
532 &lt;p&gt;&lt;a href=&quot;http://www.bitcoin.org/&quot;&gt;Bitcoin&lt;/a&gt;, the digital
533 decentralised &quot;currency&quot; that allow people to transfer bitcoins
534 between each other with minimal overhead, is a very interesting
535 experiment. And as I wrote a few days ago, the bitcoin situation in
536 &lt;a href=&quot;http://www.debian.org/&quot;&gt;Debian&lt;/a&gt; is about to improve a bit.
537 The &lt;a href=&quot;http://packages.qa.debian.org/bitcoin&quot;&gt;new debian source
538 package&lt;/a&gt; (version 0.7.2-2) was uploaded yesterday, and is waiting
539 in &lt;a href=&quot;http://ftp-master.debian.org/new.html&quot;&gt;the NEW queue&lt;/A&gt;
540 for one of the ftpmasters to approve the new bitcoin-qt package
541 name.&lt;/p&gt;
542
543 &lt;p&gt;And thanks to the great work of Jonas and the rest of the bitcoin
544 team in Debian, you can easily test the package in Debian Squeeze
545 using the following steps to get a set of working packages:&lt;/p&gt;
546
547 &lt;blockquote&gt;&lt;pre&gt;
548 git clone git://git.debian.org/git/collab-maint/bitcoin
549 cd bitcoin
550 DEB_MAINTAINER_MODE=1 DEB_BUILD_OPTIONS=noupnp fakeroot debian/rules clean
551 DEB_BUILD_OPTIONS=noupnp git-buildpackage --git-ignore-new
552 &lt;/pre&gt;&lt;/blockquote&gt;
553
554 &lt;p&gt;You might have to install some build dependencies as well. The
555 list of commands should give you two packages, bitcoind and
556 bitcoin-qt, ready for use in a Squeeze environment. Note that the
557 client will download the complete set of bitcoin &quot;blocks&quot;, which need
558 around 5.6 GiB of data on my machine at the moment. Make sure your
559 ~/.bitcoin/ directory have lots of spare room if you want to download
560 all the blocks. The client will warn if the disk is getting full, so
561 there is not really a problem if you got too little room, but you will
562 not be able to get all the features out of the client.&lt;/p&gt;
563
564 &lt;p&gt;As usual, if you use bitcoin and want to show your support of my
565 activities, please send Bitcoin donations to my address
566 &lt;b&gt;&lt;a href=&quot;bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&amp;label=PetterReinholdtsenBlog&quot;&gt;15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&lt;/a&gt;&lt;/b&gt;.&lt;/p&gt;
567 </description>
568 </item>
569
570 <item>
571 <title>A word on bitcoin support in Debian</title>
572 <link>http://people.skolelinux.org/pere/blog/A_word_on_bitcoin_support_in_Debian.html</link>
573 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/A_word_on_bitcoin_support_in_Debian.html</guid>
574 <pubDate>Fri, 21 Dec 2012 23:59:00 +0100</pubDate>
575 <description>&lt;p&gt;It has been a while since I wrote about
576 &lt;a href=&quot;http://www.bitcoin.org/&quot;&gt;bitcoin&lt;/a&gt;, the decentralised
577 peer-to-peer based crypto-currency, and the reason is simply that I
578 have been busy elsewhere. But two days ago, I started looking at the
579 state of &lt;a href=&quot;http://packages.qa.debian.org/bitcoin&quot;&gt;bitcoin in
580 Debian&lt;/a&gt; again to try to recover my old bitcoin wallet. The package
581 is now maintained by a
582 &lt;a href=&quot;https://alioth.debian.org/projects/pkg-bitcoin/&quot;&gt;team of
583 people&lt;/a&gt;, and the grunt work had already been done by this team. We
584 owe a huge thank you to all these team members. :)
585 But I was sad to discover that the bitcoin client is missing in
586 Wheezy. It is only available in Sid (and an outdated client from
587 backports). The client had several RC bugs registered in BTS blocking
588 it from entering testing. To try to help the team and improve the
589 situation, I spent some time providing patches and triaging the bug
590 reports. I also had a look at the bitcoin package available from Matt
591 Corallo in a
592 &lt;a href=&quot;https://launchpad.net/~bitcoin/+archive/bitcoin&quot;&gt;PPA for
593 Ubuntu&lt;/a&gt;, and moved the useful pieces from that version into the
594 Debian package.&lt;/p&gt;
595
596 &lt;p&gt;After checking with the main package maintainer Jonas Smedegaard on
597 IRC, I pushed several patches into the collab-maint git repository to
598 improve the package. It now contains fixes for the RC issues (not from
599 me, but fixed by Scott Howard), build rules for a Qt GUI client
600 package, konqueror support for the bitcoin: URI and bash completion
601 setup. As I work on Debian Squeeze, I also created
602 &lt;a href=&quot;http://lists.alioth.debian.org/pipermail/pkg-bitcoin-devel/Week-of-Mon-20121217/000041.html&quot;&gt;a
603 patch to backport&lt;/a&gt; the latest version. Jonas is going to look at
604 it and try to integrate it into the git repository before uploading a
605 new version to unstable.
606
607 &lt;p&gt;I would very much like bitcoin to succeed, to get rid of the
608 centralized control currently exercised in the monetary system. I
609 find it completely unacceptable that the USA government is collecting
610 transaction data for almost all international money transfers (most are done in USD and transaction logs shipped to the spooks), and
611 that the major credit card companies can block legal money
612 transactions to Wikileaks. But for bitcoin to succeed, more people
613 need to use bitcoins, and more people need to accept bitcoins when
614 they sell products and services. Improving the bitcoin support in
615 Debian is a small step in the right direction, but not enough.
616 Unfortunately the user experience when browsing the web and wanting to
617 pay with bitcoin is still not very good. The bitcoin: URI is a step
618 in the right direction, but need to work in most or every browser in
619 use. Also the bitcoin-qt client is too heavy to fire up to do a
620 quick transaction. I believe there are other clients available, but
621 have not tested them.&lt;/p&gt;
622
623 &lt;p&gt;My
624 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/Now_accepting_bitcoins___anonymous_and_distributed_p2p_crypto_money.html&quot;&gt;experiment
625 with bitcoins&lt;/a&gt; showed that at least some of my readers use bitcoin.
626 I received 20.15 BTC so far on the address I provided in my blog two
627 years ago, as can be
628 &lt;a href=&quot;http://blockexplorer.com/address/15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&quot;&gt;seen
629 on the blockexplorer service&lt;/a&gt;. Thank you everyone for your
630 donation. The blockexplorer service demonstrates quite well that
631 bitcoin is not quite anonymous and untracked. :) I wonder if the
632 number of users have gone up since then. If you use bitcoin and want
633 to show your support of my activity, please send Bitcoin donations to
634 the same address as last time,
635 &lt;b&gt;&lt;a href=&quot;bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&amp;label=PetterReinholdtsenBlog&quot;&gt;15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&lt;/a&gt;&lt;/b&gt;.&lt;/p&gt;
636 </description>
637 </item>
638
639 <item>
640 <title>Piratpartiet på opphavs-retrett?</title>
641 <link>http://people.skolelinux.org/pere/blog/Piratpartiet_p__opphavs_retrett_.html</link>
642 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Piratpartiet_p__opphavs_retrett_.html</guid>
643 <pubDate>Wed, 19 Dec 2012 13:10:00 +0100</pubDate>
644 <description>&lt;p&gt;Jeg ble overrasket over å se at Piratpartiet i
645 &lt;a href=&quot;http://www.aftenposten.no/kultur/Piratpartiet-stiller-til-Stortingsvalget-7073298.html&quot;&gt;Aftenposten&lt;/a&gt;
646 er referert på følgende:&lt;/p&gt;
647
648 &lt;blockquote&gt;
649 Når det gjelder retten til opphavsrett for kulturproduktene, mener
650 Piratpartiet av levetid + 14 år er tilfredsstillende.
651 &lt;/blockquote&gt;
652
653 &lt;p&gt;Det betyr en vernetid langt ut over det kommersielle livet til de
654 aller fleste opphavsrettsbeskyttede verker, og er i strid med slik i
655 hvert fall jeg har tolket punkt 5 i
656 &lt;a href=&quot;http://people.opera.com/howcome/2012/piratpartiet/kjerneprogram.html&quot;&gt;kjerneprogrammet
657 til Piratpartiet&lt;/a&gt;:&lt;/p&gt;
658
659 &lt;blockquote&gt;
660 &lt;p&gt;&lt;strong&gt;5: Åndsverk og patenter: tilbake til start&lt;/strong&gt;&lt;/p&gt;
661
662 &lt;table border=&quot;1&quot;&gt;
663 &lt;tr&gt;&lt;th&gt;forslag:&lt;/th&gt;&lt;td&gt;14 års opphavsrett og ingen
664 programvarepatenter&lt;/td&gt;&lt;/tr&gt;
665
666 &lt;tr&gt;&lt;th&gt;grunn:&lt;/th&gt;&lt;td&gt;Den første loven om opphavsrett spesifiserte 14
667 års vernetid. Senere har mediabransjens lobbyister stadig presset
668 loven mot lengre vern, nå er det 70 år etter forfatters død. Dette
669 gjør at mange verk glemmes og går tapt, noe som er skadelig for norsk
670 språk og kultur. Vi til tilbake til start: 14 års
671 vernetid. Patentloven sier klart at dataprogrammer ikke kan
672 patenteres. Likevel klarer patentadvokater å lure gjennom
673 programvarepatenter. Slike patenter gjør dingsene våre dyrere og kan i
674 enkelte tilfelle stoppe dem helt.&lt;/th&gt;&lt;/tr&gt;
675 &lt;/table&gt;
676 &lt;/blockquote&gt;
677
678 &lt;p&gt;Den opprinnelige opphavsretten var på 14 år totalt, ikke 14 år
679 etter opphavspersonens død. Jeg tenkte først dette kanskje var
680 feilsitering fra Aftenposten, men jeg finner samme påstand i en &lt;a
681 href=&quot;http://piratpartietnorge.org/om-gramo-og-piratpolitikken/&quot;&gt;bloggpost
682 fra Geir Aaslid&lt;/a&gt; på Piratpartietes offisielle nettsider. Der
683 skriver han følgende:&lt;/p&gt;
684
685 &lt;blockquote&gt;
686 Hva vi gjør med opphavsretten er mer komplisert fordi den omfavner så
687 mange bransjer, med ulike behov. Enhver reform er en forbedring men
688 det er nærliggende å anta at en opphavsrett på levetid + 14 år er
689 fullt ut tilfredstillende for musikk, film, litteratur og spill.
690 &lt;/blockquote&gt;
691
692 &lt;p&gt;Det virker dermed på meg som om Piratpartiet allerede har gjort
693 retrett fra sin beundringsverdige holdning om at det holdt med 14 års
694 total vernetid, til sin nye som tar utgangspunkt i levetiden til
695 opphavspersonen. Jeg håper det baserer seg på en misforståelse hos
696 piratlederen som blir korrigert tilbake til 14 års total vernetid før
697 partiet stiller til valg.&lt;/p&gt;
698
699 &lt;p&gt;Hvis du lurer på hvilke problemer lang vernetid bringer med seg,
700 anbefaler jeg å lese boken &lt;a href=&quot;http://free-culture.cc/&quot;&gt;Free
701 Culture&lt;/a&gt; av Lawrence Lessig. Jeg og en liten gruppe andre er igang
702 med å
703 &lt;a href=&quot;https://github.com/petterreinholdtsen/free-culture-lessig&quot;&gt;oversette
704 boken til bokmål&lt;/a&gt; og tar gjerne imot hjelp med oversettelse og
705 korrekturlesing.&lt;/p&gt;
706
707 &lt;p&gt;&lt;strong&gt;Oppdatering 2012-12-20&lt;/strong&gt;: Oppdaget at
708 &lt;a href=&quot;http://piratpartietnorge.org/om-gramo-og-piratpolitikken/&quot;&gt;bloggposten
709 til Geir Aaslid&lt;/a&gt; er endret siden i går, og nå inneholder følgende
710 avsnitt i stedet for det jeg siterte over:&lt;/p&gt;
711
712 &lt;blockquote&gt;
713 Hva vi gjør med opphavsretten er mer komplisert fordi den omfavner så
714 mange bransjer, med ulike behov. Enhver reform er en forbedring men
715 det er nærliggende å anta at en opphavsrett lik levetiden, evt + 14 år
716 er fullt ut tilfredstillende for mange skapere av musikk, film,
717 litteratur og spill. Det er for det meste de store forlagene som er
718 imot enhver reform.
719 &lt;/blockquote&gt;
720
721 &lt;p&gt;I tillegg har det dukket opp en setning nederst &quot;Dette dokumentet
722 er et utkast til svar på et angrep på Piratpartiet fra Gramo. Det
723 endrer seg derfor over tid og den endelige versjonen er det som blir
724 publisert på Hardware.no&quot;, som tyder på at originalformuleringen ikke
725 var veloverveid og sitatet i Aftenposten kanskje var basert på en
726 misforståelse.&lt;/p&gt;
727 </description>
728 </item>
729
730 <item>
731 <title>Ledger - double-entry accounting using text based storage format</title>
732 <link>http://people.skolelinux.org/pere/blog/Ledger___double_entry_accounting_using_text_based_storage_format.html</link>
733 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Ledger___double_entry_accounting_using_text_based_storage_format.html</guid>
734 <pubDate>Tue, 18 Dec 2012 23:30:00 +0100</pubDate>
735 <description>&lt;p&gt;A few days ago I came across
736 &lt;a href=&quot;http://joeyh.name/blog/entry/hledger/&quot;&gt;a blog post from Joey
737 Hess&lt;/a&gt; describing &lt;a href=&quot;http://ledger-cli.org/&quot;&gt;ledger&lt;/a&gt; and
738 hledger, a text based system for double-entry accounting. I found it
739 interesting, as I am involved with several organizations where
740 accounting is an issue, and I have not really become too friendly with
741 the different web based systems we use. I find it hard to find what I
742 look for in the menus and even harder try to get sensible data out of
743 the systems. Ledger seem different. The accounting data is kept in
744 text files that can be stored in a version control system, and there
745
746 are at least &lt;a href=&quot;https://github.com/ledger/ledger/wiki/Ports&quot;&gt;five
747 different implementations&lt;/a&gt; able to read the format. An example
748 entry look like this, and is simple enough that it will be trivial to
749 generate entries based on CVS files fetched from the bank:&lt;/p&gt;
750
751 &lt;blockquote&gt;&lt;pre&gt;
752 2004-05-27 Book Store
753 Expenses:Books $20.00
754 Liabilities:Visa
755 &lt;/pre&gt;&lt;/blockquote&gt;
756
757 &lt;p&gt;The concept seemed interesting enough for me to check it out and
758 look for others using it. I found blog posts from
759 &lt;a href=&quot;http://blog.spang.cc/posts/hledger_rocks_my_world/&quot;&gt;Christine
760 Spang&lt;/a&gt;,
761 &lt;a href=&quot;http://bugsplat.info/2010-05-23-keeping-finances-with-ledger.html&quot;&gt;Pete
762 Keen&lt;/a&gt;,
763 &lt;a href=&quot;http://blog.andrewcantino.com/blog/2010/11/06/command-line-accounting-with-ledger-and-reckon/&quot;&gt;Andrew
764 Cantino&lt;/a&gt; and
765 &lt;a href=&quot;http://blog.iphoting.com/blog/2012/11/29/command-line-double-entry-accounting/&quot;&gt;Ronald
766 Ip&lt;/a&gt; describing how they use it, as well as a post from
767 &lt;a href=&quot;https://groups.google.com/forum/?fromgroups=#!topic/ledger-cli/r0oWjwbQ9Bo&quot;&gt;Bradley
768 M. Kuhn&lt;/a&gt; at the Software Freedom Conservancy. All seemed like good
769 recommendations fitting my need.&lt;/p&gt;
770
771 &lt;p&gt;The &lt;a href=&quot;http://packages.qa.debian.org/l/ledger.html&quot;&gt;ledger&lt;/a&gt;
772 package is available in Debian Squeeze, while the
773 &lt;a href=&quot;http://packages.qa.debian.org/h/haskell-hledger.html&quot;&gt;hledger&lt;/a&gt;
774 package only is available in Debian Sid. As I use Squeeze, ledger
775 seemed the best choice to get started.&lt;/p&gt;
776
777 &lt;p&gt;To get some real data to test on, I wrote a
778 &lt;a href=&quot;http://www.nuug.no/tools/lodo2ledger&quot;&gt;web scraper&lt;/a&gt; for
779 &lt;a href=&quot;http://www.lodo.no/&quot;&gt;LODO&lt;/a&gt;, the accounting system used by
780 the &lt;a href=&quot;http://www.nuug.no/&quot;&gt;NUUG&lt;/a&gt; association, and started to
781 play with the data set. I&#39;m not really deeply into accounting, but I
782 am able to get a simple balance and accounting status for example
783 using the &quot;&lt;tt&gt;ledger balance&lt;/tt&gt;&quot; command. But I will have to
784 gather more experience before I know if the ledger way is a good fit
785 for the organisations I am involved in.&lt;/p&gt;
786 </description>
787 </item>
788
789 </channel>
790 </rss>