]> pere.pagekite.me Git - homepage.git/blobdiff - blog/archive/2012/02/02.rss
Generated.
[homepage.git] / blog / archive / 2012 / 02 / 02.rss
index ec748e216f2e43397d79d2bb0decd6b4e3443d30..df48fca0684e00dc627fa0635a9d682864efc290 100644 (file)
 
        
        <item>
-               <title>Second beta version of Debian Edu / Skolelinux based on Squeeze</title>
-               <link>http://people.skolelinux.org/pere/blog/Second_beta_version_of_Debian_Edu___Skolelinux_based_on_Squeeze.html</link>        
-               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Second_beta_version_of_Debian_Edu___Skolelinux_based_on_Squeeze.html</guid>
-                <pubDate>Tue, 7 Feb 2012 22:50:00 +0100</pubDate>
-               <description>&lt;p&gt;I am happy to announce that today we managed to wrap up and publish
-the second beta version of
-&lt;a href=&quot;http://www.skolelinux.org/&quot;&gt;Debian Edu / Skolelinux&lt;/a&gt;.  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
-&lt;a href=&quot;http://lists.debian.org/debian-edu-announce/2012/01/msg00000.html&quot;&gt;available&lt;/a&gt;
+               <title>Third beta version of Debian Edu / Skolelinux based on Squeeze</title>
+               <link>http://people.skolelinux.org/pere/blog/Third_beta_version_of_Debian_Edu___Skolelinux_based_on_Squeeze.html</link>        
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Third_beta_version_of_Debian_Edu___Skolelinux_based_on_Squeeze.html</guid>
+                <pubDate>Sat, 4 Feb 2012 13:25:00 +0100</pubDate>
+               <description>&lt;p&gt;I am happy to announce that finally we managed today to wrap up and
+publish the third beta version of
+&lt;a href=&quot;http://www.skolelinux.org/&quot;&gt;Debian Edu / Skolelinux&lt;/a&gt; based
+on Squeeze.  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
+&lt;a href=&quot;http://lists.debian.org/debian-edu-announce/2012/02/msg00000.html&quot;&gt;available&lt;/a&gt;
 on the project announcement list.&lt;/p&gt;
+
+&lt;p&gt;I am very happy to report these changes and improvements since
+beta2 (there are more, see announcement for full list):&lt;/p&gt;
+
+&lt;ul&gt;
+
+&lt;li&gt;It is now possible to change the pre-configured IP subnet from
+  10.0.0.0/8 to something else by using the subnet-change tool after
+  the installation.&lt;/li&gt;
+
+&lt;li&gt;Too full partitions are now automatically extended on the Main
+  Server, based on the rules specified in /etc/fsautoresizetab.&lt;/li&gt;
+
+&lt;li&gt;The CUPS queues are now automatically flushed every night, and all
+  disabled queues are restarted every hour.  This should cut down on
+  the amount of manual administration needed for printers.&lt;/li&gt;
+
+&lt;li&gt;The set of initial users have been changed.  Now a personal user
+  for the local system administrator is created during installation
+  instead of the previously created localadmin and super-admin users,
+  and this user is granted administrative privileges using group
+  membership.  This reduces the number of passwords one need to keep
+  up to date on the system.&lt;/li&gt;
+
+&lt;/ul&gt;
+
+&lt;p&gt;The new main server seem to work so well that I am testing it as my
+private DNS/LDAP/Kerberos/PXE/LTSP server at home.  I will use it look
+for issues we could fix to polish Debian Edu even further before the
+final Squeeze release is published.&lt;/p&gt;
+
+&lt;p&gt;Next weekend the project organise a
+&lt;a href=&quot;http://lists.debian.org/debian-edu-announce/2012/01/msg00001.html&quot;&gt;developer
+gathering&lt;/a&gt; in Oslo.  We will continue the work on the Squeeze
+version, and start initial planning for the Wheezy version.  Perhaps I
+will see you there?&lt;/p&gt;
+</description>
+       </item>
+       
+       <item>
+               <title>Saving power with Debian Edu / Skolelinux using shutdown-at-night</title>
+               <link>http://people.skolelinux.org/pere/blog/Saving_power_with_Debian_Edu___Skolelinux_using_shutdown_at_night.html</link>        
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Saving_power_with_Debian_Edu___Skolelinux_using_shutdown_at_night.html</guid>
+                <pubDate>Sun, 5 Feb 2012 09:45:00 +0100</pubDate>
+               <description>&lt;p&gt;Since the Lenny version of
+&lt;a href=&quot;http://www.skolelinux.org/&quot;&gt;Debian Edu / Skolelinux&lt;/a&gt;, a
+feature to save power have been included.  It is as simple as it is
+practical: Shut down unused clients at night, and turn them on again
+in the morning.  This is done using the
+&lt;a href=&quot;http://packages.qa.debian.org/s/shutdown-at-night.html&quot;&gt;shutdown-at-night&lt;/a&gt; Debian package.&lt;/p&gt;
+
+&lt;p&gt;To enable this feature on a client, the machine need to be added to
+the netgroup shutdown-at-night-hosts.  For Debian Edu, this is done in
+LDAP, and once this is in place, the machine in question will check
+every hour from 16:00 until 06:00 to see if the machine is unused, and
+shut it down if it is.  If the hardware in question is supported by
+the
+&lt;a href=&quot;http://packages.qa.debian.org/n/nvram-wakeup.html&quot;&gt;nvram-wakeup&lt;/a&gt;
+package, the BIOS is told to turn the machine back on around 07:00 +-
+10 minutes.  If this isn&#39;t working, one can configure wake-on-lan to
+try to turn on the client.  The wake-on-lan option is only documented
+and not enabled by default in Debian Edu.&lt;/p&gt;
+
+&lt;p&gt;It is important to not turn all machines on at once, as this can
+blow a fuse if several computers are connected to the same fuse like
+the common setup for a classroom.  The nvram-wakeup method only work
+for machines with a functioning hardware/BIOS clock.  I&#39;ve seen old
+machines where the BIOS battery were dead and the hardware clock were
+starting from 0 (or was it 1990?) every boot.  If you have one of
+those, you have to turn on the computer manually.&lt;/p&gt;
+
+&lt;p&gt;The shutdown-at-night package is completely self contained, and can
+also be used outside the Debian Edu environment.  For those without a
+central LDAP server with netgroups, one can instead touch the file
+&lt;tt&gt;/etc/shutdown-at-night/shutdown-at-night&lt;/tt&gt; to enable it.
+Perhaps you too can use it to save some power?&lt;/p&gt;
+</description>
+       </item>
+       
+       <item>
+               <title>Skolelinux-intervju: Axel Bojer</title>
+               <link>http://people.skolelinux.org/pere/blog/Skolelinux_intervju__Axel_Bojer.html</link>        
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Skolelinux_intervju__Axel_Bojer.html</guid>
+                <pubDate>Tue, 7 Feb 2012 14:50:00 +0100</pubDate>
+               <description>&lt;p&gt;I serien med intervjuer av folk i
+&lt;a href=&quot;http://www.skolelinux.org/&quot;&gt;Skolelinux&lt;/a&gt;-miljøet har jeg
+fått en av oversetterne som har vært med siden starten i tale.&lt;/p&gt;
+
+&lt;p&gt;&lt;strong&gt;Hvem er du, og hva driver du med til daglig?&lt;/strong&gt;&lt;/p&gt;
+
+&lt;p&gt;Jeg heter Axel Bojer og er datalærer, tysklærer, oversetter med
+mere.&lt;/p&gt;
+
+&lt;p&gt;&lt;strong&gt;Hvordan kom du i kontakt med Skolelinux-prosjektet?&lt;/strong&gt;&lt;/p&gt;
+
+&lt;p&gt;Tror jeg så en annonsering på nettet i slutten av 2001 og ville
+være med som oversetter.  Jeg kom med på en utviklersamling og
+prosjektet var da helt i starten.  Det var spennende å være med mens
+prosjektet vokste til og utviklet seg.&lt;/p&gt;
+
+&lt;p&gt;Jeg har «alltid» vært språkinteressert og hadde nettopp startet med
+Linux og tror jeg tenkte det passet å bidra.  Var også glad for å få
+en Debian-distribusjon, og ville gjerne bruke den selv.  Til å begynne
+med brukte jeg først Mandrake og så Debian. Og siden jeg oppdaget at
+det ikke var noen mulighet for å bruke den som enkeltstående i lang
+tid, så gikk jeg etterhvert over til Kubuntu&lt;/p&gt;
+
+&lt;p&gt;&lt;strong&gt;Hva er fordelene med Skolelinux slik du ser det?&lt;/strong&gt;&lt;/p&gt;
+
+&lt;p&gt;Løsningen er forholdsvis lett å sette opp, gratis, fri programvare
+og gjør det mulig å gjenbruke eldre maskiner.  Det fine med Debian er
+at det er stabilt og har en veldig stor mengde programmer. Jeg liker
+også apt.  :-) Jeg liker også friheten ved Linux og muligheten til å
+delta og forme sin egen datahverdag.&lt;/p&gt;
+
+&lt;p&gt;&lt;strong&gt;Hva er ulempene med Skolelinux slik du ser det?&lt;/strong&gt;&lt;/p&gt;
+
+&lt;p&gt;Skolelinux er for lite kjent og for sent ute med å gi ut nye
+versjoner.&lt;/p&gt;
+
+&lt;p&gt;Da jeg selv i hovedsak bruker Kubuntu, så kan jeg egentlig ikke
+svare så detaljert rundt ulempene med Skolelinux.  Hovedårsaken til at
+jeg bruker Kubuntu er nok at da vi begynte med det mener jeg det ikke
+var noen annen løsning.  «Vandrende arbeidsstasjon» mener jeg ikke
+fantes da.  Dessuten ville jeg ha siste versjon, da den KDE-versjonen
+som var i Skolelinux den gangen var en god del enklere (tror det var
+KDE 2) var dårligere i mine øyne enn versjon 3.&lt;/p&gt;
+
+&lt;p&gt;&lt;strong&gt;Hvilken fri programvare bruker du til daglig?&lt;/strong&gt;&lt;/p&gt;
+
+&lt;p&gt;Jeg bruker blant annet Kubuntu, LibreOffice, Thunderbird, Firefox,
+Kate, &lt;a href=&quot;http://comix.sourceforge.net/&quot;&gt;Comix&lt;/a&gt; og Konsole.  Og
+en hel haug andre ved behov :-)&lt;/p&gt;
+
+&lt;p&gt;Har oversatt Comix selv, men det er jo ikke skjedd noe med Comix
+siden 2009, så den er det nok bare jeg som har.  Om andre vil ha den
+gir jeg den gjerne videre.  Ser at noen har startet på
+&lt;a href=&quot;http://mcomix.sourceforge.net/&quot;&gt;MComix&lt;/a&gt; siden jeg så på så
+på dette sist, så nå er jeg igang med å teste og oversette den
+også.&lt;/p&gt;
+
+&lt;p&gt;&lt;strong&gt;Hvilken strategi tror du er den rette å bruke for å få
+skoler til å ta i bruk fri programvare?&lt;/strong&gt;&lt;/p&gt;
+
+&lt;p&gt;Det viktigste er å forankre beslutningen i kollegiet og med de som
+er ansvarlige for å vedlikeholde og bruke datamaskinene.  Flest mulig
+bør være med på å holde det (sosialt) vedlike, kjenne og støtte
+prinsippene. Som enkeltmannsprosjekt blir det lett veldig sårbart,
+særlig når (Skole)linux ennå i stor grad er en motkultur og ikke noe
+en stor nok andel av beslutningstakere, brukere osv kjenner til og
+bruker.&lt;/p&gt;
+
+&lt;p&gt;Jeg tror det viktigste er å fortsette å holde fri programvare godt,
+oppdatert, minimere antall feil, ha en god kontakt med brukerne og
+attraktivt og spennende programmer. Beholde alt som er bra og ha det
+tilgjengelig samtidig som man tilbyr det nyeste og rareste for de som
+vil ha det.&lt;/p&gt;
+</description>
+       </item>
+       
+       <item>
+               <title>Automatic proxy configuration with Debian Edu / Skolelinux</title>
+               <link>http://people.skolelinux.org/pere/blog/Automatic_proxy_configuration_with_Debian_Edu___Skolelinux.html</link>        
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Automatic_proxy_configuration_with_Debian_Edu___Skolelinux.html</guid>
+                <pubDate>Mon, 13 Feb 2012 23:40:00 +0100</pubDate>
+               <description>&lt;p&gt;New in the Squeeze version of
+&lt;a href=&quot;http://www.skolelinux.org/&quot;&gt;Debian Edu / Skolelinux&lt;/a&gt; is the
+ability for clients to automatically configure their proxy settings
+based on their environment.  We want all systems on the client to use
+the WPAD based proxy definition fetched from &lt;tt&gt;http://wpad/wpad.dat&lt;/tt&gt;, to
+allow sites to control the proxy setting from a central place and make
+sure clients do not have hard coded proxy settings.  The schools can
+change the global proxy setting by editing
+&lt;tt&gt;tjener:/etc/debian-edu/www/wpad.dat&lt;/tt&gt; and the change propagate
+to all Debian Edu clients in the network.&lt;/p&gt;
+
+&lt;p&gt;The problem is that some systems do not understand the WPAD system.
+In other words, how do one get from a WPAD file like this (this is a
+simple one, they can run arbitrary code):&lt;/p&gt;
+
+&lt;blockquote&gt;&lt;pre&gt;
+function FindProxyForURL(url, host)
+{
+   if (!isResolvable(host) ||
+       isPlainHostName(host) ||
+       dnsDomainIs(host, &quot;.intern&quot;))
+      return &quot;DIRECT&quot;;
+   else
+      return &quot;PROXY webcache:3128; DIRECT&quot;;
+}
+&lt;/pre&gt;&lt;/blockquote&gt;
+
+&lt;p&gt;to a proxy setting in the process environment looking like this:&lt;/p&gt;
+
+&lt;blockquote&gt;&lt;pre&gt;
+http_proxy=http://webcache:3128/
+ftp_proxy=http://webcache:3128/
+&lt;/pre&gt;&lt;/blockquote&gt;
+
+&lt;p&gt;To do this conversion I developed a perl script that will execute
+the javascript fragment in the WPAD file and return the proxy that
+would be used for
+&lt;tt&gt;&lt;a href=&quot;http://www.debian.org/&quot;&gt;http://www.debian.org/&lt;/a&gt;&lt;/tt&gt;,
+and insert this extracted proxy URL in &lt;tt&gt;/etc/environment&lt;/tt&gt; and
+&lt;tt&gt;/etc/apt/apt.conf&lt;/tt&gt;.  The perl script wpad-extract work just
+fine in Squeeze, but in Wheezy the library it need to run the
+javascript code is &lt;a href=&quot;http://bugs.debian.org/631045&quot;&gt;no longer
+able to build&lt;/a&gt; because the C library it depended on is now a C++
+library.  I hope someone find a solution to that problem before Wheezy
+is frozen.  An alternative would be for us to rewrite wpad-extract to
+use some other javascript library currently working in Wheezy, but no
+known alternative is known at the moment.&lt;/p&gt;
+
+&lt;p&gt;This automatic proxy system allow the roaming workstation (aka
+laptop) setup in Debian Edu/Squeeze to use the proxy when the laptop
+is connected to the backbone network in a Debian Edu setup, and to
+automatically use any proxy present and announced using the WPAD
+feature when it is connected to other networks.  And if no proxy is
+announced, direct connections will be used instead.&lt;/p&gt;
+
+&lt;p&gt;Silently using a proxy announced on the network might be a privacy
+or security problem.  But those controlling DHCP and DNS on a network
+could just as easily set up a transparent proxy, and force all HTTP
+and FTP connections to use a proxy anyway, so I consider that
+distinction to be academic.  If you are afraid of using the wrong
+proxy, you should avoid connecting to the network in question in the
+first place.  In Debian Edu, the proxy setup is updated using dhcp and
+ifupdown hooks, to make sure the configuration is updated every time
+the network setup changes.&lt;/p&gt;
+
+&lt;p&gt;The WPAD system is documented in a
+&lt;a href=&quot;http://tools.ietf.org/html/draft-ietf-wrec-wpad-01&quot;&gt;IETF
+draft&lt;/a&gt; and a
+&lt;a href=&quot;http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol&quot;&gt;Wikipedia
+page&lt;/a&gt; for those that want to learn more.&lt;/p&gt;
+</description>
+       </item>
+       
+       <item>
+               <title>How to figure out which RAID disk to replace when it fail</title>
+               <link>http://people.skolelinux.org/pere/blog/How_to_figure_out_which_RAID_disk_to_replace_when_it_fail.html</link>        
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/How_to_figure_out_which_RAID_disk_to_replace_when_it_fail.html</guid>
+                <pubDate>Tue, 14 Feb 2012 21:25:00 +0100</pubDate>
+               <description>&lt;p&gt;Once in a while my home server have disk problems.  Thanks to Linux
+Software RAID, I have not lost data yet (but
+&lt;a href=&quot;http://comments.gmane.org/gmane.linux.raid/34532&quot;&gt;I was
+close&lt;/a&gt; this summer :).  But once a disk is starting to behave
+funny, a practical problem present itself.  How to get from the Linux
+device name (like /dev/sdd) to something that can be used to identify
+the disk when the computer is turned off?  In my case I have SATA
+disks with a unique ID printed on the label.  All I need is a way to
+figure out how to query the disk to get the ID out.&lt;/p&gt;
+
+&lt;p&gt;After fumbling a bit, I
+&lt;a href=&quot;http://www.cyberciti.biz/faq/linux-getting-scsi-ide-harddisk-information/&quot;&gt;found
+that hdparm -I&lt;/a&gt; will report the disk serial number, which is
+printed on the disk label.  The following (almost) one-liner can be
+used to look up the ID of all the failed disks:&lt;/p&gt;
+
+&lt;blockquote&gt;&lt;pre&gt;
+for d in $(cat /proc/mdstat |grep &#39;(F)&#39;|tr &#39; &#39; &quot;\n&quot;|grep &#39;(F)&#39;|cut -d\[ -f1|sort -u);
+do
+    printf &quot;Failed disk $d: &quot;
+    hdparm -I /dev/$d |grep &#39;Serial Num&#39;
+done
+&lt;/blockquote&gt;&lt;/pre&gt;
+
+&lt;p&gt;Putting it here to make sure I do not have to search for it the
+next time, and in case other find it useful.&lt;/p&gt;
+
+&lt;p&gt;At the moment I have two failing disk. :(&lt;/p&gt;
+
+&lt;blockquote&gt;&lt;pre&gt;
+Failed disk sdd1:       Serial Number:      WD-WCASJ1860823
+Failed disk sdd2:       Serial Number:      WD-WCASJ1860823
+Failed disk sde2:       Serial Number:      WD-WCASJ1840589
+&lt;/blockquote&gt;&lt;/pre&gt;
+
+&lt;p&gt;The last time I had failing disks, I added the serial number on
+labels I printed and stuck on the short sides of each disk, to be able
+to figure out which disk to take out of the box without having to
+remove each disk to look at the physical vendor label.  The vendor
+label is at the top of the disk, which is hidden when the disks are
+mounted inside my box.&lt;/p&gt;
+
+&lt;p&gt;I really wish the check_linux_raid Nagios plugin for checking Linux
+Software RAID in the
+&lt;a href=&quot;http://packages.qa.debian.org/n/nagios-plugins.html&quot;&gt;nagios-plugins-standard&lt;/a&gt;
+debian package would look up this value automatically, as it would
+make the plugin a lot more useful when my disks fail.  At the moment
+it only report a failure when there are no more spares left (it really
+should warn as soon as a disk is failing), and it do not tell me which
+disk(s) is failing when the RAID is running short on disks.&lt;/p&gt;
 </description>
        </item>