Thunar:无法打开"smb://<address>":不支持指定的位置

Thunar: Failed to open "smb://<address>": The specified location is not supported

我正在尝试在我的 raspberry pi 上设置一个 NAS 服务器,我家的 linux 机器 运行 拱门.

这是我的 config 来自 /etc/samba/smb.conf 在我的 raspberry pi

[Cloud Pi]
comment = Pi shared folder
path = /home/pi/Shared
browseable = yes
writeable = yes
public = yes
only guest = no
force user = root
force group = root
guest ok = yes
create mask = 0777
directory mask = 0777
read only = no

运行在我家linux机器上执行以下命令加载smb服务器

thunar smb://<IP address>

并受到

的欢迎
Thunar: Failed to open "smb://<IP address>": The specified location is not supported

原来我做错了两件事。

家里没有配置文件linux机器

我从 AUR 下载了 samba 软件包。在进一步阅读他们的 official homepage 时,他们说 post-installation,我们需要在 /etc/samba/smb.conf.

手动创建默认配置文件

我从 here 复制了内容并将其粘贴到一个新的手动创建的 /etc/samba/smb.conf 文件中。

缺少 Thunar 的依赖项

在我的情况下需要以下软件包才能使其正常工作。

  • thunar-shares-plugin
  • gvfs-smb

安装依赖项后,第一次 尝试打开文件时,我必须使用我在设置时在 raspberry pi 中使用的用户名和密码登录启动 samba 服务器。

从那时起,它按预期工作。