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>Parallellizing the boot in Debian Squeeze - ready for wider testing
</title>
11 <link>http://people.skolelinux.org/pere/blog/Parallellizing_the_boot_in_Debian_Squeeze___ready_for_wider_testing.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Parallellizing_the_boot_in_Debian_Squeeze___ready_for_wider_testing.html
</guid>
13 <pubDate>Thu,
6 May
2010 23:
25:
00 +
0200</pubDate>
15 <p
>These days, the init.d script dependencies in Squeeze are quite
16 complete, so complete that it is actually possible to run all the
17 init.d scripts in parallell based on these dependencies. If you want
18 to test your Squeeze system, make sure
19 <a href=
"http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot
">dependency
20 based boot sequencing
</a
> is enabled, and add this line to
21 /etc/default/rcS:
</p
>
23 <blockquote
><pre
>
25 </pre
></blockquote
>
27 <p
>That is it. It will cause sysv-rc to use the startpar tool to run
28 scripts in parallel using the dependency information stored in
29 /etc/init.d/.depend.boot, /etc/init.d/.depend.start and
30 /etc/init.d/.depend.stop to order the scripts. Startpar is configured
31 to try to start the kdm and gdm scripts as early as possible, and will
32 start the facilities required by kdm or gdm as early as possible to
33 make this happen.
</p
>
35 <p
>Give it a try, and see if you like the result. If some services
36 fail to start properly, it is most likely because they have incomplete
37 init.d script dependencies in their startup script (or some of their
38 dependent scripts have incomplete dependencies). Report bugs and get
39 the package maintainers to fix it. :)
</p
>
41 <p
>Running scripts in parallel could be the default in Debian when we
42 manage to get the init.d script dependencies complete and correct. I
43 expect we will get there in Squeeze+
1, if we get manage to test and
44 fix the remaining issues.
</p
>
46 <p
>If you report any problems with dependencies in init.d scripts to
47 the BTS, please usertag the report to get it to show up at
48 <a href=
"http://bugs.debian.org/cgi-bin/pkgreport.cgi?users=initscripts-ng-devel@lists.alioth.debian.org
">the
49 list of usertagged bugs related to this
</a
>.
</p
>
54 <title>Forcing new users to change their password on first login
</title>
55 <link>http://people.skolelinux.org/pere/blog/Forcing_new_users_to_change_their_password_on_first_login.html
</link>
56 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Forcing_new_users_to_change_their_password_on_first_login.html
</guid>
57 <pubDate>Sun,
2 May
2010 13:
47:
00 +
0200</pubDate>
59 <p
>One interesting feature in Active Directory, is the ability to
60 create a new user with an expired password, and thus force the user to
61 change the password on the first login attempt.
</p
>
63 <p
>I
'm not quite sure how to do that with the LDAP setup in Debian
64 Edu, but did some initial testing with a local account. The account
65 and password aging information is available in /etc/shadow, but
66 unfortunately, it is not possible to specify an expiration time for
67 passwords, only a maximum age for passwords.
</p
>
69 <p
>A freshly created account (using adduser test) will have these
70 settings in /etc/shadow:
</p
>
72 <blockquote
><pre
>
73 root@tjener:~# chage -l test
74 Last password change : May
02,
2010
75 Password expires : never
76 Password inactive : never
77 Account expires : never
78 Minimum number of days between password change :
0
79 Maximum number of days between password change :
99999
80 Number of days of warning before password expires :
7
82 </pre
></blockquote
>
84 <p
>The only way I could come up with to create a user with an expired
85 account, is to change the date of the last password change to the
86 lowest value possible (January
1th
1970), and the maximum password age
87 to the difference in days between that date and today. To make it
88 simple, I went for
30 years (
30 *
365 =
10950) and January
2th (to
89 avoid testing if
0 is a valid value).
</p
>
91 <p
>After using these commands to set it up, it seem to work as
94 <blockquote
><pre
>
95 root@tjener:~# chage -d
1 test; chage -M
10950 test
96 root@tjener:~# chage -l test
97 Last password change : Jan
02,
1970
98 Password expires : never
99 Password inactive : never
100 Account expires : never
101 Minimum number of days between password change :
0
102 Maximum number of days between password change :
10950
103 Number of days of warning before password expires :
7
105 </pre
></blockquote
>
107 <p
>So far I have tested this with ssh and console, and kdm (in
108 Squeeze) login, and all ask for a new password before login in the
109 user (with ssh, I was thrown out and had to log in again).
</p
>
111 <p
>Perhaps we should set up something similar for Debian Edu, to make
112 sure only the user itself have the account password?
</p
>
114 <p
>If you want to comment on or help out with implementing this for
115 Debian Edu, please contact us on debian-edu@lists.debian.org.
</p
>
117 <p
>Update
2010-
05-
02 17:
20: Paul Tötterman tells me on IRC that the
118 shadow(
8) page in Debian/testing now state that setting the date of
119 last password change to zero (
0) will force the password to be changed
120 on the first login. This was not mentioned in the manual in Lenny, so
121 I did not notice this in my initial testing. I have tested it on
122 Squeeze, and
'<tt
>chage -d
0 username
</tt
>' do work there. I have not
123 tested it on Lenny yet.
</p
>
125 <p
>Update
2010-
05-
02-
19:
05: Jim Paris tells me via email that an
126 equivalent command to expire a password is
'<tt
>passwd -e
127 username
</tt
>', which insert zero into the date of the last password
133 <title>Thoughts on roaming laptop setup for Debian Edu
</title>
134 <link>http://people.skolelinux.org/pere/blog/Thoughts_on_roaming_laptop_setup_for_Debian_Edu.html
</link>
135 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Thoughts_on_roaming_laptop_setup_for_Debian_Edu.html
</guid>
136 <pubDate>Wed,
28 Apr
2010 20:
40:
00 +
0200</pubDate>
138 <p
>For some years now, I have wondered how we should handle laptops in
139 Debian Edu. The Debian Edu infrastructure is mostly designed to
140 handle stationary computers, and less suited for computers that come
143 <p
>Now I finally believe I have an sensible idea on how to adjust
144 Debian Edu for laptops, by introducing a new profile for them, for
145 example called Roaming Workstations. Here are my thought on this.
146 The setup would consist of the following:
</p
>
150 <li
>During installation, the user name of the owner / primary user of
151 the laptop is requested and a local home directory is set up for
152 the user, with uid and gid information fetched from the LDAP
153 server. This allow the user to work also when offline. The
154 central home directory can be available in a subdirectory on
155 request, for example mounted via CIFS. It could be mounted
156 automatically when a user log in while on the Debian Edu network,
157 and unmounted when the machine is taken away (network down,
158 hibernate, etc), it can be set up to do automatic mounting on
159 request (using autofs), or perhaps some GUI button on the desktop
160 can be used to access it when needed. Perhaps it is enough to use
161 the fish protocol in KDE?
</li
>
163 <li
>Password checking is set up to use LDAP or Kerberos
164 authentication when the machine is on the Debian Edu network, and
165 to cache the password for offline checking when the machine unable
166 to reach the LDAP or Kerberos server. This can be done using
167 <a href=
"http://www.padl.com/OSS/pam_ccreds.html
">libpam-ccreds
</a
>
168 or the Fedora developed
169 <a href=
"https://fedoraproject.org/wiki/Features/SSSD
">System
170 Security Services Daemon
</a
> packages.
</li
>
172 <li
>File synchronisation with the central home directory is set up
173 using a shared directory in both the local and the central home
174 directory, using unison.
</li
>
176 <li
>Printing should be set up to print to all printers broadcasting
177 their existence on the local network, and should then work out of
178 the box with CUPS. For sites needing accurate printer quotas, some
179 system with Kerberos authentication or printing via ssh could be
180 implemented.
</li
>
182 <li
>For users that should have local root access to their laptop,
183 sudo should be used to allow this to the local user.
</li
>
185 <li
>It would be nice if user and group information from LDAP is
186 cached on the client, but given that there are entries for the
187 local user and primary group in /etc/, it should not be needed.
</li
>
191 <p
>I believe all the pieces to implement this are in Debian/testing at
192 the moment. If we work quickly, we should be able to get this ready
193 in time for the Squeeze release to freeze. Some of the pieces need
194 tweaking, like libpam-ccreds should get support for pam-auth-update
195 (
<a href=
"http://bugs.debian.org/
566718">#
566718</a
>) and nslcd (or
196 perhaps debian-edu-config) should get some integration code to stop
197 its daemon when the LDAP server is unavailable to avoid long timeouts
198 when disconnected from the net. If we get Kerberos enabled, we need
199 to make sure we avoid long timeouts there too.
</p
>
201 <p
>If you want to help out with implementing this for Debian Edu,
202 please contact us on debian-edu@lists.debian.org.
</p
>
207 <title>Great book:
"Content: Selected Essays on Technology, Creativity, Copyright, and the Future of the Future
"</title>
208 <link>http://people.skolelinux.org/pere/blog/Great_book___Content__Selected_Essays_on_Technology__Creativity__Copyright__and_the_Future_of_the_Future_.html
</link>
209 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Great_book___Content__Selected_Essays_on_Technology__Creativity__Copyright__and_the_Future_of_the_Future_.html
</guid>
210 <pubDate>Mon,
19 Apr
2010 17:
10:
00 +
0200</pubDate>
212 <p
>The last few weeks i have had the pleasure of reading a
213 thought-provoking collection of essays by Cory Doctorow, on topics
214 touching copyright, virtual worlds, the future of man when the
215 conscience mind can be duplicated into a computer and many more. The
216 book titled
"Content: Selected Essays on Technology, Creativity,
217 Copyright, and the Future of the Future
" is available with few
218 restrictions on the web, for example from
219 <a href=
"http://craphound.com/content/
">his own site
</a
>. I read the
221 <a href=
"http://www.feedbooks.com/book/
2883">feedbooks
</a
> using
222 <a href=
"http://www.fbreader.org/
">fbreader
</a
> and my N810. I
223 strongly recommend this book.
</p
>
228 <title>Kerberos for Debian Edu/Squeeze?
</title>
229 <link>http://people.skolelinux.org/pere/blog/Kerberos_for_Debian_Edu_Squeeze_.html
</link>
230 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Kerberos_for_Debian_Edu_Squeeze_.html
</guid>
231 <pubDate>Wed,
14 Apr
2010 17:
20:
00 +
0200</pubDate>
233 <p
><a href=
"http://www.nuug.no/aktiviteter/
20100413-kerberos/
">Yesterdays
234 NUUG presentation
</a
> about Kerberos was inspiring, and reminded me
235 about the need to start using Kerberos in Skolelinux. Setting up a
236 Kerberos server seem to be straight forward, and if we get this in
237 place a long time before the Squeeze version of Debian freezes, we
238 have a chance to migrate Skolelinux away from NFSv3 for the home
239 directories, and over to an architecture where the infrastructure do
240 not have to trust IP addresses and machines, and instead can trust
241 users and cryptographic keys instead.
</p
>
243 <p
>A challenge will be integration and administration. Is there a
244 Kerberos implementation for Debian where one can control the
245 administration access in Kerberos using LDAP groups? With it, the
246 school administration will have to maintain access control using flat
247 files on the main server, which give a huge potential for errors.
</p
>
249 <p
>A related question I would like to know is how well Kerberos and
250 pam-ccreds (offline password check) work together. Anyone know?
</p
>
252 <p
>Next step will be to use Kerberos for access control in Lwat and
253 Nagios. I have no idea how much work that will be to implement. We
254 would also need to document how to integrate with Windows AD, as such
255 shared network will require two Kerberos realms that need to cooperate
256 to work properly.
</p
>
258 <p
>I believe a good start would be to start using Kerberos on the
259 skolelinux.no machines, and this way get ourselves experience with
260 configuration and integration. A natural starting point would be
261 setting up ldap.skolelinux.no as the Kerberos server, and migrate the
262 rest of the machines from PAM via LDAP to PAM via Kerberos one at the
265 <p
>If you would like to contribute to get this working in Skolelinux,
266 I recommend you to see the video recording from yesterdays NUUG
267 presentation, and start using Kerberos at home. The video show show
268 up in a few days.
</p
>
273 <title>På vegne av vanvitting mange, Aftenposten!
</title>
274 <link>http://people.skolelinux.org/pere/blog/P___vegne_av_vanvitting_mange__Aftenposten_.html
</link>
275 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/P___vegne_av_vanvitting_mange__Aftenposten_.html
</guid>
276 <pubDate>Sat,
6 Mar
2010 21:
15:
00 +
0100</pubDate>
278 <p
><a href=
"http://fotball.aftenposten.no/incoming/article163000.ece
">Aftenposten
279 melder
</a
> på forsiden av webavisen sin at de tror Erling Fossen
280 provoserer nordlendinger med sine uttalelser på
281 fotballtinget. Jeg er utflyttet nordlending, og må innrømme at jeg
282 ikke kjennet så mye som et snev av provokasjon fra denne litt morsomme
283 uttalelsen til Hr. Fossen. Lurer på om Aftenposten har noen kilder
284 utenom redaksjonen for sin påstand om at nordledinger er provosert av
285 Hr. Fossen. Må innrømme at jeg tviler på det.
</p
>
287 <p
>Det hele bringer tankene tilbake til Sture Hansen i Hallo i Uken.
</p
>
292 <title>After
6 years of waiting, the Xreset.d feature is implemented
</title>
293 <link>http://people.skolelinux.org/pere/blog/After_6_years_of_waiting__the_Xreset_d_feature_is_implemented.html
</link>
294 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/After_6_years_of_waiting__the_Xreset_d_feature_is_implemented.html
</guid>
295 <pubDate>Sat,
6 Mar
2010 18:
15:
00 +
0100</pubDate>
297 <p
>6 years ago, as part of the Debian Edu development I am involved
298 in, I asked for a hook in the kdm and gdm setup to run scripts as root
299 when the user log out. A bug was submitted against the xfree86-common
300 package in
2004 (
<a href=
"http://bugs.debian.org/
230422">#
230422</a
>),
301 and revisited every time Debian Edu was working on a new release.
302 Today, this finally paid off.
</p
>
304 <p
>The framework for this feature was today commited to the git
305 repositry for the xorg package, and the git repository for xdm has
306 been updated to use this framework. Next on my agenda is to make sure
307 kdm and gdm also add code to use this framework.
</p
>
309 <p
>In Debian Edu, we want to ability to run commands as root when the
310 user log out, to get rid of runaway processes and do general cleanup
311 after a user. With this framework in place, we finally can do that in
312 a generic way that work with all display managers using this
313 framework. My goal is to get all display managers in Debian use it,
314 similar to how they use the Xsession.d framework today.
<p
>
319 <title>Digitale bøker uten digitale restriksjonsmekanismer (DRM) bør få mva-fritak
</title>
320 <link>http://people.skolelinux.org/pere/blog/Digitale_b__ker_uten_digitale_restriksjonsmekanismer__DRM__b__r_f___mva_fritak.html
</link>
321 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Digitale_b__ker_uten_digitale_restriksjonsmekanismer__DRM__b__r_f___mva_fritak.html
</guid>
322 <pubDate>Wed,
3 Mar
2010 19:
00:
00 +
0100</pubDate>
324 <p
>Den norske bokbransjen har
325 <a href=
"http://www.digi.no/
823912/nei-til-moms-paa-e-boker
">bedt om at
326 digitale bøker må få mva-fritak
</a
> slik papirbøker har det, og
327 <a href=
"http://www.digi.no/
836875/moms-paa-alt-digitalt-innhold
">finansdepartementet
328 har sagt nei
</a
>. Det er et interessant spørsmål om digitale bøker
329 bør ha mva-fritak eller ikke, og svaret er ikke så enkelt som et ja
331 <a href=
"http://www.digi.no/
836925/norske-e-boker-truet-av-moms
">Enkelte
332 medlemmer
</a
> av bokbransjen truer med å droppe den planlagte
333 lanseringen av norske digitale bøker med digitale restriksjonsmekanismer
334 (DRM) som de har snakket om å gjennomføre nå i vår, og det må de
335 gjerne gjøre for min del.
</p
>
337 <p
>Papirbøker har mva-fritak pga. at de fremmer kultur- og
338 kunnskapsspredning. Digitale bøker uten digitale
339 restriksjonsmekanismer (DRM) fremmer kultur- og kunnskapsspredning,
340 mens digitale bøker med DRM hindrer kultur og kunnskapsspredning.
341 Digitale bøker uten DRM bør få mva-fritak da det er salg av bøker på
342 lik linje med salg av papirbøker, mens digitale bøker med DRM ikke bør
343 få det da det er utleie av bøker og ikke salg.
</p
>
345 <p
>Jeg foretrekker å kjøpe bøker, og velger dermed å la være å bruke
346 DRM-belastede digitale bøker. Vet ikke helt hva jeg ville være villig
347 til å betale for å leie en bok, men tror ikke det er mange kronene.
348 Heldigvis er det mye bøker tilgjengelig uten slike restriksjoner, og
349 de som vil ha tak i engelske bøker kan laste ned bøker som er
350 tilgjengelig uten bruksbegresninger fra
<a href=
"http://www.archive.org/
">The
351 Internet Archive
</a
>. Der er det pr. i dag
1 889 313 bøker
352 tilgjengelig. De er tilgjengelig i flere formater. Besøk
353 <a href=
"http://www.archive.org/details/texts
">oversikten over tekster
354 der
</a
> for å se hva de har.
359 <title>Debian Edu / Skolelinux based on Lenny released, work continues
</title>
360 <link>http://people.skolelinux.org/pere/blog/Debian_Edu___Skolelinux_based_on_Lenny_released__work_continues.html
</link>
361 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Debian_Edu___Skolelinux_based_on_Lenny_released__work_continues.html
</guid>
362 <pubDate>Thu,
11 Feb
2010 17:
15:
00 +
0100</pubDate>
364 <p
>On Tuesday, the Debian/Lenny based version of
365 <a href=
"http://www.skolelinux.org/
">Skolelinux
</a
> was finally
366 shipped. This was a major leap forward for the project, and I am very
367 pleased that we finally got the release wrapped up. Work on the first
368 point release starts imediately, as we plan to get that one out a
369 month after the major release, to include all fixes for bugs we found
370 and fixed too late in the release process to include last Tuesday.
</p
>
372 <p
>Perhaps it even is time for some partying?
</p
>
374 <p
>After this first point release, my plan is to focus again on the
375 next major release, based on Squeeze. We will try to get as many of
376 the fixes we need into the official Debian packages before the freeze,
377 and have just a few weeks or months to make it happen.
</p
>
382 <title>Danmark går for ODF?
</title>
383 <link>http://people.skolelinux.org/pere/blog/Danmark_g__r_for_ODF_.html
</link>
384 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Danmark_g__r_for_ODF_.html
</guid>
385 <pubDate>Fri,
29 Jan
2010 12:
00:
00 +
0100</pubDate>
387 <p
>Ble nettopp gjort oppmerksom på en
388 <a href=
"http://www.version2.dk/artikel/
13690-breaking-odf-vinder-dokumentformat-krigen
">nyhet fra Version2
</a
>
389 fra Danmark, der det hevdes at Folketinget har vedtatt at ODF skal
390 brukes som dokumentutvekslingsformat i Staten.
</p
>
392 <p
>Hyggelig lesning, spesielt hvis det viser seg at de av vedtatt
393 kravlisten for hva som skal aksepteres som referert i kommentarfeltet
395 <a href=
"http://www.version2.dk/artikel/
13693-er-ooxml-doemt-ude-her-er-kravene-til-en-offentlig-dokumentstandard
">en
396 annen artikkel
</a
> i samme nett-avis. Liker spesielt godt denne:
</p
>
398 <p
><blockquote
> Det skal demonstreres, at standarden i sin helhed kan
399 implementeres af alle direkte i sin helhed på flere
400 platforme.
</blockquote
></p
>
402 <p
>Noe slikt burde være et krav også i Norge.
</p
>