/etc/netatalk/afpd.conf, uncommenting the last line, which should look like
- -tcp -noddp -uamlist uams_dhx.so,uams_dhx2.so -nosavepassword
After that, edit
/etc/netatalk/AppleVolumes.default, making the line starts with
:DEFAULT to be something like this:
As you can guess, here we set the directory to be shared and the username.
Note: this could raise the premission problem, you should notice that. However, I only use afp service for virtual machine, so no worry about it.
Last, restart afp service:
Now you should be able to access your folder by connecting from Finder on OS X:
cmd + K, enter the URL: