John Siu Blog

Tech - Business Tool, Personal Toys

Avahi Config

☰ Table of Content

Some Avahi config.

Avahi

To make samba share show up in MacOS finder network section, create /etc/avahi/services/smb.service:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<?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=Macmini7</txt-record>
 </service>
</service-group>

Then restart avahi.

MacOS Icons

  • plist: /System/Library/CoreServices/CoreTypes.bundle/Contents/Info.plist
  • location: /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources

John Siu

Update: 2022-05-12
comments powered by Disqus