Linux Samba Server – How to Announce on Local LAN via Bonjour to Mac Clients

bonjourlinuxsamba

I have a Debian Linux based file-server using Samba and nowadays being accessed successfully by Mac OS X clients..

I'd like this resource to be available in a more user friendly way, by means of Bonjour.

Is it possible, to configure the Linux server, so that it announces itself on the local network, via Bonjour? And if so, how?

Best Answer

Create a file /etc/avahi/services/samba.service:

<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
    <name replace-wildcards="yes">%h filer</name>
    <service>
        <type>_smb._tcp</type>
        <port>139</port>
    </service>
</service-group>

Then restart avahi:

service avahi restart