I'm accessing a fresh install of Ubuntu 18.10 and Samba 4.8.4 from macOS clients running Mojave. When connected via SMB, I want the Finder icon to look like a Mac Mini (because that's what Ubuntu 18.10 is running on).
In /etc/samba/smb.conf ([global] section), these values for fruit:model worked: Xserve, MacPro, iMac
These resulted in the default icon that looks like an Apple Cinema Display: MacBook, MacMini, MacSamba, TimeCapsule, RackMac
Saw a post recommending model names from /System/Library/CoreServices/CoreTypes.bundle/Contents/Info.plist on a Mac. While there are many there, the ones I tried didn't work.
Re: avahi-daemon, Samba 4.8.4 can set the icon for connected macOS clients without avahi-daemon running (worked for the three models above). While having avahi-daemon helps the server be perpetually visible in the Finder, I'm trying to understand only the working values for fruit:model in the smb.conf.
Anyone have any insight?
There are plenty of other model strings that should work as values; I believe they are directly read from
/System/Library/CoreServices/CoreTypes.bundle/Contents/Info.plist
.Browsing through that file, you should be able to intuit valid values. For example, from the line
I deduced that the proper string for the Mac Mini is
Macmini
(no CamelCase).MacBook
should work, though. As shouldAppleTV
,MacBook5,2
, and many more appearing in the aforementioned file.One can use the following python script to get the latest available models.
The currently available values for the 'fruit:model' parameter are:
Remember to restart samba and avahi:
As well as your Finder by clicking on the Finder while holding Ctrl + Option in that order.
I also had to put the 'fruit:model' parameter in the global section of my 'smb.conf'.