The Apple Filing Protocol (AFP) is a network protocol that offers file services for Mac OS X and original Mac OS.Avahi is an open source implementation of Bonjour or former Rendezvous wich advertises servers to MacosX
NOTE: THIS IS NOT MEANT FOR PEOPLE WHO DONT KNOW WHAT THEY ARE DOING
== Installation of netatalk into Amahi ==# * Open a terminal either on the desktop or SSH# * Become root (sudo -s or su -)# * yum -y install netatalk# * edit afpd.conf <code>- -noddp -tcp -uamlist uams_dhx.so,uams_dhx2.so -nosavepassword -advertise_ssh</code> *edit netatalk.conf<code>ATALKD_RUN=noPAPD_RUN=noCNID_METAD_RUN=yesAFPD_RUN=yesTIMELORD_RUN=noA2BOOT_RUN=no</code> * Once the app is installed you can add the folders you wish to share over AFP by editing the Applevolume.default <code>~/ "$u" allow:UserName rwlist:UserName,@users cnidscheme:cdb</code> Change UserName to your username, this will share your homefolder over afp == Installation of avahi into Amahi ==* Open a terminal either on the desktop or SSH* Become root (sudo -s or su -)* yum -y install avahi*go to /etc/atalkdavahi/services/*add the afpd.service <code><?xml version="1.0" standalone='no'?><!--*-nxml-*--><!DOCTYPE service-group SYSTEM "avahi-service.dtd"><service-group><name replace-wildcards="yes">%h Xserve</netatalkname><service><type>_afpovertcp.conf file and adding them at the bottom_tcp</type><port>548</port></service><service><type>_device-info. Full instructions _tcp</type><port>0</port><txt-record>model=Xserve</txt-record></service></service-group></code> %h Xserve can be changed to edit that file are in your server name (not the actual filesame as your samba server!)model=Xserve can be changed to get a different icon for your server to PowerBook, PowerMac, Macmini, iMac, MacBook, MacBookPro, MacBookAir, MacPro, AppleTV1,1, AirPort *Additionally you can make avahi advertise other services on your mac rfb.service for screensharing without chickenvnc <code><?xml version="1.0" standalone='no'?><!--*-nxml-*--><!DOCTYPE service-group SYSTEM "avahi-service.dtd"><service-group><name replace-wildcards="yes">%h</name><service><type>_rfb._tcp</type><port>5900</port></service></service-group></code> # samba.service so the bsod icon is replaced with a nice screen icon and is on the same server as vnc/etcscreensharing <code><?xml version="1.0" standalone='no'?><!--*-nxml-*--><!DOCTYPE service-group SYSTEM "avahi-service.dtd"><service-group><name replace-wildcards="yes">%h</initname><service><type>_smb.d_tcp</type><port>139</port></service></service-group></atalkd startcode> there is also a nfs. Note that service but havent been able to get this will take longer then the next time you start AFPto work on snow leopard <code><?xml version="1.0" standalone='no'?><!DOCTYPE service-group SYSTEM "avahi-service.dtd"><service-group><name replace-wildcards="yes">NFS Shares on %h</name> ## Display Name<service> <type>_nfs._tcp</type> <port>2049</port> <txt-record>path=/var/hda/files/music</txt-record> ## path to NFS mountpoint</service><service> <type>_nfs._tcp</type> <port>2049</port> <txt-record>path=/var/hda/files/movies</txt-record> # Try # path to NFS mountpoint</service></service-group></code> Thanks to connect from Finder from your Macthis great [http://www.kremalicious.com/2008/06/ubuntu-as-mac-file-server-and-time-machine-volume/#netatalk2 tutorial] for ubuntu !! You should see the server in the sidebar *Starting and stopping AFP and Avahi : service atalk (start stop restart)service avahi-daemon (start stop restart)
== TODO ==
Integrate AFP and avahi with the Shares tab of the WebUI just as tightly as Samba is