Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a Linux debian 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, and how it would be possible, to configure the linux server in order to announce itself via Bonjour on the local network?

Thanks in advance

share|improve this question

3 Answers 3

up vote 5 down vote accepted

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
share|improve this answer
    
Just for the sake of precision, I installed avahi on my FW/DNS and not on the samba server itself. This is more consistent with my network setup and is possible as avahi can announce just "available services", not only "my own available services". :) –  AlberT Aug 21 '09 at 7:41

You need to install Ahavi, which is a free ZeroConf (Bonjour) implementation. After that's done, see:

Setup Samba for Bonjour networking with OS X 10.5 Leopard

share|improve this answer

Nowadays, port 445 is used. So the config file should look like this:

root:~# cat /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</name>
  <service>
    <type>_smb._tcp</type>
    <port>445</port>

  </service>
</service-group>
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.