X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/66c7ebe69a70988a5af3284c488d8fc2759e75f2..c7ea07924f6fe5c2d4dc407c8591c65b884e4ae9:/blog/archive/2012/01/index.html diff --git a/blog/archive/2012/01/index.html b/blog/archive/2012/01/index.html index 05b0961b9f..e2ea0d22e5 100644 --- a/blog/archive/2012/01/index.html +++ b/blog/archive/2012/01/index.html @@ -23,44 +23,61 @@
- Fixing an hanging debian installer for Debian Edu + Handling non-free firmware in Debian Edu/Squeeze
- 3rd January 2012 + 27th January 2012
-

During christmas, I have been working getting the next version of -Debian Edu / Skolelinux ready -for release. The initial problem I looked at was particularly -interesting.

- -

The installer would hang at the end when it was doing it -post-installation configuration, and whatevery I did to try to find -the cause and fix it always worked while I tested it, but never when I -integrated it into the installer and ran the installation from -scratch. I would try to restart processes, close file descriptors, -remove or create files, and the installer would always unblock and -wrap up its tasks.

- -

Eventually the cause was found. The kernel was simply running out -of entropy, causing the Kerberos setup to hang waiting for more. -Pressing keys was adding entropy to the kernel, and thus all my tries -to fix the problem worked not because what I was typing to fix it, but -because I was typing.

- -

The fix I implemented was to add a background process looking at -the level of entropy in the kernel (by checking -/proc/sys/kernel/random/entropy_avail), and if it was too small, the -installer will flush the kernel file buffers and do 'find /' to -generate some disk IO. Disk IO generate entropy in the kernel, and is -one of the few things that can be initated from within the system to -generate entropy.

- -

The fix is in -beta1 -of the Debian Edu/Squeeze version, and we -welcome more testers and -developers. We plan to release beta2 this weekend.

+

With some computer hardware, one need non-free firmware blobs. +This is the sad fact of todays computers. In the next version of +Debian Edu / Skolelinux based +on Squeeze, we provide several scripts and modifications to make +firmware blobs easier to handle. The common use case I run into is a +laptop with a wireless network card requiring non-free firmware to +work, but there are other use cases as well.

+ +

First and foremost, Debian Edu provide ISO images for DVD and CD +with all firmware packages in the Debian sections main and non-free +included, to ensure debian-installer find and can install all of them +during installation. This take care firmware for network devices used +by the installer when installing from from local media. But for +example multimedia devices are not activated in the installer and are +not taken care of by this.

+ +

For non-network devices, we provide the script +/usr/share/debian-edu-config/tools/auto-addfirmware which +search through the dmesg output for drivers requesting extra +firmware. The firmware file name is looked up in the Contents-ARCH.gz +file available in the package repository, and the packages providing +the requested firmware file(s) is installed. I have proposed to do +something similar in debian-installer (BTS report +#655507), to allow PXE +installs of Debian to handle firmware installation better. Run the +script as root from the command line to fetch and install the needed +firmware packages.

+ +

Debian Edu provide PXE installation of Debian out of the box, and +because some machines need firmware to get their network cards +working, the installation initrd some times need extra firmware +included to be able to install at all. To fill the PXE installation +initrd with extra firmware, the +/usr/share/debian-edu-config/tools/pxe-addfirmware script is +provided. Again, just run it as root on the command line to fill the +PXE initrd with firmware packages.

+ +

Last, some LTSP clients might also need firmware to get their +network cards working. For this, +/usr/share/debian-edu-config/tools/ltsp-addfirmware is +provided to update the LTSP initrd with firmware blobs. It is used +the same way as the other firmware related tools.

+ +

At the moment, we do not run any of these during installation. We +do not know if this is acceptable for the local administrator to use +non-free software, and it is their choice.

+ +

We plan to release beta3 this weekend. You might want to give it a +try.

@@ -75,27 +92,56 @@ developers. We plan to release beta2 this weekend.

- 7th January 2012 + 26th January 2012
-

I am happy to announce that today we managed to wrap up and publish -the second beta version of -Debian Edu / Skolelinux. If -you want to test a LDAP backed Kerberos server with out of the box PXE -configuration for running diskless machines and installing new -machines, check it out. If you need a software solution for your -school, check it out too. The full announcement is -available -on the project announcement list.

+

For morro skyld har jeg gjennomført en nordsamisk installasjon for +neste utgave av Skolelinux +(Squeeze) og knipset skjermbilder av resultatet.

+ +

Som en kan se der er det noen oversettelser som mangler. Det hadde +vært hyggelig hvis alle tekstene som vises i Skolelinux-installasjonen +ble oversatt til nordsamisk, men for å få det til må noen som forstår +språket melde seg til dyst. Det er mangel på nordsamiske oversettere +av fri programvare. Hvis noen starter raskt, så bør en rekke å +fullføre Wheezy-utgaven før den gis ut. :)

+ +

Se oversetterstatistikk for +debian installer for detaljert status. Jeg har tipset +epostlisten for samiskoversettelser, +men det har vært veldig liten aktivitet der de siste årene.

+ +

+ + + + + + + + + + + + + + + + + + + + +

- Tags: debian edu, english. + Tags: debian edu, norsk.
@@ -104,39 +150,64 @@ on the project announcement list.

- 10th January 2012 + 25th January 2012
-

In the Squeeze version of -Debian Edu / Skolelinux soon -to be released, users of the system will get their default browser -start page set from LDAP, allowing the system administrator to point -all users to the school web page by updating one setting in LDAP. In -addition to setting the default start page when a machine boots, users -are shown the same page as a welcome page when they log in for the -first time.

+

The next version of Debian Edu +/ Skolelinux will include a new tool +sitesummary2ldapdhcp, which can be used to quickly set up all +the computers in a school without much manual labour. Here is a short +summary on how to use it to set up a new school.

-

The LDAP object dc=skole,dc=skolelinux,dc=no have an attribute -labeledURI with "http://www/ LDAP for Debian Edu/Skolelinux" as the -default content. By changing this value to another URL, all users get -to see the page behind this new URL.

+

First, install a combined Main Server and Thin Client Server as the +central server in the network. Next, PXE boot all the client machines +as thin clients and wait 5 minutes after the last client booted to +allow the clients to report their existence to the central server. When +this is done, log on to the central server and run +sitesummary2ldapdhcp -a in the konsole to use the +collected information to generate system objects in LDAP. The output +will look similar to this:

-

An easy way to update it is by using the ldapvi tool. It can be -called as "ldapvi -ZD '(cn=admin)'' to update LDAP with the -new setting.

+

+% sitesummary2ldapdhcp -a
+info: Updating machine tjener.intern [10.0.2.2] id ether-00:01:02:03:04:05.
+info: Create GOsa machine for auto-mac-00-01-02-03-04-06 [10.0.16.20] id ether-00:01:02:03:04:06.
 
-

We have written the code to adjust the default start page and show -the welcome page, and I wonder if there is an easier way to do this -from within Iceweasel instead.

+Enter password if you want to activate these changes, and ^c to abort. + +Connecting to LDAP as cn=admin,ou=ldap-access,dc=skole,dc=skolelinux,dc=no +enter password: ******* +% +

+ +

After providing the LDAP administrative password (the same as the +root password set during installation), the LDAP database will be +populated with system objects for each PXE booted machine with +automatically generated names. The final step to set up the school is +then to log into GOsa, +the web based user, group and system administration system to change +system names, add systems to the correct host groups and finally +enable DHCP and DNS for the systems. All clients that should be used +as diskless workstations should be added to the workstation-hosts +group. After this is done, all computers can be booted again via PXE +and get their assigned names and group based configuration +automatically.

+ +

We plan to release beta3 with the updated version of this feature +enabled this weekend. You might want to give it a try.

+ +

Update 2012-01-28: When calling sitesummary2ldapdhcp to add new +hosts, one need to add the option -a. I forgot to mention this in my +original text, and have added it to the text now.

@@ -277,60 +348,120 @@ hjemme.

- 25th January 2012 + 10th January 2012
-

The next version of Debian Edu -/ Skolelinux will include a new tool -sitesummary2ldapdhcp, which can be used to quickly set up all -the computers in a school without much manual labour. Here is a short -summary on how to use it to set up a new school.

+

In the Squeeze version of +Debian Edu / Skolelinux soon +to be released, users of the system will get their default browser +start page set from LDAP, allowing the system administrator to point +all users to the school web page by updating one setting in LDAP. In +addition to setting the default start page when a machine boots, users +are shown the same page as a welcome page when they log in for the +first time.

-

First, install a combined Main Server and Thin Client Server as the -central server in the network. Next, PXE boot all the client machines -as thin clients and wait 5 minutes after the last client booted to -allow the clients report their existence to the central server. When -this is done, log on to the central server and run -sitesummary2ldapdhcp in the konsole to use the -collected information to generate system objects in LDAP. The output -will look similar to this:

+

The LDAP object dc=skole,dc=skolelinux,dc=no have an attribute +labeledURI with "http://www/ LDAP for Debian Edu/Skolelinux" as the +default content. By changing this value to another URL, all users get +to see the page behind this new URL.

-

-% sitesummary2ldapdhcp 
-info: Updating machine tjener.intern [10.0.2.2] id ether-00:01:02:03:04:05.
-info: Create GOsa machine for auto-mac-00-01-02-03-04-06 [10.0.16.20] id ether-00:01:02:03:04:06.
+

An easy way to update it is by using the ldapvi tool. It can be +called as "ldapvi -ZD '(cn=admin)'' to update LDAP with the +new setting.

-Enter password if you want to activate these changes, and ^c to abort. +

We have written the code to adjust the default start page and show +the welcome page, and I wonder if there is an easier way to do this +from within Iceweasel instead.

-Connecting to LDAP as cn=admin,ou=ldap-access,dc=skole,dc=skolelinux,dc=no -enter password: ******* -% -

+
+
+ + + Tags: debian edu, english, web. + + +
+
+
+ +
+ +
+ 7th January 2012 +
+
+

I am happy to announce that today we managed to wrap up and publish +the second beta version of +Debian Edu / Skolelinux. If +you want to test a LDAP backed Kerberos server with out of the box PXE +configuration for running diskless machines and installing new +machines, check it out. If you need a software solution for your +school, check it out too. The full announcement is +available +on the project announcement list.

-

After providing the LDAP administrative password (the same as the -root password set during installation), the LDAP database will be -populated with system objects for each PXE booted machine with -automatically generated names. The final step to set up the school is -then to log into GOsa, -the web based user, group and system administration system to change -system names, add systems to the correct host groups and finally -enable DHCP and DNS for the systems. All clients that should be used -as diskless workstations should be added to the workstation-hosts -group. After this is done, all computers can be booted again via PXE -and get their assigned names and group based configuration -automatically.

+
+
+ + + Tags: debian edu, english. + + +
+
+
+ +
+ +
+ 3rd January 2012 +
+
+

During christmas, I have been working getting the next version of +Debian Edu / Skolelinux ready +for release. The initial problem I looked at was particularly +interesting.

-

We plan to release beta3 with the updated version of this feature -enabled this weekend. You might want to give it a try.

+

The installer would hang at the end when it was doing it +post-installation configuration, and whatevery I did to try to find +the cause and fix it always worked while I tested it, but never when I +integrated it into the installer and ran the installation from +scratch. I would try to restart processes, close file descriptors, +remove or create files, and the installer would always unblock and +wrap up its tasks.

+ +

Eventually the cause was found. The kernel was simply running out +of entropy, causing the Kerberos setup to hang waiting for more. +Pressing keys was adding entropy to the kernel, and thus all my tries +to fix the problem worked not because what I was typing to fix it, but +because I was typing.

+ +

The fix I implemented was to add a background process looking at +the level of entropy in the kernel (by checking +/proc/sys/kernel/random/entropy_avail), and if it was too small, the +installer will flush the kernel file buffers and do 'find /' to +generate some disk IO. Disk IO generate entropy in the kernel, and is +one of the few things that can be initated from within the system to +generate entropy.

+ +

The fix is in +beta1 +of the Debian Edu/Squeeze version, and we +welcome more testers and +developers. We plan to release beta2 this weekend.

@@ -348,7 +479,19 @@ enabled this weekend. You might want to give it a try.

  • 2012
  • @@ -467,21 +610,25 @@ enabled this weekend. You might want to give it a try.

  • bsa (2)
  • -
  • debian (54)
  • +
  • debian (55)
  • -
  • debian edu (69)
  • +
  • debian edu (110)
  • -
  • digistan (7)
  • +
  • digistan (9)
  • -
  • english (102)
  • +
  • drivstoffpriser (4)
  • -
  • fiksgatami (13)
  • +
  • english (142)
  • + +
  • fiksgatami (17)
  • fildeling (12)
  • -
  • intervju (12)
  • +
  • frikanalen (6)
  • + +
  • intervju (30)
  • -
  • kart (15)
  • +
  • kart (16)
  • ldap (8)
  • @@ -489,17 +636,21 @@ enabled this weekend. You might want to give it a try.

  • ltsp (1)
  • -
  • multimedia (14)
  • +
  • multimedia (22)
  • -
  • norsk (142)
  • +
  • norsk (189)
  • -
  • nuug (119)
  • +
  • nuug (140)
  • + +
  • offentlig innsyn (4)
  • open311 (2)
  • -
  • opphavsrett (24)
  • +
  • opphavsrett (33)
  • + +
  • personvern (48)
  • -
  • personvern (46)
  • +
  • raid (1)
  • reprap (11)
  • @@ -509,25 +660,31 @@ enabled this weekend. You might want to give it a try.

  • rss (1)
  • +
  • ruter (4)
  • + +
  • scraperwiki (2)
  • +
  • sikkerhet (23)
  • sitesummary (4)
  • -
  • standard (24)
  • +
  • skepsis (1)
  • + +
  • standard (35)
  • stavekontroll (1)
  • -
  • stortinget (3)
  • +
  • stortinget (4)
  • -
  • surveillance (9)
  • +
  • surveillance (10)
  • valg (6)
  • -
  • video (22)
  • +
  • video (32)
  • vitenskap (1)
  • -
  • web (18)
  • +
  • web (25)