* Become root (sudo -s or su -)
* yum -y install netatalk
* edit afpd.conf <code>- -noddp -tcp -uamlist uams_randnum.so,uams_dhx.so,uams_dhx2.so -nosavepassword -advertise_ssh</code>
*edit netatalk.conf
<code>
Thanks to this great [http://www.kremalicious.com/2008/06/ubuntu-as-mac-file-server-and-time-machine-volume/#netatalk2 tutorial] for ubuntu !!
*Add mdns at the end of this line in /etc/nsswitch.conf
hosts: files dns mdns