X-Git-Url: https://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/d33781f219fbff1065e625ca9278ad3e7e3e8fbe..72dd5eb1f173d81384db68228e1b646d2f64c2de:/blog/index.html?ds=sidebyside diff --git a/blog/index.html b/blog/index.html index c5489f04bf..865cf46a1c 100644 --- a/blog/index.html +++ b/blog/index.html @@ -20,101 +20,186 @@
-
Second alpha release of Debian Edu / Skolelinux based on Debian Wheezy
-
14th May 2013
-

The Debian Edu / Skolelinux -project is making great progress and made its second Wheezy based -release today. This is the release announcement:

- -

New features for Debian Edu 7.0.0 alpha1 released -2013-05-14

- -

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

- -

About Debian Edu and Skolelinux

- -

Debian Edu, also known as Skolelinux, is a Linux distribution based +

+
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. Immediatly after installation a school
+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, DVD or USB stick all
-other machines can be installed via the network.

+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]. -

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.

+ [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. -

Software updates

-
    -
  • Install freemind (0.9.0) by default, and stop installing vym by - default.
  • -
  • Install chromium (26.0.1410.43) by default.
  • -
  • Install goplay (0.5-1.1) to make golearn available by default.
  • -
  • Updated support for Japanese input methods, now based on - ibus-anthy.
  • -
+See the status page[8] for the complete list. -

Other changes

-
    + [8] <URL: https://wiki.debian.org/DebianEdu/Status/Jessie > -
  • Switched default file system from ext3 to ext4 for speed and - reliability improvements.
  • -
  • Got rid of unwanted winbind daemon and PAM setup activated because - of 706434.
  • -
  • Extended and improved the testsuite tests to detect more possible - problems.
  • -
  • Corrected proxy handling to not set http_proxy to a bogus - direct:// URL.
  • -
  • Corrected proxy setup for diskless workstations.
  • -
  • Corrected PXE setup to use our updated udebs during installation.
  • -
  • Made installation handling of low entropy level more robust.
  • -
  • Create larger partitions for Roaming workstations and Thin client - servers, to make room for all the software installed.
  • -
  • Fix bug in Roaming workstation PAM setup, making it impossible to - log in (706753).
  • -
+How to report bugs +------------------ + +<URL: http://wiki.debian.org/DebianEdu/HowTo/ReportBugs > -

Known issues

-
    - -
  • IP resolution for the local hostname give useless IPv6 address - (705900). Only install - libnss-myhostname on roaming workstations until it is fixed.
  • -
  • DVD images are not yet ready.
  • -
  • No mass import of user account data in GOsa (ldif or csv) - available yet (698840).
  • -
  • Missing artwork for the KDE desktop (and probably a few others).
  • -
  • KDE Debian submenu lacks icons.
  • -
  • LXDE menu lacks entry for changing GOsa password - (website). Installing gosa-desktop will be an option.
  • -
  • Backup configuration via web interface is impossible due to - password submission problem - (700257).
  • - -
- -

Where to get it

- -

To download the multiarch netinstall CD release you can use

- +About Debian +============ -

The MD5SUM of this image is: 685ed76c1aa8e44b12d3fde21faf450b

+The Debian Project was founded in 1993 by Ian Murdock to be a truly +free community project. Since then the project has grown to be one of +the largest and most influential open source projects. Thousands of +volunteers from all over the world work together to create and +maintain Debian software. Available in 70 languages, and supporting a +huge range of computer types, Debian calls itself the universal +operating system. -

The SHA1SUM of this image is: 6c874de157024da13e115bab29c068080a11ec4c

+Contact Information +For further information, please visit the Debian web pages[9] or send +mail to press@debian.org. -

How to report bugs

- -

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

+ [9] <URL: http://www.debian.org/ > +
@@ -127,47 +212,32 @@ version compared to the Squeeze release.

- -
11th May 2013
-

In January, -I -announced a new IRC -channel #debian-lego, for those of us in the Debian and Linux -community interested in LEGO, the -marvellous construction system from Denmark. We also created -a wiki page to have -a place to take notes and write down our plans and hopes. And several -people showed up to help. I was very happy to see the effect of my -call. Since the small start, we have a debtags tag -hardware::hobby:lego -tag for LEGO related packages, and now count 10 packages related to -LEGO and Mindstorms:

- -

- - - - - - - - - - -
brickosalternative OS for LEGO Mindstorms RCX. Supports development in C/C++
leocadvirtual brick CAD software
libnxtutility library for talking to the LEGO Mindstorms NX
lnpddaemon for LNP communication with BrickOS
nbccompiler for LEGO Mindstorms NXT bricks
nqcNot Quite C compiler for LEGO Mindstorms RCX
python-nxtpython driver/interface/wrapper for the Lego Mindstorms NXT robot
python-nxt-filersimple GUI to manage files on a LEGO Mindstorms NXT
scratcheasy to use programming environment for ages 8 and up
t2nsimple command-line tool for Lego NXT

- -

Some of these are available in Wheezy, and all but one are -currently available in Jessie/testing. leocad is so far only -available in experimental.

- -

If you care about LEGO in Debian, please join us on IRC and help -adding the rest of the great free software tools available on Linux -for LEGO designers.

+ +
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: debian, english, robot. + Tags: english, nuug, video.
@@ -175,33 +245,96 @@ for LEGO designers.

- -
10th May 2013
-

I fjor sommer ble jeg -gledelig -overrasket over et oppslag i avisen Fremover om Narvik kommunes -bruk av Skolelinux. Oppslaget -var basert på et notat som besvarte spørsmål fra ordfører Tor Nysæter -og rådgiver for skolesektoren, Petter Falkbu, om bruken av Skolelinux -i Narvikskolene og konstnaden ved å gå over til Windows. For litt -over en uke siden siden fikk jeg endelig bedt kommunen om å få innsyn -i dette notatet, og det ble oversendt på epost tirsdag. Jeg fikk -lagt -ut notatet samme dag, og fikk i dag sjekket postlista til Narvik, -der jeg fant notatet som -sak -2013/1023.

- -

Notatet forteller at Narvik ville måtte betalt minst 9 millioner -for å gå over til Windows på skolene. I tillegg dokumenterer notatet -at læreplanens krav oppfylles uten problemer ved bruk av Skolelinux. -Jeg anbefaler alle å lese de 10 sidene med gode argumenter for å kutte -unødige utgifter på IT i skoleverket. :)

+ +
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:

+ +

+% 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
+%
+

+ +

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.

+ +

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

+ +

+username username@example.org
+spamlevel 23
+default discard
+discard_if_reason "Posting restricted to members only. Remove us from your mail list."
+
+password secret
+adminurl https://{domain}/mailman/admindb/{list}
+mailman-list@lists.example.com
+
+password hidden
+other-list@otherserver.example.org
+

+ +

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

+ +

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:

+ +

+PERL_LWP_SSL_VERIFY_HOSTNAME=0 listadmin
+

+ +

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, norsk. + Tags: debian, english.
@@ -209,36 +342,114 @@ unødige utgifter på IT i skoleverket. :)

- -
5th May 2013
-

When I woke up this morning, I was very happy to see that the -release announcement -for Debian Wheezy was waiting in my mail box. This is a great -Debian release, and I expect to move my machines at home over to it fairly -soon.

- -

The new debian release contain heaps of new stuff, and one program -in particular make me very happy to see included. The -Scratch program, made famous by -the Teach kids code movement, is -included for the first time. Alongside similar programs like -kturtle and -turtleart, -it allow for visual programming where syntax errors can not happen, -and a friendly programming environment for learning to control the -computer. Scratch will also be included in the next release of Debian -Edu. - -

And now that Wheezy is wrapped up, we can wrap up the next Debian -Edu/Skolelinux release too. The -first -alpha release went out last week, and the next should soon -follow.

+

+
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.

@@ -246,166 +457,23 @@ follow.

- -
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

- -
    -
  • 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.

+ +
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: norsk, nuug, offentlig innsyn. + Tags: debian, english.
@@ -413,123 +481,49 @@ 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:

- -

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

- -

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

- -

About Debian Edu and Skolelinux

- -

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.

- -

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.

- -

Software updates

+ +
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.

    -
  • 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.
    • -
  • -
-

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

+
  • Ignore 'phantom' audio, subtitle tracks
  • +
  • Check for garbage in the program chains, which indicate that a track is + non-existant, to work around additional copy protection
  • +
  • Fix displaying content type for audio tracks, subtitles
  • +
  • Fix pallete display of first entry
  • +
  • Fix include orders
  • +
  • Ignore read errors in titles that would not be displayed anyway
  • +
  • Fix the chapter count
  • +
  • Make sure the array size and the array limit used when initialising + the palette size is the same.
  • +
  • Fix array printing.
  • +
  • Correct subsecond calculations.
  • +
  • Add sector information to the output format.
  • +
  • Clean up code to be closer to ANSI C and compile without warnings + with more GCC compiler warnings.
  • -
      -
    • 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

    -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

    +

    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. :)

    @@ -537,66 +531,77 @@ 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.

    + +
    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.

    @@ -604,27 +609,37 @@ 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?

    + +
    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. :)

    @@ -632,55 +647,263 @@ 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:

    - - - -

    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.

    + +
    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.

    @@ -688,48 +911,221 @@ 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.

    + +
    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:

    + +

    +#!/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
    +

    + +

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

    +#! /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
    +

    + +

    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.

    - Tags: norsk. + Tags: debian, debian edu, english.
    @@ -744,6 +1140,31 @@ Creative Commons-lisens.

    Archive