Changes

From Amahi Wiki
Jump to: navigation, search
244 bytes added ,  15:34, 26 January 2010
m
no edit summary
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 MacosXMacOS X.
NOTE: THIS IS NOT MEANT FOR PEOPLE WHO DONT KNOW WHAT THEY ARE DOING.
== Installation of netatalk into Amahi ==
* Become root (sudo -s or su -)
* yum -y install netatalk
* edit /etc/atalk/afpd.conf <code>- -noddp -tcp -uamlist uams_randnum.so,uams_dhx.so,uams_dhx2.so -nosavepassword -advertise_ssh</code> *edit /etc/atalk/netatalk.conf<code>ATALKD_RUN=no<br>PAPD_RUN=no<br>CNID_METAD_RUN=yes<br>AFPD_RUN=yes<br>TIMELORD_RUN=no<br>A2BOOT_RUN=no</code> * Once the app is installed you can add the folders you wish to share over AFP by editing the Applevolume/etc/atalk/Applevolumes.default file:<code>~/ "$u" allow:UserName rwlist:UserName,@users cnidscheme:cdb</code>
Change UserName to your username, this will share your homefolder over afp
*add the afpd.service
<code><?xml version="1.0" standalone='no'?><!--*-nxml-*--><br><!DOCTYPE service-group SYSTEM "avahi-service.dtd"><br><service-group><br><name replace-wildcards="yes">%h Xserve</name><br><service><br><type>_afpovertcp._tcp</type><br><port>548</port><br></service><br><service><br><type>_device-info._tcp</type><br><port>0</port><br><txt-record>model=Xserve</txt-record><br></service><br>
</service-group></code>
rfb.service for screensharing without chickenvnc
<code><?xml version="1.0" standalone='no'?><!--*-nxml-*--><br><!DOCTYPE service-group SYSTEM "avahi-service.dtd"><br><service-group><br><name replace-wildcards="yes">%h</name><br><service><br><type>_rfb._tcp</type><br><port>5900</port><br></service><br></service-group></code>
samba.service so the bsod icon is replaced with a nice screen icon and is on the same server as vnc/screensharing
<code><?xml version="1.0" standalone='no'?><!--*-nxml-*--><br><!DOCTYPE service-group SYSTEM "avahi-service.dtd"><br><service-group><br><name replace-wildcards="yes">%h</name><br><service><br><type>_smb._tcp</type><br><port>139</port><br></service><br></service-group></code>
there is also a nfs.service but havent been able to get this to work on snow leopard
<code><?xml version="1.0" standalone='no'?><br><!DOCTYPE service-group SYSTEM "avahi-service.dtd"><br><service-group><br><name replace-wildcards="yes">NFS Shares on %h</name> ## <!-- Display Name--><br><service><br> <type>_nfs._tcp</type><br> <port>2049</port><br> <txt-record>path=/var/hda/files/music</txt-record> ## path <!-- Path to NFS mountpoint--><br></service><br><service><br> <type>_nfs._tcp</type><br> <port>2049</port><br> <txt-record>path=/var/hda/files/movies</txt-record> ## path <!-- Path to NFS mountpoint--><br></service><br></service-group></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
 
*Starting and stopping AFP and Avahi :
== TODO ==
Integrate AFP and avahi with the Shares tab of the WebUI just as tightly as Samba is.