1 <?xml version=
"1.0" encoding=
"ISO-8859-1"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/'
>
4 <title>Petter Reinholdtsen - Entries from June
2010</title>
5 <description>Entries from June
2010</description>
6 <link>http://people.skolelinux.org/pere/blog/
</link>
10 <title>KDM fail at boot with NVidia cards - and no one try to fix it?
</title>
11 <link>http://people.skolelinux.org/pere/blog/KDM_fail_at_boot_with_NVidia_cards___and_no_one_try_to_fix_it_.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/KDM_fail_at_boot_with_NVidia_cards___and_no_one_try_to_fix_it_.html
</guid>
13 <pubDate>Tue,
1 Jun
2010 17:
05:
00 +
0200</pubDate>
15 <p
>It is strange to watch how a bug in Debian causing KDM to fail to
16 start at boot when an NVidia video card is used is handled. The
17 problem seem to be that the nvidia X.org driver uses a long time to
18 initialize, and this duration is longer than kdm is configured to
21 <p
>I came across two bugs related to this issue,
22 <a href=
"http://bugs.debian.org/
583312">#
583312</a
> initially filed
23 against initscripts and passed on to nvidia-glx when it became obvious
24 that the nvidia drivers were involved, and
25 <a href=
"http://bugs.debian.org/
524751">#
524751</a
> initially filed against
26 kdm and passed on to src:nvidia-graphics-drivers for unknown reasons.
</p
>
28 <p
>To me, it seem that no-one is interested in actually solving the
29 problem nvidia video card owners experience and make sure the Debian
30 distribution work out of the box for these users. The nvidia driver
31 maintainers expect kdm to be set up to wait longer, while kdm expect
32 the nvidia driver maintainers to fix the driver to start faster, and
33 while they wait for each other I guess the users end up switching to a
34 distribution that work for them. I have no idea what the solution is,
35 but I am pretty sure that waiting for each other is not it.
</p
>
37 <p
>I wonder why we end up handling bugs this way.
</p
>
42 <title>Togsatsing på norsk, mot sykkel
</title>
43 <link>http://people.skolelinux.org/pere/blog/Togsatsing_p___norsk__mot_sykkel.html
</link>
44 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Togsatsing_p___norsk__mot_sykkel.html
</guid>
45 <pubDate>Wed,
2 Jun
2010 23:
45:
00 +
0200</pubDate>
47 <p
>Det står dårlig til med toget når en finner på å la det
48 <a href=
"http://www.aftenposten.no/nyheter/iriks/article3677060.ece
">kappkjøre
49 med sykkel
</a
>... Jeg tror det trengs strukturendringer for å få
50 fikset på togproblemene i Norge.
</p
>
52 <p
>Mon tro hva toglinje mellom Narvik og Tromsø ville hatt slags
53 effekt på området der?
</p
>
58 <title>Sitesummary tip: Listing computer hardware models used at site
</title>
59 <link>http://people.skolelinux.org/pere/blog/Sitesummary_tip__Listing_computer_hardware_models_used_at_site.html
</link>
60 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Sitesummary_tip__Listing_computer_hardware_models_used_at_site.html
</guid>
61 <pubDate>Thu,
3 Jun
2010 12:
05:
00 +
0200</pubDate>
63 <p
>When using sitesummary at a site to track machines, it is possible
64 to get a list of the machine types in use thanks to the DMI
65 information extracted from each machine. The script to do so is
66 included in the sitesummary package, and here is example output from
67 the Skolelinux build servers:
</p
>
69 <blockquote
><pre
>
70 maintainer:~# /usr/lib/sitesummary/hardware-model-summary
72 Dell Computer Corporation
1
75 eserver xSeries
345 -[
8670M1X]-
1
79 </pre
></blockquote
>
81 <p
>The quality of the report depend on the quality of the DMI tables
82 provided in each machine. Here there are Intel machines without model
83 information listed with Intel as vendor and mo model, and virtual Xen
84 machines listed as [no-dmi-info]. One can add -l as a command line
85 option to list the individual machines.
</p
>
87 <p
>A larger list is
88 <a href=
"http://narvikskolen.no/sitesummary/
">available from the the
89 city of Narvik
</a
>, which uses Skolelinux on all their shools and also
90 provide the basic sitesummary report publicly. In their report there
91 are ~
1400 machines. I know they use both Ubuntu and Skolelinux on
92 their machines, and as sitesummary is available in both distributions,
93 it is trivial to get all of them to report to the same central
99 <title>A manual for standards wars...
</title>
100 <link>http://people.skolelinux.org/pere/blog/A_manual_for_standards_wars___.html
</link>
101 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/A_manual_for_standards_wars___.html
</guid>
102 <pubDate>Sun,
6 Jun
2010 14:
15:
00 +
0200</pubDate>
105 <a href=
"http://feedproxy.google.com/~r/robweir/antic-atom/~
3/QzU4RgoAGMg/weekly-links-
10.html
">blog
106 of Rob Weir
</a
> I came across the very interesting essay named
107 <a href=
"http://faculty.haas.berkeley.edu/shapiro/wars.pdf
">The Art of
108 Standards Wars
</a
> (PDF
25 pages). I recommend it for everyone
109 following the standards wars of today.
</p
>
114 <title>Upstart or sysvinit - as init.d scripts see it
</title>
115 <link>http://people.skolelinux.org/pere/blog/Upstart_or_sysvinit___as_init_d_scripts_see_it.html
</link>
116 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Upstart_or_sysvinit___as_init_d_scripts_see_it.html
</guid>
117 <pubDate>Sun,
6 Jun
2010 23:
55:
00 +
0200</pubDate>
119 <p
>If Debian is to migrate to upstart on Linux, I expect some init.d
120 scripts to migrate (some of) their operations to upstart job while
121 keeping the init.d for hurd and kfreebsd. The packages with such
122 needs will need a way to get their init.d scripts to behave
123 differently when used with sysvinit and with upstart. Because of
124 this, I had a look at the environment variables set when a init.d
125 script is running under upstart, and when it is not.
</p
>
127 <p
>With upstart, I notice these environment variables are set when a
128 script is started from rcS.d/ (ignoring some irrelevant ones like
131 <blockquote
><pre
>
137 UPSTART_EVENTS=startup
139 UPSTART_JOB=rc-sysinit
140 </pre
></blockquote
>
142 <p
>With sysvinit, these environment variables are set for the same
145 <blockquote
><pre
>
146 INIT_VERSION=sysvinit-
2.88
151 </pre
></blockquote
>
153 <p
>The RUNLEVEL and PREVLEVEL environment variables passed on from
154 sysvinit are not set by upstart. Not sure if it is intentional or not
155 to not be compatible with sysvinit in this regard.
</p
>
157 <p
>For scripts needing to behave differently when upstart is used,
158 looking for the UPSTART_JOB environment variable seem to be a good
164 <title>Skolelinux er laget for sentraldrifting, naturligvis
</title>
165 <link>http://people.skolelinux.org/pere/blog/Skolelinux_er_laget_for_sentraldrifting__naturligvis.html
</link>
166 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Skolelinux_er_laget_for_sentraldrifting__naturligvis.html
</guid>
167 <pubDate>Wed,
9 Jun
2010 12:
30:
00 +
0200</pubDate>
169 <p
>Det er merkelig hvordan myter om Skolelinux overlever. En slik
170 myte er at Skolelinux ikke kan sentraldriftes og ha sentralt plasserte
171 tjenermaskiner. I siste Computerworld Norge er
172 <a href=
"http://www.idg.no/computerworld/article169432.ece
">IT-sjef
173 Viggo Billdal i Steinkjer intervjuet
</a
>, og forteller uten
176 <blockquote
><p
>Vi hadde Skolelinux, men det har vi sluttet med. Vi testet
177 om det lønte seg med Microsoft eller en åpen plattform. Vi fant ut at
178 Microsoft egentlig var totalt sett bedre egnet. Det var store
179 driftskostnader med Skolelinux, blant annet på grunn av
180 desentraliserte servere. Det var komplisert, så vi gikk vekk fra det
181 og bruker nå bare Windows.
</p
></blockquote
>
184 href=
"https://init.linpro.no/pipermail/skolelinux.no/bruker/
2010-June/
009101.html
">rask
185 sjekk
</a
> mot den norske brukerlista i Skolelinuxprosjektet forteller
186 at Steinkjers forsøk foregikk fram til
2004/
2005, og at Røysing skole
187 i Steinkjer skal ha vært svært fornøyd med Skolelinux men at kommunen
188 overkjørte skolen og krevde at de gikk over til Windows. Et søk på
189 nettet sendte meg til
190 <a href=
"http://www.dn.no/multimedia/archive/
00090/Dagens_it_nr__18_90826a.pdf
">Dagens
191 IT nr.
18 2005</a
> hvor en kan lese på side
18:
</p
>
193 <blockquote
><p
>Inge Tømmerås ved Røysing skole i Steinkjer kjører ennå
194 Microsoft, men forteller at kompetanseutfordringen med Skolelinux ikke
195 var så stor. Jeg syntes Skolelinux var utrolig lett å drifte uten
196 forkunnskaper. Men man må jo selvsagt ha tilgang på ekstern kompetanse
197 til installasjoner og maskinvarefeil, sier Tømmerås.
</p
></blockquote
>
199 <p
>Som systemarkitekten bak Skolelinux, kan jeg bare riste på hodet
200 over påstanden om at Skolelinux krever desentraliserte tjenere.
201 Skolelinux-arkitekturen er laget for sentralisert drift og plassering
202 av tjenerne lokalt eller sentralt alt etter behov og nettkapasitet.
203 Den er modellert på nettverks- og tjenerløsningen som brukes på
204 Universitetet i Tromsø og Oslo, der jeg jobber med utvikling av
205 driftstjenester. Dette er det heldigvis noen som har fått med seg, og
206 jeg er glad for å kunne sitere fra en kommentar på den overnevnte
207 artikkelen. Min venn og gamle kollega Sturle Sunde forteller der:
210 <p
>I Flora kommune køyrer vi Skulelinux på skular med alt frå
15 til
211 meir enn
500 elevar. Dei store skulane har eigen tenar, for det er
212 mest praktisk. Eg, som er driftsansvarleg for heile nettet, ser
213 sjeldan dei tenarane fysisk, men at dei står der gjer skulane mindre
214 avhengige av eksterne linjer som er trege eller dyre. Dei minste
215 skulane har ikkje eigen tenar. Å bruke sentral tenar er heller ikkje
216 noko problem. Småskulane klarar seg fint med
1 mbit-linje til ein
217 sentral tenar eller tenaren på ein større skule.
</p
>
219 <p
>Det beste med Skulelinux er halvtjukke klientar. Dei treng ikkje
220 harddisk og brukar minimalt med ressursar på tenaren fordi dei køyrer
221 programma lokalt. Eit klasserom med
30 sju-åtte år gamle maskiner har
222 mykje meir CPU og RAM totalt enn nokon moderne tenar til under
223 millionen. Det trengst to kommandoar på den sentrale tenaren for å
224 oppdatere alle klientane, både tynne og halvtjukke. Vi har ingen
225 problem med diskar som ryk heller, som var eit problem før fordi
226 elevane sat og sparka i maskinene. Og dei krev lite bandbreidde i
227 nettet, so det er fullt mogleg å køyre slike på småskular med trege
228 linjer mot tenaren på ein større skule.
</p
>
230 <p
>Flora kommune har nesten
800 Linux-maskiner i sitt skulenett, og
231 ein person som tek seg av drift av heile nettet, inkludert tenarar,
232 klientar, operativsystem, programvare, heimekontorløysing og
233 administrasjon av brukarar.
</p
>
235 <p
>No skal det seiast at vi ikkje køyrer rein Skulelinux ut av
236 boksen. Vi har gjort ein del tilpassingar mot noko Novell-greier som
237 var der frå før, og som har komplisert installasjonen vår. Etter at
238 oppsettet var gjort har løysinga vore stabil og kravd minimalt med
242 <p
>Jeg vet at Narvik, Harstad og Oslo er kommuner der Skolelinux
243 sentraldriftes med sentrale tjenere. Det forteller meg at Steinkjers
244 IT-sjef neppe bør skylde på Skolelinux-løsningen for sine
5 år gamle
250 <title>Automatic upgrade testing from Lenny to Squeeze
</title>
251 <link>http://people.skolelinux.org/pere/blog/Automatic_upgrade_testing_from_Lenny_to_Squeeze.html
</link>
252 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Automatic_upgrade_testing_from_Lenny_to_Squeeze.html
</guid>
253 <pubDate>Fri,
11 Jun
2010 22:
50:
00 +
0200</pubDate>
255 <p
>The last few days I have done some upgrade testing in Debian, to
256 see if the upgrade from Lenny to Squeeze will go smoothly. A few bugs
257 have been discovered and reported in the process
258 (
<a href=
"http://bugs.debian.org/
585410">#
585410</a
> in nagios3-cgi,
259 <a href=
"http://bugs.debian.org/
584879">#
584879</a
> already fixed in
260 enscript and
<a href=
"http://bugs.debian.org/
584861">#
584861</a
> in
261 kdebase-workspace-data), and to get a more regular testing going on, I
262 am working on a script to automate the test.
</p
>
264 <p
>The idea is to create a Lenny chroot and use tasksel to install a
265 Gnome or KDE desktop installation inside the chroot before upgrading
266 it. To ensure no services are started in the chroot, a policy-rc.d
267 script is inserted. To make sure tasksel believe it to install a
268 desktop on a laptop, the tasksel tests are replaced in the chroot
269 (only acceptable because this is a throw-away chroot).
</p
>
271 <p
>A naive upgrade from Lenny to Squeeze using aptitude dist-upgrade
272 currently always fail because udev refuses to upgrade with the kernel
273 in Lenny, so to avoid that problem the file /etc/udev/kernel-upgrade
274 is created. The bug report
275 <a href=
"http://bugs.debian.org/
566000">#
566000</a
> make me suspect
276 this problem do not trigger in a chroot, but I touch the file anyway
277 to make sure the upgrade go well. Testing on virtual and real
278 hardware have failed me because of udev so far, and creating this file
279 do the trick in such settings anyway. This is a
280 <a href=
"http://www.linuxquestions.org/questions/debian-
26/failed-dist-upgrade-due-to-udev-config_sysfs_deprecated-nonsense-
804130/
">known
281 issue
</a
> and the current udev behaviour is intended by the udev
282 maintainer because he lack the resources to rewrite udev to keep
283 working with old kernels or something like that. I really wish the
284 udev upstream would keep udev backwards compatible, to avoid such
285 upgrade problem, but given that they fail to do so, I guess
286 documenting the way out of this mess is the best option we got for
287 Debian Squeeze.
</p
>
289 <p
>Anyway, back to the task at hand, testing upgrades. This test
290 script, which I call
<tt
>upgrade-test
</tt
> for now, is doing the
293 <blockquote
><pre
>
297 if [
"$
1" ] ; then
306 exec
&lt; /dev/null
308 mirror=http://ftp.skolelinux.org/debian
309 tmpdir=chroot-$from-upgrade-$to-$desktop
311 debootstrap $from $tmpdir $mirror
312 chroot $tmpdir aptitude update
313 cat
> $tmpdir/usr/sbin/policy-rc.d
&lt;
&lt;EOF
317 chmod a+rx $tmpdir/usr/sbin/policy-rc.d
321 mount -t proc proc $tmpdir/proc
322 # Make sure proc is unmounted also on failure
323 trap exit_cleanup EXIT INT
325 chroot $tmpdir aptitude -y install debconf-utils
327 # Make sure tasksel autoselection trigger. It need the test scripts
328 # to return the correct answers.
329 echo tasksel tasksel/desktop multiselect $desktop | \
330 chroot $tmpdir debconf-set-selections
332 # Include the desktop and laptop task
333 for test in desktop laptop ; do
334 echo
> $tmpdir/usr/lib/tasksel/tests/$test
&lt;
&lt;EOF
338 chmod a+rx $tmpdir/usr/lib/tasksel/tests/$test
341 DEBIAN_FRONTEND=noninteractive
342 DEBIAN_PRIORITY=critical
343 export DEBIAN_FRONTEND DEBIAN_PRIORITY
344 chroot $tmpdir tasksel --new-install
346 echo deb $mirror $to main
> $tmpdir/etc/apt/sources.list
347 chroot $tmpdir aptitude update
348 touch $tmpdir/etc/udev/kernel-upgrade
349 chroot $tmpdir aptitude -y dist-upgrade
351 </pre
></blockquote
>
353 <p
>I suspect it would be useful to test upgrades with both apt-get and
354 with aptitude, but I have not had time to look at how they behave
355 differently so far. I hope to get a cron job running to do the test
356 regularly and post the result on the web. The Gnome upgrade currently
357 work, while the KDE upgrade fail because of the bug in
358 kdebase-workspace-data
</p
>
360 <p
>I am not quite sure what kind of extract from the huge upgrade logs
361 (KDE
167 KiB, Gnome
516 KiB) it make sense to include in this blog
362 post, so I will refrain from trying. I can report that for Gnome,
363 aptitude report
760 packages upgraded,
448 newly installed,
129 to
364 remove and
1 not upgraded and
1024MB need to be downloaded while for
365 KDE the same numbers are
702 packages upgraded,
507 newly installed,
366 193 to remove and
0 not upgraded and
1117MB need to be downloaded
</p
>
368 <p
>I am very happy to notice that the Gnome desktop + laptop upgrade
369 is able to migrate to dependency based boot sequencing and parallel
370 booting without a hitch. Was unsure if there were still bugs with
371 packages failing to clean up their obsolete init.d script during
372 upgrades, and no such problem seem to affect the Gnome desktop+laptop