Search Results: "marv"

4 February 2008

Daniel Baumann: My misc developement news (Januar 2008)

In the past I was not blogging small things if they were not worth a full blog entry on their own (or if I did not have the time to make up a full entry of it :). Inspired by the example of Raphaël Hertzog <hertzog@debian.org> with "News for Debian developers" for <debian-devel-announce@lists.debian.org>, I am intending to do the same on a monthly basis about my own Debian related work. This first entry about January 2008 also covers a few things from the last month of 2007. General News Package News Team News

2 January 2008

Wouter Verhelst: Film: I am legend

On New year's eve, I went to some local movie theatre, and watched the above movie. Must say I'm impressed. Been a while since any movie managed to get me hooked like this. I just love the way in which the backstory is communicated to the audience through little clues and flashbacks that are given throughout the movie. This certainly makes for an interesting way of discovering what the hell is exactly going on here. Add to that a premise that is sure to raise some interest (New York abandoned? Quite some special effect), and you get a very entertaining night out. But credit where credit is due: Will Smith's performance was outstanding. He's done a marvellous job in portraying a real human being: not a superhuman, but a person who's had the luck not to be affected by this horrible disease, and who's now slowly turning insane because of his lack of contact with other human beings. Really nice movie.

5 December 2007

Peter Van Eynde: Installing debian on a DG33TL G33 system

Someone commented rightfully that I should explain how I got debian installed on the DG33TL.

There are 4 problems:
  1. The standard kernel hangs at boot. This is because of a mmconfig related problem. To fix this use "pci=nommconf" as kernel boot option which will ignore the mmconfig information but still enable acpi so you still have a SMP machine.
  2. The CD/DVD chipset is not yet supported. It is a "Marvell Technology Group Ltd. Unknown device 6101" which not even 2.6.23.9 seems to want to talk to. To solve this I booted from CD, but then continued to install from a USB stick.
  3. The standard kernel uses the experimental firewire driver, which gives me an oops. The older firewire driver works perfectly.
  4. The ethernet card is not recognised. It is a "Ethernet controller: Intel Corporation Unknown device 294c" which works with the 7.6.12-NAPI version e1000 driver.
So to install I used the CD image from Kenshi Muto to install. Afterwards the standard kernel needs the newer e1000 driver. At the moment I'm running 2.6.23.9.

4 December 2007

Ond&#345;ej &#268;ert&iacute;k: M rida - wrap up

From November 28 till December 2, 2007, I attended a Debian QA and release teams work session in Extremadura, which is an autonomous community of western Spain, that managed to install Debian on 90000 computers in every school (technically a Debian based distribution called gnuLinEx) and Junta de Extremadura also sponsored this meeting.

I took photos of all participants, see my first, second and third posts. When I arrived at the Madrid airport where we first met, I set myself a goal to remember all names and faces, so I used my blog to help me and I think I succeeded in the end. :)

See also our wiki page that we used prior and during the meeting.

So what did we do besides throwing candies?


Lucas Nussbaum will send a summary email soon about the meeting, so I'll just speak for myself:


I worked with Gon ri on svnbuildstat, that is a service for building packages and show statistics about lintian/linda/piuparts checks. It for example contains all packages of the Debian Python Modules Team (that I am a member of) and many others. We discussed and started to work on how to create robust buildbots, that can be installed as a regular Debian package with zero (if possible) configuration, so that many people can just install them without pain, thus providing a huge scalability to the project.

We wrote a preliminary patch to pbuilder for killing the build if it exceeds given memory/disk usage. I had to learn the internals of pbuilder and I lost quite some time squashing some stupid bug I caused while writing the patch.

I spent most of my time with svnbuildstat, mostly learning and discussing things. This will be important for the future, but to also have some real results, I also fixed some packages I comaintain:

Together with Kumar Appaiah we fixed the python-numpy package and I had it uploaded, then I learned how to work with quilt instead of dpatch to handle patches in Debian packages, thanks to Holger's webpage, that contains a nice tutorial. Then I switched from dpatch to quilt in python-scipy and backported a patch from upstream svn to fix a segfault bug and had the package uploaded.

Then I finished the Cython package and had it uploaded. Cython is a marvelous package to speed up Python programs and interface C/C++ programs. I greatly recommend to try. If you don't like it, you can try some of at least 10 other ways to wrap C code in Python. I also used quilt in there to backport a patch from the upstream Mercurial repository to implement parsing @classmethods. Quilt is really a pleasure to work with.

Impressions from the meeting

I've been using Debian since 2001 as my only operating system on all of my computers, so I am not a complete beginner. But it never occured to me I could get involved in Debian more than a user and an occasional bug reporter. What a mistake.

I started packaging new things and fixing packages that I need for my work and that didn't work. This got me involved quite a bit in Debian. But in M rida it was the first time I could dring a beer (well, especially wine) with Debian Developers and I found out they are really cool people. They are all very skilled. Also something, that I love about Debian, is that the people involved in it share two common features, that are very important for them - respect to democracy and personal freedom. When I think about it, those are probably the first two items on my presonal list of values.

Of course, everytime there is a group of 1000+ people, there are good and bad people, more and less skilled, but important is the overall atmosphere - and that is as I described. I think Debian is truly unique. There is Gentoo, that has maybe 40 (?) active developers. There is Ubuntu, that has maybe 100 (?) developers, but it's basically a comercial distribution and there is not so many interesting work for non employees of Canonical. There is opensuse and fedora, where I am not sure about the numbers. The atmosphere in Debian can change in the future, one never knows, but as of the end of 2007, I think it's very cool to get involved.

Maybe it's not for everyone, but it's the right place for me.

15 November 2007

Wouter Verhelst: Androids etc.

There's a huge amount of buzz around some "Android" API that some huge search company apparently released recently. Not that I care about mobile phones. Not as if you can do a lot of useful stuff on those, anyway. And, heck, "android"? Am I the only one who associates that with stuff like the above?

14 June 2007

Joachim Breitner: screen-message uploaded to Debian

By popular request (if you consider Lunar to be a pupil) I have packaged my old hack vlshow as screen-message to Debian. The small program (called sm on when installed) starts and displays a given text as large as possible, in big bulky black letters on white background. You can change the text while the program is running. This might be useful to quickly send a message across the room, say something to people who think they are reading your screen unnoticed, for make-shift signs, to marvel at nice unicode characters and all kinds of other funny purposes.
I used this as a chance to try out darcs-buildpackage, which is very nice, especially as it makes the separation of upstream sources and Debian changes possible in a non-troublesome way. I attended Enrico s tutorial on autotools and autotoolized the package during that talk, which meant that I could use cdbs for building the package nice experience as well. Darcs s dist feature is very nice when using autotools, although it makes darcs-buildpackage slightly inconvenient. (While dpkg-buildpackage uses darcs dist on the upstream sources to build the orig.tar.gz, it does not check the predist command in _darcs/pref/pref when building the debian package, which fails then. It works fine if I run that command, in my case predist autoreconf -i && rm -rf autom4te.cache/, before running dpkg-buildpackage.)The package is currently in the NEW-queue, until it was accepted, you can find packages on people.debian.org. Thanks to Lunar for some patches. I m keen to hear interesting stories about how and where you used the program.

11 June 2007

John Goerzen: Tourists

Today as we were getting ready to head out, Terah said to me, "There are people on our yard with cameras and I don't know who they are!"

I looked out and they looked friendly, so I went on out and said hi.

I'm glad I did, too, because these weren't just any random people with cameras. The group included Ed, who grew up in what is now our house. He's probably in his 70s or 80s now. His wife, son, and daughter-in-law were along, too. They had all driven up from Oklahoma and wanted to see the old farm. Ed's family had sold it to my grandparents back in the 40s.

They apologized for tresspassing. I told them, "I don't mind as long as you share a few stories."

Ed told us that he remembered the second story and kitchen being added on to the house when he was about 10, shortly after it was moved to its present location. He remembered his dad building the elevator that still stands on our property. It is quite the marvel of engineering and craftsmanship. I learned that its first power source was an engine from a Model T.

Ed kept looking at the house smiling. A few years ago, maybe 2 or 3, he got to see the place for the first time in 40 years. But it wasn't doing so well then already. He said we had done a wonderful job restoring it. He remembered, back before there was a sidewalk, sitting on the porch letting his feet dangle in the mud. Or sitting out there Sunday evenings making ice cream.

I invited them to take a quick look inside. They politely declined, not wanting to impose. Terah and I assured them that it would be fine, though we did need to leave in a few minutes. They came inside and Ed started describing the place to his family.

He pointed to the oak floor in the living room. "Is that original?" I told him, "Yes, it is; we added on about 2 feet to it but the rest of it is original." He said that he helped lay that floor. I asked him something I had been wondering for awhile: did they put the oak floor on top of a pine floor? He smiled and said, "Yes, we sure did!"

We came to the office. He asked if the wood ceilings were original. Yes, I told him they are. He confirmed what I had heard about the reason for a burned spot on the office floor: that someone had opened a wood stove and a live log fell out. He also asked if we had taken out the chimney. Yes, we did, but we saved the bricks. "Ah! We had a chimney fire in there one time! We all thought the whole house might burn down." I told him that the bricks still were marked from that.

He told me of one time he was standing on the north side of the house, idly throwing stones at it. His sister was playing piano at a window, in what is now the office. One of Ed's stones went through the window and hit her (but didn't hurt her seriously). "Boy did I ever hear about breaking that window!" One of his relatives asked, "What about hitting your sister?" "Well, that wasn't as bad as the window."

This isn't the first time something like this has happened. It's really neat to hear stories about the place and learn about its life before it came to be in my family.

I was glad I went out and said hi to our visitors instead of ignoring them or chasing them off.

Good things can come from strangers sometimes. I think I'm going to gather up a batch of photos and send them to Ed and his family, along with a few questions for them!

21 March 2007

Wouter Verhelst: OpenID

I figured this new shiny OpenID thing was cool enough to start using it. There's just this one problem: I didn't want to have to go through the "register on a website and remember yet another password" dance once more; and since I have this marvellous Kerberos realm set up which works for authenticating against my webserver, too, why not use that? So I downloaded the JanRain PHP OpenID library, and went hacking. It's not all that hard, really:
diff -ruN ./lib/actions.php /svr/www/openid.grep.be/data/lib/actions.php
--- ./lib/actions.php	2006-12-08 23:56:22.000000000 +0100
+++ /svr/www/openid.grep.be/data/lib/actions.php	2007-03-08 14:18:32.000000000 +0100
@@ -88,17 +88,24 @@
     if (!isset($input['openid_url']))  
         $errors[] = 'Enter an OpenID URL to continue';
      
-    if (!isset($input['password']))  
-        $errors[] = 'Enter a password to continue';
+    if (!isset($input['password']) && !isset($_SERVER["REMOTE_USER"]))  
+        $errors[] = 'Enter a password to continue, or log in using an ' .
+			'apache logon method';
      
     if (count($errors) == 0)  
         $openid_url = $input['openid_url'];
         $openid_url = Auth_OpenID::normalizeUrl($openid_url);
-        $password = $input['password'];
-        if (!checkLogin($openid_url, $password))  
-            $errors[] = 'The entered password does not match the ' .
-                'entered identity URL.';
-         
+	if(isset($_SERVER["REMOTE_USER"]))  
+	    if(!checkUser($openid_url, $_SERVER["REMOTE_USER"]))  
+	       $errors[] = 'The apache user does not match the openid URL';
+	     
+	  else  
+           $password = $input['password'];
+           if (!checkLogin($openid_url, $password))  
+               $errors[] = 'The entered password does not match the ' .
+                   'entered identity URL.';
+            
+	 
      
     return array($errors, $openid_url);
  
@@ -166,4 +173,4 @@
     return sites_render($sites);
  
 
-?>
\ No newline at end of file
+?>
diff -ruN ./lib/render/login.php /svr/www/openid.grep.be/data/lib/render/login.php
--- ./lib/render/login.php	2006-12-08 23:56:22.000000000 +0100
+++ /svr/www/openid.grep.be/data/lib/render/login.php	2007-03-08 14:53:56.000000000 +0100
@@ -3,6 +3,7 @@
 require_once "lib/session.php";
 require_once "lib/render.php";
 
+if(!isset($_SERVER["REMOTE_USER"]))  
 define('login_form_pat',
        '<div class="form">
   <p>
@@ -31,6 +32,33 @@
   </form>
 </div>
 ');
+  else  
+define('login_form_pat',
+       '<div class="form">
+  <p>
+    Enter your identity URL into this form to log in to this server. This
+    server must be configured to accept your identity URL. Since you already
+    logged on through an Apache method, entering a password is not required
+  </p>
+
+  <form method="post" action="%s">
+    <table>
+      <tr>
+        <th><label for="openid_url">OpenID URL:</label></th>
+        <td><input type="text" name="openid_url"
+                   value="%s" id="openid_url" /></td>
+      </tr>
+      <tr>
+        <td colspan="2">
+          <input type="submit" value="Log in" />
+          <input type="submit" name="cancel" value="Cancel" />
+        </td>
+      </tr>
+    </table>
+  </form>
+</div>
+');
+ 
 
 define('login_needed_pat',
        'You must be logged in as %s to approve this request.');
@@ -62,4 +90,4 @@
      
     return sprintf("<ul class=\"error\">\n%s</ul>\n", $text);
  
-?>
\ No newline at end of file
+?>
diff -ruN ./lib/session.php /svr/www/openid.grep.be/data/lib/session.php
--- ./lib/session.php	2006-12-08 23:56:22.000000000 +0100
+++ /svr/www/openid.grep.be/data/lib/session.php	2007-03-08 14:34:49.000000000 +0100
@@ -129,6 +129,16 @@
  
 
 /**
+ * Check whether the logged-on user matches the specified OpenID URL
+ */ 
+function checkUser($openid_url, $user)
+ 
+    global $openid_user_urls;
+    return isset($openid_user_urls[$openid_url])
+        && $user = $openid_user_urls[$openid_url];
+ 
+
+/**
  * Get the openid_url out of the cookie
  *
  * @return mixed $openid_url The URL that was stored in the cookie or
@@ -202,4 +212,4 @@
 
  
 
-?>
\ No newline at end of file
+?>
It expects an array in config.php like so:
openid_user_urls = array(
	"http://wo.uter.be/" => "wouter@GREP.BE"
);
(in the case of kerberos; if you use a different authentication method, the syntax of that array will most likely be different, too) It's still not perfect; all my changes really do is bypass the password check if it notices that apache has already authenticated the remote user; but I still need to "log on" at the PHP level, which also requires me to enter my OpenID URL. A somewhat cooler implementation would pre-enter the OpenID URL in the form. A really cool implementation would not even show me the logon form, but go straight to the "logged on" state, using the OpenID URL as given by the consumer, and the information apache provides us on the remote user. But it's a start. Adding OpenID capabilities to my blog comment entry script is proving slightly more challenging, however. More on that later.

24 February 2007

Andrew Stribblehill: Laphroaig quarter-cask

We went to Scotland on a family holiday this week (brave or stupid, answers on a postcard). You would not believe the number of puns you can get from the simple town of Ayr. For example, R: “You should have turned right there!” Me: “Oh well. To Ayr is human.” I shall spare you the rest: if your mind isn’t already overflowing with similar appalling jokes, you’re no friend of mine. Whilst in Ayr, I came across a marvellous whisky shop, Robbie’s Drams, and bought a bottle of Laphroaig quarter-cask and another of Smokehead. This article, or what remains of it, is to describe the Laphroaig quarter-cask whisky. Should you wish to avoid the Flash-animated website, here’s a precis. Tales are told of a time when the business of Laphroaig was carried on less than legally and it was useful to carry away smaller casks when the Excise men were coming than the more conventional full-size casks. Over the past few years, they have tried their best to recreate the whisky that would have been drunk as Laphroaig a couple of centuries ago: quarter-sized casks, slightly higher strength and an older filtration model. The effect of the smaller barrels is to increase the surface area to volume ratio substantially, so more flavour will enter the whisky from the barrel. Thus, they bottle it much younger than their standard ten-year-old offering. To smell it, a sweet smell hits the nose — perhaps toffee apple. On the taste, there is an initial earthy sensation followed quickly by a brief flash of kedgeree, leaving the smoky aftertaste of turmeric at the back of the throat. This is a much more subtle whisky than Laphroaig’s ten-year-old: thinner and less oily, and with a much more delicate, though still substantial, peaty hit. Because it’s not chill-filtered, the whisky becomes delightfully cloudy when water is added. I recommend that you try it both with and without additional water: many of the flavours become more muted with water, but a creamy taste comes to the fore. In summary: if you can get your hands on a bottle or two of this, it’s well worth doing so. An excellent whisky. I should also say that even if you’ve disliked other Laphroaigs in the past, give this a shot. It may just be your way into the other delights from the Laphroaig distillery.

29 December 2006

Jonathan McDowell: Ubuntu on the Advent 8111

Katherine's father bought her mother a laptop for Christmas. I am ashamed to admit that although I was responsible for the specification it was purchased from PC World. There is a lack of shops in Northern Ireland where you can walk in and purchase a reasonably cheap laptop unfortunately. The model we ended up with was an Advent 8111 (Dixons link as it's saner than the PC World one). It's not actually a bad spec; Core Duo 1.6GHz, 1GB RAM, 80GB HD, wireless/ethernet/modem, 15.4" 1280x800 widescreen TFT. I think it claims up to 3 hours battery life and I certainly had 2+ out of it though not under heavy use. I decided that it was getting Linux; Katherine's mum isn't used to any form of computer so there are no preconceptions about Windows to get over. While I'm a Debian person myself I felt it was time to give Ubuntu a chance; mjg59 (and others I'm sure) has spent a lot of time trying to get it happy on laptops and make sure things Just Work. I didn't have a lot of time to sit fiddling with the setup, so a shiny out-of-the-box distro seemed ideal. I downloaded ubuntu-6.10-desktop-i386.iso and burnt myself a CD. Dropped it in the drive and it booted into the live CD installer fine. The install process was simple and it managed to resize the Windows partition without problems (I would have deleted it but I couldn't convince the Windows rescue CD creator to work and I don't want to burn my bridges until I'm sure Linux works out ok for the owner). Rebooting into the freshly installed system I was surprised at the time the boot process took. It certainly felt a lot longer than it takes my (lower speced) laptop to boot to a GDM prompt under Debian. Also the display looked a bit fuzzy. Further investigation led to the discovery that although X correctly detected a panel size of 1280x800 it was only using 1024x768. Much searching found me i915resolution which did some magic that made things work. However this doesn't appear to be part of Ubuntu proper so I'm not sure if was the correct solution or if I should have done something else? Getting to the point where I could download i915resolution was interesting too. My parents have a WEP encrypted wireless network (to prevent casual use rather than because it's secure). I was expecting Ubuntu (which detected the Intel wireless card fine) to pop up some sort of dialog saying it had found a network and would I like to connect (if I provided the key). Something network-managery. But no. Even when I went to the network control panel and added all the details the connection didn't seem to come up. I gave up and did it manually with iwconfig and dhclient (I needed it to work quickly and at present it won't need wireless usually). Once I had the display working happily my other task was to tame the modem. It's an Intel HDA thing and I'd hoped sl-modem-daemon would drive it. Of course it didn't. Although it's an Intel chipset it has a bloody Conexant codec on it. Which of course there are no free or Free drivers for. I ended up trying the trial Linuxant driver, which did work fine at 14.4k, but that's really painful so I gave up and paid for the full version. I'd really rather have voted with my feet and ended up with some proper modem hardware, but it would have been an extra set of wires and cost more. I hate Conexant. Anyway, the drivers work (though seem to break sound; I haven't had enough time to prod this and the modem is much more important to have working). Hopefully in time I'll convince them they really want ADSL, but at present I think it would be quite hard as they don't have a high expected use. Once the modem was working I needed an easy way to dial up. I started playing with modem monitor, which had been installed by default. However I just couldn't figure out how to get it to allow me to dialup and dial down - the activate/disable options stayed greyed out. So I installed GNOME PPP which seems to work fine and be easy enough to drive - put a nice link to it on the desktop and stored all the details so it's a double click to launch and then a click of the "Connect" button. My final issue was that once I actually took the laptop to Katherine's house to show her mum how to use it it started hanging on boot. Booting into recovery mode showed a soft lockup error message around the point where it was setting up the network interfaces. I think this might have had something to do with me hitting the wireless kill switch (no point having it on when there's no wireless in the house), as disabling the device in the BIOS made the problem go away. I didn't have enough time to do a fully exhaustive check, but will look at it in the future. I wait with interest to see how use of the laptop goes. Expected usage to being with is mainly web and email (provided by the Ubuntu defaults of Firefox and Evolution) so hopefully it shouldn't be too problematic now I've fought the install process. I was really quite surprised at the problems I encountered (well, aside from the modem drivers); I'd expected a much smoother install that would leave me with everything working fine out of the box. I haven't yet filed any bugs or done more investigation - I only had about a day to setup the machine so couldn't prod it more just yet. I will of course try to do so when I get a free moment, but if I missed some obvious stuff please do point it out to me! (As if you wouldn't...) Oh, and here's some lspci output for anyone interested in some more details about the laptop:
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA])
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02) (prog-if 00 [Normal decode])
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02) (prog-if 00 [Normal decode])
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02) (prog-if 00 [Normal decode])
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02) (prog-if 00 [UHCI])
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02) (prog-if 00 [UHCI])
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02) (prog-if 00 [UHCI])
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02) (prog-if 00 [UHCI])
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02) (prog-if 20 [EHCI])
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2) (prog-if 01 [Subtractive decode])
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller IDE (rev 02) (prog-if 80 [Master])
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
02:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8055 PCI-E Gigabit Ethernet Controller (rev 10)
05:01.0 CardBus bridge: Texas Instruments Unknown device 8039
05:01.1 FireWire (IEEE 1394): Texas Instruments Unknown device 803a (prog-if 10 [OHCI])
05:01.2 Mass storage controller: Texas Instruments Unknown device 803b
05:01.3 Class 0805: Texas Instruments Unknown device 803c (prog-if 01)

7 September 2006

Ross Burton: Python Challenge

Here is a quick challenge for any Python gurus out there. Go and grab the Postr source (you'll need bzr) and run src/postr.py. Marvel at how simple it makes uploading images to Flickr, and how well it works. Then run python setup.py install --prefix=prefix and run prefix/bin/postr. Try to upload an image and note how it hangs. A little debugging reveals that it is hanging on mimetools.choose_boundary(), and I have no idea why. I've probably made a stupid typo somewhere, can anyone spot the problem?

21 June 2006

Jos Parrella: CNSL 2 Caracas

I flooded the Planet just by upgrading WordPress. So this weekend it’s happening in Caracas. The National Free Software Congress (CNSL) arrives to the capital in the second edition of the only nation-wide Free Software event. It will take place on Colegio Universitario de Caracas, in La Floresta, near the Indian Embassy, France Square and other nice landmarks of the city. The event is promoted by GLoVE, a national NGO which is currently organizing the CNSL and hosting several Linux User Groups (the whole list here in spanish, follow the links) including CHASLUG, the Free Software Users Group for the Young. I’m part of the group, but it’s currently run by three guys under 18. As in FLISOL Caracas, this will be a themed event featuring two days of conferences, keynote speakers, workgroups, expositions, installation festival and security related events. The first day is aimed to Free Software in Society, including presentations from government officials related to recent activities towards the Country migration. As Enrico pointed it in debconf-discuss and debian-project, some recent activities have been turning stronger the Free Software migration process in Venezuela. The announcement from the Department of Science and Technology of the mass capacitation of the citizens in the usage of computers featuring the Gnome Desktop Environment took everyone by surprise. Numbers are varying, being the more conservative around 400.000 people having their first computer relationship with Free Software, GNU/Linux and Gnome. Distribution? I haven’t see it yet, but most likely it will be Debian (the whole Department is using Debian) Saturday will also feature some conferences from community members about their experience on Free Software usage and how they can change the way people communicate and act with each other, specially noting the nationwide speech from Octavio Rossell about Free Software and GNU/Linux and the interesting presentation from Efra m M rquez-Arreaza on Business Models. Finally, on saturday, renowned economist Felipe P rez-Mart will be presenting his work Game Theory Applied to the Free Software Development Model. Sunday will be a hands-on day, like in FLISOL Caracas. The main speeches focus on development, featuring experienced programmers on PHP, Perl and Mono presenting Web and Desktop development tendencies in those programming languages. We will also feature an Ajax presentation and three workgroups about Linux Distributions, Web Development and Free Software and Education. On special guests, CNSL Caracas is proud to announce the visit of two fellow partners from IEEE Colombia: Erika Luque and Jeffrey Borb n from the District University of Bogot , and the special conference from Rafael N ez, who was apprehended in Miami, FL (US) for the massive attack of 679 servers in 2001, one of whom was the Air Force Training System in Colorado. He was also accused of attacking the Department of Defense servers and stealing confidential data from NASA. He made seven months of prision in Denver after declaring himself guilty of all charges and having the Judge to look on evidence of his work against child pornography with the Venezuelan CICPC. (more info in spanish) On the security side, Sunday will host the second Key Signing Party (guidelines in spanish here) and the first CACert assurance in Venezuela. We made the first KSP in CNSL Aragua (where I had the opportunity to speak about Debian and make a hands-on session on Marvelous Debian) with about 10 people. This time we’re aiming to something between 25 and 50 people. This is the first event promoting security culture in our Country and hopefully it will have a warm welcome in the public. Caracas will also be the inflexion point of the Congress, which will now travel to the Eastern part of the Country, usually forgotten by all the hacktivists in Venezuela. In states Sucre, Monagas and Bol var people is ready to have their first contact with free software through this Congress and hopefully next year the Congress will have a venue in each state of the Country (including the two most inhabited by natives, Delta Amacura and Amazonas) If you’re in Caracas, you’re welcome to pass by after registering (it’s free as in who cares) and if you’re not, you’re welcome to listen to the streaming that will be announced here. See you there!

13 June 2006

Jonathan McDowell: Ooooh. It's all pretty.

I had a rant about Firefox today on #debian-uk. Mainly the fact it seems to like to guzzle memory and bring my system to a crawl when it feels unloved. Which is every time it loads an animated image as far as I can tell. Matthew suggested Epiphany so I thought I'd give it a try. Seems ok, but looked a bit blocky, like GTK apps do for me. Not shiny and curvy like people who run a GNOME desktop (I run the excellent evilwm). So I had a poke around. And the magic is to run aptitude install gtk-theme-switch gtk2-engines and then switch2 and pick a theme and marvel as your GTK apps become sexier. Of course you probably all knew this. I'm impressed with how it's affected GNUCash, liferea and workrave as well (yes, yes, that's the whole point of theming, but I'm a simple creature who mostly runs xterms). Time will tell if Epiphany actually sucks less than Firefox. And there's still the leaking bucket that is liferea (253MB? Eh? And that's with the optimise for memory option enabled).

4 June 2006

Enrico Zini: Dapper on XEN (part 1/1, unfinished)

I need to do some work on a Dapper system, so it's time to try out xen:
apt-get install linux-image-2.6-xen-686 xen-hypervisor-3.0-i386 xen-utils-3.0 xen-tools
xen-tools tries to recommend xen, which is old and has been requested to be removed from the archive. The recommends needs to be ignored, which is not that trivial to do with aptitude. The linux-image doesn't happen to have an initrd. The bug has already been reported. One can recreate one using:
mkinitrd -o/boot/initrd-2.6.16-2-xen-686.img  2.6.16-2-xen-686
Then one adds this to /boot/grub/menu.lst:
title Xen
root (hd0,0)
kernel /boot/xen-3.0-i386.gz
module /boot/vmlinuz-2.6.16-2-xen-686 root=/dev/hda1
module /boot/initrd.img-2.6.16-2-xen-smp
And it boots lovely:
# xm list
Name                              ID Mem(MiB) VCPUs State  Time(s)
Domain-0                           0      939     2 r-----  4677.9
Now xen-tools provides xen-create-image. I'll try to create the Dapper image (deboostrap in my system has already been changed to be able to install dapper):
xen-create-image --size=4G --swap=128M --dhcp --volume=marvin \
                 --hostname=cavazza --dist=dapper --fs=xfs
But I get:
[...]
Creating swapfile : /dev/marvin/cavazza-swap
Done
Creating disk image: /dev/marvin/cavazza-root
Done
Creating xfs filesystem
Done
Installing the base system.   This will take a while!
Copying files from host to image.
Finished
Something went wrong with the debootstrap installation
Aborting
I love detailed error messages. This one is not. So I'll have to do by hand. The documentation says:
Before you can start an additional domain, you must create a configuration file. We provide two example files which you can use as a starting point:
  • /etc/xen/xmexample1 is a simple template configuration file for describing a single VM.
  • /etc/xen/xmexample2 file is a template description that is intended to be reused for multiple virtual machines. Setting the value of the vmid variable on the xm command line fills in parts of this template.
But in Debian there's no trace of the two example files. I've reported to Guido Trotter. Then I googled for the two files and found them. Now, on to adapt Dapper to run under Xen. The good Ubuntu wiki has an HOWTO which crudely makes you install the Tarballed Pre-built installations of Xen 3.0. It's sad that xen-enabled kernels didn't make it into Dapper roper. I can make this:
kernel = "/boot/vmlinuz-xen-domu"
memory = 128
name = "Dapper"
disk = [ 'phy:marvin/dapper,hda1,w' ]
dhcp="dhcp"
root = "/dev/hda1 ro"
I used the pre-built kernel as a domU, but:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,1)
Sigh. I'll try with the Debian Xen-enabled kernels. Installing yaird and linux-image-2.6.16-2-xen-686_2.6.16-14_i386.deb and linux-modules-2.6.16-2-xen-686. It WORKS! Now, that's not Dapper: that's a debootstrap install of it. No user, no root password, no desktop, no shiny Ubuntu custom config. How to finish the installation? No idea. In the past, I could run base-config, but now it doesn't exist anymore. It seems that the best bet is not to use debootstrap, but to install the CD in the LVM partition using QEMU and then chroot into it and then install the debian xen kernel to boot it. A QEMU install will take ages, and I expect some trouble, like getting partman to see LVM. Maybe I better install on a disk image file and then use tar and netcat to bring the ubuntu installation out of the disk image and into the LVM image. For today, I didn't make it. This job slips another day. Frustration. I hope that at least this description of my efforts so far can be helpful to someone trying similar things. One suggestion I got was to boot the Dapper CD and install from there. I can't: this computer has no bootable CD. Update: I found out http://xensource.com/summerofcode.html and it says:
Project Idea 3: Xen Desktop Outside of Domain 0 This project would deliver a Xen desktop to the user of a client system that presents an abstraction of a virtual desktop to the user in which multiple guests share the virtual desktop, each with a subset of the desktop resources (pixels, etc). Smart management of the sound drivers would allow mixing of sound from multiple guests to the single device used for output. Microphone input could be broadcast to all guests. Technologies such as ALSA already emulate playback settings by downsampling for the hardware etc. so its not hard to imagine a xen-snd-front device munging the data to a common format used for the internal sound card. Issues: synchronization of playback.
So, what I'm trying to do has been proposed as a SoC project and (I guess) is something that can't be done overnight. Although I was planning to run a diskless gdm accessed with XDMCMP from domain0's X server, and to just hand out the audio card to the domU using pciback, so my task would have been easier. Thus I give up using Xen for this one. I'll work around the lack-of-bootable-cd limitation of this computer by installing Ubuntu using QEMU. Which I found out requires using the "Alternate install" CD. The desktop install CD is a live CD installing with Ubuntu Expresso, and the live CD doesn't seem to work in QEMU. Or, I'll install in a LVM partition in the laptop and then move it around using the network. This one's probably faster. Could this experience be an interesting use case for Edgy Eft?

27 May 2006

Simon Law: Debconf 6, Day 7


Funicular
Originally uploaded by sfllaw.
After the morning talks were over, [info]ze_dinosaur and I decided that Saturday afternoon should be devoted to fun. We rounded up Jesus, Anabelle, Ben and Nattie. And then we set off for the water park. You see, we were actually staying at a huge playground, except we never saw very much of it. Determined to see more, we hike over to the Tower, found the funicular and took a trip down. As we passed over a small wood, I instantly regretted leaving my camera at the hotel. I suppose, however, that I'd regret it more if my camera had taken a swim. We arrived at the bottom and found a flock of geese. This is where I really wanted my camera, because the goslings were oh-so-adorable. Nattie got some photographs while the mother goose hissed furiously at her. We left, found the front gates of the water park, and were told that it was closed. Well, we were quite disappointed. The others went back to the resort, but Ben, Nattie, and I refused to have our afternoon ruined. Instead, we found a washroom, got changed and waded off to the sulphur pools. There's a large spring underneath a big glass dome, which happens to spew out some rather foul smelling water. Much like rotten eggs, really. There, it fed into a series of swimming pools in which vacationers soaked.

Swimming
Originally uploaded by sfllaw.
We waded in to the very cold water and swam a while for a bit. We got used to the smell and temperature, and started having a marvellous time. Then we saw the waterfall. A man was standing beneath a small torrent of water, that beat about his neck and back. In order to stand in place, he hung on to a knotted rope which was tied to the retaining wall. After watching him for a bit, we three decided to give it a go. Swimming up to the fall was the most difficult part, then it was quite relaxing to have water pouring over you like that. I need a bathtub and shower like this, when I build a house. Soon after, we went back to the resort where we dove in the pool and swam a bit. We managed to corrupt Tore's mind and scar him forever. Just then, we were kicked out by the lifeguards because it was 18:00. The air was still scalding and they closed the pool. What are these people thinking? I took a nice shower and then a nap in the front lobby. Since lots of people were leaving on Sunday morning, this was the last night for them to party. So lots of people got quite drunk, including one poor fellow who passed out on the grass. I found a towel for him, so he wasn't so cold. Then, I took plenty of pictures of people, while simultaneously convincing them to wear hats. No really! There are many benefits to hats. And people look great when they have a hat on. I highly encourage you to get one yourself. I stayed up very, very late. Until about 5:00. Then, Eric and I couldn't take it any more and we went to bed.

25 May 2006

Simon Law: Debconf 6, Day 5


Gorditas
Originally uploaded by sfllaw.
After a very tasty breakfast of gorditas in the market, I sat through talks all of Thursday morning, which were all quite good. They were visionary talks, talks about where Debian was going to go, and what we can do to get it there. After a brief lunch, we returned for the talk of debugging debian-installer. I've been lugging around my laptop, jamaica, through the entire conference. It's an old A20m, which means that it's a rather bulky looking thing, that is quite heavy. What makes it noticable is that it's been epoxied together, after having been dropped one too many times. People marvel that GNOME runs reasonably on it. Anyway, during the talks, my wireless card decided it didn't want to work any more. Pulling it out and letting it cool down seemed to get it responsible again. Strange. After the afternoon talk on how to find security problems within Debian, I went back to the hotel to change. You see, we were going to a Formal Dinner. I had not packed for a formal dinner, thinking that all functions would be casual at the very most. Still, I pulled out a pair of pressed slacks, an ironed shirt and a colourful tie. When I left my room, it became apparent that Formal actually meant "clothes without any holes".

Mariachi band
Originally uploaded by sfllaw.
We all packed into the coach buses from yesterday and drove into town. This was actually quite difficult for the drivers, because the streets were very narrow and the buses were incapable of turning around corners. I think it took us fifteen minutes to park, which mostly consisted of doing a 30-point turn. We disembarked and walked into a large building. Two of the walls were made of stone, the rest were made of stucco. There was a small stage presiding over a floor full of fold-up tables which were arranged in a Debianesque spiral. I decided that I was going to be at the nexus of activity, so I sat down at the central table and reserved a seat for AJ. As people seated themselves and started talking, there was a sudden commotion. Holger was running towards AJ with a plastic crown, deposited it unceremoniously on his head, and continued sprinting past. This drew applause and photographs, along some cheering of "Long Live the DPL!" AJ looked decidedly uncomfortable. It's probably for the best that Debian isn't a monarchy.

Indoor waterfall
Originally uploaded by sfllaw.
Our evening got more and more interesting. A mariachi band came in the door and started playing. Soon after they started singing, rain began to fall. This made lovely sounds on the tin roof above, which made me a little sleepy. Right about now, a brawl sprang up near the front door. There was some shoving involved and quite a bit of yelling. Soon, the combatants were separated and some of them left the building in anger. All this time, the musicians were playing louder and louder. As the music crescendoed, the rain fell harder and the wind blew stronger, until we had to close up the shutters to keep the water from blowing in. And the band kept trying to play over the rain. Then, slowly, the roof began to spring leaks. We were lining up for food then, and by the time I got to the buffet table, water was pouring into the trays. I managed to get something reasonably dry and scurried back to my seat. Which was wet. After I got some food inside of me, I experience the final act that capped our evening. We were chatting a bit about the strange weather we were having indoors when suddenly, water started cascading down one of the walls. It made a tremendous roar and the floor of the building quickly flooded. As I was photographing the events, the lights suddenly went out with a pop. We were plunged into darkness. I made my way back to my seat and someone eventually found the fusebox. The lights were restored, one by one, and it was soon time to leave. I don't know how the organizers of next year's Debconf are going to be able to top this: ceremony, live music, fisticuffs over a woman, an indoor waterfall, and drama. This was a night we're all going to remember.

18 May 2006

Simon Law: Debconf 6, Day 3


Diving board
Originally uploaded by sfllaw.
The Internet connectivity here is not so great, which is why I'm posting journal entries in batch mode. The fact that we have Internet here is fairly impressive, because of all the awesome people who have climbed up on roofs and things. Now, the resort does not supply Internet so people had to figure something out. There's an ISP and Internet caf in town, but no physical link between them. So they've set up two antennas, one on the roof of the ISP, and we've got a wireless link. Then, they've strung switches and access points along the roofs of walkways to cover large parts of the resort with Internet connectivity. Sadly, there's a lot of latency associated with this. I went to talks for most of the day and was wandering around the HackLab at dinner time. I convinced [info]ze_dinosaur, and then Agnieszka and David, to go out to a steakhouse in town. We walked out of the complex and back into Rinc n del Viejo, where we all decided to order beef. My filet mignon was huge and tender and juicy and flavourful. The vegetables on the side were insipid, but the beef was just marvellous. Other people had other steaks, which were equally as tasty. We stuffed ourselves silly and then waddled out of the restaurant. There was some beer shopping done after dinner and I picked up of tuna. My companions thought I was crazy, but I thought it was brilliant.

Yum!
Originally uploaded by sfllaw.
After returning to the HackLab, we discovered that the Internet connectivity was being rejiggered to work better. So people were holding an impromptu dancing BOF, which looked quite fun. I found the wine and cheese BOF nearby and found a bit of room to eat some fancy cheeses. Some of them were very creamy, others very sharp, and still more which were deliciously pungent. Eric and I left for our room, where I put some tuna in a bowl. We then took them out to a walkway where we had some kitten sightings. After a bit of hesitation, some little furballs realized that the bowl was full of delicious food. I managed to get quite close to them and took as many photographs as I could. Their mother sat nearby, guarding them from predators, and keeping a watchful eye on me. There are four kittens in that litter and they are all so adorable. At one point, the orange kitten had his entire body in the bowl, to prevent everyone else from eating. After they had stuffed themselves, they started playing happily. They chased each other around, bounced about, and climbed trees. Then, the two big ones decided to play wrestle all over the grass. We basically suffered from cute overload and spent a long time going, "Awww."

10 May 2006

Wouter Verhelst: Kerberos II

So about two weeks ago I started playing with Kerberos. And I'm still not finished with it, kerberizing one service after the other. Really fun, that. Kerberizing a network protocol involves somehow sending the Kerberos ticket in-band with the rest of the conversation. This is not entirely defined by the Kerberos protocol, and indeed, different network protocols have come up with different ways of sending the Kerberos ticket to the service. So far, I've encountered SPNEGO for HTTP, GSSAPI for IMAP and SSH, and SASL for LDAP. It sounds like a complex mess, but it really isn't; in general, kerberizing a service involves three steps:
  1. Installing the Kerberos plugin (if any) for both the server and the client;
  2. Generating the service principal, and adding it to a/the keytab;
  3. Configuring the service so that it knows it can do Kerberos, and so that it knows how to act when a Kerberos request is sent
Yes, in the cases I've seen it's really that simple. Although I'm skipping step 0 here–reading the documentation. But I've done that for you already ;-) The hardest part is the initial setup. But even that isn't very hard, because the process is very well documented. For starters, install the krb5-doc package, and read the excellent /usr/share/doc/krb5-doc/README.KDC which explains just enough of the system to get you started. The rest will be explained to you through debconf and the like; and if you want more, the krb5-doc package also contains three info files which explain concepts and usage very well. There's an alternative implentation called heimdal, which I presume works similar; but I haven't tried it, so I don't have much details on that one. The process of installing krb5 is very straightforward; the only thing I'll let you know is that you should ensure that any host you're going to kerberize should have reverse name lookups configured and working correctly; otherwise, you're going to run into a bunch of serious problems. After the initial setup, you'll have a Kerberos realm, usually your domain name in upper case (GREP.BE in my case). You'll now want to set up principals for your users and principals for your hosts. Now, let me show you how to configure Kerberos for LDAP, PAM, HTTP, IMAP, and SSH:
PAM
By installing and using the libpam-krb5 package, you'll log in to kerberos and receive your TGT immediately at login time; the alternative would be having to use kinit (in the krb5-user package) afterwards. pam_krb5.so also takes care of destroying your tickets when you log out, so that you don't have to worry about that. This is very handy, but not really required; you could just use kinit all the time. Of course, using pam_krb5.so also means you have only one password for everything—and that is a very good argument to use it.
Anyway; our three steps:
  1. Installing the plugin
  2. As you've guessed, libpam-krb5 is the package you'll need. That, or the heimdal implementation.
  3. Generating and installing the service principal
  4. In the case of any service such as PAM that will give you a shell (thus, as we'll see later on, also SSH), the principal is supposed to be host/<hostname>@<REALM>. For instance, on rock.grep.be, the principal PAM will use is host/rock.grep.be@GREP.BE. We'll create it with kadmin (which can be done on any kerberized host):
    wouter@rock:~$ sudo kadmin
    Password for root/admin@GREP.BE:
    kadmin:  addprinc -randkey host/rock.grep.be@GREP.BE
    WARNING: no policy specified for host/rock.grep.be@GREP.BE; defaulting to no policy
    Principal "host/rock.grep.be@GREP.BE" created.
    kadmin:  ktadd host/rock.grep.be@GREP.BE
    Entry for principal host/rock.grep.be@GREP.BE with kvno 3, encryption type Triple DES cbc mode with HMAC/sha1 added to keytab WRFILE:/etc/krb5.keytab.
    Entry for principal host/rock.grep.be@GREP.BE with kvno 3, encryption type DES cbc mode with CRC-32 added to keytab WRFILE:/etc/krb5.keytab.
    kadmin:  q
    
    Generating the principal can really be done as any /admin user; but as the same isn't true for writing the keytab, I'm using sudo in the above example to become root.
  5. Configuring
  6. account	required	pam_krb5.so ignore_root
    auth	sufficient	pam_krb5.so ignore_root forwardable
    password optional	pam_krb5.so ignore_root
    session	optional	pam_krb5.so ignore_root
    
    After adding the above lines to the relevant files in /etc/pam.d, you should log off, then log on again, run 'klist', and marvel. If you add the lines to your passwd file as shown above, and don't remove the pam_unix.so lines, then local passwd-based authentication will still work. This can be nice if, for example, the Kerberos server is down, or you're working on a laptop that isn't always within reach of the Kerberos server. It doesn't do any harm; the worst that can happen is that at some point you happen to be on a network where there's a firewall which drops packets on the floor rather than sending you an ICMP port unreachable; in that case, you need to wait for the Kerberos login to time out, which takes half a minute or so (I haven't timed).
SSH
  1. Installation
  2. If you're running unstable, you don't need to do anything. The OpenSSH packages in unstable are all set to understand Kerberos. If, however, you're running stable, you'll want to replace your ssh package by the ssh-krb5 package, which is the regular SSH package plus some patches to enable GSSAPI (read: Kerberos) authentication.
  3. Service principal
  4. If you've done the PAM setup above, you're all set; SSH, being a service which gives you a shell, also uses the host/ service principal.
  5. Configuration
  6. Make sure both the server and the client have the GSSAPIAuthentication option enabled. After you've done so, restart the server.
IMAP
I'm using dovecot as my IMAP server, which has builtin support for GSSAPI authentication (at least in unstable; haven't checked stable in this regard).
  1. Installation
  2. As dovecot comes with everything compiled in, there is no need for installing extra packages.
  3. Service principal
  4. You'll need the imap/ principal (e.g., imap/rock.grep.be@GREP.BE). Note that the host name which is found by doing a reverse lookup on the ip of the server is what counts, not the name of the server as you're using it (so not, e.g., imap/imap.grep.be@GREP.BE)
  5. Configuration
  6. Edit your dovecot.conf, and find the line that starts with "mechanisms" in the auth default stanza. Make sure it contains at least the word gssapi. Restart dovecot. I haven't found a Free (as in speech) IMAP client that supports GSSAPI authentication. My client of choice, offlineimap, doesn't seem to support it; mutt doesn't either (unless I'm missing something); and while thunderbird in unstable is supposed to support it, I haven't been able to configure it correctly yet. Probably me. I have, however, been able to verify that it works by using a non-free software package. Obviously, this isn't good enough. In addition, I found that horde and imp don't like an IMAP server that has GSSAPI enabled if they don't, while enabling GSSAPI in horde requires a PHP extension that isn't packaged in Debian. So I've disabled it for the time being. Stay tuned.
LDAP
  1. Installation
  2. LDAP requires uses SASL for authentication, which doesn't have GSSAPI modules in the default package; for those, you need the libsasl2-modules-gssapi-heimdal package. Attentive readers will have noticed that this package contains the string heimdal in it, rather than krb5, and that this is not the same implementation that I've been using previously. Yes, true. But since there's no libsasl2-modules-gssapi-krb5, and since Kerberos is, after all, a well-defined protocol, this is not an issue—except in that you need a bit more diskspace for the additional libraries. Note that the modules have to be installed on both the client and the server.
  3. Service principal
  4. You need a service principal that starts with ldap/, obviously followed by the hostname and the realm.
  5. Configuration
  6. For those people whom you want to allow to authenticate themselves using Kerberos, make sure they have ' SASL <principal>' in their userPassword attribute set (e.g., I have userPassword: SASL wouter@GREP.BE). You can have that in addition to a regular encrypted password; the userPassword attribute is a multi-value attribute. Now if you use ldapsearch or anything similar, it will try to negotiate GSSAPI authentication as the SASL mechanism. If it doesn't do so, you can force it by adding -Y GSSAPI to the command line.
HTTP
  1. Installation
  2. You need the libapache-mod-auth-kerb or libapache2-mod-auth-kerb modules on the server. For the client, you need a browser which has SPNEGO support; Konqueror and Firefox are two examples of browsers that do.
  3. Service principal.
  4. The prefix here should be HTTP/. That's right, in upper case, contrary to previous examples where this wasn't the case. HTTP is also different in that apache usually isn't running as root. This is a good thing; however, it does mean that the kerberos authentication module is unable to read /etc/krb5.keytab. You'll have to write the service principal to a different keytab for apache; I've used the -k option to the ktadd command in kadmin to specify the keytab as /etc/apache2/keytab; I'll assume you do the same.
  5. Configuration
  6. Something like this, on the server:
    <Location /some/URL>
    	AuthType Kerberos
    	KrbMethodNegotiate on
    	Require valid-user
    	Krb5Keytab /etc/apache2/keytab
    </Location>
    
    This will enable SPNEGO authentication; and if SPNEGO authentication fails for some reason (for example, because the used browser doesn't support SPNEGO, or because the user isn't logged in to Kerberos), it will fall back to Basic Authentication. While the latter is usually a good idea, it's less of a good idea if you're not using SSL, since then your password would be sent over the wire in cleartext. Luckily, the basic authentication can be switched off, by using KrbMethodK5Passwd off. If you go to my webserver logs, you'll see that you'll get a 401 right away, while the HTTPS version of the same allows you to try to log in by using basic authentication. On the client side, if you're using Firefox, you need to go to about:config, and set the option network.negotiate-auth.trusted-uris to a string that will identify the servers that may do SPNEGO authentication in your realm. In my case, I've set it to grep.be. For konqueror, doing something similar is not required—it'll do SPNEGO authentication out of the box.
So, that's what I've got set up on my network currently. Next on the list: NFS4 kerberos auth (requires updated nfs utilities, which aren't in Debian yet because of issues with NFS2, IIRC), PostgreSQL (it does seem to support it), and finding out if or how I can create principals can't be used for one authentication scheme or the other. Phew, that was a long post. I'll stop now.

24 March 2006

Uwe Hermann: Linux 2.6.16 Upgrade [Update]

I have upgraded my kernel to Linux 2.6.16 today with some consequences: Update 2006-03-24: The loop-aes v3.1c patches apply just fine. I almost forgot to mention the NVIDIA changes...

13 March 2006

Martin F. Krafft: Brief touchdown at Chemnitzer Linux-Tage

It's now been over a week since I visited my brother in Leipzig, with the intention to head over to Chemnitz on Saturday morning to attend the Chemnitzer Linux-Tage. It turned out that Saturday was just too nice a day (and Friday night too long), so I skipped the fair on that day and stayed with my brother, which wasn't a problem as my only required appearance in Chemnitz was Sunday morning for a talk on the Debian package lifecycle. So Saturday we ate an extensive breakfast, hung around, took a walk, met some folks, listened to a bunch of tunes, played countless Stratego games (this will have to be my favourite board game), and generally had a marvelous chilling time. So Sunday morning I got up early, hopped on a train and arrived in Chemnitz around 9:40 with ample time to make it to the campus where my talk was to be held at 11:00. Ample time -- or so I thought. Public transport in Chemnitz doesn't really wake up until 10:30, and the train schedule isn't descriptive of what actually happens on the track. So with a bunch of running, I finally ended up on a train to the south station, from where I walked. My talk went very nicely. I talked about what happens to a package between the developer's machine and Debian stable, giving insights into dak, the various parallel archives (such as stable-proposed-updates and experimental), and describing how security updates as well as volatile and backports fit in. The slides are accessible through your browser (but are German-only, sorry), thanks to the wonderful magic of docutils and S5 -- a great presentation system based on XHTML and CSS2 (it's written by one of the CSS gods). You can get my template with bzr. It and the slides are available under the terms of the Artistic Licence. Also in Chemnitz, my publisher Open Source Press officially released the German translation of my Debian book. It's good to see that finally out of my way. :) I left the campus early because I was too tired. I regret it because the Chemnitzer Linux-Tage seem like a nice event, and there were a bunch of talks I really wanted to see, but I simply couldn't. Till next year.

Next.

Previous.