安裝Debian 11 samba 分享後在osx 網路瀏覽這台主機會變成?問號,如下:
可以修改 /etc/smb.conf 在Global 區段加上 fruit:model = model_name,
model_name 可以有 iMac, MacPro, Macmini, iPhone . . .
例如,加上 fruit:model = iPhone ,
重啟 samba service :service smbd restart
sudo avahi-daemon -k
畫面上看到的主機會是這樣:
如果加上 fruit:model = iMac,
重啟 samba service :service smbd restart
畫面上看到的主機會是這樣:
網路上有人寫了一隻python script 可以列出fruit:model的清單有興趣的人可以試一試,列出的 model有:
ADP2,1,
ADP3,2,
AirPort, AirPort4, AirPort4,102, AirPort4,107, AirPort5, AirPort5,104, AirPort5,105, AirPort5,108, AirPort5,114, AirPort5,117, AirPort6, AirPort6,106, AirPort7,120,
AppleTV, AppleTV1,1,
D201AP, D201AP, D201AP,
D20AP, D20AP, D20AP,
D211AP, D211AP, D211AP,
D21AP, D21AP, D21AP,
D221AP, D221AP,
D22AP, D22AP,
K48AP,
Laptop,
M68AP,
MacBook, MacBook1,1, MacBook1,1,Black, MacBook1,1,White, MacBook2,1, MacBook2,1,Black, MacBook2,1,White, MacBook3,1, MacBook3,1,Black, MacBook3,1,White, MacBook4,1, MacBook4,1,Black, MacBook4,1,White, MacBook5,1, MacBook5,2, MacBook6,1, MacBook7,1, MacBook8,1, MacBookAir, MacBookAir1,1, MacBookAir10,1, MacBookPro, MacBookPro1,1, MacBookPro1,2, MacBookPro10,1, MacBookPro10,2, MacBookPro11,1, MacBookPro11,2, MacBookPro11,3, MacBookPro11,4, MacBookPro11,5, MacBookPro12,1, MacBookPro13,1, MacBookPro2,1, MacBookPro2,2, MacBookPro3,1, MacBookPro4,1, MacBookPro5,1, MacBookPro5,2, MacBookPro5,3, MacBookPro5,4, MacBookPro5,5, MacBookPro6,1, MacBookPro6,2, MacBookPro7,1, MacBookPro8,1, MacBookPro8,2, MacBookPro8,3, MacBookPro9,1, MacBookPro9,2,
MacPro, MacPro1,1, MacPro2,1, MacPro3,1, MacPro4,1, MacPro5,1, MacPro6,1, MacPro7,1,
Macintosh,
Macmini, Macmini1,1, Macmini2,1, Macmini3,1, Macmini4,1, Macmini5, Macmini6, Macmini7, Macmini8,1, Macmini9,1,
N18AP,
N45AP,
N72AP,
N81AP,
N82AP,
N88AP,
N90AP,
PowerBook, PowerBook3,2, PowerBook3,3, PowerBook3,4, PowerBook3,5, PowerBook5,1, PowerBook5,2, PowerBook5,3, PowerBook5,4, PowerBook5,5, PowerBook5,6, PowerBook5,7, PowerBook5,8, PowerBook5,9, PowerBook6,1, PowerBook6,2, PowerBook6,3, PowerBook6,4, PowerBook6,5, PowerBook6,7, PowerBook6,8, PowerMac, PowerMac10,1, PowerMac10,2, PowerMac11,2, PowerMac11,2,Quad, PowerMac12,1, PowerMac3,5, PowerMac3,6, PowerMac4,2, PowerMac4,4, PowerMac4,5, PowerMac6,1, PowerMac6,3, PowerMac6,4, PowerMac7,2, PowerMac7,3, PowerMac8,1, PowerMac8,2, PowerMac9,1,
RackMac, RackMac1,1, RackMac1,2, RackMac3,1, RackMount,
TimeCapsule, TimeCapsule6, TimeCapsule6,106, TimeCapsule6,109, TimeCapsule6,113, TimeCapsule6,116, TimeCapsule8,119,
Tower,
Watch,
Windows, Windows2000, Windows2003, Windows2008, Windows7, WindowsVista, WindowsXP,
Xserve, Xserve1,1, Xserve2,1, Xserve3,1,
iMac, iMac10,1, iMac11,1, iMac11,2, iMac11,3, iMac12,1, iMac12,2, iMac13,1, iMac13,2, iMac13,3, iMac14,1, iMac14,2, iMac14,3, iMac14,4, iMac15,1, iMac16,1, iMac16,2, iMac17,1, iMac18,1, iMac18,2, iMac18,3, iMac19,1, iMac19,2, iMac20,1, iMac20,2, iMac21,1, iMac4,1, iMac4,2, iMac5,1, iMac5,2, iMac6,1, iMac7,1, iMac8,1, iMac9,1, iMacPro1,1,
iPad, iPad1,1,
iPhone, iPhone, iPhone, iPhone, iPhone, iPhone, iPhone, iPhone, iPhone, iPhone1,1, iPhone1,2, iPhone10,1, iPhone10,1, iPhone10,1, iPhone10,2, iPhone10,2, iPhone10,2, iPhone10,3, iPhone10,3, iPhone10,4, iPhone10,4, iPhone10,4, iPhone10,5, iPhone10,5, iPhone10,5, iPhone10,6, iPhone10,6, iPhone2,1, iPhone3,1,
iPod, iPod1,1, iPod2,1, iPod3,1, iPod4,1