]> pere.pagekite.me Git - homepage.git/blob - blog/archive/2010/06/06.rss
Generated.
[homepage.git] / blog / archive / 2010 / 06 / 06.rss
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/'>
3 <channel>
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>
7
8
9 <item>
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>
14 <description>
15 &lt;p&gt;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
19 wait.&lt;/p&gt;
20
21 &lt;p&gt;I came across two bugs related to this issue,
22 &lt;a href=&quot;http://bugs.debian.org/583312&quot;&gt;#583312&lt;/a&gt; initially filed
23 against initscripts and passed on to nvidia-glx when it became obvious
24 that the nvidia drivers were involved, and
25 &lt;a href=&quot;http://bugs.debian.org/524751&quot;&gt;#524751&lt;/a&gt; initially filed against
26 kdm and passed on to src:nvidia-graphics-drivers for unknown reasons.&lt;/p&gt;
27
28 &lt;p&gt;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.&lt;/p&gt;
36
37 &lt;p&gt;I wonder why we end up handling bugs this way.&lt;/p&gt;
38 </description>
39 </item>
40
41 <item>
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>
46 <description>
47 &lt;p&gt;Det står dårlig til med toget når en finner på å la det
48 &lt;a href=&quot;http://www.aftenposten.no/nyheter/iriks/article3677060.ece&quot;&gt;kappkjøre
49 med sykkel&lt;/a&gt;... Jeg tror det trengs strukturendringer for å få
50 fikset på togproblemene i Norge.&lt;/p&gt;
51
52 &lt;p&gt;Mon tro hva toglinje mellom Narvik og Tromsø ville hatt slags
53 effekt på området der?&lt;/p&gt;
54 </description>
55 </item>
56
57 <item>
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>
62 <description>
63 &lt;p&gt;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:&lt;/p&gt;
68
69 &lt;blockquote&gt;&lt;pre&gt;
70 maintainer:~# /usr/lib/sitesummary/hardware-model-summary
71 vendor count
72 Dell Computer Corporation 1
73 PowerEdge 1750 1
74 IBM 1
75 eserver xSeries 345 -[8670M1X]- 1
76 Intel 2
77 [no-dmi-info] 3
78 maintainer:~#
79 &lt;/pre&gt;&lt;/blockquote&gt;
80
81 &lt;p&gt;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.&lt;/p&gt;
86
87 &lt;p&gt;A larger list is
88 &lt;a href=&quot;http://narvikskolen.no/sitesummary/&quot;&gt;available from the the
89 city of Narvik&lt;/a&gt;, 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
94 collector.&lt;/p&gt;
95 </description>
96 </item>
97
98 <item>
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>
103 <description>
104 &lt;p&gt;Via the
105 &lt;a href=&quot;http://feedproxy.google.com/~r/robweir/antic-atom/~3/QzU4RgoAGMg/weekly-links-10.html&quot;&gt;blog
106 of Rob Weir&lt;/a&gt; I came across the very interesting essay named
107 &lt;a href=&quot;http://faculty.haas.berkeley.edu/shapiro/wars.pdf&quot;&gt;The Art of
108 Standards Wars&lt;/a&gt; (PDF 25 pages). I recommend it for everyone
109 following the standards wars of today.&lt;/p&gt;
110 </description>
111 </item>
112
113 <item>
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>
118 <description>
119 &lt;p&gt;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.&lt;/p&gt;
126
127 &lt;p&gt;With upstart, I notice these environment variables are set when a
128 script is started from rcS.d/ (ignoring some irrelevant ones like
129 COLUMNS):&lt;/p&gt;
130
131 &lt;blockquote&gt;&lt;pre&gt;
132 DEFAULT_RUNLEVEL=2
133 previous=N
134 PREVLEVEL=
135 RUNLEVEL=
136 runlevel=S
137 UPSTART_EVENTS=startup
138 UPSTART_INSTANCE=
139 UPSTART_JOB=rc-sysinit
140 &lt;/pre&gt;&lt;/blockquote&gt;
141
142 &lt;p&gt;With sysvinit, these environment variables are set for the same
143 script.&lt;/p&gt;
144
145 &lt;blockquote&gt;&lt;pre&gt;
146 INIT_VERSION=sysvinit-2.88
147 previous=N
148 PREVLEVEL=N
149 RUNLEVEL=S
150 runlevel=S
151 &lt;/pre&gt;&lt;/blockquote&gt;
152
153 &lt;p&gt;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.&lt;/p&gt;
156
157 &lt;p&gt;For scripts needing to behave differently when upstart is used,
158 looking for the UPSTART_JOB environment variable seem to be a good
159 choice.&lt;/p&gt;
160 </description>
161 </item>
162
163 <item>
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>
168 <description>
169 &lt;p&gt;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 &lt;a href=&quot;http://www.idg.no/computerworld/article169432.ece&quot;&gt;IT-sjef
173 Viggo Billdal i Steinkjer intervjuet&lt;/a&gt;, og forteller uten
174 blygsel:&lt;/p&gt;
175
176 &lt;blockquote&gt;&lt;p&gt;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.&lt;/p&gt;&lt;/blockquote&gt;
182
183 &lt;p&gt;En &lt;a
184 href=&quot;https://init.linpro.no/pipermail/skolelinux.no/bruker/2010-June/009101.html&quot;&gt;rask
185 sjekk&lt;/a&gt; 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 &lt;a href=&quot;http://www.dn.no/multimedia/archive/00090/Dagens_it_nr__18_90826a.pdf&quot;&gt;Dagens
191 IT nr. 18 2005&lt;/a&gt; hvor en kan lese på side 18:&lt;/p&gt;
192
193 &lt;blockquote&gt;&lt;p&gt;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.&lt;/p&gt;&lt;/blockquote&gt;
198
199 &lt;p&gt;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:
208
209 &lt;blockquote&gt;
210 &lt;p&gt;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.&lt;/p&gt;
218
219 &lt;p&gt;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.&lt;/p&gt;
229
230 &lt;p&gt;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.&lt;/p&gt;
234
235 &lt;p&gt;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
239 arbeid.&lt;/p&gt;
240 &lt;/blockquote&gt;
241
242 &lt;p&gt;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
245 minner.&lt;/p&gt;
246 </description>
247 </item>
248
249 <item>
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>
254 <description>
255 &lt;p&gt;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 (&lt;a href=&quot;http://bugs.debian.org/585410&quot;&gt;#585410&lt;/a&gt; in nagios3-cgi,
259 &lt;a href=&quot;http://bugs.debian.org/584879&quot;&gt;#584879&lt;/a&gt; already fixed in
260 enscript and &lt;a href=&quot;http://bugs.debian.org/584861&quot;&gt;#584861&lt;/a&gt; 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.&lt;/p&gt;
263
264 &lt;p&gt;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).&lt;/p&gt;
270
271 &lt;p&gt;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 &lt;a href=&quot;http://bugs.debian.org/566000&quot;&gt;#566000&lt;/a&gt; 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 &lt;a href=&quot;http://www.linuxquestions.org/questions/debian-26/failed-dist-upgrade-due-to-udev-config_sysfs_deprecated-nonsense-804130/&quot;&gt;known
281 issue&lt;/a&gt; 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.&lt;/p&gt;
288
289 &lt;p&gt;Anyway, back to the task at hand, testing upgrades. This test
290 script, which I call &lt;tt&gt;upgrade-test&lt;/tt&gt; for now, is doing the
291 trick:&lt;/p&gt;
292
293 &lt;blockquote&gt;&lt;pre&gt;
294 #!/bin/sh
295 set -ex
296
297 if [ &quot;$1&quot; ] ; then
298 desktop=$1
299 else
300 desktop=gnome
301 fi
302
303 from=lenny
304 to=squeeze
305
306 exec &amp;lt; /dev/null
307 unset LANG
308 mirror=http://ftp.skolelinux.org/debian
309 tmpdir=chroot-$from-upgrade-$to-$desktop
310 fuser -mv .
311 debootstrap $from $tmpdir $mirror
312 chroot $tmpdir aptitude update
313 cat &gt; $tmpdir/usr/sbin/policy-rc.d &amp;lt;&amp;lt;EOF
314 #!/bin/sh
315 exit 101
316 EOF
317 chmod a+rx $tmpdir/usr/sbin/policy-rc.d
318 exit_cleanup() {
319 umount $tmpdir/proc
320 }
321 mount -t proc proc $tmpdir/proc
322 # Make sure proc is unmounted also on failure
323 trap exit_cleanup EXIT INT
324
325 chroot $tmpdir aptitude -y install debconf-utils
326
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
331
332 # Include the desktop and laptop task
333 for test in desktop laptop ; do
334 echo &gt; $tmpdir/usr/lib/tasksel/tests/$test &amp;lt;&amp;lt;EOF
335 #!/bin/sh
336 exit 2
337 EOF
338 chmod a+rx $tmpdir/usr/lib/tasksel/tests/$test
339 done
340
341 DEBIAN_FRONTEND=noninteractive
342 DEBIAN_PRIORITY=critical
343 export DEBIAN_FRONTEND DEBIAN_PRIORITY
344 chroot $tmpdir tasksel --new-install
345
346 echo deb $mirror $to main &gt; $tmpdir/etc/apt/sources.list
347 chroot $tmpdir aptitude update
348 touch $tmpdir/etc/udev/kernel-upgrade
349 chroot $tmpdir aptitude -y dist-upgrade
350 fuser -mv
351 &lt;/pre&gt;&lt;/blockquote&gt;
352
353 &lt;p&gt;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&lt;/p&gt;
359
360 &lt;p&gt;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&lt;/p&gt;
367
368 &lt;p&gt;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
373 packages.&lt;/p&gt;
374 </description>
375 </item>
376
377 </channel>
378 </rss>