Leopard, AFP and the Hardy Heron

Damon Timm has a great post on installing netatalk on Ubuntu with SSL support.  I won’t go through the licensing issues again (I feel like enough people have done that already).  Suffice to say, Ubuntu doesn’t ship netatalk with SSL enabled, and Leopard requires SSL support to connect to AFP shares out of the box.  It’s easy enough to allow Leopard to use plaintext passwords with the following command:

defaults write com.apple.AppleShareClient afp_cleartext_allow -bool true

I just felt it would be a better idea to enable SSL by default on Hardy.This, as they say, is where things get tricky.  First, the version of netatalk in Hardy is broken (see discussion of the bug in Debian here).  There are one of two ways to fix this, simply hand-edit the offending patch, or use the source packages provided by Debian.  With this in mind, you can use the following instructions to download and build netatalk on Hardy (keeping in mind, as Damon mentions, you must have the Universe repository enabled in /etc/apt/sources.list):

$ mkdir -p ~/src/netatalk
$ cd ~/src/netatalk
$ sudo aptitude install devscripts cracklib2-dev dpkg-dev libssl-dev build-essential
$ sudo apt-get build-dep netatalk$ apt-get source netatalk

Edit: the current version in Hardy is now 2.0.3-9.  The patch is no longer necessary.  If you choose to use the `apt-get source` line above, you should hand-edit the offending patch (that is until the MOTU update netatalk from version 2.0.3-7 to 2.0.3-8).  Below is a diff containing the only change necessary:

— netatalk-2.0.3/debian/patches/107_afpd-zeroconf.patch
2007-12-21 21:53:43.000000000 +0100
+++ netatalk-2.0.3.new/debian/patches/107_afpd-zeroconf.patch
2007-12-21 21:56:52.000000000 +0100
@@ -350,7 +350,7 @@
+{
+  struct context *ctx = userdata;
+
-+  assert(g == ctx->group);
++  assert(!ctx->group || g == ctx->group);
+
+  switch (state) {
+

At this point you’re free to continue building netatalk.  NB: the instructions below differ from Damon’s because building with an environment variable before “sudo” when env_reset is set in sudoers (the default behavior in Hardy) makes your efforts useless!  You should `sudo su` before creating the build rather than building with sudo (unless you don’t mind the potential security risk of removing env_reset from sudoers)

$ cd netatalk-2.0.3
$ sudo su
$ DEB_BUILD_OPTIONS=ssl dpkg-buildpackage -us -uc
$ debi
$ exit

You should now be able to connect from Leopard to your Hardy Heron home directory!

GlobalSAN iSCSI Initiator and Leopard

I’ve spent the last several days messing with the GlobalSAN iSCSI initiator on Leopard, and long story short, it doesn’t work very well at all.  Numerous hardlocks (on the order of 5 minutes after beginning a long-ish read/write operation).

I managed to get my Ubuntu Hardy Heron box set up with iSCSI, mounted the Thecus with hfsplus, and got my data off that way.  I’ll be posting  more information on my iSCSI setup under ubuntu, as well as how I’m putting together the MythTV box.

In other news I took the plunge and got the PeepCode unlimited special for Ruby on Rails programming screencasts.  I’m actually really liking the screencasts, despite the fact I have a fair amount of rails experience.

Hopefully I can follow some of this up tomorrow.

Dying

I’ve got an awful cold/fever right now.  I’ve been hovering around 104F for the last two days.  Ugh.

In other news, I finally posted some pictures from Jackson (and I’m working on posting pictures from Henry’s christening).  Here’s the gallery for Jackson ‘08…

Dial Car

Time to catch the dial-car!

Pictures from Jackson (Old)

As a teaser here are some of my old pictures from Jackson.  Jackson Hole 

I’m goin’ to Jackson…

Liz and I are headed to Jackson Hole tomorrow.  Our flight leaves at 6:50AM.  Its going to be VERY painful.  I’ll try to post pictures when I get there!

Giants / Pats

So i guess it’s Giants/Pats…  

I’ve been doing some random coding in Django.  Mostly just playing around with it to learn more Python, but comparing it to rails as well.  I’ve got to say i’m definitely impressed with Django, but there are still some things missing that I was pretty used to in Rails (the ability to do migrations is one thing, the different templating is another). 

I haven’t posted on this thing (hell, even had a site up) in forever, but i’ll probably try to just throw some stuff up here every once in a while now that I’ve got some stable hosting.  Right now I’m using Media Temple’s Grid Service.  I haven’t really had any problems with it (and I was interested to see that they are adding Django containers.  I’ll have to play with it more a little later.

Pats Win

Nice to see the Pats win today.  Game 2 of 2 is looking like a great game as well.  Right now its 7-6 Green Bay.