Ubuntu 18.10, Samba 4.8.4 smb.conf - what are the valid values for fruit:model?
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
UTTypeTagSpecification = { com.apple.device-model-code = ( "Macmini", "Macmini5", "Macmini6", "Macmini7" ); };
I deduced that the proper string for the Mac Mini is Macmini
(no CamelCase). MacBook
should work, though. As should AppleTV
, MacBook5,2
, and many more appearing in the aforementioned file.