X-Git-Url: https://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/b0e905cd9e70d77cf44f03c00de6b4c49493e228..72dd5eb1f173d81384db68228e1b646d2f64c2de:/blog/index.html diff --git a/blog/index.html b/blog/index.html index f4325240dd..865cf46a1c 100644 --- a/blog/index.html +++ b/blog/index.html @@ -20,166 +20,191 @@
-
VÃ¥rt konkurransebidrag til #apps4norge bruker @opnedata
-
1st May 2013
-

For noen uker siden, innen fristen 2013-04-15, leverte jeg og -Morten Kjelkenes vårt bidrag til -DIFIs apps4norge-konkurranse -under lagnavnet NUUGs tannlegeteam. -Vi leverte følgende i idé-kategorien:

- -
- -

Tittel: Stikk innom tannlegen

- -

- -

Beskrivelse:

- -

Idéen - -

Gjøre det enklere å finne en tannlege som er praktisk for deg, der -pris og reisetid med kollektivt, til fots eller med bil er tatt med i -beregningen, ved å oppgi hvor en bor og jobber, og få forslag til -tannleger både i nærheten og på veien mellom disse stedene.

- -

Brukeren oppgir hjemmeadresse og jobbadresse, og kanskje også -barnehage. Så kan en også oppgi egen timelønn (for å beregne taps -arbeidsfortjeneste) og om en reiser med kollektivt, til fots eller -kjører bil. Så trykker en søk, og får opp en todelt side med kart og -tekstliste. I kartdelen vises aktuelle tannleger (for eksempel maks -7), og i tekstdelen er de samme tannlegene listet opp, med pris og -reisetid for kollektivtransport, og pris pluss reisekostnad hvis en -reiser med bil. En kan endre sorteringsrekkefølge for listen ved å -trykke på aktuell kolonne, og velge om en skal sortere på pris, -reisetid eller totalkostnad. Kun tannleger som tar imot nye kunder tas -i utganspunktet med i listen. Når brukeren trykker med musa en -tannlegemarkør på kartet kommer det en popup med detaljer om -tannlegen, den samme informasjonen som finnes i listen under kartet, -og lenke til mer informasjon om tannlegen.

- -

For hvert enkelt tannlegekontor er det tilgjengelig en -informasjonsside med adresse, hjemmesideurl, telefonnummer, lenke til -side for å finne reisebeskrivelse, åpningstider, etc.

- -

Nytteverdi for brukeren

+ +
27th October 2014
+

I am happy to report that I just sent out +this +announcement:

+ +
+The Debian Edu Team is pleased to announce the release of Debian Edu
+Jessie 8.0+edu0~alpha0
+
+Debian Edu is a complete operating system for schools. Through its
+various installation profiles you can install servers, workstations
+and laptops which will work together on the school network. With
+Debian Edu, the teachers themselves or their technical support can
+roll out a complete multi-user multi-machine study environment within
+hours or a few days. Debian Edu comes with hundreds of applications
+pre-installed, but you can always add more packages from Debian.
+
+For those who want to give Debian Edu Jessie a try, download and
+installation instructions are available, including detailed
+instructions in the manual[1] explaining the first steps, such as
+setting up a network or adding users. Please note that the password
+for the user your prompted for during installation must have a length
+of at least 5 characters!
+
+ [1] <URL: https://wiki.debian.org/DebianEdu/Documentation/Jessie >
+
+Would you like to give your school's computer a longer life? Are you
+tired of sneaker administration, running from computer to computer
+reinstalling the operating system? Would you like to administrate all
+the computers in your school using only a couple of hours every week?
+Check out Debian Edu Jessie!
+
+Skolelinux is used by at least two hundred schools all over the world,
+mostly in Germany and Norway.
+
+About Debian Edu and Skolelinux
+===============================
+
+Debian Edu, also known as Skolelinux[2], is a Linux distribution based
+on Debian providing an out-of-the box environment of a completely
+configured school network. Immediately after installation a school
+server running all services needed for a school network is set up just
+waiting for users and machines being added via GOsa², a comfortable
+Web-UI. A netbooting environment is prepared using PXE, so after
+initial installation of the main server from CD or USB stick all other
+machines can be installed via the network.  The provided school server
+provides LDAP database and Kerberos authentication service,
+centralized home directories, DHCP server, web proxy and many other
+services.  The desktop contains more than 60 educational software
+packages[3] and more are available from the Debian archive, and
+schools can choose between KDE, Gnome, LXDE, Xfce and MATE desktop
+environment.
+
+ [2] <URL: http://www.skolelinux.org/ >
+ [3] <URL: http://people.skolelinux.org/pere/blog/Educational_applications_included_in_Debian_Edu___Skolelinux__the_screenshot_collection____.html >
+
+Full release notes and manual
+=============================
+
+Below the download URLs there is a list of some of the new features
+and bugfixes of Debian Edu 8.0+edu0~alpha0 Codename Jessie. The full
+list is part of the manual. (See the feature list in the manual[4] for
+the English version.) For some languages manual translations are
+available, see the manual translation overview[5].
+
+ [4] <URL: https://wiki.debian.org/DebianEdu/Documentation/Jessie/Features >
+ [5] <URL: http://maintainer.skolelinux.org/debian-edu-doc/ >
+
+Where to get it
+---------------
+
+To download the multiarch netinstall CD release (624 MiB) you can use
+
+ * ftp://ftp.skolelinux.org/skolelinux-cd/debian-edu-8.0+edu0~alpha0-CD.iso
+ * http://ftp.skolelinux.org/skolelinux-cd/debian-edu-8.0+edu0~alpha0-CD.iso
+ * rsync -avzP ftp.skolelinux.org::skolelinux-cd/debian-edu-8.0+edu0~alpha0-CD.iso .
+
+The SHA1SUM of this image is: 361188818e036ce67280a572f757de82ebfeb095
+
+New features for Debian Edu 8.0+edu0~alpha0 Codename Jessie released 2014-10-27
+===============================================================================
+
+
+Installation changes
+--------------------
+
+ * PXE installation now installs firmware automatically for the hardware present.
+
+Software updates
+----------------
+
+Everything which is new in Debian Jessie 8.0, eg:
+
+ * Linux kernel 3.16.x
+ * Desktop environments KDE "Plasma" 4.11.12, GNOME 3.14, Xfce 4.10,
+   LXDE 0.5.6 and MATE 1.8 (KDE "Plasma" is installed by default; to
+   choose one of the others see manual.)
+ * the browsers Iceweasel 31 ESR and Chromium 38 
+ * !LibreOffice 4.3.3
+ * GOsa 2.7.4
+ * LTSP 5.5.4
+ * CUPS print system 1.7.5
+ * new boot framework: systemd
+ * Educational toolbox GCompris 14.07 
+ * Music creator Rosegarden 14.02
+ * Image editor Gimp 2.8.14
+ * Virtual stargazer Stellarium 0.13.0
+ * golearn 0.9
+ * tuxpaint 0.9.22
+ * New version of debian-installer from Debian Jessie.
+ * Debian Jessie includes about 42000 packages available for
+   installation.
+ * More information about Debian Jessie 8.0 is provided in the release
+   notes[6] and the installation manual[7].
+
+ [6] <URL: http://www.debian.org/releases/jessie/releasenotes >
+ [7] <URL: http://www.debian.org/releases/jessie/installmanual >
+
+Fixed bugs
+----------
+
+ * Inserting incorrect DNS information in Gosa will no longer break
+   DNS completely, but instead stop DNS updates until the incorrect
+   information is corrected (Debian bug #710362)
+ * and many others.
+
+Documentation and translation updates
+------------------------------------- 
+
+ * The Debian Edu Jessie Manual is fully translated to German, French,
+   Italian, Danish and Dutch. Partly translated versions exist for
+   Norwegian Bokmal and Spanish.
+
+Other changes
+-------------
+
+ * Due to new Squid settings, powering off or rebooting the main
+   server takes more time.
+ * To manage printers localhost:631 has to be used, currently www:631
+   doesn't work.
+
+Regressions / known problems
+----------------------------
+
+ * Installing LTSP chroot fails with a bug related to eatmydata about
+   exim4-config failing to run its postinst (see Debian bug #765694
+   and Debian bug #762103).
+ * Munin collection is not properly configured on clients (Debian bug
+   #764594).  The fix is available in a newer version of munin-node.
+ * PXE setup for Main Server and Thin Client Server setup does not
+   work when installing on a machine without direct Internet access.
+   Will be fixed when Debian bug #766960 is fixed in Jessie.
 
-
    -
  • sparer tid pÃ¥ tannlegebesøk
  • -
  • kan utnytte normal reisevei mellom hjem/jobb/barnehage
  • -
  • kan finne aktuell tannlege basert pÃ¥ flere kriterier
  • -
  • sile bort tannleger som ikke tar imot flere kunder
  • -
  • fÃ¥r kart som viser tannleger i nærheten, pÃ¥ tvers av kommunegrenser
  • -
- -

Grad av innovasjon, nytenkning og kreativitet

- -

Enkel tjeneste som fokuserer på det vi selv mener er relevant ved valg -av tannlege.

- -

Tjenestekonseptet kan også brukes til andre næringer, f.eks. lege, -butikk, leiebiler, hvis en har aktuell datakilde å koble med.

- -

Skulle gjerne hatt med vurdering av tannlegene tilgjengelig, slik -at en kunne finne "flinke" tannleger basert på et eller annet -kriterium.

- -

Markedspotensiale - potensiale for å slå gjennom hos mange -brukere

- -
    -
  • Alle som ønsker eller vurderer Ã¥ skaffe seg ny tannlege, f.eks. nyinnflyttede og studenter
  • -
  • Familier med en travel hverdag
  • -
- -

Felles er at den gjør tannlegen lettere tilgjengelig for de som vil spare tid eller penger.

- -

Samfunnsøkonomisk nytte - bidrar til å løse -samfunnsutfordringer

- -

Kutter tid brukt på tannlegebesøk, og penger frigjøres som kan brukes på andre områder. Oppfordrer til bedre bruk av kollektivtransport ved å gi tips om tannleger i nærheten av allerede brukt reisevei mellom hjemme og jobb når en reiser kollektivt.

- -

X-faktor - “Det lille ekstra...”

- -

Denne tjenesten gir det lille ekstra ved at den ikke slår opp -avstand til tannlege fra et enkelt punkt men avstand fra en reisevei, -slik at en får flere tannleger å velge imellom og kanskje kan spare -enda mer tid og penger enn en ville gjort ved å sjekke kun de nærmest -hjemme eller jobb.

- -

Tjenesten gir informasjonen både som kart og som tekstlig oversikt, for å sikre at blinde og svaksynte kan få tilgang til informasjonen selv om de ikke får brukt kartvisningen.

- -

Datasett brukt

- - - -

Åpne offentlige datasett brukt i applikasjonen:

- -
    -
  • Reisetid med kollektivtrafikk pÃ¥ Østlandet
  • -
- -

Øvrige datasett brukt i appen/tjenesten:

-
    -
  • Fakta om tannleger, priser etc (upublisert JSON-API)
  • -
  • Data om statens satser for biltransport
  • -
  • Kartbilder, kartdata
  • -
  • Kommunegrenser, nabokommuner, postnummer
  • -
  • Bilveiruting med OpenStreetmap-data
  • -
  • Kollektivtrafikkkart
  • -
  • Routing med OpenStreetmap-data
  • -
  • Kollektivtrafikkruting for Norge med uviss dataopphav
  • -
- -

Kategori:

-
    -
  • Arbeid og velferd
  • -
  • Forbruker
  • -
  • Økonomi
  • -
- -

Geografi (dekningsområde for app):

- -

Hele landet

- -
- -

Vinneren annonseres 2013-05-08 ved -prisutdelingen -hos DIFI 09:00 til 12:00. Konkurransen blir hard. Det meldes at -38 apper og 50 ideer er registrert som kandidater. Jeg frykter at jeg -ikke rekker innom selv, på grunn av jobb og forpliktelser på -hjemmebanen.

+ [9] <URL: http://www.debian.org/ > +
- Tags: norsk, nuug, offentlig innsyn. + Tags: debian edu, english.
@@ -187,123 +212,129 @@ hjemmebanen.

- -
26th April 2013
-

The Debian Edu / Skolelinux project is still going strong and made -its first Wheezy based release today. This is the release -announcement:

+ +
23rd October 2014
+

I spent last weekend at Makercon +Nordic, a great conference and workshop for makers in Norway and +the surrounding countries. I had volunteered on behalf of the +Norwegian Unix Users Group (NUUG) to video record the talks, and we +had a great and exhausting time recording the entire day, two days in +a row. There were only two of us, Hans-Petter and me, and we used the +regular video equipment for NUUG, with a +dvswitch, a +camera and a VGA to DV convert box, and mixed video and slides +live.

+ +

Hans-Petter did the post-processing, consisting of uploading the +around 180 GiB of raw video to Youtube, and the result is +now becoming +public on the MakerConNordic account. The videos have the license +NUUG always use on our recordings, which is +Creative +Commons Navngivelse-Del på samme vilkår 3.0 Norge. Many great +talks available. Check it out! :)

+
+
+ + + Tags: english, nuug, video. + + +
+
+
+ +
+ +
22nd October 2014
+

If you ever had to moderate a mailman list, like the ones on +alioth.debian.org, you know the web interface is fairly slow to +operate. First you visit one web page, enter the moderation password +and get a new page shown with a list of all the messages to moderate +and various options for each email address. This take a while for +every list you moderate, and you need to do it regularly to do a good +job as a list moderator. But there is a quick alternative, +the +listadmin program. It allow you to check lists for new messages +to moderate in a fraction of a second. Here is a test run on two +lists I recently took over:

-

New features for Debian Edu ~7.0.0 alpha0 released -2013-04-26

+

+% time listadmin xiph
+fetching data for pkg-xiph-commits@lists.alioth.debian.org ... nothing in queue
+fetching data for pkg-xiph-maint@lists.alioth.debian.org ... nothing in queue
+
+real    0m1.709s
+user    0m0.232s
+sys     0m0.012s
+%
+

-

This is the release notes for for Debian Edu / Skolelinux ~7.0.0 -edu alpha0, based on Debian with codename "Wheezy".

+

In 1.7 seconds I had checked two mailing lists and confirmed that +there are no message in the moderation queue. Every morning I +currently moderate 68 mailman lists, and it normally take around two +minutes. When I took over the two pkg-xiph lists above a few days +ago, there were 400 emails waiting in the moderator queue. It took me +less than 15 minutes to process them all using the listadmin +program.

-

About Debian Edu and Skolelinux

+

If you install +the listadmin +package from Debian and create a file ~/.listadmin.ini +with content like this, the moderation task is a breeze:

-

Debian Edu, also known as -Skolelinux, is a Linux distribution based on Debian providing an -out-of-the box environment of a completely configured school -network. Immediatly after installation a school server running all -services needed for a school network is set up just waiting for users -and machines being added via GOsa², a comfortable Web-UI. A netbooting -environment is prepared using PXE, so after initial installation of -the main server from CD, DVD or USB stick all other machines can be -installed via the network.

+

+username username@example.org
+spamlevel 23
+default discard
+discard_if_reason "Posting restricted to members only. Remove us from your mail list."
 
-

This is the first test release based on Wheezy (which currently is -not released yet). Basically this is an updated and slightly improved -version compared to the Squeeze release.

+password secret +adminurl https://{domain}/mailman/admindb/{list} +mailman-list@lists.example.com -

Software updates

+password hidden +other-list@otherserver.example.org +

-
    -
  • Everything which is new in Debian Wheezy, eg: -
      -
    • Linux kernel 3.2.x
    • -
    • Desktop environments KDE "Plasma" 4.8.4, GNOME 3.4, and LXDE 4 - (KDE is installed by default; to choose GNOME or LXDE: see - manual.)
    • -
    • Web browser Iceweasel 10 ESR
    • -
    • LibreOffice 3.5.4
    • -
    • LTSP 5.4.2
    • -
    • GOsa 2.7.4
    • -
    • CUPS print system 1.5.3
    • -
    • Educational toolbox GCompris 12.01
    • -
    • Music creator Rosegarden 12.04
    • -
    • Image editor Gimp 2.8.2
    • -
    • Virtual universe Celestia 1.6.1
    • -
    • Virtual stargazer Stellarium 0.11.3
    • -
    • Scratch visual programming environment 1.4.0.6
    • -
    • New version of debian-installer from Debian Wheezy, see - installation - manual for more details.
    • -
    • Debian Wheezy includes about 37000 packages available for - installation.
    • -
    • More information about Debian Wheezy 7.0 is provided in the - release notes and the installation manual.
    • -
  • -
+

There are other options to set as well. Check the manual page to +learn the details.

-

Documentation

-
    -
  • The (English) Debian Edu Wheezy Manual is fully translated to - German, French, Italian and Danish. Partly translated versions exist - for Norwegian Bokmal and Spanish.
  • -
- -

LDAP related changes

-
    -
  • Slight changes to some objects and acls to have more types to - choose from when adding systems in GOsa. Now systems can be of type - server, workstation, printer, terminal or netdevice.
  • -
- -

Other changes

-
    -
  • LTSP clients start as diskless workstation / thin client can be - configured via command line argument -- or individually adding an - entry in lts.conf or LDAP.
  • -
  • GOsa gui: Now some options that seemed to be available, but are non - functional, are greyed out (or are not clickable). Some tabs are - completely hidden to the end user, others even to the GOsa admin.
  • -
- -

Regressions

-
    -
  • No mass import of user account data in GOsa (ldif or csv) available - yet.
  • -
- -

No updated artwork

+

If you are forced to moderate lists on a mailman installation where +the SSL certificate is self signed or not properly signed by a +generally accepted signing authority, you can set a environment +variable when calling listadmin to disable SSL verification:

-
    -
  • Updated artwork which is visible during installation, in the login - screen and as desktop wallpaper is still missing or the same as we - had for our Squeeze based release.
  • -
- -

Where to get it

+

+PERL_LWP_SSL_VERIFY_HOSTNAME=0 listadmin
+

-To download the multiarch netinstall CD release you can use - - -

The MD5SUM of this image is: c5e773ddafdaa4f48c409c682f598b6c

- -

The SHA1SUM of this image is: 25934fabb9b7d20235499a0a51f08ce6c54215f2

- -

How to report bugs

- -

http://wiki.debian.org/DebianEdu/HowTo/ReportBugs

+

If you want to moderate a subset of the lists you take care of, you +can provide an argument to the listadmin script like I do in the +initial screen dump (the xiph argument). Using an argument, only +lists matching the argument string will be processed. This make it +quick to accept messages if you notice the moderation request in your +email.

+ +

Without the listadmin program, I would never be the moderator of 68 +mailing lists, as I simply do not have time to spend on that if the +process was any slower. The listadmin program have saved me hours of +time I could spend elsewhere over the years. It truly is nice free +software.

+ +

As usual, if you use Bitcoin and want to show your support of my +activities, please send Bitcoin donations to my address +15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b.

+ +

Update 2014-10-27: Added missing 'username' statement in +configuration example. Also, I've been told that the +PERL_LWP_SSL_VERIFY_HOSTNAME=0 setting do not work for everyone. Not +sure why.

- Tags: debian edu, english. + Tags: debian, english.
@@ -311,66 +342,114 @@ To download the multiarch netinstall CD release you can use
- -
22nd April 2013
-

Bitcoin er mye i mediene for -tiden. Jeg følger med via Mylder for å finne -artikler som omtaler -temaet, og takket være dette oppdaget jeg at stortingsrepresentant -Ketil Solvik-Olsen fra FrP nylig har spurt finansminister Sigbjørn -Johnsen om hans syn på Bitcoin, og -fått -svar for noen dager siden. Jeg bet meg spesielt merke til -følgende formulering fra finansministeren:

- -

-«Det er også utfordringer ved at handel med Bitcoins er uregulert og -at transaksjonene er anonyme.» -

- -

At Bitcoin er anonymt er en myte som spres av både journalister og -andre, så det er ikke veldig overraskende at også finansministeren har -gått på limpinnen. Det er dog litt rart, da jeg håper at -finansdepartementet ikke baserer seg på rykter og myter når de -besvarer Stortinget. Men du trenger ikke bare tro på meg som kilde -til påstanden om at Bitcoin ikke er anonymt. Sondre Rønjom har -via Sikkerhetsbloggen -hos Nasjonal Sikkerhetsmyndighet uttalt følgende:

- -

-«At [bitcoin] i utgangspunktet -ikke er anonymt, -kommer kanskje som en overraskelse på mange.» -

- -

Enhver bevegelse av Bitcoin er offentlig tilgjengelig for alle på -Internet, og en må legge svært mye innsats inn hvis en skal hindre at -nettverksanalyse av transaksjonsloggene kan brukes til å identifisere -brukerne. F.eks. kan en enkelt se hva jeg har mottatt til min -offentliggjorte mottaksadresse ved å besøke blockexplorer og slå opp -adressen -15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b. -Det virker dermed på meg ganske klart at å påstå at -Bitcoin-transaksjoner er anonyme strengt tatt er å føre Stortinget bak -lyset.

- -

Finansministeren er ikke den eneste som har latt seg forlede av -medieomtalen. I spørsmålet fra Hr. Solvik-Olsen skriver han at «For -noen dager siden kom den første bitcoin-minibanken på Kypros», hvilket -så vidt jeg har klart å finne ut ikke er riktig. Det er annonsert -planer om en slik minibank (fra -BitcoinATM), men jeg finner -intet tegn til at en slik minibank er utplassert noe sted.

- -

Som vanlig, hvis du bruker Bitcoin og ønsker å vise din støtte til -mine aktiviteter, så setter jeg pris på Bitcoin-donasjoner til min -adresse -15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b.

+ +
17th October 2014
+

When PXE installing laptops with Debian, I often run into the +problem that the WiFi card require some firmware to work properly. +And it has been a pain to fix this using preseeding in Debian. +Normally something more is needed. But thanks to +my isenkram +package and its recent tasksel extension, it has now become easy +to do this using simple preseeding.

+ +

The isenkram-cli package provide tasksel tasks which will install +firmware for the hardware found in the machine (actually, requested by +the kernel modules for the hardware). (It can also install user space +programs supporting the hardware detected, but that is not the focus +of this story.)

+ +

To get this working in the default installation, two preeseding +values are needed. First, the isenkram-cli package must be installed +into the target chroot (aka the hard drive) before tasksel is executed +in the pkgsel step of the debian-installer system. This is done by +preseeding the base-installer/includes debconf value to include the +isenkram-cli package. The package name is next passed to debootstrap +for installation. With the isenkram-cli package in place, tasksel +will automatically use the isenkram tasks to detect hardware specific +packages for the machine being installed and install them, because +isenkram-cli contain tasksel tasks.

+ +

Second, one need to enable the non-free APT repository, because +most firmware unfortunately is non-free. This is done by preseeding +the apt-mirror-setup step. This is unfortunate, but for a lot of +hardware it is the only option in Debian.

+ +

The end result is two lines needed in your preseeding file to get +firmware installed automatically by the installer:

+ +

+base-installer base-installer/includes string isenkram-cli
+apt-mirror-setup apt-setup/non-free boolean true
+

+ +

The current version of isenkram-cli in testing/jessie will install +both firmware and user space packages when using this method. It also +do not work well, so use version 0.15 or later. Installing both +firmware and user space packages might give you a bit more than you +want, so I decided to split the tasksel task in two, one for firmware +and one for user space programs. The firmware task is enabled by +default, while the one for user space programs is not. This split is +implemented in the package currently in unstable.

+ +

If you decide to give this a go, please let me know (via email) how +this recipe work for you. :)

+ +

So, I bet you are wondering, how can this work. First and +foremost, it work because tasksel is modular, and driven by whatever +files it find in /usr/lib/tasksel/ and /usr/share/tasksel/. So the +isenkram-cli package place two files for tasksel to find. First there +is the task description file (/usr/share/tasksel/descs/isenkram.desc):

+ +

+Task: isenkram-packages
+Section: hardware
+Description: Hardware specific packages (autodetected by isenkram)
+ Based on the detected hardware various hardware specific packages are
+ proposed.
+Test-new-install: show show
+Relevance: 8
+Packages: for-current-hardware
+
+Task: isenkram-firmware
+Section: hardware
+Description: Hardware specific firmware packages (autodetected by isenkram)
+ Based on the detected hardware various hardware specific firmware
+ packages are proposed.
+Test-new-install: mark show
+Relevance: 8
+Packages: for-current-hardware-firmware
+

+ +

The key parts are Test-new-install which indicate how the task +should be handled and the Packages line referencing to a script in +/usr/lib/tasksel/packages/. The scripts use other scripts to get a +list of packages to install. The for-current-hardware-firmware script +look like this to list relevant firmware for the machine: + +

+#!/bin/sh
+#
+PATH=/usr/sbin:$PATH
+export PATH
+isenkram-autoinstall-firmware -l
+

+ +

With those two pieces in place, the firmware is installed by +tasksel during the normal d-i run. :)

+ +

If you want to test what tasksel will install when isenkram-cli is +installed, run DEBIAN_PRIORITY=critical tasksel --test +--new-install to get the list of packages that tasksel would +install.

+ +

Debian Edu will be +pilots in testing this feature, as isenkram is used there now to +install firmware, replacing the earlier scripts.

@@ -378,27 +457,23 @@ adresse
- -
16th April 2013
-

This years first Skolelinux / -Debian Edu developer gathering take place the coming weekend in Trondheim. -Details about the gathering can be found -on -the FRiSK wiki. The dates are 19-21th of April 2013, and online -participation for those unable to make it in person is very welcome, -and I plan to participate online myself as I could not leave Oslo this -weekend.

- -

The focus of the gathering is to work on the web pages and project -infrastructure, and to continue the work on the Wheezy based Debian -Edu release.

- -

See you on IRC, #debian-edu on irc.debian.org, then?

+ +
4th October 2014
+

Today I came across an unexpected Ubuntu boot screen. Above the +bread shelf on the ICA shop at Storo in Oslo, the grub menu of Ubuntu +with Linux kernel 3.2.0-23 (ie probably version 12.04 LTS) was stuck +on a screen normally showing the bread types and prizes:

+ +

+ +

If it had booted as it was supposed to, I would never had known +about this hidden Linux installation. It is interesting what +errors can reveal.

- Tags: debian edu, english. + Tags: debian, english.
@@ -406,55 +481,49 @@ Edu release.

- -
9th April 2013
-

For cirka en måned siden -ba -jeg om begrunnelse på nektet innsyn i dokumenter om -standardkatalogen fra Fornyingsdepartementet. I dag fikk jeg svar fra -Fornyingsdepartementet, og tilgang til dokumentene. Jeg fikk både -innsyn i vedlegg sendt fra DIFI, og også innsyn i et notat brukt -internt i Fornyingsdepartementet:

+ +
4th October 2014
+

The lsdvd project +got a new set of developers a few weeks ago, after the original +developer decided to step down and pass the project to fresh blood. +This project is now maintained by Petter Reinholdtsen and Steve +Dibb.

+ +

I just wrapped up +a +new lsdvd release, available in git or from +the +download page. This is the changelog dated 2014-10-03 for version +0.17.

-

Det bør nevnes at da jeg ble nektet innsyn hos mottaker -Fornyingsdepartementet på høringsoppsummeringen som DIFI hadde sendt -ut, spurte jeg DIFI om innsyn i stedet. Det fikk jeg i løpet av et -par dager. Moralen er at hvis ikke mottaker ikke vil gi innsyn, spør -avsender i stedet. Kanskje de har forskjellig forståelse av hva som -bør holdes skjult for folket. Her er de tilsvarende dokumentene jeg -fikk innsyn i fra DIFI:

- - - -

Det jeg synes er mest interessant er endel av aktørene som -protesterte på fjerningen (Kartverket, Drammen kommune), og hvordan -høringsoppsummeringen ikke tar stilling til effekten av å fjerne ODF -fra katalogen.

+

This change bring together patches for lsdvd in use in various +Linux and Unix distributions, as well as patches submitted to the +project the last nine years. Please check it out. :)

- Tags: norsk, standard. + Tags: debian, english, lsdvd, multimedia.
@@ -462,73 +531,77 @@ fra katalogen.

- -
7th April 2013
-

For en stund tilbake gikk nyheten om -Sandy -Island, en øy som var dukket opp på noen kart, men som ikke var -synlig når en sjekket den på satellittbilder. Dagbladet meldte for -eksempel at -«denne -øya finnes på kart, men ikke i virkeligheten». Noe senere begynte -jeg å lese -historier -om Ruffen til mine barn. Dette er historier om sjøormen Ruffen -skapt av Tor Åge Bringsværd, som starter med følgende beskrivelse:

- -

-«Langt ute i havet ligger en mystisk øy. Den er bare synlig hver -tirsdag og fredag. Derfor står den ikke på noe kart. På denne øya -ligger et slott, og i slottet bor en gammel, fin sjøormfamilie.» -

- -

Det virker åpenbart at Hr. Bringsværd tok feil når han trodde den -ikke var på noe kart, og at noen tydeligvis har vært i nærheten en -tirsdag eller en fredag og fått den med på et kart, mens -satellittbildene er tatt på noen av de fem andre dagene i uka og -dermed ikke ser øya. :)

- -

I følge -en -senere artikkel i Dagbladet hevder Shaun Higgins, en forsker fra -New Zealand, at et hvalfangstskip fra 1876 er opprinnelsen til at -spøkelsesøya i det hele tatt havnet på kartet. Det fremgår ikke fra -historien hvilken ukedag de var innom.

- -

Jeg har stor sans for Tor Åge Bringsværd. Og han viste nylig en -svært fin side av seg selv da han sa ja til EFNs forespørsel om å gi -ut novellen Kodémus med -Creative Commons-lisens.

-
-
- - - Tags: norsk. - - -
-
-
- -
- -
3rd April 2013
-

Today the Isenkram -package finally made it into the archive, after lingering in NEW -for many months. I uploaded it to the Debian experimental suite -2013-01-27, and today it was accepted into the archive.

- -

Isenkram is a system for suggesting to users what packages to -install to work with a pluggable hardware device. The suggestion pop -up when the device is plugged in. For example if a Lego Mindstorm NXT -is inserted, it will suggest to install the program needed to program -the NXT controller. Give it a go, and report bugs and suggestions to -BTS. :)

+ +
26th September 2014
+

The Debian Edu / Skolelinux +project provide a Linux solution for schools, including a +powerful desktop with education software, a central server providing +web pages, user database, user home directories, central login and PXE +boot of both clients without disk and the installation to install Debian +Edu on machines with disk (and a few other services perhaps to small +to mention here). We in the Debian Edu team are currently working on +the Jessie based version, trying to get everything in shape before the +freeze, to avoid having to maintain our own package repository in the +future. The +current +status can be seen on the Debian wiki, and there is still heaps of +work left. Some fatal problems block testing, breaking the installer, +but it is possible to work around these to get anyway. Here is a +recipe on how to get the installation limping along.

+ +

First, download the test ISO via +ftp, +http +or rsync (use +ftp.skolelinux.org::cd-edu-testing-nolocal-netinst/debian-edu-amd64-i386-NETINST-1.iso). +The ISO build was broken on Tuesday, so we do not get a new ISO every +12 hours or so, but thankfully the ISO we already got we are able to +install with some tweaking.

+ +

When you get to the Debian Edu profile question, go to tty2 +(use Alt-Ctrl-F2), run

+ +

+nano /usr/bin/edu-eatmydata-install
+

+ +

and add 'exit 0' as the second line, disabling the eatmydata +optimization. Return to the installation, select the profile you want +and continue. Without this change, exim4-config will fail to install +due to a known bug in eatmydata.

+ +

When you get the grub question at the end, answer /dev/sda (or if +this do not work, figure out what your correct value would be. All my +test machines need /dev/sda, so I have no advice if it do not fit +your need.

+ +

If you installed a profile including a graphical desktop, log in as +root after the initial boot from hard drive, and install the +education-desktop-XXX metapackage. XXX can be kde, gnome, lxde, xfce +or mate. If you want several desktop options, install more than one +metapackage. Once this is done, reboot and you should have a working +graphical login screen. This workaround should no longer be needed +once the education-tasks package version 1.801 enter testing in two +days.

+ +

I believe the ISO build will start working on two days when the new +tasksel package enter testing and Steve McIntyre get a chance to +update the debian-cd git repository. The eatmydata, grub and desktop +issues are already fixed in unstable and testing, and should show up +on the ISO as soon as the ISO build start working again. Well the +eatmydata optimization is really just disabled. The proper fix +require an upload by the eatmydata maintainer applying the patch +provided in bug #702711. +The rest have proper fixes in unstable.

+ +

I hope this get you going with the installation testing, as we are +quickly running out of time trying to get our Jessie based +installation ready before the distribution freeze in a month.

@@ -536,106 +609,37 @@ BTS. :)

- -
27th March 2013
-

For noen dager siden nevnte jeg at vi jobbet med å typesette en -novelle med DocBook. I dag ble -utgivelsen annonsert med følgende pressemelding fra Elektronisk -Forpost Norge), som jeg gjengir i sin helhet:

- -

- -

EFN nyutgir Kodémus:

- -

Tor Åge Bringsværd-novelle om IT og overvåkning fra -informasjonsteknologiens spedbarndom får nytt liv

- -

Elektronisk Forpost Norge (EFN) er veldig glad for anledningen til -å nyutgi Tor Åge Bringsværds novelle Kodémus i digitalt format for nye -(og gamle) generasjoner. Novellen ble skrevet så tidlig som vinteren -1968, og første gang trykt i novellesamlingen Probok på Gyldendal -samme år.

- -

Informasjonsteknologi spiller en sentral rolle i Kodémus, og det er -spennende å sammenligne beskrivelsen av IT fra 1968 med dagens IT i -2013. Forskjellene er mange -- men det er jammen likhetene også. Ikke -minst det at idag går jo nesten alle rundt med lillebrødre på seg!

- -

"Riktignok er det ikke påbudt å ha mobil," sier Thomas Gramstad, -leder i EFN. "Men vi holder på å lage et samfunn der det blir så -upraktisk eller tungvint å ikke ha det, at man i praksis ikke slipper -unna. Og disse lillebrødrene sladrer hele tiden til staten (og til -mange andre) om hvor vi er, hva vi gjør, hva vi bryr oss om, hva vi -liker..."

- -

Det at Kodémus åpenbart er skrevet i en annen tid med en annen type -IT og likevel virker så relevant idag, er i seg selv et hardtslående -tankekors.

- -

Tross sitt IT-tema fantes ikke Kodémus i elektronisk form, og -frivillige i EFN har skannet inn, OCR-tolket og korrekturlest -novellen, og deretter kodet den i en rekke digitale formater.

- -

Forfatteren har gitt tillatelse til publisering av Kodémus under ny -lisens, og novellen utgis av EFN med en Creative Commons (CC) -fribrukslisens (nærmere bestemt lisensen CC-BY-NC-ND). For leserne -eller brukerne innebærer dette at de får en klar og standardisert -beskjed om hvilke rettigheter de har til å dele novellen videre med -andre. For forfatteren innebærer dette økt synlighet og -tilgjengelighet for verket, slik at det ikke blir glemt, da -søkemotorer og nettlesere inneholder egne søkevalg for CC-lisenser, og -mange brukere søker etter verk som de vet de kan dele og bruke på -lovlig vis.

- -

EFN oppfordrer andre forfattere om å gi ut sine gamle tekster med -en fribrukslisens, slik at tekstene ikke blir glemt og for å stimulere -lovlig deling på nettet. EFN kan være behjelpelig med digitalisering -og utlegging på nett, i den grad det finnes kapasitet blant EFNs -medlemmer til dette. Vi mener at nyutgivelser av tekster under frie -lisenser kan øke interessen rundt forfatterskapet, og vil gjerne bidra -til dette.

- -

EFN utgir og deler med dette en novelle fra den digitale -informasjonsteknologiens tidligste barndom. En novelle som fortsatt er -full av vitalitet og aktualitet, og som derfor kan bidra til, og gi -ettertanke i dagens debatter om IT, personvern, overvåkning og -individets frihet og integritet.

- -

Du finner novellen her: -
http://efn.no/kodemus/

- -

i flere forskjellige formater, for ulike plattformer. Per idag -finnes novellen i disse formatene: EPUB, MOBI, XML, HTML, PDF og -txt. Det kan bli flere formater senere, og evt. frivillige -bidragsytere til dette er velkommen.

- -

Kontaktperson for denne pressemeldingen,

- -

Thomas Gramstad -
thomas@efn.no -
4817 6875

- -
- -

EFN arbeider for dine borgerrettigheter i IT-samfunnet, for -nettverks- og delingskultur, personvern og frihet fra overvåkning, -åpne standarder, brukerstyrt programvare, retten til å kopiere, og -styrking av det digitale sivilsamfunnet m.m. -
www.efn.no

- -

- -

Jeg håper flere forfattere ser verdien av å gjøre kulturen -tilgjengelig for flere, og slår følge med Hr. Bringsværd i å gi ut -sine verker med bruksvilkår med færre bruksbegrensinger enn -opphavsretten legger opp til. Selv om jeg gjerne skulle sett at han -hadde brukt en Creative Commons-lisens som tillot avledede verker og -kommersiell bruk.

+ +
25th September 2014
+

I use the lsdvd tool +to handle my fairly large DVD collection. It is a nice command line +tool to get details about a DVD, like title, tracks, track length, +etc, in XML, Perl or human readable format. But lsdvd have not seen +any new development since 2006 and had a few irritating bugs affecting +its use with some DVDs. Upstream seemed to be dead, and in January I +sent a small probe asking for a version control repository for the +project, without any reply. But I use it regularly and would like to +get an updated version +into Debian. So two weeks ago I tried harder to get in touch with +the project admin, and after getting a reply from him explaining that +he was no longer interested in the project, I asked if I could take +over. And yesterday, I became project admin.

+ +

I've been in touch with a Gentoo developer and the Debian +maintainer interested in joining forces to maintain the upstream +project, and I hope we can get a new release out fairly quickly, +collecting the patches spread around on the internet into on place. +I've added the relevant Debian patches to the freshly created git +repository, and expect the Gentoo patches to make it too. If you got +a DVD collection and care about command line tools, check out +the git source and join +the project mailing +list. :)

@@ -643,54 +647,263 @@ kommersiell bruk.

- -
26th March 2013
-

Would you like to help the environment and save money at the same -time, without much sacrifice? A small step could be to change the -font you use when printing.

- -

Three years ago, -Ars -Technica reported how the University of Wisconsin-Green Bay -changed their default front from -Arial to -Century -Gothic to save money. The Century Gothic font uses 30% less toner -than Arial to print the same text. In other word, you could cut your -toner costs by 30% (or actually, increase your toner supply life time -by more than 30%), by simply changing the default font used in your -prints.

- -

But it is not quite obvious how much one will save by switching. -The University of Wisconsin-Green Bay said it used $100,000 per year -on ink and toner cartridges, according to -a report from -TwinCities.com, and expected to save between $5,000 and $10,000 -per year by asking staff and students to use a different font. Not -all PDFs and documents are created internally, and those from external -sources will most likely still use a different font. Also, the -Century Gothic font is slightly wider than Arial, and thus might use -more sheets of paper to print the same text, so the total saving -depend on the documents printed.

- -

But it is definitely something to consider, if you want to reduce -the amount of trash, decrease the amount of toner used in the world, -and save some money in the process.

- -

Update 2013-04-10: If you want to know how much ink/toner could be -saved when switching between fonts, Inkfarm got a -service to calculate the -difference between font pairs. They also -recommend -which fonts to use to save ink. Check it out. :) While updating -this blog post, I also came across a blog post from InkCloners, -listing -the fonts they recommend, with Centory Gothic at the top.

+ +
21st September 2014
+

Rundt omkring i Oslo og Østlandsområdet henger det bokser over +veiene som jeg har lurt på hva gjør. De har ut fra plassering og +vinkling sett ut som bokser som sniffer ut et eller annet fra +forbipasserende trafikk, men det har vært uklart for meg hva det er de +leser av. Her om dagen tok jeg bilde av en slik boks som henger under +ei +skibru på Sollihøgda:

+ +

+ +

Boksen er tydelig merket «Kapsch >>>», logoen til +det sveitsiske selskapet Kapsch som +blant annet lager sensorsystemer for veitrafikk. Men de lager mye +forskjellig, og jeg kjente ikke igjen boksen på utseendet etter en +kjapp titt på produktlista til selskapet.

+ +

I og med at boksen henger over veien E16, en riksvei vedlikeholdt +av Statens Vegvesen, så antok jeg at det burde være mulig å bruke +REST-API-et som gir tilgang til vegvesenets database over veier, +skilter og annet veirelatert til å finne ut hva i alle dager dette +kunne være. De har både +en +datakatalog og +et +søk, der en kan søke etter ulike typer oppføringer innen for et +gitt geografisk område. Jeg laget et enkelt shell-script for å hente +ut antall av en gitt type innenfor området skibrua dekker, og listet +opp navnet på typene som ble funnet. Orket ikke slå opp hvordan +URL-koding av aktuelle strenger kunne gjøres mer generisk, og brukte +en stygg sed-linje i stedet.

+ +
+#!/bin/sh
+urlmap() {
+    sed \
+    -e 's/  / /g'   -e 's/{/%7B/g'  \
+    -e 's/}/%7D/g'  -e 's/\[/%5B/g' \
+    -e 's/\]/%5D/g' -e 's/ /%20/g'  \
+    -e 's/,/%2C/g'  -e 's/\"/%22/g' \
+    -e 's/:/%3A/g'
+}
+
+lookup() {
+    url="$1"
+    curl -s -H 'Accept: application/vnd.vegvesen.nvdb-v1+xml' \
+       "https://www.vegvesen.no/nvdb/api$url" | xmllint --format -
+}
+
+for id in $(seq 1 874) ; do
+    search="{
+  lokasjon: {
+    bbox: \"10.34425,59.96386,10.34458,59.96409\",
+    srid: \"WGS84\"
+  },
+   objektTyper: [{
+     id: $id, antall: 10
+   }]
+}"
+
+    query=/sok?kriterie=$(echo $search | urlmap)
+    if lookup "$query" |
+    grep -q '<totaltAntallReturnert>0<'
+    then
+    :
+    else
+    echo $id
+    lookup "/datakatalog/objekttyper/$id" |grep '^  <navn>'
+    fi
+done
+
+exit 0
+
+ +Aktuelt ID-område 1-874 var riktig i datakatalogen da jeg laget +scriptet. Det vil endre seg over tid. Skriptet listet så opp +aktuelle typer i og rundt skibrua: + +
+5
+  <navn>Rekkverk</navn>
+14
+  <navn>Rekkverksende</navn>
+47
+  <navn>Trafikklomme</navn>
+49
+  <navn>Trafikkøy</navn>
+60
+  <navn>Bru</navn>
+79
+  <navn>Stikkrenne/Kulvert</navn>
+80
+  <navn>Grøft, åpen</navn>
+86
+  <navn>Belysningsstrekning</navn>
+95
+  <navn>Skiltpunkt</navn>
+96
+  <navn>Skiltplate</navn>
+98
+  <navn>Referansestolpe</navn>
+99
+  <navn>Vegoppmerking, langsgående</navn>
+105
+  <navn>Fartsgrense</navn>
+106
+  <navn>Vinterdriftsstrategi</navn>
+172
+  <navn>Trafikkdeler</navn>
+241
+  <navn>Vegdekke</navn>
+293
+  <navn>Breddemåling</navn>
+301
+  <navn>Kantklippareal</navn>
+318
+  <navn>Snø-/isrydding</navn>
+445
+  <navn>Skred</navn>
+446
+  <navn>Dokumentasjon</navn>
+452
+  <navn>Undergang</navn>
+528
+  <navn>Tverrprofil</navn>
+532
+  <navn>Vegreferanse</navn>
+534
+  <navn>Region</navn>
+535
+  <navn>Fylke</navn>
+536
+  <navn>Kommune</navn>
+538
+  <navn>Gate</navn>
+539
+  <navn>Transportlenke</navn>
+540
+  <navn>Trafikkmengde</navn>
+570
+  <navn>Trafikkulykke</navn>
+571
+  <navn>Ulykkesinvolvert enhet</navn>
+572
+  <navn>Ulykkesinvolvert person</navn>
+579
+  <navn>Politidistrikt</navn>
+583
+  <navn>Vegbredde</navn>
+591
+  <navn>Høydebegrensning</navn>
+592
+  <navn>Nedbøyningsmåling</navn>
+597
+  <navn>Støy-luft, Strekningsdata</navn>
+601
+  <navn>Oppgravingsdata</navn>
+602
+  <navn>Oppgravingslag</navn>
+603
+  <navn>PMS-parsell</navn>
+604
+  <navn>Vegnormalstrekning</navn>
+605
+  <navn>Værrelatert strekning</navn>
+616
+  <navn>Feltstrekning</navn>
+617
+  <navn>Adressepunkt</navn>
+626
+  <navn>Friksjonsmåleserie</navn>
+629
+  <navn>Vegdekke, flatelapping</navn>
+639
+  <navn>Kurvatur, horisontalelement</navn>
+640
+  <navn>Kurvatur, vertikalelement</navn>
+642
+  <navn>Kurvatur, vertikalpunkt</navn>
+643
+  <navn>Statistikk, trafikkmengde</navn>
+647
+  <navn>Statistikk, vegbredde</navn>
+774
+  <navn>Nedbøyningsmåleserie</navn>
+775
+  <navn>ATK, influensstrekning</navn>
+794
+  <navn>Systemobjekt</navn>
+810
+  <navn>Vinterdriftsklasse</navn>
+821
+  <navn>Funksjonell vegklasse</navn>
+825
+  <navn>Kurvatur, stigning</navn>
+838
+  <navn>Vegbredde, beregnet</navn>
+862
+  <navn>Reisetidsregistreringspunkt</navn>
+871
+  <navn>Bruksklasse</navn>
+
+ +

Av disse ser ID 775 og 862 mest relevant ut. ID 775 antar jeg +refererer til fotoboksen som står like ved brua, mens +«Reisetidsregistreringspunkt» kanskje kan være boksen som henger der. +Hvordan finner jeg så ut hva dette kan være for noe. En titt på +datakatalogsiden +for ID 862/Reisetidsregistreringspunkt viser at det er finnes 53 +slike målere i Norge, og hvor de er plassert, men gir ellers få +detaljer. Det er plassert 40 på østlandet og 13 i Trondheimsregionen. +Men siden nevner «AutoPASS», og hvis en slår opp oppføringen på +Sollihøgda nevner den «Ciber AS» som ID for eksternt system. (Kan det +være snakk om +Ciber +Norge AS, et selskap eid av Ciber Europe Bv?) Et nettsøk på + «Ciber AS autopass» fører meg til en artikkel fra NRK Trøndelag i + 2013 med tittel +«Sjekk +dette hvis du vil unngå kø». Artikkelen henviser til vegvesenets +nettside +reisetider.no +som har en +kartside +for Østlandet som viser at det måles mellom Sandvika og Sollihøgda. +Det kan dermed se ut til at jeg har funnet ut hva boksene gjør.

+ +

Hvis det stemmer, så er dette bokser som leser av AutoPASS-ID-en +til alle passerende biler med AutoPASS-brikke, og dermed gjør det mulig +for de som kontrollerer boksene å holde rede på hvor en gitt bil er +når den passerte et slikt målepunkt. NRK-artikkelen forteller at +denne informasjonen i dag kun brukes til å koble to +AutoPASS-brikkepasseringer passeringer sammen for å beregne +reisetiden, og at bruken er godkjent av Datatilsynet. Det er desverre +ikke mulig for en sjåfør som passerer under en slik boks å kontrollere +at AutoPASS-ID-en kun brukes til dette i dag og i fremtiden.

+ +

I tillegg til denne type AutoPASS-sniffere vet jeg at det også +finnes mange automatiske stasjoner som tar betalt pr. passering (aka +bomstasjoner), og der lagres informasjon om tid, sted og bilnummer i +10 år. Finnes det andre slike sniffere plassert ut på veiene?

+ +

Personlig har jeg valgt å ikke bruke AutoPASS-brikke, for å gjøre +det vanskeligere og mer kostbart for de som vil invadere privatsfæren +og holde rede på hvor bilen min beveger seg til enhver tid. Jeg håper +flere vil gjøre det samme, selv om det gir litt høyere private +utgifter (dyrere bompassering). Vern om privatsfæren koster i disse +dager.

+ +

Takk til Jan Kristian Jensen i Statens Vegvesen for tips om +dokumentasjon på vegvesenets REST-API.

- Tags: english. + Tags: kart, norsk, personvern, rfid, surveillance.
@@ -698,129 +911,221 @@ the fonts they recommend, with Centory Gothic at the top.

- -
24th March 2013
-

A few days ago, during a discussion in -EFN about interesting books to read -about copyright and the data retention directive, a suggestion to read -the 1968 short story Kodémus by -Tore Åge Bringsværd -came up. The text was only available in old paper books, and thus not -easily available for current and future generations. Some of the -people participating in the discussion contacted the author, and -reported back 2013-03-19 that the author was OK with releasing the -short story using a Creative -Commons license. The text was quickly scanned and OCR-ed, and we -were ready to start on the editing and typesetting.

- -

As I already had some experience formatting text in my project to -provide a Norwegian version of the Free Culture book by Lawrence -Lessig, I chipped in and set up a -DocBook processing framework to -generate PDF, HTML and EPUB version of the short story. The tools to -transform DocBook to different formats are already in my Linux -distribution of choice, Debian, so -all I had to do was to use the -dblatex, -dbtoepub -and xmlto tools to do the -conversion. After a few days, we decided to replace dblatex with -xsltproc/fop (aka -docbook-xsl), -to get the copyright information to show up in the PDF and to get a -nicer <variablelist> typesetting, but that is just a minor -technical detail.

- -

There were a few challenges, of course. We want to typeset the -short story to look like the original, and that require fairly good -control over the layout. The original short story have three -parts/scenes separated by a single horizontally centred star (*), and -the paragraphs do not contain only flowing text, but dialogs and text -that started on a new line in the middle of the paragraph.

- -

I initially solved the first challenge by using a paragraph with a -single star in it, ie <para>*</para>, but it made sure a -placeholder indicated where the scene shifted. This did not look too -good without the centring. The next approach was to create a new -preprocessor directive <?newscene?>, mapping to "<hr/>" -for HTML and "<fo:block text-align="center"><fo:leader -leader-pattern="rule" rule-thickness="0.5pt"/></fo:block>" -for FO/PDF output (did not try to implement this in dblatex, as we had -switched at this time). The HTML XSL file looked like this:

- -

-<?xml version='1.0'?> 
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
-  <xsl:template match="processing-instruction('newscene')">
-    <hr/>
-  </xsl:template>
-</xsl:stylesheet> 
-

- -

And the FO/PDF XSL file looked like this:

- -

-<?xml version='1.0'?> 
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
-  <xsl:template match="processing-instruction('newscene')">
-    <fo:block text-align="center">
-      <fo:leader leader-pattern="rule" rule-thickness="0.5pt"/>
-    </fo:block>
-  </xsl:template>
-</xsl:stylesheet> 
-

- -

Finally, I came across the <bridgehead> tag, which seem to be -a good fit for the task at hand, and I replaced <?newscene?> -with <bridgehead>*</bridgehead>. It isn't centred, but we -can fix it with some XSL rule if the current visual layout isn't -enough.

- -

I did not find a good DocBook compliant way to solve the -linebreak/paragraph challenge, so I ended up creating a new processor -directive <?linebreak?>, mapping to <br/> in HTML, and -<fo:block/> in FO/PDF. I suspect there are better ways to do -this, and welcome ideas and patches on github. The HTML XSL file now -look like this:

+ +
16th September 2014
+

The Debian installer could be +a lot quicker. When we install more than 2000 packages in +Skolelinux / Debian Edu using +tasksel in the installer, unpacking the binary packages take forever. +A part of the slow I/O issue was discussed in +bug #613428 about too +much file system sync-ing done by dpkg, which is the package +responsible for unpacking the binary packages. Other parts (like code +executed by postinst scripts) might also sync to disk during +installation. All this sync-ing to disk do not really make sense to +me. If the machine crash half-way through, I start over, I do not try +to salvage the half installed system. So the failure sync-ing is +supposed to protect against, hardware or system crash, is not really +relevant while the installer is running.

+ +

A few days ago, I thought of a way to get rid of all the file +system sync()-ing in a fairly non-intrusive way, without the need to +change the code in several packages. The idea is not new, but I have +not heard anyone propose the approach using dpkg-divert before. It +depend on the small and clever package +eatmydata, which +uses LD_PRELOAD to replace the system functions for syncing data to +disk with functions doing nothing, thus allowing programs to live +dangerous while speeding up disk I/O significantly. Instead of +modifying the implementation of dpkg, apt and tasksel (which are the +packages responsible for selecting, fetching and installing packages), +it occurred to me that we could just divert the programs away, replace +them with a simple shell wrapper calling +"eatmydata $program $@", to get the same effect. +Two days ago I decided to test the idea, and wrapped up a simple +implementation for the Debian Edu udeb.

+ +

The effect was stunning. In my first test it reduced the running +time of the pkgsel step (installing tasks) from 64 to less than 44 +minutes (20 minutes shaved off the installation) on an old Dell +Latitude D505 machine. I am not quite sure what the optimised time +would have been, as I messed up the testing a bit, causing the debconf +priority to get low enough for two questions to pop up during +installation. As soon as I saw the questions I moved the installation +along, but do not know how long the question were holding up the +installation. I did some more measurements using Debian Edu Jessie, +and got these results. The time measured is the time stamp in +/var/log/syslog between the "pkgsel: starting tasksel" and the +"pkgsel: finishing up" lines, if you want to do the same measurement +yourself. In Debian Edu, the tasksel dialog do not show up, and the +timing thus do not depend on how quickly the user handle the tasksel +dialog.

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Machine/setupOriginal taskselOptimised taskselReduction
Latitude D505 Main+LTSP LXDE64 min (07:46-08:50)<44 min (11:27-12:11)>20 min 18%
Latitude D505 Roaming LXDE57 min (08:48-09:45)34 min (07:43-08:17)23 min 40%
Latitude D505 Minimal22 min (10:37-10:59)11 min (11:16-11:27)11 min 50%
Thinkpad X200 Minimal6 min (08:19-08:25)4 min (08:04-08:08)2 min 33%
Thinkpad X200 Roaming KDE19 min (09:21-09:40)15 min (10:25-10:40)4 min 21%

+ +

The test is done using a netinst ISO on a USB stick, so some of the +time is spent downloading packages. The connection to the Internet +was 100Mbit/s during testing, so downloading should not be a +significant factor in the measurement. Download typically took a few +seconds to a few minutes, depending on the amount of packages being +installed.

+ +

The speedup is implemented by using two hooks in +Debian +Installer, the pre-pkgsel.d hook to set up the diverts, and the +finish-install.d hook to remove the divert at the end of the +installation. I picked the pre-pkgsel.d hook instead of the +post-base-installer.d hook because I test using an ISO without the +eatmydata package included, and the post-base-installer.d hook in +Debian Edu can only operate on packages included in the ISO. The +negative effect of this is that I am unable to activate this +optimization for the kernel installation step in d-i. If the code is +moved to the post-base-installer.d hook, the speedup would be larger +for the entire installation.

+ +

I've implemented this in the +debian-edu-install +git repository, and plan to provide the optimization as part of the +Debian Edu installation. If you want to test this yourself, you can +create two files in the installer (or in an udeb). One shell script +need do go into /usr/lib/pre-pkgsel.d/, with content like this:

-<?xml version='1.0'?> 
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
-  <xsl:template match="processing-instruction('linebreak)">
-    <br/>
-  </xsl:template>
-</xsl:stylesheet> 
+#!/bin/sh
+set -e
+. /usr/share/debconf/confmodule
+info() {
+    logger -t my-pkgsel "info: $*"
+}
+error() {
+    logger -t my-pkgsel "error: $*"
+}
+override_install() {
+    apt-install eatmydata || true
+    if [ -x /target/usr/bin/eatmydata ] ; then
+        for bin in dpkg apt-get aptitude tasksel ; do
+            file=/usr/bin/$bin
+            # Test that the file exist and have not been diverted already.
+            if [ -f /target$file ] ; then
+                info "diverting $file using eatmydata"
+                printf "#!/bin/sh\neatmydata $bin.distrib \"\$@\"\n" \
+                    > /target$file.edu
+                chmod 755 /target$file.edu
+                in-target dpkg-divert --package debian-edu-config \
+                    --rename --quiet --add $file
+                ln -sf ./$bin.edu /target$file
+            else
+                error "unable to divert $file, as it is missing."
+            fi
+        done
+    else
+        error "unable to find /usr/bin/eatmydata after installing the eatmydata pacage"
+    fi
+}
+
+override_install
 

-

And the FO/PDF XSL file looked like this:

+

To clean up, another shell script should go into +/usr/lib/finish-install.d/ with code like this:

-<?xml version='1.0'?> 
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'
-  xmlns:fo="http://www.w3.org/1999/XSL/Format">
-  <xsl:template match="processing-instruction('linebreak)">
-    <fo:block/>
-  </xsl:template>
-</xsl:stylesheet> 
+#! /bin/sh -e
+. /usr/share/debconf/confmodule
+error() {
+    logger -t my-finish-install "error: $@"
+}
+remove_install_override() {
+    for bin in dpkg apt-get aptitude tasksel ; do
+        file=/usr/bin/$bin
+        if [ -x /target$file.edu ] ; then
+            rm /target$file
+            in-target dpkg-divert --package debian-edu-config \
+                --rename --quiet --remove $file
+            rm /target$file.edu
+        else
+            error "Missing divert for $file."
+        fi
+    done
+    sync # Flush file buffers before continuing
+}
+
+remove_install_override
 

-

One unsolved challenge is our wish to expose different ISBN numbers -per publication format, while keeping all of them in some conditional -structure in the DocBook source. No idea how to do this, so we ended -up listing all the ISBN numbers next to their format in the colophon -page.

- -

If you want to check out the finished result, check out the -source repository at -github -(future/new/official -repository). We expect it to be ready and announced in a few -days.

+

In Debian Edu, I placed both code fragments in a separate script +edu-eatmydata-install and call it from the pre-pkgsel.d and +finish-install.d scripts.

+ +

By now you might ask if this change should get into the normal +Debian installer too? I suspect it should, but am not sure the +current debian-installer coordinators find it useful enough. It also +depend on the side effects of the change. I'm not aware of any, but I +guess we will see if the change is safe after some more testing. +Perhaps there is some package in Debian depending on sync() and +fsync() having effect? Perhaps it should go into its own udeb, to +allow those of us wanting to enable it to do so without affecting +everyone.

+ +

Update 2014-09-24: Since a few days ago, enabling this optimization +will break installation of all programs using gnutls because of +bug #702711. An updated +eatmydata package in Debian will solve it.

+ +

Update 2014-10-17: The bug mentioned above is fixed in testing and +the optimization work again. And I have discovered that the +dpkg-divert trick is not really needed and implemented a slightly +simpler approach as part of the debian-edu-install package. See +tools/edu-eatmydata-install in the source package.

@@ -835,6 +1140,31 @@ days.

Archive