]> pere.pagekite.me Git - homepage.git/blobdiff - blog/archive/2013/06/index.html
New post.
[homepage.git] / blog / archive / 2013 / 06 / index.html
index 8f3fb00a015d05fc4f611f9d1a3356a3b410fe4f..51b2be42367ca8964d4ce56816260ac8e836d74e 100644 (file)
 
     <h3>Entries from June 2013.</h3>
     
+    <div class="entry">
+      <div class="title">
+        <a href="http://people.skolelinux.org/pere/blog/Automatically_locate_and_install_required_firmware_packages_on_Debian__Isenkram_0_4_.html">Automatically locate and install required firmware packages on Debian (Isenkram 0.4)</a>
+      </div>
+      <div class="date">
+        25th June 2013
+      </div>
+      <div class="body">
+        <p>It annoys me when the computer fail to do automatically what it is
+perfectly capable of, and I have to do it manually to get things
+working.  One such task is to find out what firmware packages are
+needed to get the hardware on my computer working.  Most often this
+affect the wifi card, but some times it even affect the RAID
+controller or the ethernet card.  Today I pushed version 0.4 of the
+<a href="http://packages.qa.debian.org/isenkram">Isenkram package</a>
+including a new script isenkram-autoinstall-firmware handling the
+process of asking all the loaded kernel modules what firmware files
+they want, find debian packages providing these files and install the
+debian packages.  Here is a test run on my laptop:</p>
+
+<p><pre>
+# isenkram-autoinstall-firmware 
+info: kernel drivers requested extra firmware: ipw2200-bss.fw ipw2200-ibss.fw ipw2200-sniffer.fw
+info: fetching http://http.debian.net/debian/dists/squeeze/Contents-i386.gz
+info: locating packages with the requested firmware files
+info: Updating APT sources after adding non-free APT source
+info: trying to install firmware-ipw2x00
+firmware-ipw2x00
+firmware-ipw2x00
+Preconfiguring packages ...
+Selecting previously deselected package firmware-ipw2x00.
+(Reading database ... 259727 files and directories currently installed.)
+Unpacking firmware-ipw2x00 (from .../firmware-ipw2x00_0.28+squeeze1_all.deb) ...
+Setting up firmware-ipw2x00 (0.28+squeeze1) ...
+# 
+</pre></p>
+
+<p>When all the requested firmware is present, a simple message is
+printed instead:</p>
+
+<p><pre>
+# isenkram-autoinstall-firmware 
+info: did not find any firmware files requested by loaded kernel modules.  exiting
+# 
+</pre></p>
+
+<p>It could use some polish, but it is already working well and saving
+me some time when setting up new machines. :)</p>
+
+<p>So, how does it work?  It look at the set of currently loaded
+kernel modules, and look up each one of them using modinfo, to find
+the firmware files listed in the module meta-information.  Next, it
+download the Contents file from a nearby APT mirror, and search for
+the firmware files in this file to locate the package with the
+requested firmware file.  If the package is in the non-free section, a
+non-free APT source is added and the package is installed using
+<tt>apt-get install</tt>.  The end result is a slightly better working
+machine.</p>
+
+<p>I hope someone find time to implement a more polished version of
+this script as part of the hw-detect debian-installer module, to
+finally fix <a href="http://bugs.debian.org/655507">BTS report
+#655507</a>.  There really is no need to insert USB sticks with
+firmware during a PXE install when the packages already are available
+from the nearby Debian mirror.</p>
+
+      </div>
+      <div class="tags">
+        
+        
+        Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian">debian</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>, <a href="http://people.skolelinux.org/pere/blog/tags/isenkram">isenkram</a>.
+        
+        
+      </div>
+    </div>
+    <div class="padding"></div>
+    
+    <div class="entry">
+      <div class="title">
+        <a href="http://people.skolelinux.org/pere/blog/The_value_of_a_good_distro_wide_test_suite___.html">The value of a good distro wide test suite...</a>
+      </div>
+      <div class="date">
+        22nd June 2013
+      </div>
+      <div class="body">
+        <p>In the <a href="http://www.skolelinux.org/">Debian Edu /
+Skolelinux</a> project, we include a post-installation test suite,
+which check that services are running, working, and return the
+expected results.  It runs automatically just after the first boot on
+test installations (using test ISOs), but not on production
+installations (using non-test ISOs).  It test that the LDAP service is
+operating, Kerberos is responding, DNS is replying, file systems are
+online resizable, etc, etc.  And it check that the PXE service is
+configured, which is the topic of this post.</p>
+
+<p>The last week I've fixed the DVD and USB stick ISOs for our Debian
+Edu Wheezy release.  These ISOs are supposed to be able to install a
+complete system without any Internet connection, but for that to
+happen all the needed packages need to be on them.  Thanks to our test
+suite, I discovered that we had forgotten to adjust our PXE setup to
+cope with the new names and paths used by the netboot d-i packages.
+When Internet connectivity was available, the installer fall back to
+using wget to fetch d-i boot images, but when offline it require
+working packages to get it working.  And ad the packages changed name
+from debian-installer-6.0-netboot-$arch to
+debian-installer-7.0-netboot-$arch, we no longer pulled in the
+packages during installation.  Without our test suite, I suspect we
+would never have discovered this before release.  Now it is fixed
+right after we got the ISOs operational.</p>
+
+<p>Another by-product of the test suite is that we can ask system
+administrators with problems getting Debian Edu to work, to run the
+test suite using <tt>/usr/sbin/debian-edu-test-install</tt> and see if
+any errors are detected.  This usually pinpoint the subsystem causing
+the problem.</p>
+
+<p>If you want to help us help kids learn how to share and create,
+please join us on
+<a href="irc://irc.debian.org/%23debian-edu">#debian-edu on
+irc.debian.org</a> and the
+<a href="http://lists.debian.org/debian-edu/">debian-edu@</a> mailing
+list.</p>
+
+      </div>
+      <div class="tags">
+        
+        
+        Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>.
+        
+        
+      </div>
+    </div>
+    <div class="padding"></div>
+    
     <div class="entry">
       <div class="title">
         <a href="http://people.skolelinux.org/pere/blog/Debian_Edu_interview__Victor_Ni_u.html">Debian Edu interview: Victor NiČ›u</a>
@@ -999,7 +1133,9 @@ debian-edu@</a>.</p>
 
 <li><a href="http://people.skolelinux.org/pere/blog/archive/2013/05/">May (9)</a></li>
 
-<li><a href="http://people.skolelinux.org/pere/blog/archive/2013/06/">June (8)</a></li>
+<li><a href="http://people.skolelinux.org/pere/blog/archive/2013/06/">June (10)</a></li>
+
+<li><a href="http://people.skolelinux.org/pere/blog/archive/2013/07/">July (1)</a></li>
 
 </ul></li>
 
@@ -1149,9 +1285,9 @@ debian-edu@</a>.</p>
 
  <li><a href="http://people.skolelinux.org/pere/blog/tags/bsa">bsa (2)</a></li>
 
- <li><a href="http://people.skolelinux.org/pere/blog/tags/debian">debian (77)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/debian">debian (78)</a></li>
 
- <li><a href="http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu (134)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu (136)</a></li>
 
  <li><a href="http://people.skolelinux.org/pere/blog/tags/digistan">digistan (10)</a></li>
 
@@ -1159,7 +1295,7 @@ debian-edu@</a>.</p>
 
  <li><a href="http://people.skolelinux.org/pere/blog/tags/drivstoffpriser">drivstoffpriser (4)</a></li>
 
- <li><a href="http://people.skolelinux.org/pere/blog/tags/english">english (201)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/english">english (204)</a></li>
 
  <li><a href="http://people.skolelinux.org/pere/blog/tags/fiksgatami">fiksgatami (21)</a></li>
 
@@ -1171,7 +1307,7 @@ debian-edu@</a>.</p>
 
  <li><a href="http://people.skolelinux.org/pere/blog/tags/intervju">intervju (37)</a></li>
 
- <li><a href="http://people.skolelinux.org/pere/blog/tags/isenkram">isenkram (6)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/isenkram">isenkram (7)</a></li>
 
  <li><a href="http://people.skolelinux.org/pere/blog/tags/kart">kart (18)</a></li>