4.19.2011

Setup Netatalk for Cent OS 5.6 (Guest Login ONLY)

Environment:
OS: Cent OS 5.6
Kernel: 2.6.18-238.5.1

Assumption:
You had installed a support netatalk kernel.

  1. Download the Netatalk RPM file (Link - netatalk-2.0.5-1.el5.i386.rpm).
  2. rpm -ivh netatalk-2.0.5-1.el5.i386.rpm
  3. Update /etc/atalk/netatalk.confATALK_MAC_CHARSET='UTF8-MAC'
    ATALKD_RUN=no
    PAPD_RUN=no
    CNID_METAD_RUN=yes
    AFPD_RUN=yes
    TIMELORD_RUN=no
    A2BOOT_RUN=no
  4. Append the below line to  /etc/atalk/afpd.conf "Mac Share" -uamlist uams_guest.so -tcp -noddp
  5. Append the below line to /etc/atalk/AppleVolumes.default/home/public    "Share" options:usedots,invisibledots,noadouble ea:none
  6. Create a new file with below content /etc/avahi/services/afpd.service
    <?xml version="1.0" standalone='no'?><!--*-nxml-*-->
    <!DOCTYPE service-group SYSTEM "avahi-service.dtd">
    <service-group>
        <name replace-wildcards="yes">%h Drive</name>
        <service>
            <type>_afpovertcp._tcp</type>
            <port>548</port>
        </service>
        <service>
            <type>_device-info._tcp</type>
            <port>0</port>
            <txt-record>model=Xserve</txt-record>
        </service>
    </service-group>
  7. run /etc/init.d/avahi-daemon start
  8. run /etc/init.d/atalk start
  9. If you share the same folder with samba please update your smb.conf with below options
    veto files = /._*/.DS_*/.AppleDB/.AppleDouble/.AppleDesktop/Network Trash Folder/TheFindByContentFolder/TheVolumeSettingsFolder/Temporary Items/.TemporaryItems/.VolumeIcon.icns/Icon?/.FBCIndex/.FBCLockFolder/
    delete veto files = Yes
    vfs objects = netatalk
Netatalk Setup Reference
Netatalk Setup Reference