Linux and Apple File Sharing

I tried to setup NFS to access files in my Linux from my PowerBook, but didn’t succeed yet.

With NetTalk (Apple protocol, guess they have better client than for NFS …), it was much easier :

  • Configure /etc/atalk/netatalk.conf
  • Specified the shares in /etc/atalk/AppleVolumes.default
  • Then you can manage to have your Linux share automatically seen in MacOS with the Avahi Zeroconf daemon :
  • Just add the file /etc/avahi/services/afp.service :
    <?xml version="1.0" standalone='no'?><!--*-nxml-*-->
    <!DOCTYPE service-group SYSTEM "avahi-service.dtd">
    <!-- See avahi.service(5) for more information about this configuration file -->
    <service-group>
    <name replace-wildcards="yes">AFP file share from Linux</name>
    <service>
    <type>_afpovertcp._tcp</type>
    <port>548</port>
    </service>
    </service-group>

Then you just have to double clic on “AFP file share from Linux” as it appears in the Finder.

Leave a Reply

You must be logged in to post a comment.