1 <?xml version=
"1.0" encoding=
"utf-8"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/' xmlns:
atom=
"http://www.w3.org/2005/Atom">
4 <title>Petter Reinholdtsen
</title>
5 <description></description>
6 <link>http://people.skolelinux.org/pere/blog/
</link>
7 <atom:link href=
"http://people.skolelinux.org/pere/blog/index.rss" rel=
"self" type=
"application/rss+xml" />
10 <title>Caching password, user and group on a roaming Debian laptop
</title>
11 <link>http://people.skolelinux.org/pere/blog/Caching_password__user_and_group_on_a_roaming_Debian_laptop.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Caching_password__user_and_group_on_a_roaming_Debian_laptop.html
</guid>
13 <pubDate>Thu,
1 Jul
2010 11:
40:
00 +
0200</pubDate>
15 <p
>For a laptop, centralized user directories and password checking is
16 a bit troubling. Laptops are typically used also when not connected
17 to the network, and it is vital for a user to be able to log in or
18 unlock the screen saver also when a central server is unavailable.
19 This is possible by caching passwords and directory information (user
20 and group attributes) locally, and the packages to do so are available
21 in Debian. Here follow two recipes to set this up in Debian/Squeeze.
22 It is also possible to set up in Debian/Lenny, but require more manual
23 setup there because pam-auth-update is missing in Lenny.
</p
>
25 <h2
>LDAP/Kerberos + nscd + libpam-ccreds + libpam-mklocaluser/pam_mkhomedir
</h2
>
27 This is the traditional method with a twist. The password caching is
28 provided by libpam-ccreds (version
10-
4 or later is needed on
29 Squeeze), and the directory caching is done by nscd. The directory
30 lookup and password checking is done using LDAP. If one want to use
31 Kerberos for password checking the libpam-ldapd package can be
32 replaced with libpam-krb5 or libpam-heimdal. If one is happy having a
33 local home directory with the path listed in LDAP, one can use the
34 pam_mkhomedir module from pam-modules to make this happen instead of
35 using libpam-mklocaluser. A setup for pam-auth-update to enable
36 pam_mkhomedir will have to be written until a fix for
37 <a href=
"http://bugs.debian.org/
568577">bug #
568577</a
> is in the
38 archive. Because I believe it is a bad idea to have local home
39 directories using misleading paths like /site/server/partition/, I
40 prefer to create a local user with the home directory in /home/. This
41 is done using the libpam-mklocaluser package.
</p
>
43 <p
>These packages need to be installed and configured
</p
>
45 <blockquote
><pre
>
46 libnss-ldapd libpam-ldapd nscd libpam-ccreds libpam-mklocaluser
47 </pre
></blockquote
>
49 <p
>The ldapd packages will ask for LDAP connection information, and
50 one have to fill in the values that fits ones own site. Make sure the
51 PAM part uses encrypted connections, to make sure the password is not
52 sent in clear text to the LDAP server. I
've been unable to get TLS
53 certificate checking for a self signed certificate working, which make
54 LDAP authentication unsafe for Debian Edu (nslcd is not checking if it
55 is talking to the correct LDAP server), and very much welcome feedback
56 on how to get this working.
</p
>
58 <p
>Because nscd do not have a default configuration fit for offline
59 caching until
<a href=
"http://bugs.debian.org/
485282">bug #
485282</a
>
60 is fixed, this configuration should be used instead of the one
61 currently in /etc/nscd.conf. The changes are in the fields
62 reload-count and positive-time-to-live, and is based on the
63 instructions I found in the
64 <a href=
"http://www.flyn.org/laptopldap/
">LDAP for Mobile Laptops
</a
>
65 instructions by Flyn Computing.
</p
>
67 <blockquote
><pre
>
69 reload-count unlimited
72 enable-cache passwd yes
73 positive-time-to-live passwd
2592000
74 negative-time-to-live passwd
20
75 suggested-size passwd
211
76 check-files passwd yes
79 max-db-size passwd
33554432
80 auto-propagate passwd yes
82 enable-cache group yes
83 positive-time-to-live group
2592000
84 negative-time-to-live group
20
85 suggested-size group
211
89 max-db-size group
33554432
90 auto-propagate group yes
93 positive-time-to-live hosts
2592000
94 negative-time-to-live hosts
20
95 suggested-size hosts
211
99 max-db-size hosts
33554432
101 enable-cache services yes
102 positive-time-to-live services
2592000
103 negative-time-to-live services
20
104 suggested-size services
211
105 check-files services yes
106 persistent services yes
108 max-db-size services
33554432
109 </pre
></blockquote
>
111 <p
>While we wait for a mechanism to update /etc/nsswitch.conf
112 automatically like the one provided in
113 <a href=
"http://bugs.debian.org/
496915">bug #
496915</a
>, the file
114 content need to be manually replaced to ensure LDAP is used as the
115 directory service on the machine. /etc/nsswitch.conf should normally
116 look like this:
</p
>
118 <blockquote
><pre
>
122 hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
129 </pre
></blockquote
>
131 <p
>The important parts are that ldap is listed last for passwd, group,
132 shadow and netgroup.
</p
>
134 <p
>With these changes in place, any user in LDAP will be able to log
135 in locally on the machine using for example kdm, get a local home
136 directory created and have the password as well as user and group
139 <h2
>LDAP/Kerberos + nss-updatedb + libpam-ccreds +
140 libpam-mklocaluser/pam_mkhomedir
</h2
>
142 <p
>Because nscd have had its share of problems, and seem to have
143 problems doing proper caching, I
've seen suggestions and recipes to
144 use nss-updatedb to copy parts of the LDAP database locally when the
145 LDAP database is available. I have not tested such setup, because I
146 discovered sssd.
</p
>
148 <h2
>LDAP/Kerberos + sssd + libpam-mklocaluser
</h2
>
150 <p
>A more flexible and robust setup than the nscd combination
151 mentioned earlier that has shown up recently, is the
152 <a href=
"https://fedorahosted.org/sssd/
">sssd
</a
> package from Redhat.
153 It is part of the
<a href=
"http://www.freeipa.org/
">FreeIPA
</A
> project
154 to provide a Active Directory like directory service for Linux
155 machines. The sssd system combines the caching of passwords and user
156 information into one package, and remove the need for nscd and
157 libpam-ccreds. It support LDAP and Kerberos, but not NIS. Version
158 1.2 do not support netgroups, but it is said that it will support this
159 in version
1.5 expected to show up later in
2010. Because the
160 <a href=
"http://packages.qa.debian.org/s/sssd.html
">sssd package
</a
>
161 was missing in Debian, I ended up co-maintaining it with Werner, and
162 version
1.2 is now in testing.
164 <p
>These packages need to be installed and configured to get the
165 roaming setup I want
</p
>
167 <blockquote
><pre
>
168 libpam-sss libnss-sss libpam-mklocaluser
169 </pre
></blockquote
>
171 The complete setup of sssd is done by editing/creating
172 <tt
>/etc/sssd/sssd.conf
</tt
>.
174 <blockquote
><pre
>
176 config_file_version =
2
177 reconnection_retries =
3
185 reconnection_retries =
3
188 reconnection_retries =
3
192 cache_credentials = true
196 chpass_provider = ldap
198 ldap_uri = ldap://ldap
199 ldap_search_base = dc=skole,dc=skolelinux,dc=no
200 ldap_tls_reqcert = never
201 ldap_tls_cacert = /etc/ssl/certs/ca-certificates.crt
202 </pre
></blockquote
>
204 <p
>I got the same problem here with certificate checking. Had to set
205 "ldap_tls_reqcert = never
" to get it working.
</p
>
207 <p
>With the libnss-sss package in testing at the moment, the
208 nsswitch.conf file is update automatically, so there is no need to
209 modify it manually.
</p
>
211 <p
>If you want to help out with implementing this for Debian Edu,
212 please contact us on debian-edu@lists.debian.org.
</p
>
217 <title>LUMA, a very nice LDAP GUI
</title>
218 <link>http://people.skolelinux.org/pere/blog/LUMA__a_very_nice_LDAP_GUI.html
</link>
219 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/LUMA__a_very_nice_LDAP_GUI.html
</guid>
220 <pubDate>Mon,
28 Jun
2010 00:
30:
00 +
0200</pubDate>
222 <p
>The last few days I have been looking into the status of the LDAP
223 directory in Debian Edu, and in the process I started to miss a GUI
224 tool to browse the LDAP tree. The only one I was able to find in
225 Debian/Squeeze and Lenny is
226 <a href=
"http://luma.sourceforge.net/
">LUMA
</a
>, which has proved to
227 be a great tool to get a overview of the current LDAP directory
228 populated by default in Skolelinux. Thanks to it, I have been able to
229 find empty and obsolete subtrees, misplaced objects and duplicate
230 objects. It will be installed by default in Debian/Squeeze. If you
231 are working with LDAP, give it a go. :)
</p
>
233 <p
>I did notice one problem with it I have not had time to report to
234 the BTS yet. There is no .desktop file in the package, so the tool do
235 not show up in the Gnome and KDE menus, but only deep down in in the
236 Debian submenu in KDE. I hope that can be fixed before Squeeze is
239 <p
>I have not yet been able to get it to modify the tree yet. I would
240 like to move objects and remove subtrees directly in the GUI, but have
241 not found a way to do that with LUMA yet. So in the mean time, I use
242 <a href=
"http://www.lichteblau.com/ldapvi/
">ldapvi
</a
> for that.
</p
>
244 <p
>If you have tips on other GUI tools for LDAP that might be useful
245 in Debian Edu, please contact us on debian-edu@lists.debian.org.
</p
>
247 <p
>Update
2010-
06-
29: Ross Reedstrom tipped us about the
248 <a href=
"http://packages.qa.debian.org/g/gq.html
">gq
</a
> package as a
249 useful GUI alternative. It seem like a good tool, but is unmaintained
250 in Debian and got a RC bug keeping it out of Squeeze. Unless that
251 changes, it will not be an option for Debian Edu based on Squeeze.
</p
>
256 <title>Idea for a change to LDAP schemas allowing DNS and DHCP info to be combined into one object
</title>
257 <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>
258 <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>
259 <pubDate>Thu,
24 Jun
2010 00:
35:
00 +
0200</pubDate>
261 <p
>A while back, I
262 <a href=
"http://people.skolelinux.org/pere/blog/Time_for_new__LDAP_schemas_replacing_RFC_2307_.html
">complained
263 about the fact
</a
> that it is not possible with the provided schemas
264 for storing DNS and DHCP information in LDAP to combine the two sets
265 of information into one LDAP object representing a computer.
</p
>
267 <p
>In the mean time, I discovered that a simple fix would be to make
268 the dhcpHost object class auxiliary, to allow it to be combined with
269 the dNSDomain object class, and thus forming one object for one
270 computer when storing both DHCP and DNS information in LDAP.
</p
>
272 <p
>If I understand this correctly, it is not safe to do this change
273 without also changing the assigned number for the object class, and I
274 do not know enough about LDAP schema design to do that properly for
275 Debian Edu.
</p
>
277 <p
>Anyway, for future reference, this is how I believe we could change
279 <a href=
"http://tools.ietf.org/html/draft-ietf-dhc-ldap-schema-
00">DHCP
280 schema
</a
> to solve at least part of the problem with the LDAP schemas
281 available today from IETF.
</p
>
284 --- dhcp.schema (revision
65192)
285 +++ dhcp.schema (working copy)
287 objectclass (
2.16.840.1.113719.1.203.6.6
288 NAME
'dhcpHost
'
289 DESC
'This represents information about a particular client
'
293 MAY (dhcpLeaseDN $ dhcpHWAddress $ dhcpOptionsDN $ dhcpStatements $ dhcpComments $ dhcpOption)
294 X-NDS_CONTAINMENT (
'dhcpService
' 'dhcpSubnet
' 'dhcpGroup
') )
297 <p
>I very much welcome clues on how to do this properly for Debian
298 Edu/Squeeze. We provide the DHCP schema in our debian-edu-config
299 package, and should thus be free to rewrite it as we see fit.
</p
>
301 <p
>If you want to help out with implementing this for Debian Edu,
302 please contact us on debian-edu@lists.debian.org.
</p
>
307 <title>Calling tasksel like the installer, while still getting useful output
</title>
308 <link>http://people.skolelinux.org/pere/blog/Calling_tasksel_like_the_installer__while_still_getting_useful_output.html
</link>
309 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Calling_tasksel_like_the_installer__while_still_getting_useful_output.html
</guid>
310 <pubDate>Wed,
16 Jun
2010 14:
55:
00 +
0200</pubDate>
312 <p
>A few times I have had the need to simulate the way tasksel
313 installs packages during the normal debian-installer run. Until now,
314 I have ended up letting tasksel do the work, with the annoying problem
315 of not getting any feedback at all when something fails (like a
316 conffile question from dpkg or a download that fails), using code like
319 <blockquote
><pre
>
320 export DEBIAN_FRONTEND=noninteractive
321 tasksel --new-install
322 </pre
></blockquote
>
324 This would invoke tasksel, let its automatic task selection pick the
325 tasks to install, and continue to install the requested tasks without
326 any output what so ever.
328 Recently I revisited this problem while working on the automatic
329 package upgrade testing, because tasksel would some times hang without
330 any useful feedback, and I want to see what is going on when it
331 happen. Then it occured to me, I can parse the output from tasksel
332 when asked to run in test mode, and use that aptitude command line
333 printed by tasksel then to simulate the tasksel run. I ended up using
336 <blockquote
><pre
>
337 export DEBIAN_FRONTEND=noninteractive
338 cmd=
"$(in_target tasksel -t --new-install | sed
's/debconf-apt-progress -- //
')
"
340 </pre
></blockquote
>
342 <p
>The content of $cmd is typically something like
"<tt
>aptitude -q
343 --without-recommends -o APT::Install-Recommends=no -y install
344 ~t^desktop$ ~t^gnome-desktop$ ~t^laptop$ ~pstandard ~prequired
345 ~pimportant
</tt
>", which will install the gnome desktop task, the
346 laptop task and all packages with priority standard , required and
347 important, just like tasksel would have done it during
348 installation.
</p
>
350 <p
>A better approach is probably to extend tasksel to be able to
351 install packages without using debconf-apt-progress, for use cases
357 <title>Vinmonopolet bryter loven åpenlyst - og flere planlegger å gjøre det samme
</title>
358 <link>http://people.skolelinux.org/pere/blog/Vinmonopolet_bryter_loven___penlyst___og_flere_planlegger____gj__re_det_samme.html
</link>
359 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Vinmonopolet_bryter_loven___penlyst___og_flere_planlegger____gj__re_det_samme.html
</guid>
360 <pubDate>Wed,
16 Jun
2010 11:
00:
00 +
0200</pubDate>
362 <p
><a href=
"http://www.dagbladet.no/
2010/
06/
16/nyheter/innenriks/streik/arbeidsliv/
12157858/
">Dagbladet
363 melder
</a
> at Vinmonopolet med bakgrunn i vekterstreiken som pågår i
364 Norge for tiden, har bestemt seg for med vitende og vilje å bryte
365 sentralbanklovens paragraf
14 ved å nekte folk å betale med
366 kontanter, og at flere butikker planlegger å følge deres eksempel.
367 Jeg synes det er hårreisende hvis de slipper unna med et slikt
368 soleklart lovbrudd, og lurer på hva slags muligheter jeg vil ha hvis
369 jeg blir nektet å handle med kontanter. Jeg handler i hovedsak med
370 kontanter selv, da jeg anser det som en borgerrett å kunne handle
371 anonymt uten at det blir registrert. For meg er det et angrep på mitt
372 personvern å nekte å ta imot kontant betaling.
</p
>
374 <p
><a href=
"http://www.lovdata.no/all/tl-
19850524-
028-
003.html#
14">Paragrafen
375 i sentralbankloven
</a
> lyder:
</p
>
378 <p
>§
14. Tvungent betalingsmiddel
</p
>
380 <p
>Bankens sedler og mynter er tvungent betalingsmiddel i Norge. Ingen
381 er pliktig til i én betaling å ta imot mer enn femogtyve mynter av
382 hver enhet.
</p
>
384 <p
>Sterkt skadde sedler og mynter er ikke tvungent
385 betalingsmiddel. Banken gir nærmere forskrifter om erstatning for
386 bortkomne, brente eller skadde sedler og mynter.
</p
>
388 <p
>Selv om en avtale inneholder klausul om betaling av en
389 pengeforpliktelse i gullverdi, kan skyldneren frigjøre seg med tvungne
390 betalingsmidler uten hensyn til denne klausul.
</p
>
393 <p
>Det er med bakgrunn i denne lovet ikke tillatt å nekte å ta imot
394 kontakt betaling. Det er en lov jeg har sans for, og som jeg mener må
395 håndheves strengt.
</p
>
400 <title>Officeshots taking shape
</title>
401 <link>http://people.skolelinux.org/pere/blog/Officeshots_taking_shape.html
</link>
402 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Officeshots_taking_shape.html
</guid>
403 <pubDate>Sun,
13 Jun
2010 11:
40:
00 +
0200</pubDate>
405 <p
>For those of us caring about document exchange and
406 interoperability,
<a href=
"http://www.officeshots.org/
">OfficeShots
</a
>
407 is a great service. It is to ODF documents what
408 <a href=
"http://browsershots.org/
">BrowserShots
</a
> is for web
411 <p
>A while back, I was contacted by Knut Yrvin at the part of Nokia
412 that used to be Trolltech, who wanted to help the OfficeShots project
413 and wondered if the University of Oslo where I work would be
414 interested in supporting the project. I helped him to navigate his
415 request to the right people at work, and his request was answered with
416 a spot in the machine room with power and network connected, and Knut
417 arranged funding for a machine to fill the spot. The machine is
418 administrated by the OfficeShots people, so I do not have daily
419 contact with its progress, and thus from time to time check back to
420 see how the project is doing.
</p
>
422 <p
>Today I had a look, and was happy to see that the Dell box in our
423 machine room now is the host for several virtual machines running as
424 OfficeShots factories, and the project is able to render ODF documents
425 in
17 different document processing implementation on Linux and
426 Windows. This is great.
</p
>
431 <title>Lenny-
>Squeeze upgrades, removals by apt and aptitude
</title>
432 <link>http://people.skolelinux.org/pere/blog/Lenny__Squeeze_upgrades__removals_by_apt_and_aptitude.html
</link>
433 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Lenny__Squeeze_upgrades__removals_by_apt_and_aptitude.html
</guid>
434 <pubDate>Sun,
13 Jun
2010 09:
05:
00 +
0200</pubDate>
437 <a href=
"http://people.skolelinux.org/pere/blog/Automatic_upgrade_testing_from_Lenny_to_Squeeze.html
">testing
438 of Debian upgrades
</a
> from Lenny to Squeeze continues, and I
've
439 finally made the upgrade logs available from
440 <a href=
"http://people.skolelinux.org/pere/debian-upgrade-testing/
">http://people.skolelinux.org/pere/debian-upgrade-testing/
</a
>.
441 I am now testing dist-upgrade of Gnome and KDE in a chroot using both
442 apt and aptitude, and found their differences interesting. This time
443 I will only focus on their removal plans.
</p
>
445 <p
>After installing a Gnome desktop and the laptop task, apt-get wants
446 to remove
72 packages when dist-upgrading from Lenny to Squeeze. The
447 surprising part is that it want to remove xorg and all
448 xserver-xorg-video* drivers. Clearly not a good choice, but I am not
449 sure why. When asking aptitude to do the same, it want to remove
129
450 packages, but most of them are library packages I suspect are no
451 longer needed. Both of them want to remove bluetooth packages, which
452 I do not know. Perhaps these bluetooth packages are obsolete?
</p
>
454 <p
>For KDE, apt-get want to remove
82 packages, among them kdebase
455 which seem like a bad idea and xorg the same way as with Gnome. Asking
456 aptitude for the same, it wants to remove
192 packages, none which are
457 too surprising.
</p
>
459 <p
>I guess the removal of xorg during upgrades should be investigated
460 and avoided, and perhaps others as well. Here are the complete list
461 of planned removals. The complete logs is available from the URL
462 above. Note if you want to repeat these tests, that the upgrade test
463 for kde+apt-get hung in the tasksel setup because of dpkg asking
464 conffile questions. No idea why. I worked around it by using
465 '<tt
>echo
>> /proc/
<em
>pidofdpkg
</em
>/fd/
0</tt
>' to tell dpkg to
468 <p
><b
>apt-get gnome
72</b
>
469 <br
>bluez-gnome cupsddk-drivers deskbar-applet gnome
470 gnome-desktop-environment gnome-network-admin gtkhtml3.14
471 iceweasel-gnome-support libavcodec51 libdatrie0 libgdl-
1-
0
472 libgnomekbd2 libgnomekbdui2 libmetacity0 libslab0 libxcb-xlib0
473 nautilus-cd-burner python-gnome2-desktop python-gnome2-extras
474 serpentine swfdec-mozilla update-manager xorg xserver-xorg
475 xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-evdev
476 xserver-xorg-input-kbd xserver-xorg-input-mouse
477 xserver-xorg-input-synaptics xserver-xorg-input-wacom
478 xserver-xorg-video-all xserver-xorg-video-apm xserver-xorg-video-ark
479 xserver-xorg-video-ati xserver-xorg-video-chips
480 xserver-xorg-video-cirrus xserver-xorg-video-cyrix
481 xserver-xorg-video-dummy xserver-xorg-video-fbdev
482 xserver-xorg-video-glint xserver-xorg-video-i128
483 xserver-xorg-video-i740 xserver-xorg-video-imstt
484 xserver-xorg-video-intel xserver-xorg-video-mach64
485 xserver-xorg-video-mga xserver-xorg-video-neomagic
486 xserver-xorg-video-nsc xserver-xorg-video-nv
487 xserver-xorg-video-openchrome xserver-xorg-video-r128
488 xserver-xorg-video-radeon xserver-xorg-video-radeonhd
489 xserver-xorg-video-rendition xserver-xorg-video-s3
490 xserver-xorg-video-s3virge xserver-xorg-video-savage
491 xserver-xorg-video-siliconmotion xserver-xorg-video-sis
492 xserver-xorg-video-sisusb xserver-xorg-video-tdfx
493 xserver-xorg-video-tga xserver-xorg-video-trident
494 xserver-xorg-video-tseng xserver-xorg-video-v4l
495 xserver-xorg-video-vesa xserver-xorg-video-vga
496 xserver-xorg-video-vmware xserver-xorg-video-voodoo xulrunner-
1.9
497 xulrunner-
1.9-gnome-support
</p
>
499 <p
><b
>aptitude gnome
129</b
>
501 <br
>bluez-gnome bluez-utils cpp-
4.3 cupsddk-drivers dhcdbd
502 djvulibre-desktop finger gnome-app-install gnome-mount
503 gnome-network-admin gnome-spell gnome-vfs-obexftp
504 gnome-volume-manager gstreamer0.10-gnomevfs gtkhtml3.14 libao2
505 libavahi-compat-libdnssd1 libavahi-core5 libavcodec51 libbluetooth2
506 libcamel1.2-
11 libcdio7 libcucul0 libcupsys2 libcurl3 libdatrie0
507 libdirectfb-
1.0-
0 libdvdread3 libedataserver1.2-
9 libeel2-
2.20
508 libeel2-data libepc-
1.0-
1 libepc-ui-
1.0-
1 libfaad0 libgail-common
509 libgd2-noxpm libgda3-
3 libgda3-common libgdl-
1-
0 libgdl-
1-common
510 libggz2 libggzcore9 libggzmod4 libgksu1.2-
0 libgksuui1.0-
1 libgmyth0
511 libgnomecups1.0-
1 libgnomekbd2 libgnomekbdui2 libgnomeprint2.2-
0
512 libgnomeprint2.2-data libgnomeprintui2.2-
0 libgnomeprintui2.2-common
513 libgnomevfs2-bin libgpod3 libgraphviz4 libgtkhtml2-
0
514 libgtksourceview-common libgtksourceview1.0-
0 libgucharmap6
515 libhesiod0 libicu38 libiw29 libkpathsea4 libltdl3 libmagick++
10
516 libmagick10 libmalaga7 libmetacity0 libmtp7 libmysqlclient15off
517 libnautilus-burn4 libneon27 libnm-glib0 libnm-util0 libopal-
2.2
518 libosp5 libparted1.8-
10 libpoppler-glib3 libpoppler3 libpt-
1.10.10
519 libpt-
1.10.10-plugins-alsa libpt-
1.10.10-plugins-v4l libraw1394-
8
520 libsensors3 libslab0 libsmbios2 libsoup2.2-
8 libssh2-
1
521 libsuitesparse-
3.1.0 libswfdec-
0.6-
90 libtalloc1 libtotem-plparser10
522 libtrackerclient0 libxalan2-java libxalan2-java-gcj libxcb-xlib0
523 libxerces2-java libxerces2-java-gcj libxklavier12 libxtrap6
524 libxxf86misc1 libzephyr3 mysql-common nautilus-cd-burner
525 openoffice.org-writer2latex openssl-blacklist p7zip
526 python-
4suite-xml python-eggtrayicon python-gnome2-desktop
527 python-gnome2-extras python-gtkhtml2 python-gtkmozembed
528 python-numeric python-sexy serpentine svgalibg1 swfdec-gnome
529 swfdec-mozilla totem-gstreamer update-manager wodim
530 xserver-xorg-video-cyrix xserver-xorg-video-imstt
531 xserver-xorg-video-nsc xserver-xorg-video-v4l xserver-xorg-video-vga
534 <p
><b
>apt-get kde
82</b
>
536 <br
>cupsddk-drivers karm kaudiocreator kcoloredit kcontrol kde kde-core
537 kdeaddons kdeartwork kdebase kdebase-bin kdebase-bin-kde3
538 kdebase-kio-plugins kdesktop kdeutils khelpcenter kicker
539 kicker-applets knewsticker kolourpaint konq-plugins konqueror korn
540 kpersonalizer kscreensaver ksplash libavcodec51 libdatrie0 libkiten1
541 libxcb-xlib0 quanta superkaramba texlive-base-bin xorg xserver-xorg
542 xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-evdev
543 xserver-xorg-input-kbd xserver-xorg-input-mouse
544 xserver-xorg-input-synaptics xserver-xorg-input-wacom
545 xserver-xorg-video-all xserver-xorg-video-apm xserver-xorg-video-ark
546 xserver-xorg-video-ati xserver-xorg-video-chips
547 xserver-xorg-video-cirrus xserver-xorg-video-cyrix
548 xserver-xorg-video-dummy xserver-xorg-video-fbdev
549 xserver-xorg-video-glint xserver-xorg-video-i128
550 xserver-xorg-video-i740 xserver-xorg-video-imstt
551 xserver-xorg-video-intel xserver-xorg-video-mach64
552 xserver-xorg-video-mga xserver-xorg-video-neomagic
553 xserver-xorg-video-nsc xserver-xorg-video-nv
554 xserver-xorg-video-openchrome xserver-xorg-video-r128
555 xserver-xorg-video-radeon xserver-xorg-video-radeonhd
556 xserver-xorg-video-rendition xserver-xorg-video-s3
557 xserver-xorg-video-s3virge xserver-xorg-video-savage
558 xserver-xorg-video-siliconmotion xserver-xorg-video-sis
559 xserver-xorg-video-sisusb xserver-xorg-video-tdfx
560 xserver-xorg-video-tga xserver-xorg-video-trident
561 xserver-xorg-video-tseng xserver-xorg-video-v4l
562 xserver-xorg-video-vesa xserver-xorg-video-vga
563 xserver-xorg-video-vmware xserver-xorg-video-voodoo xulrunner-
1.9</p
>
565 <p
><b
>aptitude kde
192</b
>
566 <br
>bluez-utils cpp-
4.3 cupsddk-drivers cvs dcoprss dhcdbd
567 djvulibre-desktop dosfstools eyesapplet fifteenapplet finger gettext
568 ghostscript-x imlib-base imlib11 indi kandy karm kasteroids
569 kaudiocreator kbackgammon kbstate kcoloredit kcontrol kcron kdat
570 kdeadmin-kfile-plugins kdeartwork-misc kdeartwork-theme-window
571 kdebase-bin-kde3 kdebase-kio-plugins kdeedu-data
572 kdegraphics-kfile-plugins kdelirc kdemultimedia-kappfinder-data
573 kdemultimedia-kfile-plugins kdenetwork-kfile-plugins
574 kdepim-kfile-plugins kdepim-kio-plugins kdeprint kdesktop kdessh
575 kdict kdnssd kdvi kedit keduca kenolaba kfax kfaxview kfouleggs
576 kghostview khelpcenter khexedit kiconedit kitchensync klatin
577 klickety kmailcvt kmenuedit kmid kmilo kmoon kmrml kodo kolourpaint
578 kooka korn kpager kpdf kpercentage kpf kpilot kpoker kpovmodeler
579 krec kregexpeditor ksayit ksim ksirc ksirtet ksmiletris ksmserver
580 ksnake ksokoban ksplash ksvg ksysv ktip ktnef kuickshow kverbos
581 kview kviewshell kvoctrain kwifimanager kwin kwin4 kworldclock
582 kxsldbg libakode2 libao2 libarts1-akode libarts1-audiofile
583 libarts1-mpeglib libarts1-xine libavahi-compat-libdnssd1
584 libavahi-core5 libavc1394-
0 libavcodec51 libbluetooth2
585 libboost-python1.34
.1 libcucul0 libcurl3 libcvsservice0 libdatrie0
586 libdirectfb-
1.0-
0 libdjvulibre21 libdvdread3 libfaad0 libfreebob0
587 libgail-common libgd2-noxpm libgraphviz4 libgsmme1c2a libgtkhtml2-
0
588 libicu38 libiec61883-
0 libindex0 libiw29 libk3b3 libkcal2b libkcddb1
589 libkdeedu3 libkdepim1a libkgantt0 libkiten1 libkleopatra1 libkmime2
590 libkpathsea4 libkpimexchange1 libkpimidentities1 libkscan1
591 libksieve0 libktnef1 liblockdev1 libltdl3 libmagick10 libmimelib1c2a
592 libmozjs1d libmpcdec3 libneon27 libnm-util0 libopensync0 libpisock9
593 libpoppler-glib3 libpoppler-qt2 libpoppler3 libraw1394-
8 libsmbios2
594 libssh2-
1 libsuitesparse-
3.1.0 libtalloc1 libtiff-tools
595 libxalan2-java libxalan2-java-gcj libxcb-xlib0 libxerces2-java
596 libxerces2-java-gcj libxtrap6 mpeglib networkstatus
597 openoffice.org-writer2latex pmount poster psutils quanta quanta-data
598 superkaramba svgalibg1 tex-common texlive-base texlive-base-bin
599 texlive-common texlive-doc-base texlive-fonts-recommended
600 xserver-xorg-video-cyrix xserver-xorg-video-imstt
601 xserver-xorg-video-nsc xserver-xorg-video-v4l xserver-xorg-video-vga
602 xulrunner-
1.9</p
>
608 <title>Åpne trådløsnett er et samfunnsgode
</title>
609 <link>http://people.skolelinux.org/pere/blog/__pne_tr__dl__snett_er_et_samfunnsgode.html
</link>
610 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/__pne_tr__dl__snett_er_et_samfunnsgode.html
</guid>
611 <pubDate>Sat,
12 Jun
2010 12:
45:
00 +
0200</pubDate>
613 <p
>Veldig glad for å oppdage via
614 <a href=
"http://yro.slashdot.org/story/
10/
06/
11/
1841256/Finland-To-Legalize-Use-of-Unsecured-Wi-Fi
">Slashdot
</a
>
615 at folk i Finland har forstått at åpne trådløsnett er et samfunnsgode.
616 Jeg ser på åpne trådløsnett som et fellesgode på linje med retten til
617 ferdsel i utmark og retten til å bevege seg i strandsonen. Jeg har
618 glede av åpne trådløsnett når jeg finner dem, og deler gladelig nett
619 med andre så lenge de ikke forstyrrer min bruk av eget nett.
620 Nettkapasiteten er sjelden en begrensning ved normal browsing og enkel
621 SSH-innlogging (som er min vanligste nettbruk), og nett kan brukes til
622 så mye positivt og nyttig (som nyhetslesing, sjekke været, kontakte
623 slekt og venner, holde seg oppdatert om politiske saker, kontakte
624 organisasjoner og politikere, etc), at det for meg er helt urimelig å
625 blokkere dette for alle som ikke gjør en flue fortred. De som mener
626 at potensialet for misbruk er grunn nok til å hindre all den positive
627 og lovlydige bruken av et åpent trådløsnett har jeg dermed ingen
628 forståelse for. En kan ikke eksistensen av forbrytere styre hvordan
629 samfunnet skal organiseres. Da får en et kontrollsamfunn de færreste
630 ønsker å leve i, og det at vi har et samfunn i Norge der tilliten til
631 hverandre er høy gjør at samfunnet fungerer ganske godt. Det bør vi
632 anstrenge oss for å beholde.
</p
>
637 <title>Automatic upgrade testing from Lenny to Squeeze
</title>
638 <link>http://people.skolelinux.org/pere/blog/Automatic_upgrade_testing_from_Lenny_to_Squeeze.html
</link>
639 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Automatic_upgrade_testing_from_Lenny_to_Squeeze.html
</guid>
640 <pubDate>Fri,
11 Jun
2010 22:
50:
00 +
0200</pubDate>
642 <p
>The last few days I have done some upgrade testing in Debian, to
643 see if the upgrade from Lenny to Squeeze will go smoothly. A few bugs
644 have been discovered and reported in the process
645 (
<a href=
"http://bugs.debian.org/
585410">#
585410</a
> in nagios3-cgi,
646 <a href=
"http://bugs.debian.org/
584879">#
584879</a
> already fixed in
647 enscript and
<a href=
"http://bugs.debian.org/
584861">#
584861</a
> in
648 kdebase-workspace-data), and to get a more regular testing going on, I
649 am working on a script to automate the test.
</p
>
651 <p
>The idea is to create a Lenny chroot and use tasksel to install a
652 Gnome or KDE desktop installation inside the chroot before upgrading
653 it. To ensure no services are started in the chroot, a policy-rc.d
654 script is inserted. To make sure tasksel believe it is to install a
655 desktop on a laptop, the tasksel tests are replaced in the chroot
656 (only acceptable because this is a throw-away chroot).
</p
>
658 <p
>A naive upgrade from Lenny to Squeeze using aptitude dist-upgrade
659 currently always fail because udev refuses to upgrade with the kernel
660 in Lenny, so to avoid that problem the file /etc/udev/kernel-upgrade
661 is created. The bug report
662 <a href=
"http://bugs.debian.org/
566000">#
566000</a
> make me suspect
663 this problem do not trigger in a chroot, but I touch the file anyway
664 to make sure the upgrade go well. Testing on virtual and real
665 hardware have failed me because of udev so far, and creating this file
666 do the trick in such settings anyway. This is a
667 <a href=
"http://www.linuxquestions.org/questions/debian-
26/failed-dist-upgrade-due-to-udev-config_sysfs_deprecated-nonsense-
804130/
">known
668 issue
</a
> and the current udev behaviour is intended by the udev
669 maintainer because he lack the resources to rewrite udev to keep
670 working with old kernels or something like that. I really wish the
671 udev upstream would keep udev backwards compatible, to avoid such
672 upgrade problem, but given that they fail to do so, I guess
673 documenting the way out of this mess is the best option we got for
674 Debian Squeeze.
</p
>
676 <p
>Anyway, back to the task at hand, testing upgrades. This test
677 script, which I call
<tt
>upgrade-test
</tt
> for now, is doing the
680 <blockquote
><pre
>
684 if [
"$
1" ] ; then
693 exec
&lt; /dev/null
695 mirror=http://ftp.skolelinux.org/debian
696 tmpdir=chroot-$from-upgrade-$to-$desktop
698 debootstrap $from $tmpdir $mirror
699 chroot $tmpdir aptitude update
700 cat
> $tmpdir/usr/sbin/policy-rc.d
&lt;
&lt;EOF
704 chmod a+rx $tmpdir/usr/sbin/policy-rc.d
708 mount -t proc proc $tmpdir/proc
709 # Make sure proc is unmounted also on failure
710 trap exit_cleanup EXIT INT
712 chroot $tmpdir aptitude -y install debconf-utils
714 # Make sure tasksel autoselection trigger. It need the test scripts
715 # to return the correct answers.
716 echo tasksel tasksel/desktop multiselect $desktop | \
717 chroot $tmpdir debconf-set-selections
719 # Include the desktop and laptop task
720 for test in desktop laptop ; do
721 echo
> $tmpdir/usr/lib/tasksel/tests/$test
&lt;
&lt;EOF
725 chmod a+rx $tmpdir/usr/lib/tasksel/tests/$test
728 DEBIAN_FRONTEND=noninteractive
729 DEBIAN_PRIORITY=critical
730 export DEBIAN_FRONTEND DEBIAN_PRIORITY
731 chroot $tmpdir tasksel --new-install
733 echo deb $mirror $to main
> $tmpdir/etc/apt/sources.list
734 chroot $tmpdir aptitude update
735 touch $tmpdir/etc/udev/kernel-upgrade
736 chroot $tmpdir aptitude -y dist-upgrade
738 </pre
></blockquote
>
740 <p
>I suspect it would be useful to test upgrades with both apt-get and
741 with aptitude, but I have not had time to look at how they behave
742 differently so far. I hope to get a cron job running to do the test
743 regularly and post the result on the web. The Gnome upgrade currently
744 work, while the KDE upgrade fail because of the bug in
745 kdebase-workspace-data
</p
>
747 <p
>I am not quite sure what kind of extract from the huge upgrade logs
748 (KDE
167 KiB, Gnome
516 KiB) it make sense to include in this blog
749 post, so I will refrain from trying. I can report that for Gnome,
750 aptitude report
760 packages upgraded,
448 newly installed,
129 to
751 remove and
1 not upgraded and
1024MB need to be downloaded while for
752 KDE the same numbers are
702 packages upgraded,
507 newly installed,
753 193 to remove and
0 not upgraded and
1117MB need to be downloaded
</p
>
755 <p
>I am very happy to notice that the Gnome desktop + laptop upgrade
756 is able to migrate to dependency based boot sequencing and parallel
757 booting without a hitch. Was unsure if there were still bugs with
758 packages failing to clean up their obsolete init.d script during
759 upgrades, and no such problem seem to affect the Gnome desktop+laptop
765 <title>Skolelinux er laget for sentraldrifting, naturligvis
</title>
766 <link>http://people.skolelinux.org/pere/blog/Skolelinux_er_laget_for_sentraldrifting__naturligvis.html
</link>
767 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Skolelinux_er_laget_for_sentraldrifting__naturligvis.html
</guid>
768 <pubDate>Wed,
9 Jun
2010 12:
30:
00 +
0200</pubDate>
770 <p
>Det er merkelig hvordan myter om Skolelinux overlever. En slik
771 myte er at Skolelinux ikke kan sentraldriftes og ha sentralt plasserte
772 tjenermaskiner. I siste Computerworld Norge er
773 <a href=
"http://www.idg.no/computerworld/article169432.ece
">IT-sjef
774 Viggo Billdal i Steinkjer intervjuet
</a
>, og forteller uten
777 <blockquote
><p
>Vi hadde Skolelinux, men det har vi sluttet med. Vi testet
778 om det lønte seg med Microsoft eller en åpen plattform. Vi fant ut at
779 Microsoft egentlig var totalt sett bedre egnet. Det var store
780 driftskostnader med Skolelinux, blant annet på grunn av
781 desentraliserte servere. Det var komplisert, så vi gikk vekk fra det
782 og bruker nå bare Windows.
</p
></blockquote
>
785 href=
"https://init.linpro.no/pipermail/skolelinux.no/bruker/
2010-June/
009101.html
">rask
786 sjekk
</a
> mot den norske brukerlista i Skolelinuxprosjektet forteller
787 at Steinkjers forsøk foregikk fram til
2004/
2005, og at Røysing skole
788 i Steinkjer skal ha vært svært fornøyd med Skolelinux men at kommunen
789 overkjørte skolen og krevde at de gikk over til Windows. Et søk på
790 nettet sendte meg til
791 <a href=
"http://www.dn.no/multimedia/archive/
00090/Dagens_it_nr__18_90826a.pdf
">Dagens
792 IT nr.
18 2005</a
> hvor en kan lese på side
18:
</p
>
794 <blockquote
><p
>Inge Tømmerås ved Røysing skole i Steinkjer kjører ennå
795 Microsoft, men forteller at kompetanseutfordringen med Skolelinux ikke
796 var så stor. Jeg syntes Skolelinux var utrolig lett å drifte uten
797 forkunnskaper. Men man må jo selvsagt ha tilgang på ekstern kompetanse
798 til installasjoner og maskinvarefeil, sier Tømmerås.
</p
></blockquote
>
800 <p
>Som systemarkitekten bak Skolelinux, kan jeg bare riste på hodet
801 over påstanden om at Skolelinux krever desentraliserte tjenere.
802 Skolelinux-arkitekturen er laget for sentralisert drift og plassering
803 av tjenerne lokalt eller sentralt alt etter behov og nettkapasitet.
804 Den er modellert på nettverks- og tjenerløsningen som brukes på
805 Universitetet i Tromsø og Oslo, der jeg jobber med utvikling av
806 driftstjenester. Dette er det heldigvis noen som har fått med seg, og
807 jeg er glad for å kunne sitere fra en kommentar på den overnevnte
808 artikkelen. Min venn og gamle kollega Sturle Sunde forteller der:
811 <p
>I Flora kommune køyrer vi Skulelinux på skular med alt frå
15 til
812 meir enn
500 elevar. Dei store skulane har eigen tenar, for det er
813 mest praktisk. Eg, som er driftsansvarleg for heile nettet, ser
814 sjeldan dei tenarane fysisk, men at dei står der gjer skulane mindre
815 avhengige av eksterne linjer som er trege eller dyre. Dei minste
816 skulane har ikkje eigen tenar. Å bruke sentral tenar er heller ikkje
817 noko problem. Småskulane klarar seg fint med
1 mbit-linje til ein
818 sentral tenar eller tenaren på ein større skule.
</p
>
820 <p
>Det beste med Skulelinux er halvtjukke klientar. Dei treng ikkje
821 harddisk og brukar minimalt med ressursar på tenaren fordi dei køyrer
822 programma lokalt. Eit klasserom med
30 sju-åtte år gamle maskiner har
823 mykje meir CPU og RAM totalt enn nokon moderne tenar til under
824 millionen. Det trengst to kommandoar på den sentrale tenaren for å
825 oppdatere alle klientane, både tynne og halvtjukke. Vi har ingen
826 problem med diskar som ryk heller, som var eit problem før fordi
827 elevane sat og sparka i maskinene. Og dei krev lite bandbreidde i
828 nettet, so det er fullt mogleg å køyre slike på småskular med trege
829 linjer mot tenaren på ein større skule.
</p
>
831 <p
>Flora kommune har nesten
800 Linux-maskiner i sitt skulenett, og
832 ein person som tek seg av drift av heile nettet, inkludert tenarar,
833 klientar, operativsystem, programvare, heimekontorløysing og
834 administrasjon av brukarar.
</p
>
836 <p
>No skal det seiast at vi ikkje køyrer rein Skulelinux ut av
837 boksen. Vi har gjort ein del tilpassingar mot noko Novell-greier som
838 var der frå før, og som har komplisert installasjonen vår. Etter at
839 oppsettet var gjort har løysinga vore stabil og kravd minimalt med
843 <p
>Jeg vet at Narvik, Harstad og Oslo er kommuner der Skolelinux
844 sentraldriftes med sentrale tjenere. Det forteller meg at Steinkjers
845 IT-sjef neppe bør skylde på Skolelinux-løsningen for sine
5 år gamle