Leopard, AFP and the Hardy Heron 8

Posted by sethbc on February 24, 2008

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.  EDIT: `sudo su` isn’t necessary with the new version of the package.  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
$ DEB_BUILD_OPTIONS=ssl dpkg-buildpackage -us -uc
$ sudo debi

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

GlobalSAN iSCSI Initiator and Leopard 1

Posted by sethbc on February 24, 2008

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

Posted by sethbc on February 21, 2008

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…