File sharing between computers at my home use smb/ samba connection. I also have an Apple Macbook, so why use a protocol by Microsoft? Apple’s Finder supports afp (appletalk) file share protocol by default, curious about it i’ve installed Netatalk on my Debian 4.0 lenny server. You cannot get filesharing working by using the default installation (apt-get install netatalk). I’ve found an article how to install it with ssl support for Leopard (OS 10.5.x).
Edit unable to mount share.
Sometimes mounting in Finder AFP (Netatalk) fails. This happens when you try to share a directory which has been shared before. For example I’ve reinstalled my server but did not format my Raid Array. Previous this array was shared using Netatalk. When mounting Finder adds files: .AppleDB, .AppleDesktop, and .AppleDouble. These files were still present after reinstalling my OS. Finder tried to mount the new share with the old files present. When you’ve removed these files the mounting is possible again.
To remove all .Apple files created by Finder I’v used this script: sudo find . -name “.AppleD*” -type d -exec rm -rf {} \; It recursively scans all subdirectories and removes all .AppleD* files. Be careful, do not use script in combination with TimeMachine.
Installation
- apt-get source netatalk
- #apt-get install devscripts fakeroot libssl-dev cracklib2-dev
- #apt-get build-dep netatalk
- cd netatalk-*;
- DEB_BUILD_OPTIONS=ssl debuild
- dpkg -i ../netatalk*.deb
Configuration
Make changes to afpd.conf. Allow Snow Leopard, and Lion to login (dhx2). For authentication use Linux shadow/ passwd.
- -tcp -noddp -uamlist uams_dhx.so,uams_dhx2.so -nosavepassword
~/ “Home Directory”
