Take the 2-minute tour ×
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 serverfault.com Oct 5 '13 at 12:33

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

2 Answers 2

:) 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">
<service-group>
 <name replace-wildcards="yes">%h</name>
 <service>
   <type>_smb._tcp</type>
   <port>445</port>
 </service>
 <service>
   <type>_device-info._tcp</type>
   <port>0</port>
   <txt-record>model=RackMac</txt-record>
 </service>
</service-group>

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

share|improve this answer

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:// discussions.apple.com/thread/5680272 . 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 http://ubuntuforums.org/showthread.php?t=1129438 . 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

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.