1 <?xml version=
"1.0" encoding=
"utf-8"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/'
>
4 <title>Petter Reinholdtsen - Entries tagged debian edu
</title>
5 <description>Entries tagged debian edu
</description>
6 <link>http://people.skolelinux.org/pere/blog/
</link>
10 <title>The sorry state of multimedia browser plugins in Debian
</title>
11 <link>http://people.skolelinux.org/pere/blog/The_sorry_state_of_multimedia_browser_plugins_in_Debian.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/The_sorry_state_of_multimedia_browser_plugins_in_Debian.html
</guid>
13 <pubDate>Tue,
25 Nov
2008 00:
10:
00 +
0100</pubDate>
15 <p
>Recently I have spent some time evaluating the multimedia browser
16 plugins available in Debian Lenny, to see which one we should use by
17 default in Debian Edu. We need an embedded video playing plugin with
18 control buttons to pause or stop the video, and capable of streaming
19 all the multimedia content available on the web. The test results and
20 notes are available on
21 <a href=
"http://wiki.debian.org/DebianEdu/BrowserMultimedia
">the
22 Debian wiki
</a
>. I was surprised how few of the plugins are able to
23 fill this need. My personal video player favorite, VLC, has a really
24 bad plugin which fail on a lot of the test pages. A lot of the MIME
25 types I would expect to work with any free software player (like
26 video/ogg), just do not work. And simple formats like the
27 audio/x-mplegurl format (m3u playlists), just isn
't supported by the
28 totem and vlc plugins. I hope the situation will improve soon. No
29 wonder sites use the proprietary Adobe flash to play video.
</p
>
31 <p
>For Lenny, we seem to end up with the mplayer plugin. It seem to
32 be the only one fitting our needs. :/
</p
>
37 <title>Devcamp brought us closer to the Lenny based Debian Edu release
</title>
38 <link>http://people.skolelinux.org/pere/blog/Devcamp_brought_us_closer_to_the_Lenny_based_Debian_Edu_release.html
</link>
39 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Devcamp_brought_us_closer_to_the_Lenny_based_Debian_Edu_release.html
</guid>
40 <pubDate>Sun,
7 Dec
2008 12:
00:
00 +
0100</pubDate>
42 <p
>This weekend we had a small developer gathering for Debian Edu in
43 Oslo. Most of Saturday was used for the general assemly for the
44 member organization, but the rest of the weekend I used to tune the
45 LTSP installation. LTSP now work out of the box on the
10-network.
46 Acer Aspire One proved to be a very nice thin client, with both
47 screen, mouse and keybard in a small box. Was working on getting the
48 diskless workstation setup configured out of the box, but did not
49 finish it before the weekend was up.
</p
>
51 <p
>Did not find time to look at the
4 VGA cards in one box we got from
52 the Brazilian group, so that will have to wait for the next
53 development gathering. Would love to have the Debian Edu installer
54 automatically detect and configure a multiseat setup when it find one
55 of these cards.
</p
>
60 <title>Endelig norsk stavekontroll med støtte for ord med bindestrek
</title>
61 <link>http://people.skolelinux.org/pere/blog/Endelig_norsk_stavekontroll_med_st__tte_for_ord_med_bindestrek.html
</link>
62 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Endelig_norsk_stavekontroll_med_st__tte_for_ord_med_bindestrek.html
</guid>
63 <pubDate>Fri,
26 Dec
2008 11:
00:
00 +
0100</pubDate>
65 <p
>Etter flere års mislykkede forsøk på å skrive om byggesystemet for
66 <a href=
"http://no.speling.org/
">den norske stavekontrollen for bokmål
67 og nynorsk
</a
> til å ikke bruke bindestrek som ordskillemarkør, lyktes jeg
68 endelig første juledag. Bruken av bindestrek som ordskillemarkør har
69 gjort det umulig å få med ord med bindestrek i
70 stavekontrolldatagrunnlaget, slik at ord som e-post og CD-spiller ikke
71 kunne godtas av stavekontrollen. Hadde litt tid til overs å bruke på
72 stavekontrollen, og satte meg ned med to kopier av byggsystemet og en
73 liten testdatafil, og byttet ut - med = på utvalgte steder i
74 byggsystemet og datafilen helt til jeg fikk samme resultat med det
75 gamle og det nye byggsystemet. Dette tror jeg var forsøk
4, der de
76 foregående har feilet uten at jeg klarte å forstå hvorfor. Det sier
77 kanskje litt om kompleksiteten i det originale byggsystemet som Rune
78 Kleveland laget i sin tid.
</p
>
80 <p
>Etter å ha endret byggsystemet, var neste steg å importere ordene
81 med bindestrek. Vi har en rekke slike i databasene for
82 <a href=
"http://tyge.sslug.dk/~korsvoll/nb.speling.org/htdocs/
">bokmål
</a
>
84 <a href=
"http://tyge.sslug.dk/~korsvoll/nn.speling.org/htdocs/
">nynorsk
</a
>
85 for korrektur av datagrunnlaget for stavekontrollen, og etter importen
86 skulle nå
10350 nye ord bli godkjent som korrekt stavede ord av
87 stavekontrollen.
</p
>
92 <title>Endelig er Debian Lenny gitt ut
</title>
93 <link>http://people.skolelinux.org/pere/blog/Endelig_er_Debian_Lenny_gitt_ut.html
</link>
94 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Endelig_er_Debian_Lenny_gitt_ut.html
</guid>
95 <pubDate>Sun,
15 Feb
2009 11:
50:
00 +
0100</pubDate>
97 <p
>Endelig er
<a href=
"http://www.debian.org/
">Debian
</a
>
98 <a href=
"http://www.debian.org/News/
2009/
20090214">Lenny
</a
> gitt ut.
99 Et langt steg videre for Debian-prosjektet, og en rekke nye
100 programpakker blir nå tilgjengelig for de av oss som bruker den
101 stabile utgaven av Debian. Neste steg er nå å få
102 <a href=
"http://www.skolelinux.org/
">Skolelinux
</a
> /
103 <a href=
"http://wiki.debian.org/DebianEdu/
">Debian Edu
</a
> ferdig
104 oppdatert for den nye utgaven, slik at en oppdatert versjon kan
105 slippes løs på skolene. Takk til alle debian-utviklerne som har
106 gjort dette mulig. Endelig er f.eks. fungerende avhengighetsstyrt
107 bootsekvens tilgjengelig i stabil utgave, vha pakken
108 <tt
>insserv
</tt
>.
</p
>
113 <title>Time for new LDAP schemas replacing RFC
2307?
</title>
114 <link>http://people.skolelinux.org/pere/blog/Time_for_new__LDAP_schemas_replacing_RFC_2307_.html
</link>
115 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Time_for_new__LDAP_schemas_replacing_RFC_2307_.html
</guid>
116 <pubDate>Sun,
29 Mar
2009 20:
30:
00 +
0200</pubDate>
118 <p
>The state of standardized LDAP schemas on Linux is far from
119 optimal. There is RFC
2307 documenting one way to store NIS maps in
120 LDAP, and a modified version of this normally called RFC
2307bis, with
121 some modifications to be compatible with Active Directory. The RFC
122 specification handle the content of a lot of system databases, but do
123 not handle DNS zones and DHCP configuration.
</p
>
125 <p
>In
<a href=
"http://www.skolelinux.org/
">Debian Edu/Skolelinux
</a
>,
126 we would like to store information about users, SMB clients/hosts,
127 filegroups, netgroups (users and hosts), DHCP and DNS configuration,
128 and LTSP configuration in LDAP. These objects have a lot in common,
129 but with the current LDAP schemas it is not possible to have one
130 object per entity. For example, one need to have at least three LDAP
131 objects for a given computer, one with the SMB related stuff, one with
132 DNS information and another with DHCP information. The schemas
133 provided for DNS and DHCP are impossible to combine into one LDAP
134 object. In addition, it is impossible to implement quick queries for
135 netgroup membership, because of the way NIS triples are implemented.
136 It just do not scale. I believe it is time for a few RFC
137 specifications to cleam up this mess.
</p
>
139 <p
>I would like to have one LDAP object representing each computer in
140 the network, and this object can then keep the SMB (ie host key), DHCP
141 (mac address/name) and DNS (name/IP address) settings in one place.
142 It need to be efficently stored to make sure it scale well.
</p
>
144 <p
>I would also like to have a quick way to map from a user or
145 computer and to the net group this user or computer is a member.
</p
>
147 <p
>Active Directory have done a better job than unix heads like myself
148 in this regard, and the unix side need to catch up. Time to start a
149 new IETF work group?
</p
>
154 <title>Returning from Skolelinux developer gathering
</title>
155 <link>http://people.skolelinux.org/pere/blog/Returning_from_Skolelinux_developer_gathering.html
</link>
156 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Returning_from_Skolelinux_developer_gathering.html
</guid>
157 <pubDate>Sun,
29 Mar
2009 21:
00:
00 +
0200</pubDate>
159 <p
>I
'm sitting on the train going home from this weekends Debian
160 Edu/Skolelinux development gathering. I got a bit done tuning the
161 desktop, and looked into the dynamic service location protocol
162 implementation avahi. It look like it could be useful for us. Almost
163 30 people participated, and I believe it was a great environment to
164 get to know the Skolelinux system. Walter Bender, involved in the
165 development of the Sugar educational platform, presented his stuff and
166 also helped me improve my OLPC installation. He also showed me that
167 his Turtle Art application can be used in standalone mode, and we
168 agreed that I would help getting it packaged for Debian. As a
169 standalone application it would be great for Debian Edu. We also
170 tried to get the video conferencing working with two OLPCs, but that
171 proved to be too hard for us. The application seem to need more work
172 before it is ready for me. I look forward to getting home and relax
178 <title>BSAs påstander om piratkopiering møter motstand
</title>
179 <link>http://people.skolelinux.org/pere/blog/BSAs_p__stander_om_piratkopiering_m__ter_motstand.html
</link>
180 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/BSAs_p__stander_om_piratkopiering_m__ter_motstand.html
</guid>
181 <pubDate>Sun,
17 May
2009 23:
05:
00 +
0200</pubDate>
183 <p
>Hvert år de siste årene har BSA, lobbyfronten til de store
184 programvareselskapene som Microsoft og Apple, publisert en rapport der
185 de gjetter på hvor mye piratkopiering påfører i tapte inntekter i
186 ulike land rundt om i verden. Resultatene er tendensiøse. For noen
188 <a href=
"http://global.bsa.org/globalpiracy2008/studies/globalpiracy2008.pdf
">siste
189 rapport
</a
>, og det er flere kritiske kommentarer publisert de siste
190 dagene. Et spesielt interessant kommentar fra Sverige,
191 <a href=
"http://www.idg.se/
2.1085/
1.229795/bsa-hoftade-sverigesiffror
">BSA
192 höftade Sverigesiffror
</a
>, oppsummeres slik:
</p
>
195 I sin senaste rapport slår BSA fast att
25 procent av all mjukvara i
196 Sverige är piratkopierad. Det utan att ha pratat med ett enda svenskt
197 företag.
"Man bör nog kanske inte se de här siffrorna som helt
198 exakta
", säger BSAs Sverigechef John Hugosson.
201 <p
>Mon tro om de er like metodiske når de gjetter på andelen piratkopiering i Norge? To andre kommentarer er
<a
202 href=
"http://www.vnunet.com/vnunet/comment/
2242134/bsa-piracy-figures-shot-reality
">BSA
203 piracy figures need a shot of reality
</a
> og
<a
204 href=
"http://www.michaelgeist.ca/content/view/
3958/
125/
">Does The WIPO
205 Copyright Treaty Work?
</a
></p
>
207 <p
>Fant lenkene via
<a
208 href=
"http://tech.slashdot.org/article.pl?sid=
09/
05/
17/
1632242">oppslag
209 på Slashdot
</a
>.
</p
>
214 <title>Endelig operativt webbasert medlemsregister for Fri programvare i skolen
</title>
215 <link>http://people.skolelinux.org/pere/blog/Endelig_operativt_webbasert_medlemsregister_for_Fri_programvare_i_skolen.html
</link>
216 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Endelig_operativt_webbasert_medlemsregister_for_Fri_programvare_i_skolen.html
</guid>
217 <pubDate>Mon,
2 Nov
2009 22:
40:
00 +
0100</pubDate>
219 <p
>Under helgens utviklersamling i
220 <a href=
"http://www.skolelinux.no/
">Skolelinux
</a
> fikk jeg endelig
221 satt meg ned sammen med Ronny Aasen i styret for å få et webbasert
222 medlemsregister tilbake på plass for foreningen som passer på
223 skolelinuxprosjektet. Etter flere års knot og problemer, er nå
224 memberdb satt opp og klart til bruk. Import av det gamle
225 medlemsregisteret har vist seg vanskelig, så alle medlemmer bes om å
226 registrere seg på nytt. Hvis du støtter FRiSKs formål så er du
227 hjertelig velkommen til
228 <a href=
"http://medlem.friprogramvareiskolen.no/
">å melde deg
229 inn
</a
>. Formålet lyder:
</p
>
231 <blockquote
>Linux i skolen skal tilrettelegge for og informere om bruk
232 av fri programvare, i henhold til Debian Free Software Guidelines av
233 2002-
02-
03, i den norske skolen, slik som f.eks. Linux og
234 GNU.
</blockquote
>
239 <title>Opphavet til Skolelinux-prosjektet
</title>
240 <link>http://people.skolelinux.org/pere/blog/Opphavet_til_Skolelinux_prosjektet.html
</link>
241 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Opphavet_til_Skolelinux_prosjektet.html
</guid>
242 <pubDate>Thu,
17 Dec
2009 10:
50:
00 +
0100</pubDate>
244 <p
>De færreste er klar over at Skolelinux-prosjektet kom som et resultat
245 av en avgjørelse på årsmøtet i
246 <a href=
"http://www.nuug.no/
">NUUG
</a
> i
2000-
06-
29, der Håkon Wium
247 Lie, da varamedlem i styret, tok på seg oppdraget om å starte et
248 initiativ kalt
"Teach the Teacher
", som skulle være et initiativ for
249 å få fri programvare og unix-lignende operativsystemer inn i Skolen.
250 Tanken var at en måtte starte med lærerne for at ungene skulle få
251 mulighet til å møte en bedre IT-hverdag. Jeg var tilstede på
252 møtet, og hadde sans for ideen, men intet skjedde. På vårparten
253 2001 ble det arrangert en demonstrasjon i anledning at First Tuesday
254 hadde invitert Microsoft til et møte for å fortelle om fremtidens
255 Internet. Dette provoserte endel av oss, og EFN og NUUG tok initiativ
257 <a href=
"http://www.digi.no/
60982/first-tuesday-mote-med-microsoft-protest
">en
258 demonstrasjon utenfor lokalene
2001-
05-
21</a
>. Blant de som sto bak
259 demonstrasjonen var Vidar Bakke fra NUUG og Håkon W. Lie fra EFN.
260 Etter demonstrasjonen arrangerte Håkon en fest hjemme hos seg der alle
261 som hadde vært aktive i demonstrasjonsplanlegging og gjennomføringen
262 deltok. Før festen var jeg blitt lei av å vente på at Håkon skulle ta
263 initiativ til
"Teach the Teacher
", og for å forsøke å få litt fremgang
264 besteme jeg meg for å benytte anledningen hos Håkon til å snakke om
265 behovet for å hjelpe skolene i gang med bedre datasystemer bestående
266 av fri programvare og unix-lignende operativsystemer. Flere var
267 interessert, og Knut Yrvin tenkte på ideen. Han
268 <a href=
"http://developer.skolelinux.no/brev/
2001-
06-
28-invitasjon-skolelinux.txt
">ropte
269 sammen
</a
> til et stiftelsesmøte i prosjektet i sin arbeidsgivers
270 Objectwares lokaler ved Ullevål stadion
2001-
07-
02, og jeg ble med.
271 Resten er historie. :)
</p
>
276 <title>Automatic Munin and Nagios configuration
</title>
277 <link>http://people.skolelinux.org/pere/blog/Automatic_Munin_and_Nagios_configuration.html
</link>
278 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Automatic_Munin_and_Nagios_configuration.html
</guid>
279 <pubDate>Wed,
27 Jan
2010 15:
15:
00 +
0100</pubDate>
281 <p
>One of the new features in the next Debian/Lenny based release of
282 Debian Edu/Skolelinux, which is scheduled for release in the next few
283 days, is automatic configuration of the service monitoring system
284 Nagios. The previous release had automatic configuration of trend
285 analysis using Munin, and this Lenny based release take that a step
288 <p
>When installing a Debian Edu Main-server, it is automatically
289 configured as a Munin and Nagios server. In addition, it is
290 configured to be a server for the
291 <a href=
"http://wiki.debian.org/DebianEdu/HowTo/SiteSummary
">SiteSummary
292 system
</a
> I have written for use in Debian Edu. The SiteSummary
293 system is inspired by a system used by the University of Oslo where I
294 work. In short, the system provide a centralised collector of
295 information about the computers on the network, and a client on each
296 computer submitting information to this collector. This allow for
297 automatic information on which packages are installed on each machine,
298 which kernel the machines are using, what kind of configuration the
299 packages got etc. This also allow us to automatically generate Munin
300 and Nagios configuration.
</p
>
302 <p
>All computers reporting to the sitesummary collector with the
303 munin-node package installed is automatically enabled as a Munin
304 client and graphs from the statistics collected from that machine show
305 up automatically on http://www/munin/ on the Main-server.
</p
>
307 <p
>All non-laptop computers reporting to the sitesummary collector are
308 automatically monitored for network presence (ping and any network
309 services detected). In addition, all computers (also laptops) with
310 the nagios-nrpe-server package installed and configured the way
311 sitesummary would configure it, are monitored for full disks, software
312 raid status, swap free and other checks that need to run locally on
313 the machine.
</p
>
315 <p
>The result is that the administrator on a school using Debian Edu
316 based on Lenny will be able to check the health of his installation
317 with one look at the Nagios settings, without having to spend any time
318 keeping the Nagios configuration up-to-date.
</p
>
320 <p
>The only configuration one need to do to get Nagios up and running
321 is to set the password used to get access via HTTP. The system
322 administrator need to run
"<tt
>htpasswd /etc/nagios3/htpasswd.users
323 nagiosadmin
</tt
>" to create a nagiosadmin user and set a password for
324 it to be able to log into the Nagios web pages. After that,
325 everything is taken care of.
</p
>
330 <title>Debian Edu / Skolelinux based on Lenny released, work continues
</title>
331 <link>http://people.skolelinux.org/pere/blog/Debian_Edu___Skolelinux_based_on_Lenny_released__work_continues.html
</link>
332 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Debian_Edu___Skolelinux_based_on_Lenny_released__work_continues.html
</guid>
333 <pubDate>Thu,
11 Feb
2010 17:
15:
00 +
0100</pubDate>
335 <p
>On Tuesday, the Debian/Lenny based version of
336 <a href=
"http://www.skolelinux.org/
">Skolelinux
</a
> was finally
337 shipped. This was a major leap forward for the project, and I am very
338 pleased that we finally got the release wrapped up. Work on the first
339 point release starts imediately, as we plan to get that one out a
340 month after the major release, to include all fixes for bugs we found
341 and fixed too late in the release process to include last Tuesday.
</p
>
343 <p
>Perhaps it even is time for some partying?
</p
>
345 <p
>After this first point release, my plan is to focus again on the
346 next major release, based on Squeeze. We will try to get as many of
347 the fixes we need into the official Debian packages before the freeze,
348 and have just a few weeks or months to make it happen.
</p
>
353 <title>After
6 years of waiting, the Xreset.d feature is implemented
</title>
354 <link>http://people.skolelinux.org/pere/blog/After_6_years_of_waiting__the_Xreset_d_feature_is_implemented.html
</link>
355 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/After_6_years_of_waiting__the_Xreset_d_feature_is_implemented.html
</guid>
356 <pubDate>Sat,
6 Mar
2010 18:
15:
00 +
0100</pubDate>
358 <p
>6 years ago, as part of the Debian Edu development I am involved
359 in, I asked for a hook in the kdm and gdm setup to run scripts as root
360 when the user log out. A bug was submitted against the xfree86-common
361 package in
2004 (
<a href=
"http://bugs.debian.org/
230422">#
230422</a
>),
362 and revisited every time Debian Edu was working on a new release.
363 Today, this finally paid off.
</p
>
365 <p
>The framework for this feature was today commited to the git
366 repositry for the xorg package, and the git repository for xdm has
367 been updated to use this framework. Next on my agenda is to make sure
368 kdm and gdm also add code to use this framework.
</p
>
370 <p
>In Debian Edu, we want to ability to run commands as root when the
371 user log out, to get rid of runaway processes and do general cleanup
372 after a user. With this framework in place, we finally can do that in
373 a generic way that work with all display managers using this
374 framework. My goal is to get all display managers in Debian use it,
375 similar to how they use the Xsession.d framework today.
<p
>
380 <title>Kerberos for Debian Edu/Squeeze?
</title>
381 <link>http://people.skolelinux.org/pere/blog/Kerberos_for_Debian_Edu_Squeeze_.html
</link>
382 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Kerberos_for_Debian_Edu_Squeeze_.html
</guid>
383 <pubDate>Wed,
14 Apr
2010 17:
20:
00 +
0200</pubDate>
385 <p
><a href=
"http://www.nuug.no/aktiviteter/
20100413-kerberos/
">Yesterdays
386 NUUG presentation
</a
> about Kerberos was inspiring, and reminded me
387 about the need to start using Kerberos in Skolelinux. Setting up a
388 Kerberos server seem to be straight forward, and if we get this in
389 place a long time before the Squeeze version of Debian freezes, we
390 have a chance to migrate Skolelinux away from NFSv3 for the home
391 directories, and over to an architecture where the infrastructure do
392 not have to trust IP addresses and machines, and instead can trust
393 users and cryptographic keys instead.
</p
>
395 <p
>A challenge will be integration and administration. Is there a
396 Kerberos implementation for Debian where one can control the
397 administration access in Kerberos using LDAP groups? With it, the
398 school administration will have to maintain access control using flat
399 files on the main server, which give a huge potential for errors.
</p
>
401 <p
>A related question I would like to know is how well Kerberos and
402 pam-ccreds (offline password check) work together. Anyone know?
</p
>
404 <p
>Next step will be to use Kerberos for access control in Lwat and
405 Nagios. I have no idea how much work that will be to implement. We
406 would also need to document how to integrate with Windows AD, as such
407 shared network will require two Kerberos realms that need to cooperate
408 to work properly.
</p
>
410 <p
>I believe a good start would be to start using Kerberos on the
411 skolelinux.no machines, and this way get ourselves experience with
412 configuration and integration. A natural starting point would be
413 setting up ldap.skolelinux.no as the Kerberos server, and migrate the
414 rest of the machines from PAM via LDAP to PAM via Kerberos one at the
417 <p
>If you would like to contribute to get this working in Skolelinux,
418 I recommend you to see the video recording from yesterdays NUUG
419 presentation, and start using Kerberos at home. The video show show
420 up in a few days.
</p
>
425 <title>Thoughts on roaming laptop setup for Debian Edu
</title>
426 <link>http://people.skolelinux.org/pere/blog/Thoughts_on_roaming_laptop_setup_for_Debian_Edu.html
</link>
427 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Thoughts_on_roaming_laptop_setup_for_Debian_Edu.html
</guid>
428 <pubDate>Wed,
28 Apr
2010 20:
40:
00 +
0200</pubDate>
430 <p
>For some years now, I have wondered how we should handle laptops in
431 Debian Edu. The Debian Edu infrastructure is mostly designed to
432 handle stationary computers, and less suited for computers that come
435 <p
>Now I finally believe I have an sensible idea on how to adjust
436 Debian Edu for laptops, by introducing a new profile for them, for
437 example called Roaming Workstations. Here are my thought on this.
438 The setup would consist of the following:
</p
>
442 <li
>During installation, the user name of the owner / primary user of
443 the laptop is requested and a local home directory is set up for
444 the user, with uid and gid information fetched from the LDAP
445 server. This allow the user to work also when offline. The
446 central home directory can be available in a subdirectory on
447 request, for example mounted via CIFS. It could be mounted
448 automatically when a user log in while on the Debian Edu network,
449 and unmounted when the machine is taken away (network down,
450 hibernate, etc), it can be set up to do automatic mounting on
451 request (using autofs), or perhaps some GUI button on the desktop
452 can be used to access it when needed. Perhaps it is enough to use
453 the fish protocol in KDE?
</li
>
455 <li
>Password checking is set up to use LDAP or Kerberos
456 authentication when the machine is on the Debian Edu network, and
457 to cache the password for offline checking when the machine unable
458 to reach the LDAP or Kerberos server. This can be done using
459 <a href=
"http://www.padl.com/OSS/pam_ccreds.html
">libpam-ccreds
</a
>
460 or the Fedora developed
461 <a href=
"https://fedoraproject.org/wiki/Features/SSSD
">System
462 Security Services Daemon
</a
> packages.
</li
>
464 <li
>File synchronisation with the central home directory is set up
465 using a shared directory in both the local and the central home
466 directory, using unison.
</li
>
468 <li
>Printing should be set up to print to all printers broadcasting
469 their existence on the local network, and should then work out of
470 the box with CUPS. For sites needing accurate printer quotas, some
471 system with Kerberos authentication or printing via ssh could be
472 implemented.
</li
>
474 <li
>For users that should have local root access to their laptop,
475 sudo should be used to allow this to the local user.
</li
>
477 <li
>It would be nice if user and group information from LDAP is
478 cached on the client, but given that there are entries for the
479 local user and primary group in /etc/, it should not be needed.
</li
>
483 <p
>I believe all the pieces to implement this are in Debian/testing at
484 the moment. If we work quickly, we should be able to get this ready
485 in time for the Squeeze release to freeze. Some of the pieces need
486 tweaking, like libpam-ccreds should get support for pam-auth-update
487 (
<a href=
"http://bugs.debian.org/
566718">#
566718</a
>) and nslcd (or
488 perhaps debian-edu-config) should get some integration code to stop
489 its daemon when the LDAP server is unavailable to avoid long timeouts
490 when disconnected from the net. If we get Kerberos enabled, we need
491 to make sure we avoid long timeouts there too.
</p
>
493 <p
>If you want to help out with implementing this for Debian Edu,
494 please contact us on debian-edu@lists.debian.org.
</p
>
499 <title>Forcing new users to change their password on first login
</title>
500 <link>http://people.skolelinux.org/pere/blog/Forcing_new_users_to_change_their_password_on_first_login.html
</link>
501 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Forcing_new_users_to_change_their_password_on_first_login.html
</guid>
502 <pubDate>Sun,
2 May
2010 13:
47:
00 +
0200</pubDate>
504 <p
>One interesting feature in Active Directory, is the ability to
505 create a new user with an expired password, and thus force the user to
506 change the password on the first login attempt.
</p
>
508 <p
>I
'm not quite sure how to do that with the LDAP setup in Debian
509 Edu, but did some initial testing with a local account. The account
510 and password aging information is available in /etc/shadow, but
511 unfortunately, it is not possible to specify an expiration time for
512 passwords, only a maximum age for passwords.
</p
>
514 <p
>A freshly created account (using adduser test) will have these
515 settings in /etc/shadow:
</p
>
517 <blockquote
><pre
>
518 root@tjener:~# chage -l test
519 Last password change : May
02,
2010
520 Password expires : never
521 Password inactive : never
522 Account expires : never
523 Minimum number of days between password change :
0
524 Maximum number of days between password change :
99999
525 Number of days of warning before password expires :
7
527 </pre
></blockquote
>
529 <p
>The only way I could come up with to create a user with an expired
530 account, is to change the date of the last password change to the
531 lowest value possible (January
1th
1970), and the maximum password age
532 to the difference in days between that date and today. To make it
533 simple, I went for
30 years (
30 *
365 =
10950) and January
2th (to
534 avoid testing if
0 is a valid value).
</p
>
536 <p
>After using these commands to set it up, it seem to work as
539 <blockquote
><pre
>
540 root@tjener:~# chage -d
1 test; chage -M
10950 test
541 root@tjener:~# chage -l test
542 Last password change : Jan
02,
1970
543 Password expires : never
544 Password inactive : never
545 Account expires : never
546 Minimum number of days between password change :
0
547 Maximum number of days between password change :
10950
548 Number of days of warning before password expires :
7
550 </pre
></blockquote
>
552 <p
>So far I have tested this with ssh and console, and kdm (in
553 Squeeze) login, and all ask for a new password before login in the
554 user (with ssh, I was thrown out and had to log in again).
</p
>
556 <p
>Perhaps we should set up something similar for Debian Edu, to make
557 sure only the user itself have the account password?
</p
>
559 <p
>If you want to comment on or help out with implementing this for
560 Debian Edu, please contact us on debian-edu@lists.debian.org.
</p
>
562 <p
>Update
2010-
05-
02 17:
20: Paul Tötterman tells me on IRC that the
563 shadow(
8) page in Debian/testing now state that setting the date of
564 last password change to zero (
0) will force the password to be changed
565 on the first login. This was not mentioned in the manual in Lenny, so
566 I did not notice this in my initial testing. I have tested it on
567 Squeeze, and
'<tt
>chage -d
0 username
</tt
>' do work there. I have not
568 tested it on Lenny yet.
</p
>
570 <p
>Update
2010-
05-
02-
19:
05: Jim Paris tells me via email that an
571 equivalent command to expire a password is
'<tt
>passwd -e
572 username
</tt
>', which insert zero into the date of the last password
578 <title>Sitesummary tip: Listing MAC address of all clients
</title>
579 <link>http://people.skolelinux.org/pere/blog/Sitesummary_tip__Listing_MAC_address_of_all_clients.html
</link>
580 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Sitesummary_tip__Listing_MAC_address_of_all_clients.html
</guid>
581 <pubDate>Fri,
14 May
2010 21:
10:
00 +
0200</pubDate>
583 <p
>In the recent Debian Edu versions, the
584 <a href=
"http://wiki.debian.org/DebianEdu/HowTo/SiteSummary
">sitesummary
585 system
</a
> is used to keep track of the machines in the school
586 network. Each machine will automatically report its status to the
587 central server after boot and once per night. The network setup is
588 also reported, and using this information it is possible to get the
589 MAC address of all network interfaces in the machines. This is useful
590 to update the DHCP configuration.
</p
>
592 <p
>To give some idea how to use sitesummary, here is a one-liner to
593 ist all MAC addresses of all machines reporting to sitesummary. Run
594 this on the collector host:
</p
>
596 <blockquote
><pre
>
597 perl -MSiteSummary -e
'for_all_hosts(sub { print join(
" ", get_macaddresses(shift)),
"\n
"; });
'
598 </pre
></blockquote
>
600 <p
>This will list all MAC addresses assosiated with all machine, one
601 line per machine and with space between the MAC addresses.
</p
>
603 <p
>To allow system administrators easier job at adding static DHCP
604 addresses for hosts, it would be possible to extend this to fetch
605 machine information from sitesummary and update the DHCP and DNS
606 tables in LDAP using this information. Such tool is unfortunately not
607 written yet.
</p
>
612 <title>Parallellized boot is now the default in Debian/unstable
</title>
613 <link>http://people.skolelinux.org/pere/blog/Parallellized_boot_is_now_the_default_in_Debian_unstable.html
</link>
614 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Parallellized_boot_is_now_the_default_in_Debian_unstable.html
</guid>
615 <pubDate>Fri,
14 May
2010 22:
40:
00 +
0200</pubDate>
617 <p
>Since this evening, parallel booting is the default in
618 Debian/unstable for machines using dependency based boot sequencing.
619 Apparently the testing of concurrent booting has been wider than
620 expected, if I am to believe the
621 <a href=
"http://lists.debian.org/debian-devel/
2010/
05/msg00122.html
">input
622 on debian-devel@
</a
>, and I concluded a few days ago to move forward
623 with the feature this weekend, to give us some time to detect any
624 remaining problems before Squeeze is frozen. If serious problems are
625 detected, it is simple to change the default back to sequential boot.
626 The upload of the new sysvinit package also activate a new upstream
629 More information about
630 <a href=
"http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot
">dependency
631 based boot sequencing
</a
> is available from the Debian wiki. It is
632 currently possible to disable parallel booting when one run into
633 problems caused by it, by adding this line to /etc/default/rcS:
</p
>
635 <blockquote
><pre
>
637 </pre
></blockquote
>
639 <p
>If you report any problems with dependencies in init.d scripts to
640 the BTS, please usertag the report to get it to show up at
641 <a href=
"http://bugs.debian.org/cgi-bin/pkgreport.cgi?users=initscripts-ng-devel@lists.alioth.debian.org
">the
642 list of usertagged bugs related to this
</a
>.
</p
>
647 <title>Pieces of the roaming laptop puzzle in Debian
</title>
648 <link>http://people.skolelinux.org/pere/blog/Pieces_of_the_roaming_laptop_puzzle_in_Debian.html
</link>
649 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Pieces_of_the_roaming_laptop_puzzle_in_Debian.html
</guid>
650 <pubDate>Wed,
19 May
2010 19:
00:
00 +
0200</pubDate>
652 <p
>Today, the last piece of the puzzle for roaming laptops in Debian
653 Edu finally entered the Debian archive. Today, the new
654 <a href=
"http://packages.qa.debian.org/libp/libpam-mklocaluser.html
">libpam-mklocaluser
</a
>
655 package was accepted. Two days ago, two other pieces was accepted
657 <a href=
"http://packages.qa.debian.org/p/pam-python.html
">pam-python
</a
>
658 package needed by libpam-mklocaluser, and the
659 <a href=
"http://packages.qa.debian.org/s/sssd.html
">sssd
</a
> package
660 passed NEW on Monday. In addition, the
661 <a href=
"http://packages.qa.debian.org/libp/libpam-ccreds.html
">libpam-ccreds
</a
>
662 package we need is in experimental (version
10-
4) since Saturday, and
663 hopefully will be moved to unstable soon.
</p
>
665 <p
>This collection of packages allow for two different setups for
666 roaming laptops. The traditional setup would be using libpam-ccreds,
667 nscd and libpam-mklocaluser with LDAP or Kerberos authentication,
668 which should work out of the box if the configuration changes proposed
669 for nscd in
<a href=
"http://bugs.debian.org/
485282">BTS report
670 #
485282</a
> is implemented. The alternative setup is to use sssd with
671 libpam-mklocaluser to connect to LDAP or Kerberos and let sssd take
672 care of the caching of passwords and group information.
</p
>
674 <p
>I have so far been unable to get sssd to work with the LDAP server
675 at the University, but suspect the issue is some SSL/GnuTLS related
676 problem with the server certificate. I plan to update the Debian
677 package to version
1.2, which is scheduled for next week, and hope to
678 find time to make sure the next release will include both the
679 Debian/Ubuntu specific patches. Upstream is friendly and responsive,
680 and I am sure we will find a good solution.
</p
>
682 <p
>The idea is to set up the roaming laptops to authenticate using
683 LDAP or Kerberos and create a local user with home directory in /home/
684 when a usre in LDAP logs in via KDM or GDM for the first time, and
685 cache the password for offline checking, as well as caching group
686 memberhips and other relevant LDAP information. The
687 libpam-mklocaluser package was created to make sure the local home
688 directory is in /home/, instead of /site/server/directory/ which would
689 be the home directory if pam_mkhomedir was used. To avoid confusion
690 with support requests and configuration, we do not want local laptops
691 to have users in a path that is used for the same users home directory
692 on the home directory servers.
</p
>
694 <p
>One annoying problem with gdm is that it do not show the PAM
695 message passed to the user from libpam-mklocaluser when the local user
696 is created. Instead gdm simply reject the login with some generic
697 message. The message is shown in kdm, ssh and login, so I guess it is
698 a bug in gdm. Have not investigated if there is some other message
699 type that can be used instead to get gdm to also show the message.
</p
>
701 <p
>If you want to help out with implementing this for Debian Edu,
702 please contact us on debian-edu@lists.debian.org.
</p
>
707 <title>More flexible firmware handling in debian-installer
</title>
708 <link>http://people.skolelinux.org/pere/blog/More_flexible_firmware_handling_in_debian_installer.html
</link>
709 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/More_flexible_firmware_handling_in_debian_installer.html
</guid>
710 <pubDate>Sat,
22 May
2010 21:
30:
00 +
0200</pubDate>
712 <p
>After a long break from debian-installer development, I finally
713 found time today to return to the project. Having to spend less time
714 working dependency based boot in debian, as it is almost complete now,
715 definitely helped freeing some time.
</p
>
717 <p
>A while back, I ran into a problem while working on Debian Edu. We
718 include some firmware packages on the Debian Edu CDs, those needed to
719 get disk and network controllers working. Without having these
720 firmware packages available during installation, it is impossible to
721 install Debian Edu on the given machine, and because our target group
722 are non-technical people, asking them to provide firmware packages on
723 an external medium is a support pain. Initially, I expected it to be
724 enough to include the firmware packages on the CD to get
725 debian-installer to find and use them. This proved to be wrong.
726 Next, I hoped it was enough to symlink the relevant firmware packages
727 to some useful location on the CD (tried /cdrom/ and
728 /cdrom/firmware/). This also proved to not work, and at this point I
729 found time to look at the debian-installer code to figure out what was
730 going to work.
</p
>
732 <p
>The firmware loading code is in the hw-detect package, and a closer
733 look revealed that it would only look for firmware packages outside
734 the installation media, so the CD was never checked for firmware
735 packages. It would only check USB sticks, floppies and other
736 "external
" media devices. Today I changed it to also look in the
737 /cdrom/firmware/ directory on the mounted CD or DVD, which should
738 solve the problem I ran into with Debian edu. I also changed it to
739 look in /firmware/, to make sure the installer also find firmware
740 provided in the initrd when booting the installer via PXE, to allow us
741 to provide the same feature in the PXE setup included in Debian
744 <p
>To make sure firmware deb packages with a license questions are not
745 activated without asking if the license is accepted, I extended
746 hw-detect to look for preinst scripts in the firmware packages, and
747 run these before activating the firmware during installation. The
748 license question is asked using debconf in the preinst, so this should
749 solve the issue for the firmware packages I have looked at so far.
</p
>
751 <p
>If you want to discuss the details of these features, please
752 contact us on debian-boot@lists.debian.org.
</p
>
757 <title>Parallellized boot seem to hold up well in Debian/testing
</title>
758 <link>http://people.skolelinux.org/pere/blog/Parallellized_boot_seem_to_hold_up_well_in_Debian_testing.html
</link>
759 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Parallellized_boot_seem_to_hold_up_well_in_Debian_testing.html
</guid>
760 <pubDate>Thu,
27 May
2010 23:
55:
00 +
0200</pubDate>
762 <p
>A few days ago, parallel booting was enabled in Debian/testing.
763 The feature seem to hold up pretty well, but three fairly serious
764 issues are known and should be solved:
768 <li
>The wicd package seen to
769 <a href=
"http://bugs.debian.org/
508289">break NFS mounting
</a
> and
770 <a href=
"http://bugs.debian.org/
581586">network setup
</a
> when
771 parallel booting is enabled. No idea why, but the wicd maintainer
772 seem to be on the case.
</li
>
774 <li
>The nvidia X driver seem to
775 <a href=
"http://bugs.debian.org/
583312">have a race condition
</a
>
776 triggered more easily when parallel booting is in effect. The
777 maintainer is on the case.
</li
>
779 <li
>The sysv-rc package fail to properly enable dependency based boot
780 sequencing (the shutdown is broken) when old file-rc users
781 <a href=
"http://bugs.debian.org/
575080">try to switch back
</a
> to
782 sysv-rc. One way to solve it would be for file-rc to create
783 /etc/init.d/.legacy-bootordering, and another is to try to make
784 sysv-rc more robust. Will investigate some more and probably upload a
785 workaround in sysv-rc to help those trying to move from file-rc to
786 sysv-rc get a working shutdown.
</li
>
788 </ul
></p
>
790 <p
>All in all not many surprising issues, and all of them seem
791 solvable before Squeeze is released. In addition to these there are
792 some packages with bugs in their dependencies and run level settings,
793 which I expect will be fixed in a reasonable time span.
</p
>
795 <p
>If you report any problems with dependencies in init.d scripts to
796 the BTS, please usertag the report to get it to show up at
797 <a href=
"http://bugs.debian.org/cgi-bin/pkgreport.cgi?users=initscripts-ng-devel@lists.alioth.debian.org
">the
798 list of usertagged bugs related to this
</a
>.
</p
>
800 <p
>Update: Correct bug number to file-rc issue.
</p
>
805 <title>KDM fail at boot with NVidia cards - and no one try to fix it?
</title>
806 <link>http://people.skolelinux.org/pere/blog/KDM_fail_at_boot_with_NVidia_cards___and_no_one_try_to_fix_it_.html
</link>
807 <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>
808 <pubDate>Tue,
1 Jun
2010 17:
05:
00 +
0200</pubDate>
810 <p
>It is strange to watch how a bug in Debian causing KDM to fail to
811 start at boot when an NVidia video card is used is handled. The
812 problem seem to be that the nvidia X.org driver uses a long time to
813 initialize, and this duration is longer than kdm is configured to
816 <p
>I came across two bugs related to this issue,
817 <a href=
"http://bugs.debian.org/
583312">#
583312</a
> initially filed
818 against initscripts and passed on to nvidia-glx when it became obvious
819 that the nvidia drivers were involved, and
820 <a href=
"http://bugs.debian.org/
524751">#
524751</a
> initially filed against
821 kdm and passed on to src:nvidia-graphics-drivers for unknown reasons.
</p
>
823 <p
>To me, it seem that no-one is interested in actually solving the
824 problem nvidia video card owners experience and make sure the Debian
825 distribution work out of the box for these users. The nvidia driver
826 maintainers expect kdm to be set up to wait longer, while kdm expect
827 the nvidia driver maintainers to fix the driver to start faster, and
828 while they wait for each other I guess the users end up switching to a
829 distribution that work for them. I have no idea what the solution is,
830 but I am pretty sure that waiting for each other is not it.
</p
>
832 <p
>I wonder why we end up handling bugs this way.
</p
>
837 <title>Sitesummary tip: Listing computer hardware models used at site
</title>
838 <link>http://people.skolelinux.org/pere/blog/Sitesummary_tip__Listing_computer_hardware_models_used_at_site.html
</link>
839 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Sitesummary_tip__Listing_computer_hardware_models_used_at_site.html
</guid>
840 <pubDate>Thu,
3 Jun
2010 12:
05:
00 +
0200</pubDate>
842 <p
>When using sitesummary at a site to track machines, it is possible
843 to get a list of the machine types in use thanks to the DMI
844 information extracted from each machine. The script to do so is
845 included in the sitesummary package, and here is example output from
846 the Skolelinux build servers:
</p
>
848 <blockquote
><pre
>
849 maintainer:~# /usr/lib/sitesummary/hardware-model-summary
851 Dell Computer Corporation
1
854 eserver xSeries
345 -[
8670M1X]-
1
858 </pre
></blockquote
>
860 <p
>The quality of the report depend on the quality of the DMI tables
861 provided in each machine. Here there are Intel machines without model
862 information listed with Intel as vendor and mo model, and virtual Xen
863 machines listed as [no-dmi-info]. One can add -l as a command line
864 option to list the individual machines.
</p
>
866 <p
>A larger list is
867 <a href=
"http://narvikskolen.no/sitesummary/
">available from the the
868 city of Narvik
</a
>, which uses Skolelinux on all their shools and also
869 provide the basic sitesummary report publicly. In their report there
870 are ~
1400 machines. I know they use both Ubuntu and Skolelinux on
871 their machines, and as sitesummary is available in both distributions,
872 it is trivial to get all of them to report to the same central
878 <title>A manual for standards wars...
</title>
879 <link>http://people.skolelinux.org/pere/blog/A_manual_for_standards_wars___.html
</link>
880 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/A_manual_for_standards_wars___.html
</guid>
881 <pubDate>Sun,
6 Jun
2010 14:
15:
00 +
0200</pubDate>
884 <a href=
"http://feedproxy.google.com/~r/robweir/antic-atom/~
3/QzU4RgoAGMg/weekly-links-
10.html
">blog
885 of Rob Weir
</a
> I came across the very interesting essay named
886 <a href=
"http://faculty.haas.berkeley.edu/shapiro/wars.pdf
">The Art of
887 Standards Wars
</a
> (PDF
25 pages). I recommend it for everyone
888 following the standards wars of today.
</p
>
893 <title>Skolelinux er laget for sentraldrifting, naturligvis
</title>
894 <link>http://people.skolelinux.org/pere/blog/Skolelinux_er_laget_for_sentraldrifting__naturligvis.html
</link>
895 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Skolelinux_er_laget_for_sentraldrifting__naturligvis.html
</guid>
896 <pubDate>Wed,
9 Jun
2010 12:
30:
00 +
0200</pubDate>
898 <p
>Det er merkelig hvordan myter om Skolelinux overlever. En slik
899 myte er at Skolelinux ikke kan sentraldriftes og ha sentralt plasserte
900 tjenermaskiner. I siste Computerworld Norge er
901 <a href=
"http://www.idg.no/computerworld/article169432.ece
">IT-sjef
902 Viggo Billdal i Steinkjer intervjuet
</a
>, og forteller uten
905 <blockquote
><p
>Vi hadde Skolelinux, men det har vi sluttet med. Vi testet
906 om det lønte seg med Microsoft eller en åpen plattform. Vi fant ut at
907 Microsoft egentlig var totalt sett bedre egnet. Det var store
908 driftskostnader med Skolelinux, blant annet på grunn av
909 desentraliserte servere. Det var komplisert, så vi gikk vekk fra det
910 og bruker nå bare Windows.
</p
></blockquote
>
913 href=
"https://init.linpro.no/pipermail/skolelinux.no/bruker/
2010-June/
009101.html
">rask
914 sjekk
</a
> mot den norske brukerlista i Skolelinuxprosjektet forteller
915 at Steinkjers forsøk foregikk fram til
2004/
2005, og at Røysing skole
916 i Steinkjer skal ha vært svært fornøyd med Skolelinux men at kommunen
917 overkjørte skolen og krevde at de gikk over til Windows. Et søk på
918 nettet sendte meg til
919 <a href=
"http://www.dn.no/multimedia/archive/
00090/Dagens_it_nr__18_90826a.pdf
">Dagens
920 IT nr.
18 2005</a
> hvor en kan lese på side
18:
</p
>
922 <blockquote
><p
>Inge Tømmerås ved Røysing skole i Steinkjer kjører ennå
923 Microsoft, men forteller at kompetanseutfordringen med Skolelinux ikke
924 var så stor. Jeg syntes Skolelinux var utrolig lett å drifte uten
925 forkunnskaper. Men man må jo selvsagt ha tilgang på ekstern kompetanse
926 til installasjoner og maskinvarefeil, sier Tømmerås.
</p
></blockquote
>
928 <p
>Som systemarkitekten bak Skolelinux, kan jeg bare riste på hodet
929 over påstanden om at Skolelinux krever desentraliserte tjenere.
930 Skolelinux-arkitekturen er laget for sentralisert drift og plassering
931 av tjenerne lokalt eller sentralt alt etter behov og nettkapasitet.
932 Den er modellert på nettverks- og tjenerløsningen som brukes på
933 Universitetet i Tromsø og Oslo, der jeg jobber med utvikling av
934 driftstjenester. Dette er det heldigvis noen som har fått med seg, og
935 jeg er glad for å kunne sitere fra en kommentar på den overnevnte
936 artikkelen. Min venn og gamle kollega Sturle Sunde forteller der:
939 <p
>I Flora kommune køyrer vi Skulelinux på skular med alt frå
15 til
940 meir enn
500 elevar. Dei store skulane har eigen tenar, for det er
941 mest praktisk. Eg, som er driftsansvarleg for heile nettet, ser
942 sjeldan dei tenarane fysisk, men at dei står der gjer skulane mindre
943 avhengige av eksterne linjer som er trege eller dyre. Dei minste
944 skulane har ikkje eigen tenar. Å bruke sentral tenar er heller ikkje
945 noko problem. Småskulane klarar seg fint med
1 mbit-linje til ein
946 sentral tenar eller tenaren på ein større skule.
</p
>
948 <p
>Det beste med Skulelinux er halvtjukke klientar. Dei treng ikkje
949 harddisk og brukar minimalt med ressursar på tenaren fordi dei køyrer
950 programma lokalt. Eit klasserom med
30 sju-åtte år gamle maskiner har
951 mykje meir CPU og RAM totalt enn nokon moderne tenar til under
952 millionen. Det trengst to kommandoar på den sentrale tenaren for å
953 oppdatere alle klientane, både tynne og halvtjukke. Vi har ingen
954 problem med diskar som ryk heller, som var eit problem før fordi
955 elevane sat og sparka i maskinene. Og dei krev lite bandbreidde i
956 nettet, so det er fullt mogleg å køyre slike på småskular med trege
957 linjer mot tenaren på ein større skule.
</p
>
959 <p
>Flora kommune har nesten
800 Linux-maskiner i sitt skulenett, og
960 ein person som tek seg av drift av heile nettet, inkludert tenarar,
961 klientar, operativsystem, programvare, heimekontorløysing og
962 administrasjon av brukarar.
</p
>
964 <p
>No skal det seiast at vi ikkje køyrer rein Skulelinux ut av
965 boksen. Vi har gjort ein del tilpassingar mot noko Novell-greier som
966 var der frå før, og som har komplisert installasjonen vår. Etter at
967 oppsettet var gjort har løysinga vore stabil og kravd minimalt med
971 <p
>Jeg vet at Narvik, Harstad og Oslo er kommuner der Skolelinux
972 sentraldriftes med sentrale tjenere. Det forteller meg at Steinkjers
973 IT-sjef neppe bør skylde på Skolelinux-løsningen for sine
5 år gamle
979 <title>Automatic upgrade testing from Lenny to Squeeze
</title>
980 <link>http://people.skolelinux.org/pere/blog/Automatic_upgrade_testing_from_Lenny_to_Squeeze.html
</link>
981 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Automatic_upgrade_testing_from_Lenny_to_Squeeze.html
</guid>
982 <pubDate>Fri,
11 Jun
2010 22:
50:
00 +
0200</pubDate>
984 <p
>The last few days I have done some upgrade testing in Debian, to
985 see if the upgrade from Lenny to Squeeze will go smoothly. A few bugs
986 have been discovered and reported in the process
987 (
<a href=
"http://bugs.debian.org/
585410">#
585410</a
> in nagios3-cgi,
988 <a href=
"http://bugs.debian.org/
584879">#
584879</a
> already fixed in
989 enscript and
<a href=
"http://bugs.debian.org/
584861">#
584861</a
> in
990 kdebase-workspace-data), and to get a more regular testing going on, I
991 am working on a script to automate the test.
</p
>
993 <p
>The idea is to create a Lenny chroot and use tasksel to install a
994 Gnome or KDE desktop installation inside the chroot before upgrading
995 it. To ensure no services are started in the chroot, a policy-rc.d
996 script is inserted. To make sure tasksel believe it is to install a
997 desktop on a laptop, the tasksel tests are replaced in the chroot
998 (only acceptable because this is a throw-away chroot).
</p
>
1000 <p
>A naive upgrade from Lenny to Squeeze using aptitude dist-upgrade
1001 currently always fail because udev refuses to upgrade with the kernel
1002 in Lenny, so to avoid that problem the file /etc/udev/kernel-upgrade
1003 is created. The bug report
1004 <a href=
"http://bugs.debian.org/
566000">#
566000</a
> make me suspect
1005 this problem do not trigger in a chroot, but I touch the file anyway
1006 to make sure the upgrade go well. Testing on virtual and real
1007 hardware have failed me because of udev so far, and creating this file
1008 do the trick in such settings anyway. This is a
1009 <a href=
"http://www.linuxquestions.org/questions/debian-
26/failed-dist-upgrade-due-to-udev-config_sysfs_deprecated-nonsense-
804130/
">known
1010 issue
</a
> and the current udev behaviour is intended by the udev
1011 maintainer because he lack the resources to rewrite udev to keep
1012 working with old kernels or something like that. I really wish the
1013 udev upstream would keep udev backwards compatible, to avoid such
1014 upgrade problem, but given that they fail to do so, I guess
1015 documenting the way out of this mess is the best option we got for
1016 Debian Squeeze.
</p
>
1018 <p
>Anyway, back to the task at hand, testing upgrades. This test
1019 script, which I call
<tt
>upgrade-test
</tt
> for now, is doing the
1022 <blockquote
><pre
>
1026 if [
"$
1" ] ; then
1035 exec
&lt; /dev/null
1037 mirror=http://ftp.skolelinux.org/debian
1038 tmpdir=chroot-$from-upgrade-$to-$desktop
1040 debootstrap $from $tmpdir $mirror
1041 chroot $tmpdir aptitude update
1042 cat
> $tmpdir/usr/sbin/policy-rc.d
&lt;
&lt;EOF
1046 chmod a+rx $tmpdir/usr/sbin/policy-rc.d
1050 mount -t proc proc $tmpdir/proc
1051 # Make sure proc is unmounted also on failure
1052 trap exit_cleanup EXIT INT
1054 chroot $tmpdir aptitude -y install debconf-utils
1056 # Make sure tasksel autoselection trigger. It need the test scripts
1057 # to return the correct answers.
1058 echo tasksel tasksel/desktop multiselect $desktop | \
1059 chroot $tmpdir debconf-set-selections
1061 # Include the desktop and laptop task
1062 for test in desktop laptop ; do
1063 echo
> $tmpdir/usr/lib/tasksel/tests/$test
&lt;
&lt;EOF
1067 chmod a+rx $tmpdir/usr/lib/tasksel/tests/$test
1070 DEBIAN_FRONTEND=noninteractive
1071 DEBIAN_PRIORITY=critical
1072 export DEBIAN_FRONTEND DEBIAN_PRIORITY
1073 chroot $tmpdir tasksel --new-install
1075 echo deb $mirror $to main
> $tmpdir/etc/apt/sources.list
1076 chroot $tmpdir aptitude update
1077 touch $tmpdir/etc/udev/kernel-upgrade
1078 chroot $tmpdir aptitude -y dist-upgrade
1080 </pre
></blockquote
>
1082 <p
>I suspect it would be useful to test upgrades with both apt-get and
1083 with aptitude, but I have not had time to look at how they behave
1084 differently so far. I hope to get a cron job running to do the test
1085 regularly and post the result on the web. The Gnome upgrade currently
1086 work, while the KDE upgrade fail because of the bug in
1087 kdebase-workspace-data
</p
>
1089 <p
>I am not quite sure what kind of extract from the huge upgrade logs
1090 (KDE
167 KiB, Gnome
516 KiB) it make sense to include in this blog
1091 post, so I will refrain from trying. I can report that for Gnome,
1092 aptitude report
760 packages upgraded,
448 newly installed,
129 to
1093 remove and
1 not upgraded and
1024MB need to be downloaded while for
1094 KDE the same numbers are
702 packages upgraded,
507 newly installed,
1095 193 to remove and
0 not upgraded and
1117MB need to be downloaded
</p
>
1097 <p
>I am very happy to notice that the Gnome desktop + laptop upgrade
1098 is able to migrate to dependency based boot sequencing and parallel
1099 booting without a hitch. Was unsure if there were still bugs with
1100 packages failing to clean up their obsolete init.d script during
1101 upgrades, and no such problem seem to affect the Gnome desktop+laptop
1107 <title>Lenny-
>Squeeze upgrades, removals by apt and aptitude
</title>
1108 <link>http://people.skolelinux.org/pere/blog/Lenny__Squeeze_upgrades__removals_by_apt_and_aptitude.html
</link>
1109 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Lenny__Squeeze_upgrades__removals_by_apt_and_aptitude.html
</guid>
1110 <pubDate>Sun,
13 Jun
2010 09:
05:
00 +
0200</pubDate>
1113 <a href=
"http://people.skolelinux.org/pere/blog/Automatic_upgrade_testing_from_Lenny_to_Squeeze.html
">testing
1114 of Debian upgrades
</a
> from Lenny to Squeeze continues, and I
've
1115 finally made the upgrade logs available from
1116 <a href=
"http://people.skolelinux.org/pere/debian-upgrade-testing/
">http://people.skolelinux.org/pere/debian-upgrade-testing/
</a
>.
1117 I am now testing dist-upgrade of Gnome and KDE in a chroot using both
1118 apt and aptitude, and found their differences interesting. This time
1119 I will only focus on their removal plans.
</p
>
1121 <p
>After installing a Gnome desktop and the laptop task, apt-get wants
1122 to remove
72 packages when dist-upgrading from Lenny to Squeeze. The
1123 surprising part is that it want to remove xorg and all
1124 xserver-xorg-video* drivers. Clearly not a good choice, but I am not
1125 sure why. When asking aptitude to do the same, it want to remove
129
1126 packages, but most of them are library packages I suspect are no
1127 longer needed. Both of them want to remove bluetooth packages, which
1128 I do not know. Perhaps these bluetooth packages are obsolete?
</p
>
1130 <p
>For KDE, apt-get want to remove
82 packages, among them kdebase
1131 which seem like a bad idea and xorg the same way as with Gnome. Asking
1132 aptitude for the same, it wants to remove
192 packages, none which are
1133 too surprising.
</p
>
1135 <p
>I guess the removal of xorg during upgrades should be investigated
1136 and avoided, and perhaps others as well. Here are the complete list
1137 of planned removals. The complete logs is available from the URL
1138 above. Note if you want to repeat these tests, that the upgrade test
1139 for kde+apt-get hung in the tasksel setup because of dpkg asking
1140 conffile questions. No idea why. I worked around it by using
1141 '<tt
>echo
>> /proc/
<em
>pidofdpkg
</em
>/fd/
0</tt
>' to tell dpkg to
1144 <p
><b
>apt-get gnome
72</b
>
1145 <br
>bluez-gnome cupsddk-drivers deskbar-applet gnome
1146 gnome-desktop-environment gnome-network-admin gtkhtml3.14
1147 iceweasel-gnome-support libavcodec51 libdatrie0 libgdl-
1-
0
1148 libgnomekbd2 libgnomekbdui2 libmetacity0 libslab0 libxcb-xlib0
1149 nautilus-cd-burner python-gnome2-desktop python-gnome2-extras
1150 serpentine swfdec-mozilla update-manager xorg xserver-xorg
1151 xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-evdev
1152 xserver-xorg-input-kbd xserver-xorg-input-mouse
1153 xserver-xorg-input-synaptics xserver-xorg-input-wacom
1154 xserver-xorg-video-all xserver-xorg-video-apm xserver-xorg-video-ark
1155 xserver-xorg-video-ati xserver-xorg-video-chips
1156 xserver-xorg-video-cirrus xserver-xorg-video-cyrix
1157 xserver-xorg-video-dummy xserver-xorg-video-fbdev
1158 xserver-xorg-video-glint xserver-xorg-video-i128
1159 xserver-xorg-video-i740 xserver-xorg-video-imstt
1160 xserver-xorg-video-intel xserver-xorg-video-mach64
1161 xserver-xorg-video-mga xserver-xorg-video-neomagic
1162 xserver-xorg-video-nsc xserver-xorg-video-nv
1163 xserver-xorg-video-openchrome xserver-xorg-video-r128
1164 xserver-xorg-video-radeon xserver-xorg-video-radeonhd
1165 xserver-xorg-video-rendition xserver-xorg-video-s3
1166 xserver-xorg-video-s3virge xserver-xorg-video-savage
1167 xserver-xorg-video-siliconmotion xserver-xorg-video-sis
1168 xserver-xorg-video-sisusb xserver-xorg-video-tdfx
1169 xserver-xorg-video-tga xserver-xorg-video-trident
1170 xserver-xorg-video-tseng xserver-xorg-video-v4l
1171 xserver-xorg-video-vesa xserver-xorg-video-vga
1172 xserver-xorg-video-vmware xserver-xorg-video-voodoo xulrunner-
1.9
1173 xulrunner-
1.9-gnome-support
</p
>
1175 <p
><b
>aptitude gnome
129</b
>
1177 <br
>bluez-gnome bluez-utils cpp-
4.3 cupsddk-drivers dhcdbd
1178 djvulibre-desktop finger gnome-app-install gnome-mount
1179 gnome-network-admin gnome-spell gnome-vfs-obexftp
1180 gnome-volume-manager gstreamer0.10-gnomevfs gtkhtml3.14 libao2
1181 libavahi-compat-libdnssd1 libavahi-core5 libavcodec51 libbluetooth2
1182 libcamel1.2-
11 libcdio7 libcucul0 libcupsys2 libcurl3 libdatrie0
1183 libdirectfb-
1.0-
0 libdvdread3 libedataserver1.2-
9 libeel2-
2.20
1184 libeel2-data libepc-
1.0-
1 libepc-ui-
1.0-
1 libfaad0 libgail-common
1185 libgd2-noxpm libgda3-
3 libgda3-common libgdl-
1-
0 libgdl-
1-common
1186 libggz2 libggzcore9 libggzmod4 libgksu1.2-
0 libgksuui1.0-
1 libgmyth0
1187 libgnomecups1.0-
1 libgnomekbd2 libgnomekbdui2 libgnomeprint2.2-
0
1188 libgnomeprint2.2-data libgnomeprintui2.2-
0 libgnomeprintui2.2-common
1189 libgnomevfs2-bin libgpod3 libgraphviz4 libgtkhtml2-
0
1190 libgtksourceview-common libgtksourceview1.0-
0 libgucharmap6
1191 libhesiod0 libicu38 libiw29 libkpathsea4 libltdl3 libmagick++
10
1192 libmagick10 libmalaga7 libmetacity0 libmtp7 libmysqlclient15off
1193 libnautilus-burn4 libneon27 libnm-glib0 libnm-util0 libopal-
2.2
1194 libosp5 libparted1.8-
10 libpoppler-glib3 libpoppler3 libpt-
1.10.10
1195 libpt-
1.10.10-plugins-alsa libpt-
1.10.10-plugins-v4l libraw1394-
8
1196 libsensors3 libslab0 libsmbios2 libsoup2.2-
8 libssh2-
1
1197 libsuitesparse-
3.1.0 libswfdec-
0.6-
90 libtalloc1 libtotem-plparser10
1198 libtrackerclient0 libxalan2-java libxalan2-java-gcj libxcb-xlib0
1199 libxerces2-java libxerces2-java-gcj libxklavier12 libxtrap6
1200 libxxf86misc1 libzephyr3 mysql-common nautilus-cd-burner
1201 openoffice.org-writer2latex openssl-blacklist p7zip
1202 python-
4suite-xml python-eggtrayicon python-gnome2-desktop
1203 python-gnome2-extras python-gtkhtml2 python-gtkmozembed
1204 python-numeric python-sexy serpentine svgalibg1 swfdec-gnome
1205 swfdec-mozilla totem-gstreamer update-manager wodim
1206 xserver-xorg-video-cyrix xserver-xorg-video-imstt
1207 xserver-xorg-video-nsc xserver-xorg-video-v4l xserver-xorg-video-vga
1210 <p
><b
>apt-get kde
82</b
>
1212 <br
>cupsddk-drivers karm kaudiocreator kcoloredit kcontrol kde kde-core
1213 kdeaddons kdeartwork kdebase kdebase-bin kdebase-bin-kde3
1214 kdebase-kio-plugins kdesktop kdeutils khelpcenter kicker
1215 kicker-applets knewsticker kolourpaint konq-plugins konqueror korn
1216 kpersonalizer kscreensaver ksplash libavcodec51 libdatrie0 libkiten1
1217 libxcb-xlib0 quanta superkaramba texlive-base-bin xorg xserver-xorg
1218 xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-evdev
1219 xserver-xorg-input-kbd xserver-xorg-input-mouse
1220 xserver-xorg-input-synaptics xserver-xorg-input-wacom
1221 xserver-xorg-video-all xserver-xorg-video-apm xserver-xorg-video-ark
1222 xserver-xorg-video-ati xserver-xorg-video-chips
1223 xserver-xorg-video-cirrus xserver-xorg-video-cyrix
1224 xserver-xorg-video-dummy xserver-xorg-video-fbdev
1225 xserver-xorg-video-glint xserver-xorg-video-i128
1226 xserver-xorg-video-i740 xserver-xorg-video-imstt
1227 xserver-xorg-video-intel xserver-xorg-video-mach64
1228 xserver-xorg-video-mga xserver-xorg-video-neomagic
1229 xserver-xorg-video-nsc xserver-xorg-video-nv
1230 xserver-xorg-video-openchrome xserver-xorg-video-r128
1231 xserver-xorg-video-radeon xserver-xorg-video-radeonhd
1232 xserver-xorg-video-rendition xserver-xorg-video-s3
1233 xserver-xorg-video-s3virge xserver-xorg-video-savage
1234 xserver-xorg-video-siliconmotion xserver-xorg-video-sis
1235 xserver-xorg-video-sisusb xserver-xorg-video-tdfx
1236 xserver-xorg-video-tga xserver-xorg-video-trident
1237 xserver-xorg-video-tseng xserver-xorg-video-v4l
1238 xserver-xorg-video-vesa xserver-xorg-video-vga
1239 xserver-xorg-video-vmware xserver-xorg-video-voodoo xulrunner-
1.9</p
>
1241 <p
><b
>aptitude kde
192</b
>
1242 <br
>bluez-utils cpp-
4.3 cupsddk-drivers cvs dcoprss dhcdbd
1243 djvulibre-desktop dosfstools eyesapplet fifteenapplet finger gettext
1244 ghostscript-x imlib-base imlib11 indi kandy karm kasteroids
1245 kaudiocreator kbackgammon kbstate kcoloredit kcontrol kcron kdat
1246 kdeadmin-kfile-plugins kdeartwork-misc kdeartwork-theme-window
1247 kdebase-bin-kde3 kdebase-kio-plugins kdeedu-data
1248 kdegraphics-kfile-plugins kdelirc kdemultimedia-kappfinder-data
1249 kdemultimedia-kfile-plugins kdenetwork-kfile-plugins
1250 kdepim-kfile-plugins kdepim-kio-plugins kdeprint kdesktop kdessh
1251 kdict kdnssd kdvi kedit keduca kenolaba kfax kfaxview kfouleggs
1252 kghostview khelpcenter khexedit kiconedit kitchensync klatin
1253 klickety kmailcvt kmenuedit kmid kmilo kmoon kmrml kodo kolourpaint
1254 kooka korn kpager kpdf kpercentage kpf kpilot kpoker kpovmodeler
1255 krec kregexpeditor ksayit ksim ksirc ksirtet ksmiletris ksmserver
1256 ksnake ksokoban ksplash ksvg ksysv ktip ktnef kuickshow kverbos
1257 kview kviewshell kvoctrain kwifimanager kwin kwin4 kworldclock
1258 kxsldbg libakode2 libao2 libarts1-akode libarts1-audiofile
1259 libarts1-mpeglib libarts1-xine libavahi-compat-libdnssd1
1260 libavahi-core5 libavc1394-
0 libavcodec51 libbluetooth2
1261 libboost-python1.34
.1 libcucul0 libcurl3 libcvsservice0 libdatrie0
1262 libdirectfb-
1.0-
0 libdjvulibre21 libdvdread3 libfaad0 libfreebob0
1263 libgail-common libgd2-noxpm libgraphviz4 libgsmme1c2a libgtkhtml2-
0
1264 libicu38 libiec61883-
0 libindex0 libiw29 libk3b3 libkcal2b libkcddb1
1265 libkdeedu3 libkdepim1a libkgantt0 libkiten1 libkleopatra1 libkmime2
1266 libkpathsea4 libkpimexchange1 libkpimidentities1 libkscan1
1267 libksieve0 libktnef1 liblockdev1 libltdl3 libmagick10 libmimelib1c2a
1268 libmozjs1d libmpcdec3 libneon27 libnm-util0 libopensync0 libpisock9
1269 libpoppler-glib3 libpoppler-qt2 libpoppler3 libraw1394-
8 libsmbios2
1270 libssh2-
1 libsuitesparse-
3.1.0 libtalloc1 libtiff-tools
1271 libxalan2-java libxalan2-java-gcj libxcb-xlib0 libxerces2-java
1272 libxerces2-java-gcj libxtrap6 mpeglib networkstatus
1273 openoffice.org-writer2latex pmount poster psutils quanta quanta-data
1274 superkaramba svgalibg1 tex-common texlive-base texlive-base-bin
1275 texlive-common texlive-doc-base texlive-fonts-recommended
1276 xserver-xorg-video-cyrix xserver-xorg-video-imstt
1277 xserver-xorg-video-nsc xserver-xorg-video-v4l xserver-xorg-video-vga
1278 xulrunner-
1.9</p
>
1284 <title>Idea for a change to LDAP schemas allowing DNS and DHCP info to be combined into one object
</title>
1285 <link>http://people.skolelinux.org/pere/blog/Idea_for_a_change_to_LDAP_schemas_allowing_DNS_and_DHCP_info_to_be_combined_into_one_object.html
</link>
1286 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Idea_for_a_change_to_LDAP_schemas_allowing_DNS_and_DHCP_info_to_be_combined_into_one_object.html
</guid>
1287 <pubDate>Thu,
24 Jun
2010 00:
35:
00 +
0200</pubDate>
1289 <p
>A while back, I
1290 <a href=
"http://people.skolelinux.org/pere/blog/Time_for_new__LDAP_schemas_replacing_RFC_2307_.html
">complained
1291 about the fact
</a
> that it is not possible with the provided schemas
1292 for storing DNS and DHCP information in LDAP to combine the two sets
1293 of information into one LDAP object representing a computer.
</p
>
1295 <p
>In the mean time, I discovered that a simple fix would be to make
1296 the dhcpHost object class auxiliary, to allow it to be combined with
1297 the dNSDomain object class, and thus forming one object for one
1298 computer when storing both DHCP and DNS information in LDAP.
</p
>
1300 <p
>If I understand this correctly, it is not safe to do this change
1301 without also changing the assigned number for the object class, and I
1302 do not know enough about LDAP schema design to do that properly for
1303 Debian Edu.
</p
>
1305 <p
>Anyway, for future reference, this is how I believe we could change
1307 <a href=
"http://tools.ietf.org/html/draft-ietf-dhc-ldap-schema-
00">DHCP
1308 schema
</a
> to solve at least part of the problem with the LDAP schemas
1309 available today from IETF.
</p
>
1312 --- dhcp.schema (revision
65192)
1313 +++ dhcp.schema (working copy)
1315 objectclass (
2.16.840.1.113719.1.203.6.6
1316 NAME
'dhcpHost
'
1317 DESC
'This represents information about a particular client
'
1321 MAY (dhcpLeaseDN $ dhcpHWAddress $ dhcpOptionsDN $ dhcpStatements $ dhcpComments $ dhcpOption)
1322 X-NDS_CONTAINMENT (
'dhcpService
' 'dhcpSubnet
' 'dhcpGroup
') )
1325 <p
>I very much welcome clues on how to do this properly for Debian
1326 Edu/Squeeze. We provide the DHCP schema in our debian-edu-config
1327 package, and should thus be free to rewrite it as we see fit.
</p
>
1329 <p
>If you want to help out with implementing this for Debian Edu,
1330 please contact us on debian-edu@lists.debian.org.
</p
>
1335 <title>LUMA, a very nice LDAP GUI
</title>
1336 <link>http://people.skolelinux.org/pere/blog/LUMA__a_very_nice_LDAP_GUI.html
</link>
1337 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/LUMA__a_very_nice_LDAP_GUI.html
</guid>
1338 <pubDate>Mon,
28 Jun
2010 00:
30:
00 +
0200</pubDate>
1340 <p
>The last few days I have been looking into the status of the LDAP
1341 directory in Debian Edu, and in the process I started to miss a GUI
1342 tool to browse the LDAP tree. The only one I was able to find in
1343 Debian/Squeeze and Lenny is
1344 <a href=
"http://luma.sourceforge.net/
">LUMA
</a
>, which has proved to
1345 be a great tool to get a overview of the current LDAP directory
1346 populated by default in Skolelinux. Thanks to it, I have been able to
1347 find empty and obsolete subtrees, misplaced objects and duplicate
1348 objects. It will be installed by default in Debian/Squeeze. If you
1349 are working with LDAP, give it a go. :)
</p
>
1351 <p
>I did notice one problem with it I have not had time to report to
1352 the BTS yet. There is no .desktop file in the package, so the tool do
1353 not show up in the Gnome and KDE menus, but only deep down in in the
1354 Debian submenu in KDE. I hope that can be fixed before Squeeze is
1357 <p
>I have not yet been able to get it to modify the tree yet. I would
1358 like to move objects and remove subtrees directly in the GUI, but have
1359 not found a way to do that with LUMA yet. So in the mean time, I use
1360 <a href=
"http://www.lichteblau.com/ldapvi/
">ldapvi
</a
> for that.
</p
>
1362 <p
>If you have tips on other GUI tools for LDAP that might be useful
1363 in Debian Edu, please contact us on debian-edu@lists.debian.org.
</p
>
1365 <p
>Update
2010-
06-
29: Ross Reedstrom tipped us about the
1366 <a href=
"http://packages.qa.debian.org/g/gq.html
">gq
</a
> package as a
1367 useful GUI alternative. It seem like a good tool, but is unmaintained
1368 in Debian and got a RC bug keeping it out of Squeeze. Unless that
1369 changes, it will not be an option for Debian Edu based on Squeeze.
</p
>
1374 <title>Caching password, user and group on a roaming Debian laptop
</title>
1375 <link>http://people.skolelinux.org/pere/blog/Caching_password__user_and_group_on_a_roaming_Debian_laptop.html
</link>
1376 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Caching_password__user_and_group_on_a_roaming_Debian_laptop.html
</guid>
1377 <pubDate>Thu,
1 Jul
2010 11:
40:
00 +
0200</pubDate>
1379 <p
>For a laptop, centralized user directories and password checking is
1380 a bit troubling. Laptops are typically used also when not connected
1381 to the network, and it is vital for a user to be able to log in or
1382 unlock the screen saver also when a central server is unavailable.
1383 This is possible by caching passwords and directory information (user
1384 and group attributes) locally, and the packages to do so are available
1385 in Debian. Here follow two recipes to set this up in Debian/Squeeze.
1386 It is also possible to set up in Debian/Lenny, but require more manual
1387 setup there because pam-auth-update is missing in Lenny.
</p
>
1389 <h2
>LDAP/Kerberos + nscd + libpam-ccreds + libpam-mklocaluser/pam_mkhomedir
</h2
>
1391 This is the traditional method with a twist. The password caching is
1392 provided by libpam-ccreds (version
10-
4 or later is needed on
1393 Squeeze), and the directory caching is done by nscd. The directory
1394 lookup and password checking is done using LDAP. If one want to use
1395 Kerberos for password checking the libpam-ldapd package can be
1396 replaced with libpam-krb5 or libpam-heimdal. If one is happy having a
1397 local home directory with the path listed in LDAP, one can use the
1398 pam_mkhomedir module from pam-modules to make this happen instead of
1399 using libpam-mklocaluser. A setup for pam-auth-update to enable
1400 pam_mkhomedir will have to be written until a fix for
1401 <a href=
"http://bugs.debian.org/
568577">bug #
568577</a
> is in the
1402 archive. Because I believe it is a bad idea to have local home
1403 directories using misleading paths like /site/server/partition/, I
1404 prefer to create a local user with the home directory in /home/. This
1405 is done using the libpam-mklocaluser package.
</p
>
1407 <p
>These packages need to be installed and configured
</p
>
1409 <blockquote
><pre
>
1410 libnss-ldapd libpam-ldapd nscd libpam-ccreds libpam-mklocaluser
1411 </pre
></blockquote
>
1413 <p
>The ldapd packages will ask for LDAP connection information, and
1414 one have to fill in the values that fits ones own site. Make sure the
1415 PAM part uses encrypted connections, to make sure the password is not
1416 sent in clear text to the LDAP server. I
've been unable to get TLS
1417 certificate checking for a self signed certificate working, which make
1418 LDAP authentication unsafe for Debian Edu (nslcd is not checking if it
1419 is talking to the correct LDAP server), and very much welcome feedback
1420 on how to get this working.
</p
>
1422 <p
>Because nscd do not have a default configuration fit for offline
1423 caching until
<a href=
"http://bugs.debian.org/
485282">bug #
485282</a
>
1424 is fixed, this configuration should be used instead of the one
1425 currently in /etc/nscd.conf. The changes are in the fields
1426 reload-count and positive-time-to-live, and is based on the
1427 instructions I found in the
1428 <a href=
"http://www.flyn.org/laptopldap/
">LDAP for Mobile Laptops
</a
>
1429 instructions by Flyn Computing.
</p
>
1431 <blockquote
><pre
>
1433 reload-count unlimited
1436 enable-cache passwd yes
1437 positive-time-to-live passwd
2592000
1438 negative-time-to-live passwd
20
1439 suggested-size passwd
211
1440 check-files passwd yes
1441 persistent passwd yes
1443 max-db-size passwd
33554432
1444 auto-propagate passwd yes
1446 enable-cache group yes
1447 positive-time-to-live group
2592000
1448 negative-time-to-live group
20
1449 suggested-size group
211
1450 check-files group yes
1451 persistent group yes
1453 max-db-size group
33554432
1454 auto-propagate group yes
1456 enable-cache hosts no
1457 positive-time-to-live hosts
2592000
1458 negative-time-to-live hosts
20
1459 suggested-size hosts
211
1460 check-files hosts yes
1461 persistent hosts yes
1463 max-db-size hosts
33554432
1465 enable-cache services yes
1466 positive-time-to-live services
2592000
1467 negative-time-to-live services
20
1468 suggested-size services
211
1469 check-files services yes
1470 persistent services yes
1472 max-db-size services
33554432
1473 </pre
></blockquote
>
1475 <p
>While we wait for a mechanism to update /etc/nsswitch.conf
1476 automatically like the one provided in
1477 <a href=
"http://bugs.debian.org/
496915">bug #
496915</a
>, the file
1478 content need to be manually replaced to ensure LDAP is used as the
1479 directory service on the machine. /etc/nsswitch.conf should normally
1480 look like this:
</p
>
1482 <blockquote
><pre
>
1486 hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
1492 netgroup: files ldap
1493 </pre
></blockquote
>
1495 <p
>The important parts are that ldap is listed last for passwd, group,
1496 shadow and netgroup.
</p
>
1498 <p
>With these changes in place, any user in LDAP will be able to log
1499 in locally on the machine using for example kdm, get a local home
1500 directory created and have the password as well as user and group
1503 <h2
>LDAP/Kerberos + nss-updatedb + libpam-ccreds +
1504 libpam-mklocaluser/pam_mkhomedir
</h2
>
1506 <p
>Because nscd have had its share of problems, and seem to have
1507 problems doing proper caching, I
've seen suggestions and recipes to
1508 use nss-updatedb to copy parts of the LDAP database locally when the
1509 LDAP database is available. I have not tested such setup, because I
1510 discovered sssd.
</p
>
1512 <h2
>LDAP/Kerberos + sssd + libpam-mklocaluser
</h2
>
1514 <p
>A more flexible and robust setup than the nscd combination
1515 mentioned earlier that has shown up recently, is the
1516 <a href=
"https://fedorahosted.org/sssd/
">sssd
</a
> package from Redhat.
1517 It is part of the
<a href=
"http://www.freeipa.org/
">FreeIPA
</A
> project
1518 to provide a Active Directory like directory service for Linux
1519 machines. The sssd system combines the caching of passwords and user
1520 information into one package, and remove the need for nscd and
1521 libpam-ccreds. It support LDAP and Kerberos, but not NIS. Version
1522 1.2 do not support netgroups, but it is said that it will support this
1523 in version
1.5 expected to show up later in
2010. Because the
1524 <a href=
"http://packages.qa.debian.org/s/sssd.html
">sssd package
</a
>
1525 was missing in Debian, I ended up co-maintaining it with Werner, and
1526 version
1.2 is now in testing.
1528 <p
>These packages need to be installed and configured to get the
1529 roaming setup I want
</p
>
1531 <blockquote
><pre
>
1532 libpam-sss libnss-sss libpam-mklocaluser
1533 </pre
></blockquote
>
1535 The complete setup of sssd is done by editing/creating
1536 <tt
>/etc/sssd/sssd.conf
</tt
>.
1538 <blockquote
><pre
>
1540 config_file_version =
2
1541 reconnection_retries =
3
1547 filter_groups = root
1549 reconnection_retries =
3
1552 reconnection_retries =
3
1556 cache_credentials = true
1559 auth_provider = ldap
1560 chpass_provider = ldap
1562 ldap_uri = ldap://ldap
1563 ldap_search_base = dc=skole,dc=skolelinux,dc=no
1564 ldap_tls_reqcert = never
1565 ldap_tls_cacert = /etc/ssl/certs/ca-certificates.crt
1566 </pre
></blockquote
>
1568 <p
>I got the same problem here with certificate checking. Had to set
1569 "ldap_tls_reqcert = never
" to get it working.
</p
>
1571 <p
>With the libnss-sss package in testing at the moment, the
1572 nsswitch.conf file is update automatically, so there is no need to
1573 modify it manually.
</p
>
1575 <p
>If you want to help out with implementing this for Debian Edu,
1576 please contact us on debian-edu@lists.debian.org.
</p
>
1581 <title>Lenny-
>Squeeze upgrades, apt vs aptitude with the Gnome desktop
</title>
1582 <link>http://people.skolelinux.org/pere/blog/Lenny__Squeeze_upgrades__apt_vs_aptitude_with_the_Gnome_desktop.html
</link>
1583 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Lenny__Squeeze_upgrades__apt_vs_aptitude_with_the_Gnome_desktop.html
</guid>
1584 <pubDate>Sat,
3 Jul
2010 23:
55:
00 +
0200</pubDate>
1586 <p
>Here is a short update on my
<a
1587 href=
"http://people.skolelinux.org/~pere/debian-upgrade-testing/
">my
1588 Debian Lenny-
>Squeeze upgrade testing
</a
>. Here is a summary of the
1589 difference for Gnome when it is upgraded by apt-get and aptitude. I
'm
1590 not reporting the status for KDE, because the upgrade crashes when
1591 aptitude try because of missing conflicts
1592 (
<a href=
"http://bugs.debian.org/
584861">#
584861</a
> and
1593 <a href=
"http://bugs.debian.org/
585716">#
585716</a
>).
</p
>
1595 <p
>At the end of the upgrade test script, dpkg -l is executed to get a
1596 complete list of the installed packages. Based on this I see these
1597 differences when I did a test run today. As usual, I do not really
1598 know what the correct set of packages would be, but thought it best to
1599 publish the difference.
</p
>
1601 <p
>Installed using apt-get, missing with aptitude
</p
>
1603 <blockquote
><p
>
1604 at-spi cpp-
4.3 finger gnome-spell gstreamer0.10-gnomevfs
1605 libatspi1.0-
0 libcupsys2 libeel2-data libgail-common libgdl-
1-common
1606 libgnomeprint2.2-data libgnomeprintui2.2-common libgnomevfs2-bin
1607 libgtksourceview-common libpt-
1.10.10-plugins-alsa
1608 libpt-
1.10.10-plugins-v4l libservlet2.4-java libxalan2-java
1609 libxerces2-java openoffice.org-writer2latex openssl-blacklist p7zip
1610 python-
4suite-xml python-eggtrayicon python-gtkhtml2
1611 python-gtkmozembed svgalibg1 xserver-xephyr zip
1612 </p
></blockquote
>
1614 <p
>Installed using apt-get, removed with aptitude
</p
>
1616 <blockquote
><p
>
1617 bluez-utils dhcdbd djvulibre-desktop epiphany-gecko
1618 gnome-app-install gnome-mount gnome-vfs-obexftp gnome-volume-manager
1619 libao2 libavahi-compat-libdnssd1 libavahi-core5 libbind9-
50
1620 libbluetooth2 libcamel1.2-
11 libcdio7 libcucul0 libcurl3
1621 libdirectfb-
1.0-
0 libdvdread3 libedata-cal1.2-
6 libedataserver1.2-
9
1622 libeel2-
2.20 libepc-
1.0-
1 libepc-ui-
1.0-
1 libexchange-storage1.2-
3
1623 libfaad0 libgd2-noxpm libgda3-
3 libgda3-common libggz2 libggzcore9
1624 libggzmod4 libgksu1.2-
0 libgksuui1.0-
1 libgmyth0 libgnome-desktop-
2
1625 libgnome-pilot2 libgnomecups1.0-
1 libgnomeprint2.2-
0
1626 libgnomeprintui2.2-
0 libgpod3 libgraphviz4 libgtkhtml2-
0
1627 libgtksourceview1.0-
0 libgucharmap6 libhesiod0 libicu38 libisccc50
1628 libisccfg50 libiw29 libkpathsea4 libltdl3 liblwres50 libmagick++
10
1629 libmagick10 libmalaga7 libmtp7 libmysqlclient15off libnautilus-burn4
1630 libneon27 libnm-glib0 libnm-util0 libopal-
2.2 libosp5
1631 libparted1.8-
10 libpisock9 libpisync1 libpoppler-glib3 libpoppler3
1632 libpt-
1.10.10 libraw1394-
8 libsensors3 libsmbios2 libsoup2.2-
8
1633 libssh2-
1 libsuitesparse-
3.1.0 libswfdec-
0.6-
90 libtalloc1
1634 libtotem-plparser10 libtrackerclient0 libvoikko1 libxalan2-java-gcj
1635 libxerces2-java-gcj libxklavier12 libxtrap6 libxxf86misc1 libzephyr3
1636 mysql-common swfdec-gnome totem-gstreamer wodim
1637 </p
></blockquote
>
1639 <p
>Installed using aptitude, missing with apt-get
</p
>
1641 <blockquote
><p
>
1642 gnome gnome-desktop-environment hamster-applet python-gnomeapplet
1643 python-gnomekeyring python-wnck rhythmbox-plugins xorg
1644 xserver-xorg-input-all xserver-xorg-input-evdev
1645 xserver-xorg-input-kbd xserver-xorg-input-mouse
1646 xserver-xorg-input-synaptics xserver-xorg-video-all
1647 xserver-xorg-video-apm xserver-xorg-video-ark xserver-xorg-video-ati
1648 xserver-xorg-video-chips xserver-xorg-video-cirrus
1649 xserver-xorg-video-dummy xserver-xorg-video-fbdev
1650 xserver-xorg-video-glint xserver-xorg-video-i128
1651 xserver-xorg-video-i740 xserver-xorg-video-mach64
1652 xserver-xorg-video-mga xserver-xorg-video-neomagic
1653 xserver-xorg-video-nouveau xserver-xorg-video-nv
1654 xserver-xorg-video-r128 xserver-xorg-video-radeon
1655 xserver-xorg-video-radeonhd xserver-xorg-video-rendition
1656 xserver-xorg-video-s3 xserver-xorg-video-s3virge
1657 xserver-xorg-video-savage xserver-xorg-video-siliconmotion
1658 xserver-xorg-video-sis xserver-xorg-video-sisusb
1659 xserver-xorg-video-tdfx xserver-xorg-video-tga
1660 xserver-xorg-video-trident xserver-xorg-video-tseng
1661 xserver-xorg-video-vesa xserver-xorg-video-vmware
1662 xserver-xorg-video-voodoo
1663 </p
></blockquote
>
1665 <p
>Installed using aptitude, removed with apt-get
</p
>
1667 <blockquote
><p
>
1668 deskbar-applet xserver-xorg xserver-xorg-core
1669 xserver-xorg-input-wacom xserver-xorg-video-intel
1670 xserver-xorg-video-openchrome
1671 </p
></blockquote
>
1673 <p
>I was told on IRC that the xorg-xserver package was
1674 <a href=
"http://git.debian.org/?p=pkg-xorg/xserver/xorg-server.git;a=commit;h=
9c8080d06c457932d3bfec021c69ac000aa60120
">changed
1675 in git
</a
> today to try to get apt-get to not remove xorg completely.
1676 No idea when it hits Squeeze, but when it does I hope it will reduce
1677 the difference somewhat.
1682 <title>jXplorer, a very nice LDAP GUI
</title>
1683 <link>http://people.skolelinux.org/pere/blog/jXplorer__a_very_nice_LDAP_GUI.html
</link>
1684 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/jXplorer__a_very_nice_LDAP_GUI.html
</guid>
1685 <pubDate>Fri,
9 Jul
2010 12:
55:
00 +
0200</pubDate>
1688 <a href=
"http://people.skolelinux.org/pere/blog/LUMA__a_very_nice_LDAP_GUI.html
">my
1689 last post
</a
> about available LDAP tools in Debian, I was told about a
1690 LDAP GUI that is even better than luma. The java application
1691 <a href=
"http://jxplorer.org/
">jXplorer
</a
> is claimed to be capable of
1692 moving LDAP objects and subtrees using drag-and-drop, and can
1693 authenticate using Kerberos. I have only tested the Kerberos
1694 authentication, but do not have a LDAP setup allowing me to rewrite
1695 LDAP with my test user yet. It is
1696 <a href=
"http://packages.qa.debian.org/j/jxplorer.html
">available in
1697 Debian
</a
> testing and unstable at the moment. The only problem I
1698 have with it is how it handle errors. If something go wrong, its
1699 non-intuitive behaviour require me to go through some query work list
1700 and remove the failing query. Nothing big, but very annoying.
</p
>
1705 <title>Idea for storing LTSP configuration in LDAP
</title>
1706 <link>http://people.skolelinux.org/pere/blog/Idea_for_storing_LTSP_configuration_in_LDAP.html
</link>
1707 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Idea_for_storing_LTSP_configuration_in_LDAP.html
</guid>
1708 <pubDate>Sun,
11 Jul
2010 22:
00:
00 +
0200</pubDate>
1710 <p
>Vagrant mentioned on IRC today that ltsp_config now support
1711 sourcing files from /usr/share/ltsp/ltsp_config.d/ on the thin
1712 clients, and that this can be used to fetch configuration from LDAP if
1713 Debian Edu choose to store configuration there.
</p
>
1715 <p
>Armed with this information, I got inspired and wrote a test module
1716 to get configuration from LDAP. The idea is to look up the MAC
1717 address of the client in LDAP, and look for attributes on the form
1718 ltspconfigsetting=value, and use this to export SETTING=value to the
1719 LTSP clients.
</p
>
1721 <p
>The goal is to be able to store the LTSP configuration attributes
1722 in a
"computer
" LDAP object used by both DNS and DHCP, and thus
1723 allowing us to store all information about a computer in one place.
</p
>
1725 <p
>This is a untested draft implementation, and I welcome feedback on
1726 this approach. A real LDAP schema for the ltspClientAux objectclass
1727 need to be written. Comments, suggestions, etc?
</p
>
1729 <blockquote
><pre
>
1730 # Store in /opt/ltsp/$arch/usr/share/ltsp/ltsp_config.d/ldap-config
1732 # Fetch LTSP client settings from LDAP based on MAC address
1734 # Uses ethernet address as stored in the dhcpHost objectclass using
1735 # the dhcpHWAddress attribute or ethernet address stored in the
1736 # ieee802Device objectclass with the macAddress attribute.
1738 # This module is written to be schema agnostic, and only depend on the
1739 # existence of attribute names.
1741 # The LTSP configuration variables are saved directly using a
1742 # ltspConfig prefix and uppercasing the rest of the attribute name.
1743 # To set the SERVER variable, set the ltspConfigServer attribute.
1745 # Some LDAP schema should be created with all the relevant
1746 # configuration settings. Something like this should work:
1748 # objectclass (
1.1.2.2 NAME
'ltspClientAux
'
1751 # MAY ( ltspConfigServer $ ltsConfigSound $ ... )
1753 LDAPSERVER=$(debian-edu-ldapserver)
1754 if [
"$LDAPSERVER
" ] ; then
1755 LDAPBASE=$(debian-edu-ldapserver -b)
1756 for MAC in $(LANG=C ifconfig |grep -i hwaddr| awk
'{print $
5}
'|sort -u) ; do
1757 filter=
"(|(dhcpHWAddress=ethernet $MAC)(macAddress=$MAC))
"
1758 ldapsearch -h
"$LDAPSERVER
" -b
"$LDAPBASE
" -v -x
"$filter
" | \
1759 grep
'^ltspConfig
' | while read attr value ; do
1760 # Remove prefix and convert to upper case
1761 attr=$(echo $attr | sed
's/^ltspConfig//i
' | tr a-z A-Z)
1762 # bass value on to clients
1763 eval
"$attr=$value; export $attr
"
1767 </pre
></blockquote
>
1769 <p
>I
'm not sure this shell construction will work, because I suspect
1770 the while block might end up in a subshell causing the variables set
1771 there to not show up in ltsp-config, but if that is the case I am sure
1772 the code can be restructured to make sure the variables are passed on.
1773 I expect that can be solved with some testing. :)
</p
>
1775 <p
>If you want to help out with implementing this for Debian Edu,
1776 please contact us on debian-edu@lists.debian.org.
</p
>
1778 <p
>Update
2010-
07-
17: I am aware of another effort to store LTSP
1779 configuration in LDAP that was created around year
2000 by
1780 <a href=
"http://www.pcxperience.com/thinclient/documentation/ldap.html
">PC
1781 Xperience, Inc.,
2000</a
>. I found its
1782 <a href=
"http://people.redhat.com/alikins/ltsp/ldap/
">files
</a
> on a
1783 personal home page over at redhat.com.
</p
>
1788 <title>Combining PowerDNS and ISC DHCP LDAP objects
</title>
1789 <link>http://people.skolelinux.org/pere/blog/Combining_PowerDNS_and_ISC_DHCP_LDAP_objects.html
</link>
1790 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Combining_PowerDNS_and_ISC_DHCP_LDAP_objects.html
</guid>
1791 <pubDate>Wed,
14 Jul
2010 23:
45:
00 +
0200</pubDate>
1793 <p
>For a while now, I have wanted to find a way to change the DNS and
1794 DHCP services in Debian Edu to use the same LDAP objects for a given
1795 computer, to avoid the possibility of having a inconsistent state for
1796 a computer in LDAP (as in DHCP but no DNS entry or the other way
1797 around) and make it easier to add computers to LDAP.
</p
>
1799 <p
>I
've looked at how powerdns and dhcpd is using LDAP, and using this
1800 information finally found a solution that seem to work.
</p
>
1802 <p
>The old setup required three LDAP objects for a given computer.
1803 One forward DNS entry, one reverse DNS entry and one DHCP entry. If
1804 we switch powerdns to use its strict LDAP method (ldap-method=strict
1805 in pdns-debian-edu.conf), the forward and reverse DNS entries are
1806 merged into one while making it impossible to transfer the reverse map
1807 to a slave DNS server.
</p
>
1809 <p
>If we also replace the object class used to get the DNS related
1810 attributes to one allowing these attributes to be combined with the
1811 dhcphost object class, we can merge the DNS and DHCP entries into one.
1812 I
've written such object class in the dnsdomainaux.schema file (need
1813 proper OIDs, but that is a minor issue), and tested the setup. It
1814 seem to work.
</p
>
1816 <p
>With this test setup in place, we can get away with one LDAP object
1817 for both DNS and DHCP, and even the LTSP configuration I suggested in
1818 an earlier email. The combined LDAP object will look something like
1821 <blockquote
><pre
>
1822 dn: cn=hostname,cn=group1,cn=THINCLIENTS,cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
1824 objectClass: dhcphost
1825 objectclass: domainrelatedobject
1826 objectclass: dnsdomainaux
1827 associateddomain: hostname.intern
1828 arecord:
10.11.12.13
1829 dhcphwaddress: ethernet
00:
00:
00:
00:
00:
00
1830 dhcpstatements: fixed-address hostname
1832 </pre
></blockquote
>
1834 <p
>The DNS server uses the associateddomain and arecord entries, while
1835 the DHCP server uses the dhcphwaddress and dhcpstatements entries
1836 before asking DNS to resolve the fixed-adddress. LTSP will use
1837 dhcphwaddress or associateddomain and the ldapconfig* attributes.
</p
>
1839 <p
>I am not yet sure if I can get the DHCP server to look for its
1840 dhcphost in a different location, to allow us to put the objects
1841 outside the
"DHCP Config
" subtree, but hope to figure out a way to do
1842 that. If I can
't figure out a way to do that, we can still get rid of
1843 the hosts subtree and move all its content into the DHCP Config tree
1844 (which probably should be renamed to be more related to the new
1845 content. I suspect cn=dnsdhcp,ou=services or something like that
1846 might be a good place to put it.
</p
>
1848 <p
>If you want to help out with implementing this for Debian Edu,
1849 please contact us on debian-edu@lists.debian.org.
</p
>
1854 <title>What are they searching for - PowerDNS and ISC DHCP in LDAP
</title>
1855 <link>http://people.skolelinux.org/pere/blog/What_are_they_searching_for___PowerDNS_and_ISC_DHCP_in_LDAP.html
</link>
1856 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/What_are_they_searching_for___PowerDNS_and_ISC_DHCP_in_LDAP.html
</guid>
1857 <pubDate>Sat,
17 Jul
2010 21:
00:
00 +
0200</pubDate>
1860 <a href=
"http://people.skolelinux.org/pere/blog/Time_for_new__LDAP_schemas_replacing_RFC_2307_.html
">followup
</a
>
1862 <a href=
"http://people.skolelinux.org/pere/blog/Idea_for_a_change_to_LDAP_schemas_allowing_DNS_and_DHCP_info_to_be_combined_into_one_object.html
">previous
1864 <a href=
"http://people.skolelinux.org/pere/blog/Combining_PowerDNS_and_ISC_DHCP_LDAP_objects.html
">merging
1865 all
</a
> the computer related LDAP objects in Debian Edu.
</p
>
1867 <p
>As a step to try to see if it possible to merge the DNS and DHCP
1868 LDAP objects, I have had a look at how the packages pdns-backend-ldap
1869 and dhcp3-server-ldap in Debian use the LDAP server. The two
1870 implementations are quite different in how they use LDAP.
</p
>
1872 To get this information, I started slapd with debugging enabled and
1873 dumped the debug output to a file to get the LDAP searches performed
1874 on a Debian Edu main-server. Here is a summary.
1876 <p
><strong
>powerdns
</strong
></p
>
1878 <a href=
"http://www.linuxnetworks.de/doc/index.php/PowerDNS_LDAP_Backend
">Clues
1879 on how to
</a
> set up PowerDNS to use a LDAP backend is available on
1882 <p
>PowerDNS have two modes of operation using LDAP as its backend.
1883 One
"strict
" mode where the forward and reverse DNS lookups are done
1884 using the same LDAP objects, and a
"tree
" mode where the forward and
1885 reverse entries are in two different subtrees in LDAP with a structure
1886 based on the DNS names, as in tjener.intern and
1887 2.2.0.10.in-addr.arpa.
</p
>
1889 <p
>In tree mode, the server is set up to use a LDAP subtree as its
1890 base, and uses a
"base
" scoped search for the DNS name by adding
1891 "dc=tjener,dc=intern,
" to the base with a filter for
1892 "(associateddomain=tjener.intern)
" for the forward entry and
1893 "dc=
2,dc=
2,dc=
0,dc=
10,dc=in-addr,dc=arpa,
" with a filter for
1894 "(associateddomain=
2.2.0.10.in-addr.arpa)
" for the reverse entry. For
1895 forward entries, it is looking for attributes named dnsttl, arecord,
1896 nsrecord, cnamerecord, soarecord, ptrrecord, hinforecord, mxrecord,
1897 txtrecord, rprecord, afsdbrecord, keyrecord, aaaarecord, locrecord,
1898 srvrecord, naptrrecord, kxrecord, certrecord, dsrecord, sshfprecord,
1899 ipseckeyrecord, rrsigrecord, nsecrecord, dnskeyrecord, dhcidrecord,
1900 spfrecord and modifytimestamp. For reverse entries it is looking for
1901 the attributes dnsttl, arecord, nsrecord, cnamerecord, soarecord,
1902 ptrrecord, hinforecord, mxrecord, txtrecord, rprecord, aaaarecord,
1903 locrecord, srvrecord, naptrrecord and modifytimestamp. The equivalent
1904 ldapsearch commands could look like this:
</p
>
1906 <blockquote
><pre
>
1907 ldapsearch -h ldap \
1908 -b dc=tjener,dc=intern,ou=hosts,dc=skole,dc=skolelinux,dc=no \
1909 -s base -x
'(associateddomain=tjener.intern)
' dNSTTL aRecord nSRecord \
1910 cNAMERecord sOARecord pTRRecord hInfoRecord mXRecord tXTRecord \
1911 rPRecord aFSDBRecord KeyRecord aAAARecord lOCRecord sRVRecord \
1912 nAPTRRecord kXRecord certRecord dSRecord sSHFPRecord iPSecKeyRecord \
1913 rRSIGRecord nSECRecord dNSKeyRecord dHCIDRecord sPFRecord modifyTimestamp
1915 ldapsearch -h ldap \
1916 -b dc=
2,dc=
2,dc=
0,dc=
10,dc=in-addr,dc=arpa,ou=hosts,dc=skole,dc=skolelinux,dc=no \
1917 -s base -x
'(associateddomain=
2.2.0.10.in-addr.arpa)
'
1918 dnsttl, arecord, nsrecord, cnamerecord soarecord ptrrecord \
1919 hinforecord mxrecord txtrecord rprecord aaaarecord locrecord \
1920 srvrecord naptrrecord modifytimestamp
1921 </pre
></blockquote
>
1923 <p
>In Debian Edu/Lenny, the PowerDNS tree mode is used with
1924 ou=hosts,dc=skole,dc=skolelinux,dc=no as the base, and these are two
1925 example LDAP objects used there. In addition to these objects, the
1926 parent objects all th way up to ou=hosts,dc=skole,dc=skolelinux,dc=no
1927 also exist.
</p
>
1929 <blockquote
><pre
>
1930 dn: dc=tjener,dc=intern,ou=hosts,dc=skole,dc=skolelinux,dc=no
1932 objectclass: dnsdomain
1933 objectclass: domainrelatedobject
1936 associateddomain: tjener.intern
1938 dn: dc=
2,dc=
2,dc=
0,dc=
10,dc=in-addr,dc=arpa,ou=hosts,dc=skole,dc=skolelinux,dc=no
1940 objectclass: dnsdomain2
1941 objectclass: domainrelatedobject
1943 ptrrecord: tjener.intern
1944 associateddomain:
2.2.0.10.in-addr.arpa
1945 </pre
></blockquote
>
1947 <p
>In strict mode, the server behaves differently. When looking for
1948 forward DNS entries, it is doing a
"subtree
" scoped search with the
1949 same base as in the tree mode for a object with filter
1950 "(associateddomain=tjener.intern)
" and requests the attributes dnsttl,
1951 arecord, nsrecord, cnamerecord, soarecord, ptrrecord, hinforecord,
1952 mxrecord, txtrecord, rprecord, aaaarecord, locrecord, srvrecord,
1953 naptrrecord and modifytimestamp. For reverse entires it also do a
1954 subtree scoped search but this time the filter is
"(arecord=
10.0.2.2)
"
1955 and the requested attributes are associateddomain, dnsttl and
1956 modifytimestamp. In short, in strict mode the objects with ptrrecord
1957 go away, and the arecord attribute in the forward object is used
1960 <p
>The forward and reverse searches can be simulated using ldapsearch
1961 like this:
</p
>
1963 <blockquote
><pre
>
1964 ldapsearch -h ldap -b ou=hosts,dc=skole,dc=skolelinux,dc=no -s sub -x \
1965 '(associateddomain=tjener.intern)
' dNSTTL aRecord nSRecord \
1966 cNAMERecord sOARecord pTRRecord hInfoRecord mXRecord tXTRecord \
1967 rPRecord aFSDBRecord KeyRecord aAAARecord lOCRecord sRVRecord \
1968 nAPTRRecord kXRecord certRecord dSRecord sSHFPRecord iPSecKeyRecord \
1969 rRSIGRecord nSECRecord dNSKeyRecord dHCIDRecord sPFRecord modifyTimestamp
1971 ldapsearch -h ldap -b ou=hosts,dc=skole,dc=skolelinux,dc=no -s sub -x \
1972 '(arecord=
10.0.2.2)
' associateddomain dnsttl modifytimestamp
1973 </pre
></blockquote
>
1975 <p
>In addition to the forward and reverse searches , there is also a
1976 search for SOA records, which behave similar to the forward and
1977 reverse lookups.
</p
>
1979 <p
>A thing to note with the PowerDNS behaviour is that it do not
1980 specify any objectclass names, and instead look for the attributes it
1981 need to generate a DNS reply. This make it able to work with any
1982 objectclass that provide the needed attributes.
</p
>
1984 <p
>The attributes are normally provided in the cosine (RFC
1274) and
1985 dnsdomain2 schemas. The latter is used for reverse entries like
1986 ptrrecord and recent DNS additions like aaaarecord and srvrecord.
</p
>
1988 <p
>In Debian Edu, we have created DNS objects using the object classes
1989 dcobject (for dc), dnsdomain or dnsdomain2 (structural, for the DNS
1990 attributes) and domainrelatedobject (for associatedDomain). The use
1991 of structural object classes make it impossible to combine these
1992 classes with the object classes used by DHCP.
</p
>
1994 <p
>There are other schemas that could be used too, for example the
1995 dnszone structural object class used by Gosa and bind-sdb for the DNS
1996 attributes combined with the domainrelatedobject object class, but in
1997 this case some unused attributes would have to be included as well
1998 (zonename and relativedomainname).
</p
>
2000 <p
>My proposal for Debian Edu would be to switch PowerDNS to strict
2001 mode and not use any of the existing objectclasses (dnsdomain,
2002 dnsdomain2 and dnszone) when one want to combine the DNS information
2003 with DHCP information, and instead create a auxiliary object class
2004 defined something like this (using the attributes defined for
2005 dnsdomain and dnsdomain2 or dnszone):
</p
>
2007 <blockquote
><pre
>
2008 objectclass ( some-oid NAME
'dnsDomainAux
'
2011 MAY ( ARecord $ MDRecord $ MXRecord $ NSRecord $ SOARecord $ CNAMERecord $
2012 DNSTTL $ DNSClass $ PTRRecord $ HINFORecord $ MINFORecord $
2013 TXTRecord $ SIGRecord $ KEYRecord $ AAAARecord $ LOCRecord $
2014 NXTRecord $ SRVRecord $ NAPTRRecord $ KXRecord $ CERTRecord $
2015 A6Record $ DNAMERecord
2017 </pre
></blockquote
>
2019 <p
>This will allow any object to become a DNS entry when combined with
2020 the domainrelatedobject object class, and allow any entity to include
2021 all the attributes PowerDNS wants. I
've sent an email to the PowerDNS
2022 developers asking for their view on this schema and if they are
2023 interested in providing such schema with PowerDNS, and I hope my
2024 message will be accepted into their mailing list soon.
</p
>
2026 <p
><strong
>ISC dhcp
</strong
></p
>
2028 <p
>The DHCP server searches for specific objectclass and requests all
2029 the object attributes, and then uses the attributes it want. This
2030 make it harder to figure out exactly what attributes are used, but
2031 thanks to the working example in Debian Edu I can at least get an idea
2032 what is needed without having to read the source code.
</p
>
2034 <p
>In the DHCP server configuration, the LDAP base to use and the
2035 search filter to use to locate the correct dhcpServer entity is
2036 stored. These are the relevant entries from
2037 /etc/dhcp3/dhcpd.conf:
</p
>
2039 <blockquote
><pre
>
2040 ldap-base-dn
"dc=skole,dc=skolelinux,dc=no
";
2041 ldap-dhcp-server-cn
"dhcp
";
2042 </pre
></blockquote
>
2044 <p
>The DHCP server uses this information to nest all the DHCP
2045 configuration it need. The cn
"dhcp
" is located using the given LDAP
2046 base and the filter
"(
&(objectClass=dhcpServer)(cn=dhcp))
". The
2047 search result is this entry:
</p
>
2049 <blockquote
><pre
>
2050 dn: cn=dhcp,dc=skole,dc=skolelinux,dc=no
2053 objectClass: dhcpServer
2054 dhcpServiceDN: cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
2055 </pre
></blockquote
>
2057 <p
>The content of the dhcpServiceDN attribute is next used to locate the
2058 subtree with DHCP configuration. The DHCP configuration subtree base
2059 is located using a base scope search with base
"cn=DHCP
2060 Config,dc=skole,dc=skolelinux,dc=no
" and filter
2061 "(
&(objectClass=dhcpService)(|(dhcpPrimaryDN=cn=dhcp,dc=skole,dc=skolelinux,dc=no)(dhcpSecondaryDN=cn=dhcp,dc=skole,dc=skolelinux,dc=no)))
".
2062 The search result is this entry:
</p
>
2064 <blockquote
><pre
>
2065 dn: cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
2068 objectClass: dhcpService
2069 objectClass: dhcpOptions
2070 dhcpPrimaryDN: cn=dhcp, dc=skole,dc=skolelinux,dc=no
2071 dhcpStatements: ddns-update-style none
2072 dhcpStatements: authoritative
2073 dhcpOption: smtp-server code
69 = array of ip-address
2074 dhcpOption: www-server code
72 = array of ip-address
2075 dhcpOption: wpad-url code
252 = text
2076 </pre
></blockquote
>
2078 <p
>Next, the entire subtree is processed, one level at the time. When
2079 all the DHCP configuration is loaded, it is ready to receive requests.
2080 The subtree in Debian Edu contain objects with object classes
2081 top/dhcpService/dhcpOptions, top/dhcpSharedNetwork/dhcpOptions,
2082 top/dhcpSubnet, top/dhcpGroup and top/dhcpHost. These provide options
2083 and information about netmasks, dynamic range etc. Leaving out the
2084 details here because it is not relevant for the focus of my
2085 investigation, which is to see if it is possible to merge dns and dhcp
2086 related computer objects.
</p
>
2088 <p
>When a DHCP request come in, LDAP is searched for the MAC address
2089 of the client (
00:
00:
00:
00:
00:
00 in this example), using a subtree
2090 scoped search with
"cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
" as
2091 the base and
"(
&(objectClass=dhcpHost)(dhcpHWAddress=ethernet
2092 00:
00:
00:
00:
00:
00))
" as the filter. This is what a host object look
2095 <blockquote
><pre
>
2096 dn: cn=hostname,cn=group1,cn=THINCLIENTS,cn=DHCP Config,dc=skole,dc=skolelinux,dc=no
2099 objectClass: dhcpHost
2100 dhcpHWAddress: ethernet
00:
00:
00:
00:
00:
00
2101 dhcpStatements: fixed-address hostname
2102 </pre
></blockquote
>
2104 <p
>There is less flexiblity in the way LDAP searches are done here.
2105 The object classes need to have fixed names, and the configuration
2106 need to be stored in a fairly specific LDAP structure. On the
2107 positive side, the invidiual dhcpHost entires can be anywhere without
2108 the DN pointed to by the dhcpServer entries. The latter should make
2109 it possible to group all host entries in a subtree next to the
2110 configuration entries, and this subtree can also be shared with the
2111 DNS server if the schema proposed above is combined with the dhcpHost
2112 structural object class.
2114 <p
><strong
>Conclusion
</strong
></p
>
2116 <p
>The PowerDNS implementation seem to be very flexible when it come
2117 to which LDAP schemas to use. While its
"tree
" mode is rigid when it
2118 come to the the LDAP structure, the
"strict
" mode is very flexible,
2119 allowing DNS objects to be stored anywhere under the base cn specified
2120 in the configuration.
</p
>
2122 <p
>The DHCP implementation on the other hand is very inflexible, both
2123 regarding which LDAP schemas to use and which LDAP structure to use.
2124 I guess one could implement ones own schema, as long as the
2125 objectclasses and attributes have the names used, but this do not
2126 really help when the DHCP subtree need to have a fairly fixed
2127 structure.
</p
>
2129 <p
>Based on the observed behaviour, I suspect a LDAP structure like
2130 this might work for Debian Edu:
</p
>
2132 <blockquote
><pre
>
2134 cn=machine-info (dhcpService) - dhcpServiceDN points here
2135 cn=dhcp (dhcpServer)
2136 cn=dhcp-internal (dhcpSharedNetwork/dhcpOptions)
2137 cn=
10.0.2.0 (dhcpSubnet)
2138 cn=group1 (dhcpGroup/dhcpOptions)
2139 cn=dhcp-thinclients (dhcpSharedNetwork/dhcpOptions)
2140 cn=
192.168.0.0 (dhcpSubnet)
2141 cn=group1 (dhcpGroup/dhcpOptions)
2142 ou=machines - PowerDNS base points here
2143 cn=hostname (dhcpHost/domainrelatedobject/dnsDomainAux)
2144 </pre
></blockquote
>
2146 <P
>This is not tested yet. If the DHCP server require the dhcpHost
2147 entries to be in the dhcpGroup subtrees, the entries can be stored
2148 there instead of a common machines subtree, and the PowerDNS base
2149 would have to be moved one level up to the machine-info subtree.
</p
>
2151 <p
>The combined object under the machines subtree would look something
2152 like this:
</p
>
2154 <blockquote
><pre
>
2155 dn: dc=hostname,ou=machines,cn=machine-info,dc=skole,dc=skolelinux,dc=no
2158 objectClass: dhcpHost
2159 objectclass: domainrelatedobject
2160 objectclass: dnsDomainAux
2161 associateddomain: hostname.intern
2162 arecord:
10.11.12.13
2163 dhcpHWAddress: ethernet
00:
00:
00:
00:
00:
00
2164 dhcpStatements: fixed-address hostname.intern
2165 </pre
></blockquote
>
2167 </p
>One could even add the LTSP configuration associated with a given
2168 machine, as long as the required attributes are available in a
2169 auxiliary object class.
</p
>
2174 <title>One step closer to single signon in Debian Edu
</title>
2175 <link>http://people.skolelinux.org/pere/blog/One_step_closer_to_single_signon_in_Debian_Edu.html
</link>
2176 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/One_step_closer_to_single_signon_in_Debian_Edu.html
</guid>
2177 <pubDate>Sun,
25 Jul
2010 10:
00:
00 +
0200</pubDate>
2179 <p
>The last few months me and the other Debian Edu developers have
2180 been working hard to get the Debian/Squeeze based version of Debian
2181 Edu/Skolelinux into shape. This future version will use Kerberos for
2182 authentication, and services are slowly migrated to single signon,
2183 getting rid of password questions one at the time.
</p
>
2185 <p
>It will also feature a roaming workstation profile with local home
2186 directory, for laptops that are only some times on the Skolelinux
2187 network, and for this profile a shortcut is created in Gnome and KDE
2188 to gain access to the users home directory on the file server. This
2189 shortcut uses SMB at the moment, and yesterday I had time to test if
2190 SMB mounting had started working in KDE after we added the cifs-utils
2191 package. I was pleasantly surprised how well it worked.
</p
>
2193 <p
>Thanks to the recent changes to our samba configuration to get it
2194 to use Kerberos for authentication, there were no question about user
2195 password when mounting the SMB volume. A simple click on the shortcut
2196 in the KDE menu, and a window with the home directory popped
2199 <p
>One step closer to a single signon solution out of the box in
2200 Debian Edu. We already had PAM, LDAP, IMAP and SMTP in place, and now
2201 also Samba. Next step is Cups and hopefully also NFS.
</p
>
2203 <p
>We had planned a alpha0 release of Debian Edu for today, but thanks
2204 to the autobuilder administrators for some architectures being slow to
2205 sign packages, we are still missing the fixed LTSP package we need for
2206 the release. It was uploaded three days ago with urgency=high, and if
2207 it had entered testing yesterday we would have been able to test it in
2208 time for a alpha0 release today. As the binaries for ia64 and powerpc
2209 still not uploaded to the Debian archive, we need to delay the alpha
2210 release another day.
</p
>
2212 <p
>If you want to help out with implementing Kerberos for Debian Edu,
2213 please contact us on debian-edu@lists.debian.org.
</p
>
2218 <title>First Debian Edu test release (alpha0) based on Squeeze is released
</title>
2219 <link>http://people.skolelinux.org/pere/blog/First_Debian_Edu_test_release__alpha0__based_on_Squeeze_is_released.html
</link>
2220 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/First_Debian_Edu_test_release__alpha0__based_on_Squeeze_is_released.html
</guid>
2221 <pubDate>Tue,
27 Jul
2010 17:
45:
00 +
0200</pubDate>
2223 <p
>I just posted this announcement culminating several months of work
2224 with the next Debian Edu release. Not nearly done, but one major step
2225 completed.
</p
>
2228 <p
>This is the first test release based on Squeeze. The focus of this
2229 release is to test the user application selection. To have a look,
2230 install the standalone profile and let the developers know if the set
2231 of installed packages i.e. applications should be modified. If some
2232 user application is missing, or if there are some applications that no
2233 longer make sense to be included in Debian Edu, please let us know.
2234 Also, if a useful application is missing the translation for your
2235 language of choice, please let us know too.
</p
>
2237 <p
>In addition, feedback and help to polish the desktop (menus,
2238 artwork, starters, etc.) is appreciated. We would like to ship a nice
2239 and handy KDE4 desktop targeted for schools out of the box.
</p
>
2241 <p
>The other profiles should be installable, but there is a lot more
2242 work left to be done before they are ready, so do not expect to
2245 <p
>Changes compared to the lenny based version
</p
>
2248 <li
>Everything from Debian Squeeze
2250 <li
>Desktop environment KDE
4.4 =
> the new KDE desktop in
2251 combination with some new artwork
2252 <li
>Web browser Iceweasel
3.5
2253 <li
>OpenOffice.org
3.2
2254 <li
>Educational toolbox GCompris
9.3
2255 <li
>Music creator Rosegarden
10.04.2
2256 <li
>Image editor Gimp
2.6.10
2257 <li
>Virtual universe Celestia
1.6.0
2258 <li
>Virtual stargazer Stellarium
0.10.4
2259 <li
>3D modeler Blender
2.49.2 (new application)
2260 <li
>Video editor Kdenlive
0.7.7 (new application)
2261 </ul
></li
>
2262 <li
>Now using Kerberos for password checking (migration not finished).
2268 <li
>SMTP (sender verification)
2271 <li
>New experimental roaming workstation profile for laptops.
</li
>
2272 <li
>Show welcome page to users when they first log in. The URL is
2273 fetched from LDAP.
</li
>
2274 <li
>New LXDE desktop option, in addition to KDE (default) and Gnome.
</li
>
2275 <li
>General cleanup (not finished)
</li
>
2277 <p
>The following features are not working as they should
</p
>
2280 <li
>No web based administration tool for creating users and groups. The
2281 scripts ldap-createuser-krb and ldap-add-user-to-group can be used
2282 for testing.
</li
>
2283 <li
>DVD installs are missing debian-installer images for the PXE boot,
2284 and do not set up the PXE menu on eth0 because of this. LTSP
2285 clients should still boot from eth1 on thin client servers.
</li
>
2286 <li
>The restructured KDE menu is not implemented.
</li
>
2287 <li
>The LDAP server setup need to be reviewed for security.
</li
>
2288 <li
>The LDAP directory structure need to be reworked.
</li
>
2289 <li
>Different sets of packages are installed when using the DVD and the
2290 netinst CD. More packages are installed using the netinst CD.
</li
>
2291 <li
>The jackd package fail to install. This is believed to be caused by
2292 some ongoing transition, and hopefully should be solved soon. The
2293 jackd1 package can be installed manually for those that need it.
</li
>
2294 <li
>Some packages lack translations. See
2295 http://wiki.debian.org/DebianEdu/Status/Squeeze for updated status,
2296 and help out with translations.
</li
>
2299 <p
>To download this multiarch netinstall release you can use
</p
>
2302 <li
><a href=
"ftp://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-
6.0.0+edua0-CD.iso
">ftp://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-
6.0.0+edua0-CD.iso
</a
></li
>
2303 <li
><a href=
"http://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-
6.0.0+edua0-CD.iso
">http://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-
6.0.0+edua0-CD.iso
</a
></li
>
2304 <li
>rsync -avzP ftp.skolelinux.org::skolelinux-cd/squeeze-alpha/debian-edu-
6.0.0+edua0-CD.iso
</li
>
2306 <p
>To download this multiarch dvd release you can use
</p
>
2309 <li
><a href=
"ftp://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-
6.0.0+edua0-DVD.iso
">ftp://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-
6.0.0+edua0-DVD.iso
</a
></li
>
2310 <li
><a href=
"http://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-
6.0.0+edua0-DVD.iso
">http://ftp.skolelinux.org/skolelinux-cd/squeeze-alpha/debian-edu-
6.0.0+edua0-DVD.iso
</a
></li
>
2311 <li
>rsync -avzP ftp.skolelinux.org::skolelinux-cd/squeeze-alpha/debian-edu-
6.0.0+edua0-DVD.iso
</li
>
2314 <p
>There is no source DVD available yet. It will be prepared when we
2315 get closer to the final release.
</p
>
2317 <p
>The MD5SUM of these images are
</p
>
2320 <li
>3dbf45d59f42a53518b6e3c9ec3b5eb6 debian-edu-
6.0.0+edua0-CD.iso
</li
>
2321 <li
>22f2cbfce281d1c6e478be452638675d debian-edu-
6.0.0+edua0-DVD.iso
</li
>
2324 <p
>The SHA1SUM of these images are
</p
>
2326 <li
>c53d1b69b40cf37cd27aefaf33f6f6a3821bedf0 debian-edu-
6.0.0+edua0-CD.iso
</li
>
2327 <li
>2ec29d7db676d59d32197b05c277ffe16348376c debian-edu-
6.0.0+edua0-DVD.iso
</li
>
2329 <p
>How to report bugs:
2330 http://wiki.debian.org/DebianEdu/HowTo/ReportBugsInBugzilla
</p
>
2332 <p
>Please direct replies to debian-edu@lists.debian.org
</p
>
2338 <title>Debian Edu roaming workstation - at the university of Oslo
</title>
2339 <link>http://people.skolelinux.org/pere/blog/Debian_Edu_roaming_workstation___at_the_university_of_Oslo.html
</link>
2340 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Debian_Edu_roaming_workstation___at_the_university_of_Oslo.html
</guid>
2341 <pubDate>Tue,
3 Aug
2010 23:
30:
00 +
0200</pubDate>
2343 <p
>The new roaming workstation profile in Debian Edu/Squeeze is fairly
2344 similar to the laptop setup am I working on using Ubuntu for the
2345 University of Oslo, and just for the heck of it, I tested today how
2346 hard it would be to integrate that profile into the university
2347 infrastructure. In this case, it is the university LDAP server,
2348 Active Directory Kerberos server and SMB mounting from the Netapp file
2351 <p
>I was pleasantly surprised that the only three files needed to be
2352 changed (/etc/sssd/sssd.conf, /etc/ldap.conf and
2353 /etc/mklocaluser.d/
20-debian-edu-config) and one file had to be added
2354 (/usr/share/perl5/Debian/Edu_Local.pm), to get the client working.
2355 Most of the changes were to get the client to use the university LDAP
2356 for NSS and Kerberos server for PAM, but one was to change a hard
2357 coded DNS domain name in the mklocaluser hook from .intern to
2360 <p
>This testing was so encouraging, that I went ahead and adjusted the
2361 Debian Edu scripts and setup in subversion to centralise the roaming
2362 workstation setup a bit more and avoid the hardcoded DNS domain name,
2363 so that when I test this tomorrow, I expect to get away with modifying
2364 only /etc/sssd/sssd.conf and /etc/ldap.conf to get it to use the
2365 university servers.
</p
>
2367 <p
>My goal is to get the clients to have no hardcoded settings and
2368 fetch all their initial setup during installation and first boot, to
2369 allow them to be inserted also into environments where the default
2370 setup in Debian Edu has been changed or as with the university, where
2371 the environment is different but provides the protocols Debian Edu
2377 <title>Autodetecting Client setup for roaming workstations in Debian Edu
</title>
2378 <link>http://people.skolelinux.org/pere/blog/Autodetecting_Client_setup_for_roaming_workstations_in_Debian_Edu.html
</link>
2379 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Autodetecting_Client_setup_for_roaming_workstations_in_Debian_Edu.html
</guid>
2380 <pubDate>Sat,
7 Aug
2010 14:
45:
00 +
0200</pubDate>
2382 <p
>A few days ago, I
2383 <a href=
"http://people.skolelinux.org/pere/blog/Debian_Edu_roaming_workstation___at_the_university_of_Oslo.html
">tried
2384 to install
</a
> a Roaming workation profile from Debian Edu/Squeeze
2385 while on the university network here at the University of Oslo, and
2386 noticed how much had to change to get it operational using the
2387 university infrastructure. It was fairly easy, but it occured to me
2388 that Debian Edu would improve a lot if I could get the client to
2389 connect without any changes at all, and thus let the client configure
2390 itself during installation and first boot to use the infrastructure
2391 around it. Now I am a huge step further along that road.
</p
>
2393 <p
>With our current squeeze-test packages, I can select the roaming
2394 workstation profile and get a working laptop connecting to the
2395 university LDAP server for user and group and our active directory
2396 servers for Kerberos authentication. All this without any
2397 configuration at all during installation. My users home directory got
2398 a bookmark in the KDE menu to mount it via SMB, with the correct URL.
2399 In short, openldap and sssd is correctly configured. In addition to
2400 this, the client look for http://wpad/wpad.dat to configure a web
2401 proxy, and when it fail to find it no proxy settings are stored in
2402 /etc/environment and /etc/apt/apt.conf. Iceweasel and KDE is
2403 configured to look for the same wpad configuration and also do not use
2404 a proxy when at the university network. If the machine is moved to a
2405 network with such wpad setup, it would automatically use it when DHCP
2406 gave it a IP address.
</p
>
2408 <p
>The LDAP server is located using DNS, by first looking for the DNS
2409 entry ldap.$domain. If this do not exist, it look for the
2410 _ldap._tcp.$domain SRV records and use the first one as the LDAP
2411 server. Next, it connects to the LDAP server and search all
2412 namingContexts entries for posixAccount or posixGroup objects, and
2413 pick the first one as the LDAP base. For Kerberos, a similar
2414 algorithm is used to locate the LDAP server, and the realm is the
2415 uppercase version of $domain.
</p
>
2417 <p
>So, what is not working, you might ask. SMB mounting my home
2418 directory do not work. No idea why, but suspected the incorrect
2419 Kerberos settings in /etc/krb5.conf and /etc/samba/smb.conf might be
2420 the cause. These are not properly configured during installation, and
2421 had to be hand-edited to get the correct Kerberos realm and server,
2422 but SMB mounting still do not work. :(
</p
>
2424 <p
>With this automatic configuration in place, I expect a Debian Edu
2425 roaming profile installation would be able to automatically detect and
2426 connect to any site using LDAP and Kerberos for NSS directory and PAM
2427 authentication. It should also work out of the box in a Active
2428 Directory environment providing posixAccount and posixGroup objects
2429 with UID and GID values.
</p
>
2431 <p
>If you want to help out with implementing these things for Debian
2432 Edu, please contact us on debian-edu@lists.debian.org.
</p
>
2437 <title>Testing if a file system can be used for home directories...
</title>
2438 <link>http://people.skolelinux.org/pere/blog/Testing_if_a_file_system_can_be_used_for_home_directories___.html
</link>
2439 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Testing_if_a_file_system_can_be_used_for_home_directories___.html
</guid>
2440 <pubDate>Sun,
8 Aug
2010 21:
20:
00 +
0200</pubDate>
2442 <p
>A few years ago, I was involved in a project planning to use
2443 Windows file servers as home directory servers for Debian
2444 Edu/Skolelinux machines. This was thought to be no problem, as the
2445 access would be through the SMB network file system protocol, and we
2446 knew other sites used SMB with unix and samba as the file server to
2447 mount home directories without any problems. But, after months of
2448 struggling, we had to conclude that our goal was impossible.
</p
>
2450 <p
>The reason is simply that while SMB can be used for home
2451 directories when the file server is Samba running on Unix, this only
2452 work because of Samba have some extensions and the fact that the
2453 underlying file system is a unix file system. When using a Windows
2454 file server, the underlying file system do not have POSIX semantics,
2455 and several programs will fail if the users home directory where they
2456 want to store their configuration lack POSIX semantics.
</p
>
2458 <p
>As part of this work, I wrote a small C program I want to share
2459 with you all, to replicate a few of the problematic applications (like
2460 OpenOffice.org and GCompris) and see if the file system was working as
2461 it should. If you find yourself in spooky file system land, it might
2462 help you find your way out again. This is the fs-test.c source:
</p
>
2466 * Some tests to check the file system sematics. Used to verify that
2467 * CIFS from a windows server do not work properly as a linux home
2469 * License: GPL v2 or later
2471 * needs libsqlite3-dev and build-essential installed
2472 * compile with: gcc -Wall -lsqlite3 -DTEST_SQLITE fs-test.c -o fs-test
2475 #define _FILE_OFFSET_BITS
64
2476 #define _LARGEFILE_SOURCE
1
2477 #define _LARGEFILE64_SOURCE
1
2479 #define _GNU_SOURCE /* for asprintf() */
2481 #include
&lt;errno.h
>
2482 #include
&lt;fcntl.h
>
2483 #include
&lt;stdio.h
>
2484 #include
&lt;string.h
>
2485 #include
&lt;stdlib.h
>
2486 #include
&lt;sys/file.h
>
2487 #include
&lt;sys/stat.h
>
2488 #include
&lt;sys/types.h
>
2489 #include
&lt;unistd.h
>
2493 * Test sqlite open, as done by gcompris require the libsqlite3-dev
2494 * package and linking with -lsqlite3. A more low level test is
2496 * See also
&lt;URL: http://www.sqlite.org./faq.html#q5
>.
2498 #include
&lt;sqlite3.h
>
2499 #define CREATE_TABLE_USERS \
2500 "CREATE TABLE users (user_id INT UNIQUE, login TEXT, lastname TEXT, firstname TEXT, birthdate TEXT, class_id INT );
"
2501 int test_sqlite_open(void) {
2503 char *name =
"testsqlite.db
";
2506 int rc = sqlite3_open(name,
&db);
2508 printf(
"error: sqlite open of %s failed: %s\n
", name, sqlite3_errmsg(db));
2514 rc = sqlite3_exec(db,CREATE_TABLE_USERS, NULL,
0,
&zErrMsg);
2515 if( rc != SQLITE_OK ){
2516 printf(
"error: sqlite table create failed: %s\n
", zErrMsg);
2520 printf(
"info: sqlite worked\n
");
2524 #endif /* TEST_SQLITE */
2527 * Demonstrate locking issue found in gcompris using sqlite3. This
2528 * work with ext3, but not with cifs server on Windows
2003. This is
2529 * done in the sqlite3 library.
2531 *
&lt;URL:http://www.cygwin.com/ml/cygwin/
2001-
08/msg00854.html
> and the
2532 * POSIX specification
2533 *
&lt;URL:http://www.opengroup.org/onlinepubs/
009695399/functions/fcntl.html
>.
2535 int test_gcompris_locking(void) {
2537 char *name =
"testsqlite.db
";
2539 int fd = open(name, O_RDWR|O_CREAT|O_LARGEFILE,
0644);
2540 printf(
"info: testing fcntl locking\n
");
2542 fl.l_whence = SEEK_SET;
2543 fl.l_pid = getpid();
2544 printf(
" Read-locking
1 byte from
1073741824");
2545 fl.l_start =
1073741824;
2547 fl.l_type = F_RDLCK;
2548 if (
0 != fcntl(fd, F_SETLK,
&fl) ) printf(
" - error!\n
"); else printf(
"\n
");
2550 printf(
" Read-locking
510 byte from
1073741826");
2551 fl.l_start =
1073741826;
2553 fl.l_type = F_RDLCK;
2554 if (
0 != fcntl(fd, F_SETLK,
&fl) ) printf(
" - error!\n
"); else printf(
"\n
");
2556 printf(
" Unlocking
1 byte from
1073741824");
2557 fl.l_start =
1073741824;
2559 fl.l_type = F_UNLCK;
2560 if (
0 != fcntl(fd, F_SETLK,
&fl) ) printf(
" - error!\n
"); else printf(
"\n
");
2562 printf(
" Write-locking
1 byte from
1073741824");
2563 fl.l_start =
1073741824;
2565 fl.l_type = F_WRLCK;
2566 if (
0 != fcntl(fd, F_SETLK,
&fl) ) printf(
" - error!\n
"); else printf(
"\n
");
2568 printf(
" Write-locking
510 byte from
1073741826");
2569 fl.l_start =
1073741826;
2571 if (
0 != fcntl(fd, F_SETLK,
&fl) ) printf(
" - error!\n
"); else printf(
"\n
");
2573 printf(
" Unlocking
2 byte from
1073741824");
2574 fl.l_start =
1073741824;
2576 fl.l_type = F_UNLCK;
2577 if (
0 != fcntl(fd, F_SETLK,
&fl) ) printf(
" - error!\n
"); else printf(
"\n
");
2584 * Test if permissions of freshly created directories allow entries
2585 * below them. This was a problem with OpenOffice.org and gcompris.
2586 * Mounting with option
'sync
' seem to solve this problem while
2587 * slowing down file operations.
2589 int test_subdirectory_creation(void) {
2591 char *path = strdup(
"test
");
2594 printf(
"info: testing subdirectory creation\n
");
2595 for (level =
0; level
&lt; LEVELS; level++) {
2596 char *newpath = NULL;
2597 if (-
1 == mkdir(path,
0777)) {
2598 printf(
" error: Unable to create directory
'%s
': %s\n
",
2599 path, strerror(errno));
2602 asprintf(
&newpath,
"%s/%s
", path,
"test
");
2610 * Test if symlinks can be created. This was a problem detected with
2613 int test_symlinks(void) {
2614 printf(
"info: testing symlink creation\n
");
2615 unlink(
"symlink
");
2616 if (-
1 == symlink(
"file
",
"symlink
"))
2617 printf(
" error: Unable to create symlink\n
");
2621 int main(int argc, char **argv) {
2622 printf(
"Testing POSIX/Unix sematics on file system\n
");
2624 test_subdirectory_creation();
2627 #endif /* TEST_SQLITE */
2628 test_gcompris_locking();
2633 <p
>When everything is working, it should print something like
2637 Testing POSIX/Unix sematics on file system
2638 info: testing symlink creation
2639 info: testing subdirectory creation
2641 info: testing fcntl locking
2642 Read-locking
1 byte from
1073741824
2643 Read-locking
510 byte from
1073741826
2644 Unlocking
1 byte from
1073741824
2645 Write-locking
1 byte from
1073741824
2646 Write-locking
510 byte from
1073741826
2647 Unlocking
2 byte from
1073741824
2650 <p
>I do not remember the exact details of the problems we saw, but one
2651 of them was with locking, where if I remember correctly, POSIX allow a
2652 read-only lock to be upgraded to a read-write lock without unlocking
2653 the read-only lock (while Windows do not). Another was a bug in the
2654 CIFS/SMB client implementation in the Linux kernel where directory
2655 meta information would be wrong for a fraction of a second, making
2656 OpenOffice.org fail to create its deep directory tree because it was
2657 not allowed to create files in its freshly created directory.
</p
>
2659 <p
>Anyway, here is a nice tool for your tool box, might you never need
2662 <p
>Update
2010-
08-
27: Michael Gebetsroither report that he found the
2663 script so useful that he created a GIT repository and stored it in
2664 <a href=
"http://github.com/gebi/fs-test
">http://github.com/gebi/fs-test
</a
>.
</p
>
2669 <title>No hardcoded config on Debian Edu clients
</title>
2670 <link>http://people.skolelinux.org/pere/blog/No_hardcoded_config_on_Debian_Edu_clients.html
</link>
2671 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/No_hardcoded_config_on_Debian_Edu_clients.html
</guid>
2672 <pubDate>Mon,
9 Aug
2010 20:
15:
00 +
0200</pubDate>
2674 <p
>As reported earlier, the last few days I have looked at how Debian
2675 Edu clients are configured, and tried to get rid of all hardcoded
2676 configuration settings on the clients. I believe the work to be
2677 mostly done, and the clients seem to work just fine with dynamically
2678 generated configuration.
</p
>
2680 <p
>What is the point, you might ask? The point is to allow a Debian
2681 Edu desktop to integrate into an existing network infrastructure
2682 without any manual configuration.
</p
>
2684 <p
>This is what happens when installing a Debian Edu client here at
2685 the University of Oslo using PXE. With the PXE installation, I am
2686 asked for language (Norwegian Bokmål), locality (Norway) and keyboard
2687 layout (no-latin1), Debian Edu profile (Roaming Workstation), if I
2688 accept to reformat the hard drive (yes), if I want to submit info to
2689 popcon.debian.org (no) and root password (secret). After answering
2690 these questions, the installer goes ahead and does its thing, and
2691 after around
50 minutes it is done. I press enter to finish the
2692 installation, and the machine reboots into KDE. When the machine is
2693 ready and kdm asks for login information, I enter my university
2694 username and password, am told by kdm that a local home directory has
2695 been created and that I must log in again, and finally log in with the
2696 same username and password to the KDE
4.4 desktop. At no point during
2697 this process did it ask for university specific settings, and all the
2698 required configuration was dynamically detected using information
2699 fetched via DHCP and DNS. The roaming workstation is now ready for
2702 <p
>How was this done, you might wonder? First of all, here is the
2703 list of things that need to be configured on the client to get it
2704 working properly out of the box:
</p
>
2707 <li
>IP address/netmask and DNS server.
</li
>
2708 <li
>Web proxy URL.
</li
>
2709 <li
>LDAP server for NSS directory information (user, group, etc).
</li
>
2710 <li
>Kerberos server for PAM password checking.
</li
>
2711 <li
>SMB mount point to access the network home directory. (*)
</li
>
2712 <li
>Central syslog server to send syslog messages to. (*)
</li
>
2713 <li
>Sitesummary collector URL to submit info to central server. (*)
</li
>
2716 <p
>(Hm, did I forget anything? Let me knew if I did.)
</p
>
2718 <p
>The points marked (*) are not required to be able to use the
2719 machine, but needed to provide central storage and allowing system
2720 administrators to track their machines. Since yesterday, everything
2721 but the sitesummary collector URL is dynamically discovered at boot
2722 and installation time in the svn version of Debian Edu.
</p
>
2724 <p
>The IP and DNS setup is fetched during boot using DHCP as usual.
2725 When a DHCP update arrives, the proxy setup is updated by looking for
2726 http://wpat/wpad.dat and using the content of this WPAD file to
2727 configure the http and ftp proxy in /etc/environment and
2728 /etc/apt/apt.conf. I decided to update the proxy setup using a DHCP
2729 hook to ensure that the client stops using the Debian Edu proxy when
2730 it is moved outside the Debian Edu network, and instead uses any local
2731 proxy present on the new network when it moves around.
</p
>
2733 <p
>The DNS names of the LDAP, Kerberos and syslog server and related
2734 configuration are generated using DNS information at boot. First the
2735 installer looks for a host named ldap in the current DNS domain. If
2736 not found, it looks for _ldap._tcp SRV records in DNS instead. If an
2737 LDAP server is found, its root DSE entry is requested and the
2738 attributes namingContexts and defaultNamingContext are used to
2739 determine which LDAP base to use for NSS. If there are several
2740 namingContexts attibutes and the defaultNamingContext is present, that
2741 LDAP subtree is used as the base. If defaultNamingContext is missing,
2742 the subtrees listed as namingContexts are searched in sequence for any
2743 object with class posixAccount or posixGroup, and the first one with
2744 such an object is used as the LDAP base. For Kerberos, a similar
2745 search is done by first looking for a host named kerberos, and then
2746 for the _kerberos._tcp SRV record. I
've been unable to find a way to
2747 look up the Kerberos realm, so for this the upper case string of the
2748 current DNS domain is used.
</p
>
2750 <p
>For the syslog server, the hosts syslog and loghost are searched
2751 for, and the _syslog._udp SRV record is consulted if no such host is
2752 found. This algorithm works for both Debian Edu and the University of
2753 Oslo. A similar strategy would work for locating the sitesummary
2754 server, but have not been implemented yet. I decided to fetch and
2755 save these settings during installation, to make sure moving to a
2756 different network does not change the set of users being allowed to
2757 log in nor the passwords required to log in. Usernames and passwords
2758 will be cached by sssd when the user logs in on the Debian Edu
2759 network, and will not change as the laptop move around. For a
2760 non-roaming machine, there is no caching, but given that it is
2761 supposed to stay in place it should not matter much. Perhaps we
2762 should switch those to use sssd too?
</p
>
2764 <p
>The user
's SMB mount point for the network home directory is
2765 located when the user logs in for the first time. The LDAP server is
2766 consulted to look for the user
's LDAP object and the sambaHomePath
2767 attribute is used if found. If it isn
't found, the home directory
2768 path fetched from NSS is used instead. Assuming the path is of the
2769 form /site/server/directory/username, the second part is looked up in
2770 DNS and used to generate a SMB URL of the form
2771 smb://server.domain/username. This algorithm works for both Debian
2772 edu and the University of Oslo. Perhaps there are better attributes
2773 to use or a better algorithm that works for more sites, but this will
2774 do for now. :)
</p
>
2776 <p
>This work should make it easier to integrate the Debian Edu clients
2777 into any LDAP/Kerberos infrastructure, and make the current setup even
2778 more flexible than before. I suspect it will also work for thin
2779 client servers, allowing one to easily set up LTSP and hook it into a
2780 existing network infrastructure, but I have not had time to test this
2783 <p
>If you want to help out with implementing these things for Debian
2784 Edu, please contact us on debian-edu@lists.debian.org.
</p
>
2786 <p
>Update
2010-
08-
09: Simon Farnsworth gave me a heads-up on how to
2787 detect Kerberos realm from DNS, by looking for _kerberos TXT entries
2788 before falling back to the upper case DNS domain name. Will have to
2789 implement it for Debian Edu. :)
</p
>
2794 <title>Broken umask handling with sshfs
</title>
2795 <link>http://people.skolelinux.org/pere/blog/Broken_umask_handling_with_sshfs.html
</link>
2796 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Broken_umask_handling_with_sshfs.html
</guid>
2797 <pubDate>Thu,
26 Aug
2010 13:
30:
00 +
0200</pubDate>
2799 <p
>My file system sematics program
2800 <a href=
"http://people.skolelinux.org/pere/blog/Testing_if_a_file_system_can_be_used_for_home_directories___.html
">presented
2801 a few days ago
</a
> is very useful to verify that a file system can
2802 work as a unix home directory,and today I had to extend it a bit. I
'm
2803 looking into alternatives for home directory access here at the
2804 University of Oslo, and one of the options is sshfs. My friend
2805 Finn-Arne mentioned a while back that they had used sshfs with Debian
2806 Edu, but stopped because of problems. I asked today what the problems
2807 where, and he mentioned that sshfs failed to handle umask properly.
2808 Trying to detect the problem I wrote this addition to my fs testing
2812 mode_t touch_get_mode(const char *name, mode_t mode) {
2814 int fd = open(name, O_RDWR|O_CREAT|O_LARGEFILE, mode);
2817 struct stat statbuf;
2818 if (-
1 != fstat(fd,
&statbuf)) {
2819 retval = statbuf.st_mode
& 0x1ff;
2826 /* Try to detect problem discovered using sshfs */
2827 int test_umask(void) {
2828 printf(
"info: testing umask effect on file creation\n
");
2830 mode_t orig_umask = umask(
000);
2832 if (
0666 != (newmode = touch_get_mode(
"foobar
",
0666))) {
2833 printf(
" error: Wrong file mode %o when creating using mode
666 and umask
000\n
",
2837 if (
0660 != (newmode = touch_get_mode(
"foobar
",
0666))) {
2838 printf(
" error: Wrong file mode %o when creating using mode
666 and umask
007\n
",
2846 int main(int argc, char **argv) {
2853 <p
>Sure enough. On NFS to a netapp, I get this result:
</p
>
2856 Testing POSIX/Unix sematics on file system
2857 info: testing symlink creation
2858 info: testing subdirectory creation
2859 info: testing fcntl locking
2860 Read-locking
1 byte from
1073741824
2861 Read-locking
510 byte from
1073741826
2862 Unlocking
1 byte from
1073741824
2863 Write-locking
1 byte from
1073741824
2864 Write-locking
510 byte from
1073741826
2865 Unlocking
2 byte from
1073741824
2866 info: testing umask effect on file creation
2869 <p
>When mounting the same directory using sshfs, I get this
2873 Testing POSIX/Unix sematics on file system
2874 info: testing symlink creation
2875 info: testing subdirectory creation
2876 info: testing fcntl locking
2877 Read-locking
1 byte from
1073741824
2878 Read-locking
510 byte from
1073741826
2879 Unlocking
1 byte from
1073741824
2880 Write-locking
1 byte from
1073741824
2881 Write-locking
510 byte from
1073741826
2882 Unlocking
2 byte from
1073741824
2883 info: testing umask effect on file creation
2884 error: Wrong file mode
644 when creating using mode
666 and umask
000
2885 error: Wrong file mode
640 when creating using mode
666 and umask
007
2888 <p
>So, I can conclude that sshfs is better than smb to a Netapp or a
2889 Windows server, but not good enough to be used as a home
2890 directory.
</p
>
2892 <p
>Update
2010-
08-
26: Reported the issue in
2893 <a href=
"http://bugs.debian.org/
594498">BTS report #
594498</a
></p
>
2895 <p
>Update
2010-
08-
27: Michael Gebetsroither report that he found the
2896 script so useful that he created a GIT repository and stored it in
2897 <a href=
"http://github.com/gebi/fs-test
">http://github.com/gebi/fs-test
</a
>.
</p
>
2902 <title>Skolelinux i Osloskolen
</title>
2903 <link>http://people.skolelinux.org/pere/blog/Skolelinux_i_Osloskolen.html
</link>
2904 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Skolelinux_i_Osloskolen.html
</guid>
2905 <pubDate>Thu,
26 Aug
2010 22:
25:
00 +
0200</pubDate>
2907 <p
>Denne høsten skal endelig alle Osloskolene få mulighet til å bruke
2908 <a href=
"http://www.skolelinux.org/
">Skolelinux
</a
>. Ny IT-løsning
2909 har vært rullet ut i noen måneder nå, og så vidt jeg fikk vite før
2910 sommeren skulle alle skoler ha nytt opplegg på plass før oppstart nå i
2911 høst. På alle skolene skal en kunne velge ved installasjon om en skal
2912 ha Windows eller Skolelinux på maskinene, og en kan i tillegg
2913 PXE-boote maskinene over nett som tynne klienter eller diskløse
2914 arbeidsstasjoner. Jeg er spent på hvor mange skoler som velger å ta i
2915 bruk Skolelinux, og gleder meg til å se hvordan dette utvikler seg.
2916 Løsningen leveres av
2917 <a href=
"http://www.logica.no/
">Logica
</a
> med
2918 <a href=
"http://www.slxdrift.no/
">Skolelinux Drift AS
</a
> som
2919 underleverandør, og jeg har vært involvert i utviklingen av løsningen
2920 via Skolelinux Drift AS siden prosjektet starter. Jeg synes det er
2921 fantastisk at Skolelinux er kommet så langt siden vi startet i
2001 at
2922 alle elevene i Osloskolene nå skal få mulighet til å bruke
2923 løsningen. Jeg håper de vil sette pris på alle de
2924 <a href=
"http://www.skolelinux.no/linux-signpost/
">fantastiske
2925 brukerprogrammene
</a
> som er tilgjengelig i Skolelinux.
</p
>
2930 <title>Broken hard link handling with sshfs
</title>
2931 <link>http://people.skolelinux.org/pere/blog/Broken_hard_link_handling_with_sshfs.html
</link>
2932 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Broken_hard_link_handling_with_sshfs.html
</guid>
2933 <pubDate>Mon,
30 Aug
2010 19:
30:
00 +
0200</pubDate>
2935 <p
>Just got an email from Tobias Gruetzmacher as a followup on my
2936 <a href=
"http://people.skolelinux.org/pere/blog/Broken_umask_handling_with_sshfs.html
">previous
2937 post about sshfs
</a
>. He reported another problem with sshfs. It
2938 fail to handle hard links properly. A simple way to spot this is to
2939 look at the . and .. entries in the directory tree. These should have
2940 a link count
>1, but on sshfs the count is
1. I just tested to see
2941 what happen when trying to hardlink, and this fail as well:
</p
>
2945 ln: creating hard link `bar
' =
> `foo
': Function not implemented
2949 <p
>I have not yet found time to implement a test for this in my file
2950 system test code, but believe having working hard links is useful to
2951 avoid surprised unix programs. Not as useful as working file locking
2952 and symlinks, which are required to get a working desktop, but useful
2953 nevertheless. :)
</p
>
2955 <p
>The latest version of the file system test code is available via
2957 <a href=
"http://github.com/gebi/fs-test
">http://github.com/gebi/fs-test
</a
></p
>
2962 <title>Some notes on Flash in Debian and Debian Edu
</title>
2963 <link>http://people.skolelinux.org/pere/blog/Some_notes_on_Flash_in_Debian_and_Debian_Edu.html
</link>
2964 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Some_notes_on_Flash_in_Debian_and_Debian_Edu.html
</guid>
2965 <pubDate>Sat,
4 Sep
2010 10:
10:
00 +
0200</pubDate>
2967 <p
>In the
<a href=
"http://popcon.debian.org/unknown/by_vote
">Debian
2968 popularity-contest numbers
</a
>, the adobe-flashplugin package the
2969 second most popular used package that is missing in Debian. The sixth
2970 most popular is flashplayer-mozilla. This is a clear indication that
2971 working flash is important for Debian users. Around
10 percent of the
2972 users submitting data to popcon.debian.org have this package
2973 installed.
</p
>
2975 <p
>In the report written by Lars Risan in August
2008
2976 («
<a href=
"http://wiki.skolelinux.no/Dokumentasjon/Rapporter?action=AttachFile
&do=view
&target=Skolelinux_i_bruk_rapport_1.0.pdf
">Skolelinux
2977 i bruk – Rapport for Hurum kommune, Universitetet i Agder og
2978 stiftelsen SLX Debian Labs
</a
>»), one of the most important problems
2979 schools experienced with
<a href=
"http://www.skolelinux.org/
">Debian
2980 Edu/Skolelinux
</a
> was the lack of working Flash. A lot of educational
2981 web sites require Flash to work, and lacking working Flash support in
2982 the web browser and the problems with installing it was perceived as a
2983 good reason to stay with Windows.
</p
>
2985 <p
>I once saw a funny and sad comment in a web forum, where Linux was
2986 said to be the retarded cousin that did not really understand
2987 everything you told him but could work fairly well. This was a
2988 comment regarding the problems Linux have with proprietary formats and
2989 non-standard web pages, and is sad because it exposes a fairly common
2990 understanding of whose fault it is if web pages that only work in for
2991 example Internet Explorer
6 fail to work on Firefox, and funny because
2992 it explain very well how annoying it is for users when Linux
2993 distributions do not work with the documents they receive or the web
2994 pages they want to visit.
</p
>
2996 <p
>This is part of the reason why I believe it is important for Debian
2997 and Debian Edu to have a well working Flash implementation in the
2998 distribution, to get at least popular sites as Youtube and Google
2999 Video to working out of the box. For Squeeze, Debian have the chance
3000 to include the latest version of Gnash that will make this happen, as
3001 the new release
0.8.8 was published a few weeks ago and is resting in
3002 unstable. The new version work with more sites that version
0.8.7.
3003 The Gnash maintainers have asked for a freeze exception, but the
3004 release team have not had time to reply to it yet. I hope they agree
3005 with me that Flash is important for the Debian desktop users, and thus
3006 accept the new package into Squeeze.
</p
>
3011 <title>Software updates
2010-
10-
24</title>
3012 <link>http://people.skolelinux.org/pere/blog/Software_updates_2010_10_24.html
</link>
3013 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Software_updates_2010_10_24.html
</guid>
3014 <pubDate>Sun,
24 Oct
2010 22:
45:
00 +
0200</pubDate>
3016 <p
>Some updates.
</p
>
3018 <p
>My
<a href=
"http://pledgebank.com/gnash-avm2
">gnash pledge
</a
> to
3019 raise money for the project is going well. The lower limit of
10
3020 signers was reached in
24 hours, and so far
13 people have signed it.
3021 More signers and more funding is most welcome, and I am really curious
3022 how far we can get before the time limit of December
24 is reached.
3025 <p
>On the #gnash IRC channel on irc.freenode.net, I was just tipped
3026 about what appear to be a great code coverage tool capable of
3027 generating code coverage stats without any changes to the source code.
3029 <a href=
"http://simonkagstrom.github.com/kcov/index.html
">kcov
</a
>,
3030 and can be used using
<tt
>kcov
&lt;directory
&gt;
&lt;binary
&gt;
</tt
>.
3031 It is missing in Debian, but the git source built just fine in Squeeze
3032 after I installed libelf-dev, libdwarf-dev, pkg-config and
3033 libglib2.0-dev. Failed to build in Lenny, but suspect that is
3034 solvable. I hope kcov make it into Debian soon.
</p
>
3036 <p
>Finally found time to wrap up the release notes for
<a
3037 href=
"http://lists.debian.org/debian-edu-announce/
2010/
10/msg00002.html
">a
3038 new alpha release of Debian Edu
</a
>, and just published the second
3039 alpha test release of the Squeeze based Debian Edu /
3040 <a href=
"http://www.skolelinux.org/
">Skolelinux
</a
>
3041 release. Give it a try if you need a complete linux solution for your
3042 school, including central infrastructure server, workstations, thin
3043 client servers and diskless workstations. A nice touch added
3044 yesterday is RDP support on the thin client servers, for windows
3045 clients to get a Linux desktop on request.
</p
>
3050 <title>Making room on the Debian Edu/Sqeeze DVD
</title>
3051 <link>http://people.skolelinux.org/pere/blog/Making_room_on_the_Debian_Edu_Sqeeze_DVD.html
</link>
3052 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Making_room_on_the_Debian_Edu_Sqeeze_DVD.html
</guid>
3053 <pubDate>Sun,
7 Nov
2010 11:
45:
00 +
0100</pubDate>
3055 <p
>Prioritising packages for the Debian Edu /
3056 <a href=
"http://www.skolelinux.org/
">Skolelinux
</a
> DVD, which is
3057 supposed provide a school with all the services and user applications
3058 needed on the pupils computer network has always been hard. Even
3059 schools without Internet connections should be able to get Debian Edu
3060 working using this DVD.
</p
>
3062 <p
>The job became a lot harder when apt and aptitude started
3063 installing recommended packages by default. We want the same set of
3064 packages to be installed when using the DVD and the netinst CD, and
3065 that means all recommended packages need to be on the DVD. I created
3066 a patch for debian-cd in
<a href=
"http://bugs.debian.org/
601203">BTS
3067 report #
601203</a
> to do this, and since this change was applied to
3068 the Debian Edu DVD build, we have been seriously short on space.
</p
>
3070 <p
>A few days ago we decided to drop blender, wxmaxima and kicad from
3071 the default installation to save space on the DVD, believing that
3072 those needing these applications are few and can get them from the
3073 Debian archive.
</p
>
3075 <p
>Yesterday, I had a look what source packages to see which packages
3076 were using most space. A few large packages are well know;
3077 openoffice.org, openclipart and fluid-soundfont. But I also
3078 discovered that lilypond used
106 MiB and fglrx-driver used
53 MiB.
3079 The lilypond package is pulled in as a dependency for rosegarden, and
3080 when looking a bit closer I discovered that
99 MiB of the
106 MiB were
3081 the documentation package, which is recommended by the binary package.
3082 I decided to drop this documentation package from our DVD, as most of
3083 our users will use the GUI front-ends and do not need the lilypond
3084 documentation. Similarly, I dropped the non-free fglrx-driver package
3085 which might be installed by d-i when its hardware is detected, as the
3086 free X driver should work.
</p
>
3088 <p
>With this change, we finally got space for the LXDE and Gnome
3089 desktop packages as well as the language specific packages making the
3090 DVD more useful again.
</p
>
3095 <title>Gnash buildbot slave and Debian kfreebsd
</title>
3096 <link>http://people.skolelinux.org/pere/blog/Gnash_buildbot_slave_and_Debian_kfreebsd.html
</link>
3097 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Gnash_buildbot_slave_and_Debian_kfreebsd.html
</guid>
3098 <pubDate>Sat,
20 Nov
2010 07:
20:
00 +
0100</pubDate>
3101 <a href=
"http://www.listware.net/
201011/gnash-dev/
67431-gnash-dev-buildbot-looking-for-slaves.html
">the
3102 call from the Gnash project
</a
> for
3103 <a href=
"http://www.gnashdev.org:
8010">buildbot
</a
> slaves to test the
3104 current source, I have set up a virtual KVM machine on the Debian
3105 Edu/Skolelinux virtualization host to test the git source on
3106 Debian/Squeeze. I hope this can help the developers in getting new
3107 releases out more often.
</p
>
3109 <p
>As the developers want less main-stream build platforms tested to,
3110 I have considered setting up a
<a
3111 href=
"http://www.debian.org/ports/kfreebsd-gnu/
">Debian/kfreebsd
</a
>
3112 machine as well. I have also considered using the kfreebsd
3113 architecture in Debian as a file server in NUUG to get access to the
5
3114 TB zfs volume we currently use to store DV video. Because of this, I
3115 finally got around to do a test installation of Debian/Squeeze with
3116 kfreebsd. Installation went fairly smooth, thought I noticed some
3117 visual glitches in the cdebconf dialogs (black cursor left on the
3118 screen at random locations). Have not gotten very far with the
3119 testing. Noticed cfdisk did not work, but fdisk did so it was not a
3120 fatal problem. Have to spend some more time on it to see if it is
3121 useful as a file server for NUUG. Will try to find time to set up a
3122 gnash buildbot slave on the Debian Edu/Skolelinux this weekend.
</p
>
3127 <title>Lenny-
>Squeeze upgrades, apt vs aptitude with the Gnome and KDE desktop
</title>
3128 <link>http://people.skolelinux.org/pere/blog/Lenny__Squeeze_upgrades__apt_vs_aptitude_with_the_Gnome_and_KDE_desktop.html
</link>
3129 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Lenny__Squeeze_upgrades__apt_vs_aptitude_with_the_Gnome_and_KDE_desktop.html
</guid>
3130 <pubDate>Sat,
20 Nov
2010 22:
50:
00 +
0100</pubDate>
3132 <p
>I
'm still running upgrade testing of the
3133 <a href=
"http://people.skolelinux.org/~pere/debian-upgrade-testing/
">Lenny
3134 Gnome and KDE Desktop
</a
>, but have not had time to spend on reporting the
3135 status. Here is a short update based on a test I ran
20101118.
</p
>
3137 <p
>I still do not know what a correct migration should look like, so I
3138 report any differences between apt and aptitude and hope someone else
3139 can see if anything should be changed.
</p
>
3141 <p
>This is for Gnome:
</p
>
3143 <p
>Installed using apt-get, missing with aptitude
</p
>
3145 <blockquote
><p
>
3146 apache2.2-bin aptdaemon at-spi baobab binfmt-support
3147 browser-plugin-gnash cheese-common cli-common cpp-
4.3 cups-pk-helper
3148 dmz-cursor-theme empathy empathy-common finger
3149 freedesktop-sound-theme freeglut3 gconf-defaults-service gdm-themes
3150 gedit-plugins geoclue geoclue-hostip geoclue-localnet geoclue-manual
3151 geoclue-yahoo gnash gnash-common gnome gnome-backgrounds
3152 gnome-cards-data gnome-codec-install gnome-core
3153 gnome-desktop-environment gnome-disk-utility gnome-screenshot
3154 gnome-search-tool gnome-session-canberra gnome-spell
3155 gnome-system-log gnome-themes-extras gnome-themes-more
3156 gnome-user-share gs-common gstreamer0.10-fluendo-mp3
3157 gstreamer0.10-tools gtk2-engines gtk2-engines-pixbuf
3158 gtk2-engines-smooth hal-info hamster-applet libapache2-mod-dnssd
3159 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
3160 libart2.0-cil libatspi1.0-
0 libboost-date-time1.42
.0
3161 libboost-python1.42
.0 libboost-thread1.42
.0 libchamplain-
0.4-
0
3162 libchamplain-gtk-
0.4-
0 libcheese-gtk18 libclutter-gtk-
0.10-
0
3163 libcryptui0 libcupsys2 libdiscid0 libeel2-data libelf1 libepc-
1.0-
2
3164 libepc-common libepc-ui-
1.0-
2 libfreerdp-plugins-standard
3165 libfreerdp0 libgail-common libgconf2.0-cil libgdata-common libgdata7
3166 libgdl-
1-common libgdu-gtk0 libgee2 libgeoclue0 libgexiv2-
0 libgif4
3167 libglade2.0-cil libglib2.0-cil libgmime2.4-cil libgnome-vfs2.0-cil
3168 libgnome2.24-cil libgnomepanel2.24-cil libgnomeprint2.2-data
3169 libgnomeprintui2.2-common libgnomevfs2-bin libgpod-common libgpod4
3170 libgtk2.0-cil libgtkglext1 libgtksourceview-common
3171 libgtksourceview2.0-common libmono-addins-gui0.2-cil
3172 libmono-addins0.2-cil libmono-cairo2.0-cil libmono-corlib2.0-cil
3173 libmono-i18n-west2.0-cil libmono-posix2.0-cil
3174 libmono-security2.0-cil libmono-sharpzip2.84-cil
3175 libmono-system2.0-cil libmtp8 libmusicbrainz3-
6
3176 libndesk-dbus-glib1.0-cil libndesk-dbus1.0-cil libopal3.6
.8
3177 libpolkit-gtk-
1-
0 libpt-
1.10.10-plugins-alsa
3178 libpt-
1.10.10-plugins-v4l libpt2.6
.7 libpython2.6 librpm1 librpmio1
3179 libsdl1.2debian libservlet2.4-java libsrtp0 libssh-
4
3180 libtelepathy-farsight0 libtelepathy-glib0 libtidy-
0.99-
0
3181 libxalan2-java libxerces2-java media-player-info mesa-utils
3182 mono-
2.0-gac mono-gac mono-runtime nautilus-sendto
3183 nautilus-sendto-empathy openoffice.org-writer2latex
3184 openssl-blacklist p7zip p7zip-full pkg-config python-
4suite-xml
3185 python-aptdaemon python-aptdaemon-gtk python-axiom
3186 python-beautifulsoup python-bugbuddy python-clientform
3187 python-coherence python-configobj python-crypto python-cupshelpers
3188 python-cupsutils python-eggtrayicon python-elementtree
3189 python-epsilon python-evolution python-feedparser python-gdata
3190 python-gdbm python-gst0.10 python-gtkglext1 python-gtkmozembed
3191 python-gtksourceview2 python-httplib2 python-louie python-mako
3192 python-markupsafe python-mechanize python-nevow python-notify
3193 python-opengl python-openssl python-pam python-pkg-resources
3194 python-pyasn1 python-pysqlite2 python-rdflib python-serial
3195 python-tagpy python-twisted-bin python-twisted-conch
3196 python-twisted-core python-twisted-web python-utidylib python-webkit
3197 python-xdg python-zope.interface remmina remmina-plugin-data
3198 remmina-plugin-rdp remmina-plugin-vnc rhythmbox-plugin-cdrecorder
3199 rhythmbox-plugins rpm-common rpm2cpio seahorse-plugins shotwell
3200 software-center svgalibg1 system-config-printer-udev
3201 telepathy-gabble telepathy-mission-control-
5 telepathy-salut tomboy
3202 totem totem-coherence totem-mozilla totem-plugins
3203 transmission-common xdg-user-dirs xdg-user-dirs-gtk xserver-xephyr
3205 </p
></blockquote
>
3207 Installed using apt-get, removed with aptitude
3209 <blockquote
><p
>
3210 arj bluez-utils cheese dhcdbd djvulibre-desktop ekiga eog
3211 epiphany-extensions epiphany-gecko evolution-exchange
3212 fast-user-switch-applet file-roller gcalctool gconf-editor gdm gedit
3213 gedit-common gnome-app-install gnome-games gnome-games-data
3214 gnome-nettool gnome-system-tools gnome-themes gnome-utils
3215 gnome-vfs-obexftp gnome-volume-manager gnuchess gucharmap
3216 guile-
1.8-libs hal libavahi-compat-libdnssd1 libavahi-core5
3217 libavahi-ui0 libbind9-
50 libbluetooth2 libcamel1.2-
11 libcdio7
3218 libcucul0 libcurl3 libdirectfb-
1.0-
0 libdmx1 libdvdread3
3219 libedata-cal1.2-
6 libedataserver1.2-
9 libeel2-
2.20 libepc-
1.0-
1
3220 libepc-ui-
1.0-
1 libexchange-storage1.2-
3 libfaad0 libgadu3
3221 libgalago3 libgd2-noxpm libgda3-
3 libgda3-common libggz2 libggzcore9
3222 libggzmod4 libgksu1.2-
0 libgksuui1.0-
1 libgmyth0 libgnome-desktop-
2
3223 libgnome-pilot2 libgnomecups1.0-
1 libgnomeprint2.2-
0
3224 libgnomeprintui2.2-
0 libgpod3 libgraphviz4 libgtk-vnc-
1.0-
0
3225 libgtkhtml2-
0 libgtksourceview1.0-
0 libgtksourceview2.0-
0
3226 libgucharmap6 libhesiod0 libicu38 libisccc50 libisccfg50 libiw29
3227 libjaxp1.3-java-gcj libkpathsea4 liblircclient0 libltdl3 liblwres50
3228 libmagick++
10 libmagick10 libmalaga7 libmozjs1d libmpfr1ldbl libmtp7
3229 libmysqlclient15off libnautilus-burn4 libneon27 libnm-glib0
3230 libnm-util0 libopal-
2.2 libosp5 libparted1.8-
10 libpisock9
3231 libpisync1 libpoppler-glib3 libpoppler3 libpt-
1.10.10 libraw1394-
8
3232 libsdl1.2debian-alsa libsensors3 libsexy2 libsmbios2 libsoup2.2-
8
3233 libspeexdsp1 libssh2-
1 libsuitesparse-
3.1.0 libsvga1
3234 libswfdec-
0.6-
90 libtalloc1 libtotem-plparser10 libtrackerclient0
3235 libvoikko1 libxalan2-java-gcj libxerces2-java-gcj libxklavier12
3236 libxtrap6 libxxf86misc1 libzephyr3 mysql-common rhythmbox seahorse
3237 sound-juicer swfdec-gnome system-config-printer totem-common
3238 totem-gstreamer transmission-gtk vinagre vino w3c-dtd-xhtml wodim
3239 </p
></blockquote
>
3241 <p
>Installed using aptitude, missing with apt-get
</p
>
3243 <blockquote
><p
>
3244 gstreamer0.10-gnomevfs
3245 </p
></blockquote
>
3247 <p
>Installed using aptitude, removed with apt-get
</p
>
3249 <blockquote
><p
>
3251 </p
></blockquote
>
3253 <p
>This is for KDE:
</p
>
3255 <p
>Installed using apt-get, missing with aptitude
</p
>
3257 <blockquote
><p
>
3258 autopoint bomber bovo cantor cantor-backend-kalgebra cpp-
4.3 dcoprss
3259 edict espeak espeak-data eyesapplet fifteenapplet finger gettext
3260 ghostscript-x git gnome-audio gnugo granatier gs-common
3261 gstreamer0.10-pulseaudio indi kaddressbook-plugins kalgebra
3262 kalzium-data kanjidic kapman kate-plugins kblocks kbreakout kbstate
3263 kde-icons-mono kdeaccessibility kdeaddons-kfile-plugins
3264 kdeadmin-kfile-plugins kdeartwork-misc kdeartwork-theme-window
3265 kdeedu kdeedu-data kdeedu-kvtml-data kdegames kdegames-card-data
3266 kdegames-mahjongg-data kdegraphics-kfile-plugins kdelirc
3267 kdemultimedia-kfile-plugins kdenetwork-kfile-plugins
3268 kdepim-kfile-plugins kdepim-kio-plugins kdessh kdetoys kdewebdev
3269 kdiamond kdnssd kfilereplace kfourinline kgeography-data kigo
3270 killbots kiriki klettres-data kmoon kmrml knewsticker-scripts
3271 kollision kpf krosspython ksirk ksmserver ksquares kstars-data
3272 ksudoku kubrick kweather libasound2-plugins libboost-python1.42
.0
3273 libcfitsio3 libconvert-binhex-perl libcrypt-ssleay-perl libdb4.6++
3274 libdjvulibre-text libdotconf1.0 liberror-perl libespeak1
3275 libfinance-quote-perl libgail-common libgsl0ldbl libhtml-parser-perl
3276 libhtml-tableextract-perl libhtml-tagset-perl libhtml-tree-perl
3277 libio-stringy-perl libkdeedu4 libkdegames5 libkiten4 libkpathsea5
3278 libkrossui4 libmailtools-perl libmime-tools-perl
3279 libnews-nntpclient-perl libopenbabel3 libportaudio2 libpulse-browse0
3280 libservlet2.4-java libspeechd2 libtiff-tools libtimedate-perl
3281 libunistring0 liburi-perl libwww-perl libxalan2-java libxerces2-java
3282 lirc luatex marble networkstatus noatun-plugins
3283 openoffice.org-writer2latex palapeli palapeli-data parley
3284 parley-data poster psutils pulseaudio pulseaudio-esound-compat
3285 pulseaudio-module-x11 pulseaudio-utils quanta-data rocs rsync
3286 speech-dispatcher step svgalibg1 texlive-binaries texlive-luatex
3288 </p
></blockquote
>
3290 <p
>Installed using apt-get, removed with aptitude
</p
>
3292 <blockquote
><p
>
3293 amor artsbuilder atlantik atlantikdesigner blinken bluez-utils cvs
3294 dhcdbd djvulibre-desktop imlib-base imlib11 kalzium kanagram kandy
3295 kasteroids katomic kbackgammon kbattleship kblackbox kbounce kbruch
3296 kcron kdat kdemultimedia-kappfinder-data kdeprint kdict kdvi kedit
3297 keduca kenolaba kfax kfaxview kfouleggs kgeography kghostview
3298 kgoldrunner khangman khexedit kiconedit kig kimagemapeditor
3299 kitchensync kiten kjumpingcube klatin klettres klickety klines
3300 klinkstatus kmag kmahjongg kmailcvt kmenuedit kmid kmilo kmines
3301 kmousetool kmouth kmplot knetwalk kodo kolf kommander konquest kooka
3302 kpager kpat kpdf kpercentage kpilot kpoker kpovmodeler krec
3303 kregexpeditor kreversi ksame ksayit kshisen ksig ksim ksirc ksirtet
3304 ksmiletris ksnake ksokoban kspaceduel kstars ksvg ksysv kteatime
3305 ktip ktnef ktouch ktron kttsd ktuberling kturtle ktux kuickshow
3306 kverbos kview kviewshell kvoctrain kwifimanager kwin kwin4 kwordquiz
3307 kworldclock kxsldbg libakode2 libarts1-akode libarts1-audiofile
3308 libarts1-mpeglib libarts1-xine libavahi-compat-libdnssd1
3309 libavahi-core5 libavc1394-
0 libbind9-
50 libbluetooth2
3310 libboost-python1.34
.1 libcucul0 libcurl3 libcvsservice0
3311 libdirectfb-
1.0-
0 libdjvulibre21 libdvdread3 libfaad0 libfreebob0
3312 libgd2-noxpm libgraphviz4 libgsmme1c2a libgtkhtml2-
0 libicu38
3313 libiec61883-
0 libindex0 libisccc50 libisccfg50 libiw29
3314 libjaxp1.3-java-gcj libk3b3 libkcal2b libkcddb1 libkdeedu3
3315 libkdegames1 libkdepim1a libkgantt0 libkleopatra1 libkmime2
3316 libkpathsea4 libkpimexchange1 libkpimidentities1 libkscan1
3317 libksieve0 libktnef1 liblockdev1 libltdl3 liblwres50 libmagick10
3318 libmimelib1c2a libmodplug0c2 libmozjs1d libmpcdec3 libmpfr1ldbl
3319 libneon27 libnm-util0 libopensync0 libpisock9 libpoppler-glib3
3320 libpoppler-qt2 libpoppler3 libraw1394-
8 librss1 libsensors3
3321 libsmbios2 libssh2-
1 libsuitesparse-
3.1.0 libswfdec-
0.6-
90
3322 libtalloc1 libxalan2-java-gcj libxerces2-java-gcj libxtrap6 lskat
3323 mpeglib network-manager-kde noatun pmount tex-common texlive-base
3324 texlive-common texlive-doc-base texlive-fonts-recommended tidy
3325 ttf-dustin ttf-kochi-gothic ttf-sjfonts
3326 </p
></blockquote
>
3328 <p
>Installed using aptitude, missing with apt-get
</p
>
3330 <blockquote
><p
>
3331 dolphin kde-core kde-plasma-desktop kde-standard kde-window-manager
3332 kdeartwork kdebase kdebase-apps kdebase-workspace
3333 kdebase-workspace-bin kdebase-workspace-data kdeutils kscreensaver
3334 kscreensaver-xsavers libgle3 libkonq5 libkonq5-templates libnetpbm10
3335 netpbm plasma-widget-folderview plasma-widget-networkmanagement
3336 xscreensaver-data-extra xscreensaver-gl xscreensaver-gl-extra
3337 xscreensaver-screensaver-bsod
3338 </p
></blockquote
>
3340 <p
>Installed using aptitude, removed with apt-get
</p
>
3342 <blockquote
><p
>
3343 kdebase-bin konq-plugins konqueror
3344 </p
></blockquote
>
3349 <title>Migrating Xen virtual machines using LVM to KVM using disk images
</title>
3350 <link>http://people.skolelinux.org/pere/blog/Migrating_Xen_virtual_machines_using_LVM_to_KVM_using_disk_images.html
</link>
3351 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Migrating_Xen_virtual_machines_using_LVM_to_KVM_using_disk_images.html
</guid>
3352 <pubDate>Mon,
22 Nov
2010 11:
20:
00 +
0100</pubDate>
3354 <p
>Most of the computers in use by the
3355 <a href=
"http://www.skolelinux.org/
">Debian Edu/Skolelinux project
</a
>
3356 are virtual machines. And they have been Xen machines running on a
3357 fairly old IBM eserver xseries
345 machine, and we wanted to migrate
3358 them to KVM on a newer Dell PowerEdge
2950 host machine. This was a
3359 bit harder that it could have been, because we set up the Xen virtual
3360 machines to get the virtual partitions from LVM, which as far as I
3361 know is not supported by KVM. So to migrate, we had to convert
3362 several LVM logical volumes to partitions on a virtual disk file.
</p
>
3365 <a href=
"http://searchnetworking.techtarget.com.au/articles/
35011-Six-steps-for-migrating-Xen-virtual-machines-to-KVM
">a
3366 nice recipe
</a
> to do this, and wrote the following script to do the
3367 migration. It uses qemu-img from the qemu package to make the disk
3368 image, parted to partition it, losetup and kpartx to present the disk
3369 image partions as devices, and dd to copy the data. I NFS mounted the
3370 new servers storage area on the old server to do the migration.
</p
>
3376 # http://searchnetworking.techtarget.com.au/articles/
35011-Six-steps-for-migrating-Xen-virtual-machines-to-KVM
3381 if [ -z
"$
1" ] ; then
3382 echo
"Usage: $
0 &lt;hostname
&gt;
"
3388 if [ ! -e /dev/vg_data/$host-disk ] ; then
3389 echo
"error: unable to find LVM volume for $host
"
3393 # Partitions need to be a bit bigger than the LVM LVs. not sure why.
3394 disksize=$( lvs --units m | grep $host-disk | awk
'{sum = sum + $
4} END { print int(sum *
1.05) }
')
3395 swapsize=$( lvs --units m | grep $host-swap | awk
'{sum = sum + $
4} END { print int(sum *
1.05) }
')
3396 totalsize=$(( ( $disksize + $swapsize ) ))
3399 #dd if=/dev/zero of=$img bs=
1M count=$(( $disksize + $swapsize ))
3400 qemu-img create $img ${totalsize}MMaking room on the Debian Edu/Sqeeze DVD
3402 parted $img mklabel msdos
3403 parted $img mkpart primary linux-swap
0 $disksize
3404 parted $img mkpart primary ext2 $disksize $totalsize
3405 parted $img set
1 boot on
3408 losetup /dev/loop0 $img
3409 kpartx -a /dev/loop0
3411 dd if=/dev/vg_data/$host-disk of=/dev/mapper/loop0p1 bs=
1M
3412 fsck.ext3 -f /dev/mapper/loop0p1 || true
3413 mkswap /dev/mapper/loop0p2
3415 kpartx -d /dev/loop0
3416 losetup -d /dev/loop0
3419 <p
>The script is perhaps so simple that it is not copyrightable, but
3420 if it is, it is licenced using GPL v2 or later at your discretion.
</p
>
3422 <p
>After doing this, I booted a Debian CD in rescue mode in KVM with
3423 the new disk image attached, installed grub-pc and linux-image-
686 and
3424 set up grub to boot from the disk image. After this, the KVM machines
3425 seem to work just fine.
</p
>
3430 <title>Lenny-
>Squeeze upgrades of the Gnome and KDE desktop, now with apt-get autoremove
</title>
3431 <link>http://people.skolelinux.org/pere/blog/Lenny__Squeeze_upgrades_of_the_Gnome_and_KDE_desktop__now_with_apt_get_autoremove.html
</link>
3432 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Lenny__Squeeze_upgrades_of_the_Gnome_and_KDE_desktop__now_with_apt_get_autoremove.html
</guid>
3433 <pubDate>Mon,
22 Nov
2010 14:
15:
00 +
0100</pubDate>
3435 <p
>Michael Biebl suggested to me on IRC, that I changed my automated
3436 upgrade testing of the
3437 <a href=
"http://people.skolelinux.org/~pere/debian-upgrade-testing/
">Lenny
3438 Gnome and KDE Desktop
</a
> to do
<tt
>apt-get autoremove
</tt
> when using apt-get.
3439 This seem like a very good idea, so I adjusted by test scripts and
3440 can now present the updated result from today:
</p
>
3442 <p
>This is for Gnome:
</p
>
3444 <p
>Installed using apt-get, missing with aptitude
</p
>
3446 <blockquote
><p
>
3451 browser-plugin-gnash
3458 freedesktop-sound-theme
3460 gconf-defaults-service
3475 gnome-desktop-environment
3479 gnome-session-canberra
3484 gstreamer0.10-fluendo-mp3
3490 libapache2-mod-dnssd
3493 libaprutil1-dbd-sqlite3
3496 libboost-date-time1.42
.0
3497 libboost-python1.42
.0
3498 libboost-thread1.42
.0
3500 libchamplain-gtk-
0.4-
0
3502 libclutter-gtk-
0.10-
0
3509 libfreerdp-plugins-standard
3524 libgnomepanel2.24-cil
3529 libgtksourceview2.0-common
3530 libmono-addins-gui0.2-cil
3531 libmono-addins0.2-cil
3532 libmono-cairo2.0-cil
3533 libmono-corlib2.0-cil
3534 libmono-i18n-west2.0-cil
3535 libmono-posix2.0-cil
3536 libmono-security2.0-cil
3537 libmono-sharpzip2.84-cil
3538 libmono-system2.0-cil
3541 libndesk-dbus-glib1.0-cil
3542 libndesk-dbus1.0-cil
3552 libtelepathy-farsight0
3561 nautilus-sendto-empathy
3565 python-aptdaemon-gtk
3567 python-beautifulsoup
3582 python-gtksourceview2
3593 python-pkg-resources
3600 python-twisted-conch
3606 python-zope.interface
3611 rhythmbox-plugin-cdrecorder
3618 system-config-printer-udev
3620 telepathy-mission-control-
5
3631 </p
></blockquote
>
3633 <p
>Installed using apt-get, removed with aptitude
</p
>
3635 <blockquote
><p
>
3641 fast-user-switch-applet
3660 libgtksourceview2.0-
0
3662 libsdl1.2debian-alsa
3668 system-config-printer
3673 </p
></blockquote
>
3675 <p
>Installed using aptitude, missing with apt-get
</p
>
3677 <blockquote
><p
>
3678 gstreamer0.10-gnomevfs
3679 </p
></blockquote
>
3681 <p
>Installed using aptitude, removed with apt-get
</p
>
3683 <blockquote
><p
>
3685 </p
></blockquote
>
3687 <p
>This is for KDE:
</p
>
3689 <p
>Installed using apt-get, missing with aptitude
</p
>
3691 <blockquote
><p
>
3693 </p
></blockquote
>
3695 <p
>Installed using apt-get, removed with aptitude
</p
>
3697 <blockquote
><p
>
3700 </p
></blockquote
>
3702 <p
>Installed using aptitude, missing with apt-get
</p
>
3704 <blockquote
><p
>
3718 kdeartwork-emoticons
3720 kdeartwork-theme-icon
3724 kdebase-workspace-bin
3725 kdebase-workspace-data
3739 kscreensaver-xsavers
3754 plasma-dataengines-workspace
3756 plasma-desktopthemes-artwork
3757 plasma-runners-addons
3758 plasma-scriptengine-googlegadgets
3759 plasma-scriptengine-python
3760 plasma-scriptengine-qedje
3761 plasma-scriptengine-ruby
3762 plasma-scriptengine-webkit
3763 plasma-scriptengines
3764 plasma-wallpapers-addons
3765 plasma-widget-folderview
3766 plasma-widget-networkmanagement
3770 xscreensaver-data-extra
3772 xscreensaver-gl-extra
3773 xscreensaver-screensaver-bsod
3774 </p
></blockquote
>
3776 <p
>Installed using aptitude, removed with apt-get
</p
>
3778 <blockquote
><p
>
3780 google-gadgets-common
3798 libggadget-qt-
1.0-
0b
3803 libkonqsidebarplugin4a
3812 libplasma-geolocation-interface4
3814 libplasmagenericshell4
3828 libsmokeknewstuff2-
3
3829 libsmokeknewstuff3-
3
3831 libsmokektexteditor3
3839 libsmokeqtnetwork4-
3
3845 libsmokeqtuitools4-
3
3857 plasma-dataengines-addons
3858 plasma-scriptengine-superkaramba
3859 plasma-widget-lancelot
3860 plasma-widgets-addons
3861 plasma-widgets-workspace
3865 update-notifier-common
3866 </p
></blockquote
>
3868 <p
>Running apt-get autoremove made the results using apt-get and
3869 aptitude a bit more similar, but there are still quite a lott of
3870 differences. I have no idea what packages should be installed after
3871 the upgrade, but hope those that do can have a look.
</p
>
3876 <title>Why isn
't Debian Edu using VLC?
</title>
3877 <link>http://people.skolelinux.org/pere/blog/Why_isn_t_Debian_Edu_using_VLC_.html
</link>
3878 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Why_isn_t_Debian_Edu_using_VLC_.html
</guid>
3879 <pubDate>Sat,
27 Nov
2010 11:
30:
00 +
0100</pubDate>
3881 <p
>In the latest issue of Linux Journal, the readers choices were
3882 presented, and the winner among the multimedia player were VLC.
3883 Personally, I like VLC, and it is my player of choice when I first try
3884 to play a video file or stream. Only if VLC fail will I drag out
3885 gmplayer to see if it can do better. The reason is mostly the failure
3886 model and trust. When VLC fail, it normally pop up a error message
3887 reporting the problem. When mplayer fail, it normally segfault or
3888 just hangs. The latter failure mode drain my trust in the program.
<p
>
3890 <p
>But even if VLC is my player of choice, we have choosen to use
3891 mplayer in
<a href=
"http://www.skolelinux.org/
">Debian
3892 Edu/Skolelinux
</a
>. The reason is simple. We need a good browser
3893 plugin to play web videos seamlessly, and the VLC browser plugin is
3894 not very good. For example, it lack in-line control buttons, so there
3895 is no way for the user to pause the video. Also, when I
3896 <a href=
"http://wiki.debian.org/DebianEdu/BrowserMultimedia
">last
3897 tested the browser plugins
</a
> available in Debian, the VLC plugin
3898 failed on several video pages where mplayer based plugins worked. If
3899 the browser plugin for VLC was as good as the gecko-mediaplayer
3900 package (which uses mplayer), we would switch.
</P
>
3902 <p
>While VLC is a good player, its user interface is slightly
3903 annoying. The most annoying feature is its inconsistent use of
3904 keyboard shortcuts. When the player is in full screen mode, its
3905 shortcuts are different from when it is playing the video in a window.
3906 For example, space only work as pause when in full screen mode. I
3907 wish it had consisten shortcuts and that space also would work when in
3908 window mode. Another nice shortcut in gmplayer is [enter] to restart
3909 the current video. It is very nice when playing short videos from the
3910 web and want to restart it when new people arrive to have a look at
3911 what is going on.
</p
>
3916 <title>Debian Edu development gathering and General Assembly for FRiSK
</title>
3917 <link>http://people.skolelinux.org/pere/blog/Debian_Edu_development_gathering_and_General_Assembly_for_FRiSK.html
</link>
3918 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Debian_Edu_development_gathering_and_General_Assembly_for_FRiSK.html
</guid>
3919 <pubDate>Mon,
29 Nov
2010 18:
40:
00 +
0100</pubDate>
3921 <p
>On friday, the first Debian Edu / Skolelinux
3922 <a href=
"http://www.friprogramvareiskolen.no/Gathering/
2010-
12-
03-
05-Oslo
">development
3923 gathering
</a
> in a long time take place here in Oslo, Norway. I
3924 really look forward to seeing all the good people working on the
3925 Squeeze release. The gathering is open for everyone interested in
3926 learning more about Debian Edu / Skolelinux.
</p
>
3928 <p
>On Saturday, the Norwegian member organization taking care of
3929 organizing these development gatherings, Fri Programvare i Skolen,
3931 <a href=
"http://friprogramvareiskolen.no/Genfors/
2010">General Assembly
3932 for
2010</a
>. Membership is open for all, and currently there are
388
3933 people registered as members. Last year
32 members cast their vote in
3934 the memberdb based election system. I hope more people find time to
3935 vote this year.
</p
>
3940 <title>How to test if a laptop is working with Linux
</title>
3941 <link>http://people.skolelinux.org/pere/blog/How_to_test_if_a_laptop_is_working_with_Linux.html
</link>
3942 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/How_to_test_if_a_laptop_is_working_with_Linux.html
</guid>
3943 <pubDate>Wed,
22 Dec
2010 08:
20:
00 +
0100</pubDate>
3945 <p
>The last few days I have spent at work here at the
<a
3946 href=
"http://www.uio.no/
">University of oslo
</a
> testing if the new
3947 batch of computers will work with Linux. Every year for the last few
3948 years the university have organized shared bid of a few thousand
3949 computers, and this year HP won the bid. Two different desktops and
3950 five different laptops are on the list this year. We in the UNIX
3951 group want to know which one of these computers work well with RHEL
3952 and Ubuntu, the two Linux distributions we currently handle at the
3953 university.
</p
>
3955 <p
>My test method is simple, and I share it here to get feedback and
3956 perhaps inspire others to test hardware as well. To test, I PXE
3957 install the OS version of choice, and log in as my normal user and run
3958 a few applications and plug in selected pieces of hardware. When
3959 something fail, I make a note about this in the test matrix and move
3960 on. If I have some spare time I try to report the bug to the OS
3961 vendor, but as I only have the machines for a short time, I rarely
3962 have the time to do this for all the problems I find.
</p
>
3964 <p
>Anyway, to get to the point of this post. Here is the simple tests
3965 I perform on a new model.
</p
>
3969 <li
>Is PXE installation working? I
'm testing with RHEL6, Ubuntu Lucid
3970 and Ubuntu Maverik at the moment. If I feel like it, I also test with
3971 RHEL5 and Debian Edu/Squeeze.
</li
>
3973 <li
>Is X.org working? If the graphical login screen show up after
3974 installation, X.org is working.
</li
>
3976 <li
>Is hardware accelerated OpenGL working? Running glxgears (in
3977 package mesa-utils on Ubuntu) and writing down the frames per second
3978 reported by the program.
</li
>
3980 <li
>Is sound working? With Gnome and KDE, a sound is played when
3981 logging in, and if I can hear this the test is successful. If there
3982 are several audio exits on the machine, I try them all and check if
3983 the Gnome/KDE audio mixer can control where to send the sound. I
3984 normally test this by playing
3985 <a href=
"http://www.nuug.no/aktiviteter/
20101012-chef/
">a HTML5
3986 video
</a
> in Firefox/Iceweasel.
</li
>
3988 <li
>Is the USB subsystem working? I test this by plugging in a USB
3989 memory stick and see if Gnome/KDE notices this.
</li
>
3991 <li
>Is the CD/DVD player working? I test this by inserting any CD/DVD
3992 I have lying around, and see if Gnome/KDE notices this.
</li
>
3994 <li
>Is any built in camera working? Test using cheese, and see if a
3995 picture from the v4l device show up.
</li
>
3997 <li
>Is bluetooth working? Use the Gnome/KDE browsing tool to see if
3998 any bluetooth devices are discovered. In my office, I normally see a
4001 <li
>For laptops, is the SD or Compaq Flash reader working. I have
4002 memory modules lying around, and stick them in and see if Gnome/KDE
4003 notice this.
</li
>
4005 <li
>For laptops, is suspecd/hibernate working? I
'm testing if the
4006 special button work, and if the laptop continue to work after
4009 <li
>For laptops, is the extra buttons working, like audio level,
4010 adjusting background light, switching on/off external video output,
4011 switching on/off wifi, bluetooth, etc? The set of buttons differ from
4012 laptop to laptop, so I just write down which are working and which are
4015 <li
>Some laptops have smart card readers, finger print readers,
4016 acceleration sensors etc. I rarely test these, as I do not know how
4017 to quickly test if they are working or not, so I only document their
4018 existence.
</li
>
4022 <p
>By now I suspect you are really curious what the test results are
4023 for the HP machines I am testing. I
'm not done yet, so I will report
4024 the test results later. For now I can report that HP
8100 Elite work
4025 fine, and hibernation fail with HP EliteBook
8440p on Ubuntu Lucid,
4026 and audio fail on RHEL6. Ubuntu Maverik worked with
8440p. As you
4027 can see, I have most machines left to test. One interesting
4028 observation is that Ubuntu Lucid has almost twice the framerate than
4029 RHEL6 with glxgears. No idea why.
</p
>