14

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?

Falcon Momot
  • 24,975
  • 13
  • 61
  • 92
drAlberT
  • 10,871
  • 7
  • 38
  • 52

3 Answers3

13

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>
user169160
  • 131
  • 1
  • 2
9

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
LapTop006
  • 6,466
  • 19
  • 26
  • 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". :) – drAlberT Aug 21 '09 at 07:41
  • 1
    This answer is no longer valid, you should use port 445 now, see @user169160 answer. – Mint Sep 27 '18 at 00:34
3

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

chankster
  • 1,324
  • 7
  • 9