open-vm-tools开机自动挂载共享目录
新建/etc/rc.local脚本,添加可执行权限并编辑如下内容:
#!/bin/sh -e
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other或在/etc/fstab添加一行
.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other,auto 0 0 新建/etc/rc.local脚本,添加可执行权限并编辑如下内容:
#!/bin/sh -e
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other或在/etc/fstab添加一行
.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other,auto 0 0 fuse与ubuntu 24.04的桌面和文件管理器存在库冲突,安装fuse会导致文件管理器和桌面无法使用;通过SSH远程连接上后重新安装文件管理器和桌面即可。同样的,重新安装桌面和文件管理器后fuse也将无法使用。
# 重新安装文件管理器
sudo apt-get install -y --reinstall nautilus
# 重新安装桌面
sudo apt-get install -y --reinstall ubuntu-desktop
# 修复缺失内容
sudo apt-get --fix-broken install
# 重新登入