修改source添加
cat /etc/apt/sources.list
deb http://archive.build.openkylin.top/openkylin/ yangtze main cross pty
deb http://archive.build.openkylin.top/openkylin/ yangtze-security main cross pty
deb http://archive.build.openkylin.top/openkylin/ yangtze-updates main cross pty
deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
1.首先先更新软件列表清单
sudo apt update
2.安装open-vm-tools
sudo apt install open-vm-tools
3.安装open-vm-tools-dkms 实现文件夹共享
sudo apt install open-vm-tools-dkms
4.安装open-vm-tools-desktop 桌面环境实现文件的双向拖拽
sudo apt install open-vm-tools-desktop
安装完成,添加共享文件夹
VMware依次点击--虚拟机--设置--选项--共享文件夹--总是启f用--添加目录即可
5.许多人在上述操作后,每次重启系统都不会自动挂载共享文件夹,导致每次都要重新设置
这时,只要使用vi编辑器在/etc/fstab添加上下面这句话即可实现开机自动挂载
.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other,defaults 0 0