Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I'm trying to create a fileserver/timecapsule combo server out of my new raspberry pi (Raspbian), and it's not going as well as I'd like. netatalk, avahi and samba are the packages that I'm using and they're not playing nice with each other. I would like all shares, AFP and SMB to be accessible from a server icon in the finder navigation bar.

This is what I know
Netatalk has built-in bonjour support, so if you run netatalk, the afp shares show up nicely in Finder (great!).
Samba does not have built-in bonjour support, but with the help of avahi, it's possible to advertise your smb shares through bonjour as well, and they show up in the Finder's navigation bar as well (awesome!).

The problem
When netatalk and samba+avahi are both running, it seems like netatalk hides any other bonjour stuff on the same host. When I click on the server icon in the navigation bar, I only see the afp shares, no smb to be seen. I can still use Cmd+K to get to the smb shares, but I find this less preferable, because I want to make it easy to use for non technical people.

Does anyone know how I can solve this?

share|improve this question

migrated from Oct 5 '13 at 12:33

This question came from our site for system and network administrators.

2 Answers 2

The answer from dedmoroz is sadly the reverse of what is desired (wanted: enabling Samba+netatalk in avahi should hide AFP shares, actual enabling Samba+netatalk in avahi hides SMB shares). You can see others reporting the same issue (and getting unhelpful replies) on https:// . These days you want SMB in preference to AFP because since Mavericks Apple prefer SMB(2) to AFP.

An explanation of the problem and a solution is discussed on . A working solution is to announce one of the services with a different name: i.e. make the avahi samba.service file say

<name replace-wildcards="yes">SMB on %h</name>

rather than just

<name replace-wildcards="yes">%h</name>

so it differs from netatalk's default name.

share|improve this answer

:) I have a wish to do it the otherway as you, to hide samba while netatalk running but I cant :P but maybe my research would help you.

Make in /etc/avahi/services a .service file which is called smb.service and put this in:

<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
 <name replace-wildcards="yes">%h</name>

now in finder you will see both samba and netatalk at same time

share|improve this answer

Your Answer


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.