When you disable netatalk/avahi, netbios on your OS X machine discovers the server. When OS X detects two servers with the same name on both Bonjour and Netbios it will prefer the Bonjour discovered one over the Netbios one.
You can advertise both of the services via Bonjour/Avahi, however when both SMB and AFP shares are advertised only AFP will show. To overcome this you can use a different hostname for AFP and SMB.
For example, my /etc/avahi/services/smbd.service
file:
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h - Samba</name>
<service>
<type>_smb._tcp</type>
<port>445</port>
</service>
</service-group>
And my /etc/avahi/services/afpd.service
file:
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_afpovertcp._tcp</type>
<port>548</port>
</service>
</service-group>
This shows up in Finder as:
![Example in Finder](../../I/static/images/21ee0de64052850229b1218f6c4619bb8a43044d9debab28a95d5a0af83c312e.png)
Hey, this somewhat works. But the shares aren't showing up (only for samba!), but the samba thing is there. Did you change the port for samba? If so, what was the original. – None – 2014-10-29T18:20:52.353
Scrap that, they're showing now! – None – 2014-10-29T18:47:56.530