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">
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" />
10 <title>Modalias strings - a practical way to map
"stuff
" 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><p
>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
19 <a href=
"http://anonscm.debian.org/viewvc/debian-edu/trunk/src/hw-support-handler/
">the
20 Debian Edu subversion repository
</a
>:
22 <p
><strong
>Modalias decoded
</strong
></p
>
24 <p
>This document try to explain what the different types of modalias
25 values stands for. It is in part based on information from
26 &lt;URL:
<a href=
"https://wiki.archlinux.org/index.php/Modalias
">https://wiki.archlinux.org/index.php/Modalias
</a
> &gt;,
27 &lt;URL:
<a href=
"http://unix.stackexchange.com/questions/
26132/how-to-assign-usb-driver-to-device
">http://unix.stackexchange.com/questions/
26132/how-to-assign-usb-driver-to-device
</a
> &gt;,
28 &lt;URL:
<a href=
"http://code.metager.de/source/history/linux/stable/scripts/mod/file2alias.c
">http://code.metager.de/source/history/linux/stable/scripts/mod/file2alias.c
</a
> &gt; and
29 &lt;URL:
<a href=
"http://cvs.savannah.gnu.org/viewvc/dmidecode/dmidecode.c?root=dmidecode
&view=markup
">http://cvs.savannah.gnu.org/viewvc/dmidecode/dmidecode.c?root=dmidecode
&view=markup
</a
> &gt;.
31 <p
>The modalias entries for a given Linux machine can be found using
32 this shell script:
</p
>
35 cat $(find /sys -name modalias) | sort -u
38 <p
>The supported modalias globs for a given kernel module can be found
39 using modinfo:
</p
>
42 % /sbin/modinfo psmouse | grep alias:
43 alias: serio:ty05pr*id*ex*
44 alias: serio:ty01pr*id*ex*
48 <p
><strong
>PCI subtype
</strong
></p
>
50 <p
>A typical PCI entry can look like this. This is an Intel Host
51 Bridge memory controller:
</p
>
53 <p
><blockquote
>
54 pci:v00008086d00002770sv00001028sd000001ADbc06sc00i00
55 </blockquote
></p
>
57 <p
>This represent these values:
</p
>
62 sv
00001028 (subvendor)
63 sd
000001AD (subdevice)
69 <p
>The vendor/device values are the same values outputted from
'lspci
70 -n
' 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).
</p
>
74 <p
>Not sure how to figure out the interface value, nor what it
77 <p
><strong
>USB subtype
</strong
></p
>
79 <p
>Some typical USB entries can look like this. This is an internal
80 USB hub in a laptop:
</p
>
82 <p
><blockquote
>
83 usb:v1D6Bp0001d0206dc09dsc00dp00ic09isc00ip00
84 </blockquote
></p
>
86 <p
>Here is the values included in this alias:
</p
>
89 v
1D6B (device vendor)
90 p
0001 (device product)
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)
100 <p
>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:
</p
>
104 <p
><blockquote
>
105 usb:v0AC8p3420d5000dcEFdsc02dp01ic01isc01ip00
106 <br
>usb:v0AC8p3420d5000dcEFdsc02dp01ic01isc02ip00
107 <br
>usb:v0AC8p3420d5000dcEFdsc02dp01ic0Eisc01ip00
108 <br
>usb:v0AC8p3420d5000dcEFdsc02dp01ic0Eisc02ip00
109 </blockquote
></p
>
111 <p
>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.
</p
>
115 <p
><strong
>ACPI subtype
</strong
></p
>
117 <p
>The ACPI type is used for several non-PCI/USB stuff. This is an IR
118 receiver in a Thinkpad X40:
</p
>
120 <p
><blockquote
>
121 acpi:IBM0071:PNP0511:
122 </blockquote
></p
>
124 <p
>The values between the colons are IDs.
</p
>
126 <p
><strong
>DMI subtype
</strong
></p
>
128 <p
>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:
</p
>
132 <p
><blockquote
>
133 dmi:bvnIBM:bvr1UETB6WW(
1.66):bd06/
15/
2005:svnIBM:pn2371H4G:pvrThinkPadX40:rvnIBM:rn2371H4G:rvrNotAvailable:cvnIBM:ct10:cvrNotAvailable:
134 </blockquote
></p
>
136 <p
>The values present are
</p
>
139 bvn IBM (BIOS vendor)
140 bvr
1UETB
6WW(
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)
150 cvr NotAvailable (chassis version)
153 <p
>The chassis type
10 is Notebook. Other interesting values can be
154 found in the dmidecode source:
</p
>
158 4 Low Profile Desktop
171 17 Main Server Chassis
174 20 Bus Expansion Chassis
175 21 Peripheral Chassis
177 23 Rack Mount Chassis
186 <p
>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.
</p
>
190 <p
><strong
>SerIO subtype
</strong
></p
>
192 <p
>This type is used for PS/
2 mouse plugs. One example is from my
193 test machine:
</p
>
195 <p
><blockquote
>
196 serio:ty01pr00id00ex00
197 </blockquote
></p
>
199 <p
>The values present are
</p
>
208 <p
>This type is supported by the psmouse driver. I am not sure what
209 the valid values are.
</p
>
211 <p
><strong
>Other subtypes
</strong
></p
>
213 <p
>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.
</p
>
221 <p
><strong
>Looking up kernel modules using modalias values
</strong
></p
>
223 <p
>To check which kernel modules provide support for a given modalias,
224 one can use the following shell script:
</p
>
227 for id in $(cat $(find /sys -name modalias)|sort -u); do \
228 echo
"$id
" ; \
229 /sbin/modprobe --show-depends
"$id
"|sed
's/^/ /
' ; \
233 <p
>The output can look like this (only the first few entries as the
234 list is very long on my test machine):
</p
>
238 insmod /lib/modules/
2.6.32-
5-
686/kernel/drivers/acpi/ac.ko
240 FATAL: Module acpi:device: not found.
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
253 <p
>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 <a href=
"irc://irc.debian.org/%
23debian-devel
">#debian-devel
</a
>.
</p
>
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><p
>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 <a href=
"http://packages.qa.debian.org/pymissile
">pymissile
</a
> to make
269 sure udev will fix the device permissions when it is plugged in. I
270 also added a
"Modaliases
" 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.
<a href=
"http://code.google.com/p/pymissile/
">Upstream
</a
>
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 <a href=
"http://anonscm.debian.org/gitweb/?p=collab-maint/pymissile.git
">gitweb
281 view
</a
> or use
"<tt
>git clone
282 git://anonscm.debian.org/collab-maint/pymissile.git
</tt
>".
</p
>
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><p
>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.
</p
>
303 <p
>Some years ago, I proposed to
304 <a href=
"http://lists.debian.org/debian-devel/
2010/
05/msg01206.html
">use
305 the discover subsystem to implement this
</a
>. The idea is fairly
310 <li
>Add a desktop entry in /usr/share/autostart/ pointing to a program
311 starting when a user log in.
</li
>
313 <li
>Set this program up to listen for kernel events emitted when new
314 hardware is inserted into the computer.
</li
>
316 <li
>When new hardware is inserted, look up the hardware ID in a
317 database mapping to packages, and take note of any non-installed
320 <li
>Show a message to the user proposing to install the discovered
321 package, and make it easy to install it.
</li
>
325 <p
>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 <a href=
"http://www.packagekit.org/
">PackageKit
</a
> to install
331 <p
>Yesterday, I found time to try to implement this idea, and the
332 draft package is now checked into
333 <a href=
"http://anonscm.debian.org/viewvc/debian-edu/trunk/src/hw-support-handler/
">the
334 Debian Edu subversion repository
</a
>. In the process, I updated the
335 <a href=
"http://packages.qa.debian.org/d/discover-data.html
">discover-data
</a
>
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 <a href=
"http://packages.qa.debian.org/d/discover.html
">discover
</a
>
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
't upload it to unstable
344 because of the freeze).
</p
>
346 <p
>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
350 <p align=
"center
"><img src=
"http://people.skolelinux.org/pere/blog/images/
2013-
01-
09-hw-autoinstall.png
"></p
>
352 <p
>For this prototype to be really useful, some way to automatically
353 install the proposed packages by pressing the
"Please install
354 program(s)
" button should to be implemented.
</p
>
356 <p
>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
'discover-pkginstall -l
'
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
't. Or, if you know of a better way to provide
362 such mapping, please let me know.
</p
>
364 <p
>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?
</p
>
374 <p
>If you want to help getting such feature implemented in Debian,
375 please send me an email. :)
</p
>
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><p
>During Christmas, I have worked a bit on the Debian support for
385 <a href=
"http://mindstorms.lego.com/en-us/Default.aspx
">LEGO Mindstorm
386 NXT
</a
>. 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 <a href=
"irc://irc.debian.org/%
23debian-lego
">#debian-lego
</a
> (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. :)
</p
>
395 <p
>Update
2012-
01-
03: A
396 <a href=
"http://wiki.debian.org/LegoDesigners
">project page
</a
>
397 including links to Lego related packages is now available.
</p
>
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><p
>Her er noen lenker til tekster jeg har satt pris på å lese den
407 siste måneden.
</p
>
412 <a href=
"http://www.idg.no/computerworld/article262047.ece
">Myter og
413 FUD om fri programvare
</a
> av min venn Christer Gundersen som
414 kommenterer noen av de påstandene som er spredt via Computerworld
415 Norge de siste månedene.
</li
>
417 <li
>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.
427 <li
>2012-
12-
11 <a href=
"http://www.aftenposten.no/meninger/debatt/BankID-blottlegger-helseopplysninger-
7067148.html
">BankID
428 blottlegger helseopplysninger
</a
></li
>
430 <li
>2012-
12-
07 <a href=
"http://www.nrk.no/nyheter/norge/
1.9695027">-
431 Helseopplysningene ikke sikre med Bank-ID
</a
></li
>
434 <a href=
"https://www.bankid.no/Presse-og-nyheter/Nyhetsarkiv/
2012/Papeker-alvorlige-men-kjente-utfordringer/
">Påpeker
435 alvorlige, men kjente utfordringer
</a
> er den offisielle
436 holdningen til de som lager BankID.
</li
>
439 <a href=
"http://www.tnp.no/norway/panorama/
3419-ntnu-researcher-warns-against-security-of-bank-id-password
">NTNU
440 Researcher Warns against Security of Bank ID Password
</a
>
444 <li
>2012-
12-
11 <a href=
"http://www.aftenposten.no/nyheter/iriks/Norske-elever-er-darligst-i-Europa-pa-algebra-
7066752.html
">Norske elever er dårligst i Europa på algebra
</a
>
447 <a href=
"http://www.aftenposten.no/meninger/debatt/Realfagsdodaren-
7067173.html
">Realfagsdødaren
</a
>
450 <a href=
"http://www.bt.no/nyheter/innenriks/
112/--Forventningene-er-for-hoye-
2816450.html
">-
451 Noen må bli skuffet
</a
> - Politiet i Bergen forteller hvor lavt de
452 prioriterer hverdagskriminalitet.
</li
>
455 <a href=
"http://e24.no/jobb/kripos-ansatt-doemt-for-snoking-for-venn/
20208585">
456 Kripos-ansatt dømt for snoking for venn
</A
> - 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.
</li
>
462 <a href=
"http://www.dagbladet.no/
2012/
12/
14/kultur/debatt/kronikk/jul/ensomhet/
24838541/
">Å
463 smøre en forskjell
</a
> - om ensomhet og jul.
</li
>
466 <a href=
"http://www.aftenposten.no/meninger/kronikker/n-krise-av-gangen_-takk-
7072452.html
">Én
467 krise av gangen, takk!
</a
>
471 <a href=
"http://www.aftenposten.no/meninger/NAV-Et-mangehodet-monster--
7072165.html
">NAV:
472 Et mangehodet monster
</a
></li
>
475 <a href=
"http://www.dagbladet.no/
2011/
01/
12/kultur/debatt/kronikk/personvern/
15027203/
">Pasienter
476 uten vern
</a
> - forteller litt om hvordan Norsk Pasientregister og
477 andre helseregister raderer bort pasienters privatsfære.
</li
>
481 <a href=
"http://www.aftenposten.no/meninger/debatt/Hvorfor-er-barnefamilier-fattige-
7073951.html
">Hvorfor
482 er barnefamilier fattige?
</a
></li
>
485 <a href=
"http://www.aftenposten.no/meninger/spaltister/Den-skjulte-minoriteten--konservative-kristne-i-Norge-
7075518.html
">Den
486 skjulte minoriteten – konservative kristne i Norge
</a
> - kronikk av
487 Bjørn Stærk fra aftenposten
</li
>
490 <a href=
"http://deltemeninger.no/-/bulletin/show/
303429_folkebiblioteket-
2-
0?ref=checkpoint
">Folkebiblioteket
491 2.0</a
> - Min venn Sturle om opphavsrett og Internett, i debatt med
492 Olav Torvund.
</li
>
496 <p
>Og et godt nytt år til dere alle!
</p
>
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><p
>I was happy to discover a few days ago that the
506 <a href=
"http://www.skolelinux.org/
">Skolelinux / Debian Edu
</a
>
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&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. :)
</p
>
517 <p
>The public list of donors can be found on
518 <a href=
"http://www.linuxiskolen.no/slxdebianlabs/donations.html
">the
519 donation page
</a
> for the project, which also contain instructions if
520 you want to donate to the project.
</p
>
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><p
>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.
</p
>
532 <p
><a href=
"http://www.bitcoin.org/
">Bitcoin
</a
>, the digital
533 decentralised
"currency
" 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 <a href=
"http://www.debian.org/
">Debian
</a
> is about to improve a bit.
537 The
<a href=
"http://packages.qa.debian.org/bitcoin
">new debian source
538 package
</a
> (version
0.7.2-
2) was uploaded yesterday, and is waiting
539 in
<a href=
"http://ftp-master.debian.org/new.html
">the NEW queue
</A
>
540 for one of the ftpmasters to approve the new bitcoin-qt package
543 <p
>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:
</p
>
547 <blockquote
><pre
>
548 git clone git://git.debian.org/git/collab-maint/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 </pre
></blockquote
>
554 <p
>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
"blocks
", 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.
</p
>
564 <p
>As usual, if you use bitcoin and want to show your support of my
565 activities, please send Bitcoin donations to my address
566 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
&label=PetterReinholdtsenBlog
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
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><p
>It has been a while since I wrote about
576 <a href=
"http://www.bitcoin.org/
">bitcoin
</a
>, 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
<a href=
"http://packages.qa.debian.org/bitcoin
">bitcoin in
580 Debian
</a
> again to try to recover my old bitcoin wallet. The package
581 is now maintained by a
582 <a href=
"https://alioth.debian.org/projects/pkg-bitcoin/
">team of
583 people
</a
>, 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
592 <a href=
"https://launchpad.net/~bitcoin/+archive/bitcoin
">PPA for
593 Ubuntu
</a
>, and moved the useful pieces from that version into the
594 Debian package.
</p
>
596 <p
>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 <a href=
"http://lists.alioth.debian.org/pipermail/pkg-bitcoin-devel/Week-of-Mon-
20121217/
000041.html
">a
603 patch to backport
</a
> 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.
607 <p
>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.
</p
>
624 <a href=
"http://people.skolelinux.org/pere/blog/Now_accepting_bitcoins___anonymous_and_distributed_p2p_crypto_money.html
">experiment
625 with bitcoins
</a
> 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
628 <a href=
"http://blockexplorer.com/address/
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">seen
629 on the blockexplorer service
</a
>. 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 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
&label=PetterReinholdtsenBlog
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
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><p
>Jeg ble overrasket over å se at Piratpartiet i
645 <a href=
"http://www.aftenposten.no/kultur/Piratpartiet-stiller-til-Stortingsvalget-
7073298.html
">Aftenposten
</a
>
646 er referert på følgende:
</p
>
649 Når det gjelder retten til opphavsrett for kulturproduktene, mener
650 Piratpartiet av levetid +
14 år er tilfredsstillende.
653 <p
>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 <a href=
"http://people.opera.com/howcome/
2012/piratpartiet/kjerneprogram.html
">kjerneprogrammet
657 til Piratpartiet
</a
>:
</p
>
660 <p
><strong
>5: Åndsverk og patenter: tilbake til start
</strong
></p
>
662 <table border=
"1">
663 <tr
><th
>forslag:
</th
><td
>14 års opphavsrett og ingen
664 programvarepatenter
</td
></tr
>
666 <tr
><th
>grunn:
</th
><td
>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.
</th
></tr
>
678 <p
>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
<a
681 href=
"http://piratpartietnorge.org/om-gramo-og-piratpolitikken/
">bloggpost
682 fra Geir Aaslid
</a
> på Piratpartietes offisielle nettsider. Der
683 skriver han følgende:
</p
>
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.
692 <p
>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.
</p
>
699 <p
>Hvis du lurer på hvilke problemer lang vernetid bringer med seg,
700 anbefaler jeg å lese boken
<a href=
"http://free-culture.cc/
">Free
701 Culture
</a
> av Lawrence Lessig. Jeg og en liten gruppe andre er igang
703 <a href=
"https://github.com/petterreinholdtsen/free-culture-lessig
">oversette
704 boken til bokmål
</a
> og tar gjerne imot hjelp med oversettelse og
705 korrekturlesing.
</p
>
707 <p
><strong
>Oppdatering
2012-
12-
20</strong
>: Oppdaget at
708 <a href=
"http://piratpartietnorge.org/om-gramo-og-piratpolitikken/
">bloggposten
709 til Geir Aaslid
</a
> er endret siden i går, og nå inneholder følgende
710 avsnitt i stedet for det jeg siterte over:
</p
>
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
721 <p
>I tillegg har det dukket opp en setning nederst
"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
", som tyder på at originalformuleringen ikke
725 var veloverveid og sitatet i Aftenposten kanskje var basert på en
726 misforståelse.
</p
>
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><p
>A few days ago I came across
736 <a href=
"http://joeyh.name/blog/entry/hledger/
">a blog post from Joey
737 Hess
</a
> describing
<a href=
"http://ledger-cli.org/
">ledger
</a
> 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
746 are at least
<a href=
"https://github.com/ledger/ledger/wiki/Ports
">five
747 different implementations
</a
> 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:
</p
>
751 <blockquote
><pre
>
752 2004-
05-
27 Book Store
753 Expenses:Books $
20.00
755 </pre
></blockquote
>
757 <p
>The concept seemed interesting enough for me to check it out and
758 look for others using it. I found blog posts from
759 <a href=
"http://blog.spang.cc/posts/hledger_rocks_my_world/
">Christine
761 <a href=
"http://bugsplat.info/
2010-
05-
23-keeping-finances-with-ledger.html
">Pete
763 <a href=
"http://blog.andrewcantino.com/blog/
2010/
11/
06/command-line-accounting-with-ledger-and-reckon/
">Andrew
764 Cantino
</a
> and
765 <a href=
"http://blog.iphoting.com/blog/
2012/
11/
29/command-line-double-entry-accounting/
">Ronald
766 Ip
</a
> describing how they use it, as well as a post from
767 <a href=
"https://groups.google.com/forum/?fromgroups=#!topic/ledger-cli/r0oWjwbQ9Bo
">Bradley
768 M. Kuhn
</a
> at the Software Freedom Conservancy. All seemed like good
769 recommendations fitting my need.
</p
>
771 <p
>The
<a href=
"http://packages.qa.debian.org/l/ledger.html
">ledger
</a
>
772 package is available in Debian Squeeze, while the
773 <a href=
"http://packages.qa.debian.org/h/haskell-hledger.html
">hledger
</a
>
774 package only is available in Debian Sid. As I use Squeeze, ledger
775 seemed the best choice to get started.
</p
>
777 <p
>To get some real data to test on, I wrote a
778 <a href=
"http://www.nuug.no/tools/lodo2ledger
">web scraper
</a
> for
779 <a href=
"http://www.lodo.no/
">LODO
</a
>, the accounting system used by
780 the
<a href=
"http://www.nuug.no/
">NUUG
</a
> association, and started to
781 play with the data set. I
'm not really deeply into accounting, but I
782 am able to get a simple balance and accounting status for example
783 using the
"<tt
>ledger balance
</tt
>" 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.
</p
>