With netatalk, I can serve AppleShare Filing Protocol shares from my Ubuntu box. Since this is where all of my media files are stored, this is kind of nice.
So, why use AFP over SMB (or NFS, for that matter)?
Well, I still haven’t been able to get NFS shares to work properly from my MacBook Pro. It just sits there Connecting to nfs://poul … forever. So NFS is out. (I have configured the shares under Ubuntu, or at least, I think I have. I did use the GUI tool, which as you’ll read below, didn’t fully set up the shares for SMB either…)
As I mentioned in a previous post, if you use the GUI tool to set up Samba (SMB) shares, you also need to use the smbpasswd -a [username] command.
Finder doesn’t handle Samba shares very well. It takes an age to connect to them, and if they disconnect (ie, the network disconnects, such as when you move from one location to another, and change WiFi network; or the server restarts) you get a long Finder hang while it looks for the connection.
OS X also used to disconnect Samba shares when you went to sleep, or if you slept for a long time. (This may have been the server, I don’t know) I can reconnect to an AFS share almost immediately. This means I can wake my MacBook Pro from sleep, wait a few seconds while it reconnects to the Airport network, and then press play on iTunes. All of my music lives on an AFP share, but it started playing immediately.
It is little things like this that make computing nice again.
hey. stumbled across your site because i was interested in setting up an afp server on my ubuntu box (to utilize time machine without having to tether to a ext. drive) and saw that you had already given nfs a try.
just a note. nfs might not be working for you because it authenticates through uid. on macs your uid is 501 by default and on the linux box its like 1000 (i think)
just in case you ever reconsidered nfs in the future
3 months, 1 week after the fact.
Aha. That sounds reasonable.
I’ve actually moved my media server over to a MacOS machine, so I’m fairly happy with AFS at this stage.
3 months, 2 weeks after the fact.