1 <?xml version=
"1.0" encoding=
"utf-8"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/' xmlns:
atom=
"http://www.w3.org/2005/Atom">
4 <title>Petter Reinholdtsen
</title>
5 <description></description>
6 <link>http://people.skolelinux.org/pere/blog/
</link>
7 <atom:link href=
"http://people.skolelinux.org/pere/blog/index.rss" rel=
"self" type=
"application/rss+xml" />
10 <title>Upstart or sysvinit - as init.d scripts see it
</title>
11 <link>http://people.skolelinux.org/pere/blog/Upstart_or_sysvinit___as_init_d_scripts_see_it.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Upstart_or_sysvinit___as_init_d_scripts_see_it.html
</guid>
13 <pubDate>Sun,
6 Jun
2010 23:
55:
00 +
0200</pubDate>
15 <p
>If Debian is to migrate to upstart on Linux, I expect some init.d
16 scripts to migrate (some of) their operations to upstart job while
17 keeping the init.d for hurd and kfreebsd. The packages with such
18 needs will need a way to get their init.d scripts to behave
19 differently when used with sysvinit and with upstart. Because of
20 this, I had a look at the environment variables set when a init.d
21 script is running under upstart, and when it is not.
</p
>
23 <p
>With upstart, I notice these environment variables are set when a
24 script is started from rcS.d/ (ignoring some irrelevant ones like
27 <blockquote
><pre
>
33 UPSTART_EVENTS=startup
35 UPSTART_JOB=rc-sysinit
36 </pre
></blockquote
>
38 <p
>With sysvinit, these environment variables are set for the same
41 <blockquote
><pre
>
42 INIT_VERSION=sysvinit-
2.88
47 </pre
></blockquote
>
49 <p
>The RUNLEVEL and PREVLEVEL environment variables passed on from
50 sysvinit is not set by upstart. Not sure if it is intentional or not
51 to not be compatible with sysvinit in this regard.
</p
>
53 <p
>For scripts needing to behave differently when upstart is used,
54 looking for the UPSTART_JOB environment variable seem to be a good
60 <title>A manual for standards wars...
</title>
61 <link>http://people.skolelinux.org/pere/blog/A_manual_for_standards_wars___.html
</link>
62 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/A_manual_for_standards_wars___.html
</guid>
63 <pubDate>Sun,
6 Jun
2010 14:
15:
00 +
0200</pubDate>
66 <a href=
"http://feedproxy.google.com/~r/robweir/antic-atom/~
3/QzU4RgoAGMg/weekly-links-
10.html
">blog
67 of Rob Weir
</a
> I came across the very interesting essay named
68 <a href=
"http://faculty.haas.berkeley.edu/shapiro/wars.pdf
">The Art of
69 Standards Wars
</a
> (PDF
25 pages). I recommend it for everyone
70 following the standards wars of today.
</p
>
75 <title>Sitesummary tip: Listing computer hardware models used at site
</title>
76 <link>http://people.skolelinux.org/pere/blog/Sitesummary_tip__Listing_computer_hardware_models_used_at_site.html
</link>
77 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Sitesummary_tip__Listing_computer_hardware_models_used_at_site.html
</guid>
78 <pubDate>Thu,
3 Jun
2010 12:
05:
00 +
0200</pubDate>
80 <p
>When using sitesummary at a site to track machines, it is possible
81 to get a list of the machine types in use thanks to the DMI
82 information extracted from each machine. The script to do so is
83 included in the sitesummary package, and here is example output from
84 the Skolelinux build servers:
</p
>
86 <blockquote
><pre
>
87 maintainer:~# /usr/lib/sitesummary/hardware-model-summary
89 Dell Computer Corporation
1
92 eserver xSeries
345 -[
8670M1X]-
1
96 </pre
></blockquote
>
98 <p
>The quality of the report depend on the quality of the DMI tables
99 provided in each machine. Here there are Intel machines without model
100 information listed with Intel as vendor and mo model, and virtual Xen
101 machines listed as [no-dmi-info]. One can add -l as a command line
102 option to list the individual machines.
</p
>
104 <p
>A larger list is
105 <a href=
"http://narvikskolen.no/sitesummary/
">available from the the
106 city of Narvik
</a
>, which uses Skolelinux on all their shools and also
107 provide the basic sitesummary report publicly. In their report there
108 are ~
1400 machines. I know they use both Ubuntu and Skolelinux on
109 their machines, and as sitesummary is available in both distributions,
110 it is trivial to get all of them to report to the same central
116 <title>Togsatsing på norsk, mot sykkel
</title>
117 <link>http://people.skolelinux.org/pere/blog/Togsatsing_p___norsk__mot_sykkel.html
</link>
118 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Togsatsing_p___norsk__mot_sykkel.html
</guid>
119 <pubDate>Wed,
2 Jun
2010 23:
45:
00 +
0200</pubDate>
121 <p
>Det står dårlig til med toget når en finner på å la det
122 <a href=
"http://www.aftenposten.no/nyheter/iriks/article3677060.ece
">kappkjøre
123 med sykkel
</a
>... Jeg tror det trengs strukturendringer for å få
124 fikset på togproblemene i Norge.
</p
>
126 <p
>Mon tro hva toglinje mellom Narvik og Tromsø ville hatt slags
127 effekt på området der?
</p
>
132 <title>KDM fail at boot with NVidia cards - and no one try to fix it?
</title>
133 <link>http://people.skolelinux.org/pere/blog/KDM_fail_at_boot_with_NVidia_cards___and_no_one_try_to_fix_it_.html
</link>
134 <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>
135 <pubDate>Tue,
1 Jun
2010 17:
05:
00 +
0200</pubDate>
137 <p
>It is strange to watch how a bug in Debian causing KDM to fail to
138 start at boot when an NVidia video card is used is handled. The
139 problem seem to be that the nvidia X.org driver uses a long time to
140 initialize, and this duration is longer than kdm is configured to
143 <p
>I came across two bugs related to this issue,
144 <a href=
"http://bugs.debian.org/
583312">#
583312</a
> initially filed
145 against initscripts and passed on to nvidia-glx when it became obvious
146 that the nvidia drivers were involved, and
147 <a href=
"http://bugs.debian.org/
524751">#
524751</a
> initially filed against
148 kdm and passed on to src:nvidia-graphics-drivers for unknown reasons.
</p
>
150 <p
>To me, it seem that no-one is interested in actually solving the
151 problem nvidia video card owners experience and make sure the Debian
152 distribution work out of the box for these users. The nvidia driver
153 maintainers expect kdm to be set up to wait longer, while kdm expect
154 the nvidia driver maintainers to fix the driver to start faster, and
155 while they wait for each other I guess the users end up switching to a
156 distribution that work for them. I have no idea what the solution is,
157 but I am pretty sure that waiting for each other is not it.
</p
>
159 <p
>I wonder why we end up handling bugs this way.
</p
>
164 <title>Parallellized boot seem to hold up well in Debian/testing
</title>
165 <link>http://people.skolelinux.org/pere/blog/Parallellized_boot_seem_to_hold_up_well_in_Debian_testing.html
</link>
166 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Parallellized_boot_seem_to_hold_up_well_in_Debian_testing.html
</guid>
167 <pubDate>Thu,
27 May
2010 23:
55:
00 +
0200</pubDate>
169 <p
>A few days ago, parallel booting was enabled in Debian/testing.
170 The feature seem to hold up pretty well, but three fairly serious
171 issues are known and should be solved:
175 <li
>The wicd package seen to
176 <a href=
"http://bugs.debian.org/
508289">break NFS mounting
</a
> and
177 <a href=
"http://bugs.debian.org/
581586">network setup
</a
> when
178 parallel booting is enabled. No idea why, but the wicd maintainer
179 seem to be on the case.
</li
>
181 <li
>The nvidia X driver seem to
182 <a href=
"http://bugs.debian.org/
583312">have a race condition
</a
>
183 triggered more easily when parallel booting is in effect. The
184 maintainer is on the case.
</li
>
186 <li
>The sysv-rc package fail to properly enable dependency based boot
187 sequencing (the shutdown is broken) when old file-rc users
188 <a href=
"http://bugs.debian.org/
575080">try to switch back
</a
> to
189 sysv-rc. One way to solve it would be for file-rc to create
190 /etc/init.d/.legacy-bootordering, and another is to try to make
191 sysv-rc more robust. Will investigate some more and probably upload a
192 workaround in sysv-rc to help those trying to move from file-rc to
193 sysv-rc get a working shutdown.
</li
>
195 </ul
></p
>
197 <p
>All in all not many surprising issues, and all of them seem
198 solvable before Squeeze is released. In addition to these there are
199 some packages with bugs in their dependencies and run level settings,
200 which I expect will be fixed in a reasonable time span.
</p
>
202 <p
>If you report any problems with dependencies in init.d scripts to
203 the BTS, please usertag the report to get it to show up at
204 <a href=
"http://bugs.debian.org/cgi-bin/pkgreport.cgi?users=initscripts-ng-devel@lists.alioth.debian.org
">the
205 list of usertagged bugs related to this
</a
>.
</p
>
207 <p
>Update: Correct bug number to file-rc issue.
</p
>
212 <title>More flexible firmware handling in debian-installer
</title>
213 <link>http://people.skolelinux.org/pere/blog/More_flexible_firmware_handling_in_debian_installer.html
</link>
214 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/More_flexible_firmware_handling_in_debian_installer.html
</guid>
215 <pubDate>Sat,
22 May
2010 21:
30:
00 +
0200</pubDate>
217 <p
>After a long break from debian-installer development, I finally
218 found time today to return to the project. Having to spend less time
219 working dependency based boot in debian, as it is almost complete now,
220 definitely helped freeing some time.
</p
>
222 <p
>A while back, I ran into a problem while working on Debian Edu. We
223 include some firmware packages on the Debian Edu CDs, those needed to
224 get disk and network controllers working. Without having these
225 firmware packages available during installation, it is impossible to
226 install Debian Edu on the given machine, and because our target group
227 are non-technical people, asking them to provide firmware packages on
228 an external medium is a support pain. Initially, I expected it to be
229 enough to include the firmware packages on the CD to get
230 debian-installer to find and use them. This proved to be wrong.
231 Next, I hoped it was enough to symlink the relevant firmware packages
232 to some useful location on the CD (tried /cdrom/ and
233 /cdrom/firmware/). This also proved to not work, and at this point I
234 found time to look at the debian-installer code to figure out what was
235 going to work.
</p
>
237 <p
>The firmware loading code is in the hw-detect package, and a closer
238 look revealed that it would only look for firmware packages outside
239 the installation media, so the CD was never checked for firmware
240 packages. It would only check USB sticks, floppies and other
241 "external
" media devices. Today I changed it to also look in the
242 /cdrom/firmware/ directory on the mounted CD or DVD, which should
243 solve the problem I ran into with Debian edu. I also changed it to
244 look in /firmware/, to make sure the installer also find firmware
245 provided in the initrd when booting the installer via PXE, to allow us
246 to provide the same feature in the PXE setup included in Debian
249 <p
>To make sure firmware deb packages with a license questions are not
250 activated without asking if the license is accepted, I extended
251 hw-detect to look for preinst scripts in the firmware packages, and
252 run these before activating the firmware during installation. The
253 license question is asked using debconf in the preinst, so this should
254 solve the issue for the firmware packages I have looked at so far.
</p
>
256 <p
>If you want to discuss the details of these features, please
257 contact us on debian-boot@lists.debian.org.
</p
>
262 <title>Magnetstripeinnhold i billetter fra Flytoget og Hurtigruten
</title>
263 <link>http://people.skolelinux.org/pere/blog/Magnetstripeinnhold_i_billetter_fra_Flytoget_og_Hurtigruten.html
</link>
264 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Magnetstripeinnhold_i_billetter_fra_Flytoget_og_Hurtigruten.html
</guid>
265 <pubDate>Fri,
21 May
2010 16:
00:
00 +
0200</pubDate>
267 <p
>For en stund tilbake kjøpte jeg en magnetkortleser for å kunne
268 titte på hva som er skrevet inn på magnetstripene til ulike kort. Har
269 ikke hatt tid til å analysere mange kort så langt, men tenkte jeg
270 skulle dele innholdet på to kort med mine lesere.
</p
>
272 <p
>For noen dager siden tok jeg flyet til Harstad og Hurtigruten til
273 Bergen. Flytoget fra Oslo S til flyplassen ga meg en billett med
274 magnetstripe. Påtrykket finner jeg følgende informasjon:
</p
>
277 Flytoget Airport Express Train
279 Fra - Til : Oslo Sentralstasjon
282 Herav mva.
8,
00% : NOK
12,
59
284 Til - Fra : Oslo Lufthavn
286 Gyldig Fra-Til :
08.05.10-
07.11.10
287 Billetttype : Enkeltbillett
289 102-
1015-
100508-
48382-
01-
08
292 <p
>På selve magnetstripen er innholdet
293 <tt
>;E?+
900120011=
23250996541068112619257138248441708433322932704083389389062603279671261502492655?
</tt
>.
294 Aner ikke hva innholdet representerer, og det er lite overlapp mellom
295 det jeg ser trykket på billetten og det jeg ser av tegn i
296 magnetstripen. Håper det betyr at de bruker kryptografiske metoder
297 for å gjøre det vanskelig å forfalske billetter.
</p
>
299 <p
>Den andre billetten er fra Hurtigruten, der jeg mistenker at
300 strekkoden på fronten er mer brukt enn magnetstripen (det var i hvert
301 fall den biten vi stakk inn i dørlåsen).
</p
>
303 <p
>Påtrykket forsiden er følgende:
</p
>
311 Bookingno: SAX69
0742193
313 Dep:
09.05.2010 Arr:
12.05.2010
318 <p
>På selve magnetstripen er innholdet
319 <tt
>;
1316010007421930=
00000000000000000000?+E?
</tt
>. Heller ikke her
320 ser jeg mye korrespondanse mellom påtrykk og magnetstripe.
</p
>
325 <title>Pieces of the roaming laptop puzzle in Debian
</title>
326 <link>http://people.skolelinux.org/pere/blog/Pieces_of_the_roaming_laptop_puzzle_in_Debian.html
</link>
327 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Pieces_of_the_roaming_laptop_puzzle_in_Debian.html
</guid>
328 <pubDate>Wed,
19 May
2010 19:
00:
00 +
0200</pubDate>
330 <p
>Today, the last piece of the puzzle for roaming laptops in Debian
331 Edu finally entered the Debian archive. Today, the new
332 <a href=
"http://packages.qa.debian.org/libp/libpam-mklocaluser.html
">libpam-mklocaluser
</a
>
333 package was accepted. Two days ago, two other pieces was accepted
335 <a href=
"http://packages.qa.debian.org/p/pam-python.html
">pam-python
</a
>
336 package needed by libpam-mklocaluser, and the
337 <a href=
"http://packages.qa.debian.org/s/sssd.html
">sssd
</a
> package
338 passed NEW on Monday. In addition, the
339 <a href=
"http://packages.qa.debian.org/libp/libpam-ccreds.html
">libpam-ccreds
</a
>
340 package we need is in experimental (version
10-
4) since Saturday, and
341 hopefully will be moved to unstable soon.
</p
>
343 <p
>This collection of packages allow for two different setups for
344 roaming laptops. The traditional setup would be using libpam-ccreds,
345 nscd and libpam-mklocaluser with LDAP or Kerberos authentication,
346 which should work out of the box if the configuration changes proposed
347 for nscd in
<a href=
"http://bugs.debian.org/
485282">BTS report
348 #
485282</a
> is implemented. The alternative setup is to use sssd with
349 libpam-mklocaluser to connect to LDAP or Kerberos and let sssd take
350 care of the caching of passwords and group information.
</p
>
352 <p
>I have so far been unable to get sssd to work with the LDAP server
353 at the University, but suspect the issue is some SSL/GnuTLS related
354 problem with the server certificate. I plan to update the Debian
355 package to version
1.2, which is scheduled for next week, and hope to
356 find time to make sure the next release will include both the
357 Debian/Ubuntu specific patches. Upstream is friendly and responsive,
358 and I am sure we will find a good solution.
</p
>
360 <p
>The idea is to set up the roaming laptops to authenticate using
361 LDAP or Kerberos and create a local user with home directory in /home/
362 when a usre in LDAP logs in via KDM or GDM for the first time, and
363 cache the password for offline checking, as well as caching group
364 memberhips and other relevant LDAP information. The
365 libpam-mklocaluser package was created to make sure the local home
366 directory is in /home/, instead of /site/server/directory/ which would
367 be the home directory if pam_mkhomedir was used. To avoid confusion
368 with support requests and configuration, we do not want local laptops
369 to have users in a path that is used for the same users home directory
370 on the home directory servers.
</p
>
372 <p
>One annoying problem with gdm is that it do not show the PAM
373 message passed to the user from libpam-mklocaluser when the local user
374 is created. Instead gdm simply reject the login with some generic
375 message. The message is shown in kdm, ssh and login, so I guess it is
376 a bug in gdm. Have not investigated if there is some other message
377 type that can be used instead to get gdm to also show the message.
</p
>
379 <p
>If you want to help out with implementing this for Debian Edu,
380 please contact us on debian-edu@lists.debian.org.
</p
>
385 <title>Parallellized boot is now the default in Debian/unstable
</title>
386 <link>http://people.skolelinux.org/pere/blog/Parallellized_boot_is_now_the_default_in_Debian_unstable.html
</link>
387 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Parallellized_boot_is_now_the_default_in_Debian_unstable.html
</guid>
388 <pubDate>Fri,
14 May
2010 22:
40:
00 +
0200</pubDate>
390 <p
>Since this evening, parallel booting is the default in
391 Debian/unstable for machines using dependency based boot sequencing.
392 Apparently the testing of concurrent booting has been wider than
393 expected, if I am to believe the
394 <a href=
"http://lists.debian.org/debian-devel/
2010/
05/msg00122.html
">input
395 on debian-devel@
</a
>, and I concluded a few days ago to move forward
396 with the feature this weekend, to give us some time to detect any
397 remaining problems before Squeeze is frozen. If serious problems are
398 detected, it is simple to change the default back to sequential boot.
399 The upload of the new sysvinit package also activate a new upstream
402 More information about
403 <a href=
"http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot
">dependency
404 based boot sequencing
</a
> is available from the Debian wiki. It is
405 currently possible to disable parallel booting when one run into
406 problems caused by it, by adding this line to /etc/default/rcS:
</p
>
408 <blockquote
><pre
>
410 </pre
></blockquote
>
412 <p
>If you report any problems with dependencies in init.d scripts to
413 the BTS, please usertag the report to get it to show up at
414 <a href=
"http://bugs.debian.org/cgi-bin/pkgreport.cgi?users=initscripts-ng-devel@lists.alioth.debian.org
">the
415 list of usertagged bugs related to this
</a
>.
</p
>