Mon 9th Jul 2007
tail -f /var/log/syslog is your friend
Posted in the wee hours, filed under Ubuntu.I’ve just spent about three hours troubleshooting encrypted passwords for netatalk.
Basically, the plain netatalk that comes with Ubuntu, due to licensing reasons, does not include SSL support, which means only plaintext password authentication is supported. That wouldn’t be too bad for my purposes (I’m running on a secure network), but OS X complains each time you try to connect using plaintext only passwords.
So, I followed the instructions from coderspiel: A year of plaintext AFP passwords is enough, but it wouldn’t work.
Firstly, it needs BerkelyDB 4+, but will uninstall this to install 3+, which the package manager thinks it needs. Stupid.
Secondly, some bits and pieces won’t compile. I did do some editing, but I felt this may break the whole thing, so I didn’t want to install the whole lot, just the missing uams. Basically, uams_dhx.so was missing.
So, I built this, and others, and installed them. Still no joy. I did kind of get uams_randomnum.so or something to work, but it kept saying incorrect password.
Then, I stumbled on the idea to use tail -f /var/lov/syslog. This immediately showed me I was missing the symlink from uams_dhx_passwd.so to uams_dhx.so
So that’s all there was to it. Now connections work perfectly. And AFP connections seem to be a bit more robustly handled (ie, less spinning beachballs of death), and faster for things like iTunes.
Hi,
today i also tried to teach my ubuntu box the afp protocol. I also followed the instructions on coderspiel and the instructions from click. In the end i get an error when i try to start the service:
cv@server:~$ sudo /etc/init.d/netatalk start
hostname: Unknown host
So maybe you could help me to get that afp up and running.
1 week, 1 day after the fact.
It looks like your machine does not have a hostname set. You can use hostname to set it. Try the following”
$ cat /etc/hostnameIf that fails, then you would need to do:
$ sudo echo MachineName > /etc/hostname$ sudo hostname -F /etc/hostname
Then run the netatalk script again. If it fails, try the following. Look in /etc/default/netatalk
Change the line:
ATALK_NAME="hostname"to:
ATALK="Machine Name You Want"I ended up doing this anyway, since I wanted a different display than just the hostname when I connected.
Let me know you you have any further issues. I have the compiled uams_dhx.so file if you need it, but it is only likely to work if you are using Ubuntu 6.
1 week, 1 day after the fact.
Hi Matt,
thank you very much! now it finally works as expected.
Maybe you might want to have a look at this one trash on afp volumes
cheers
1 week, 2 days after the fact.
Yeah, I had a look, but I couldn’t seem to get it to work that well.
I’m not that fussed about it (I ignore the Trash on my local machine. If I delete a file, I want it deleted).
1 week, 3 days after the fact.