尽管设置看似正确,但 Mac 上的 Samba 服务器图标仍然是丑陋的 CRT 显示器

尽管设置看似正确,但 Mac 上的 Samba 服务器图标仍然是丑陋的 CRT 显示器

我在网络上配置了 Centos 8 服务器,安装了 Samba 并且运行良好。由于 Mac 客户端会使用它,因此我在 smb.conf 中添加了以下内容:

min protocol = SMB2
vfs objects = catia fruit streams_xattr
fruit:aapl = yes
fruit:metadata = stream
fruit:model = Macintosh
fruit:posix_rename = yes 
fruit:veto_appledouble = no
fruit:wipe_intentionally_left_blank_rfork = yes 
fruit:delete_empty_adfiles = yes

尽管fruit:model = MacintoshmacOS 机器看到的是带有米色/蓝色 CRT 显示器的丑陋图标,但我们在浏览 Windows PC 时看到的图标是一样的。

我在同一个网络上有一台 Raspberry PI,其 Samba 配置完全相同,但服务器在 Finder/网络中显示为一个漂亮的 iMac 图标。我尝试了“fruit:model”的各种设置,除了丑陋的 Windows 蓝屏死机图标外,没有显示任何其他内容。

有什么办法可以解决这个问题吗?

答案1

我想到了:

dnf -y install avahi
systemctl enable --now avahi-daemon.service
systemctl start avahi-daemon

还要重新启动 Samba:

systemctl restart smb
systemctl restart nmb

一切就绪了——将会出现一个漂亮的图标,而不是丑陋的 CRT/BDOS 图标。

相关内容