一、更换镜像源
根据一下链接操作
https://mirrors.bfsu.edu.cn/help/ubuntu/
二、安装VMware tools
apt-get install open-vm-tools-desktop
安装完成后虚拟机可以适配客户端分辨率,主机和虚拟机之间可以复制粘贴,VMware相关命令也可以使用。
三、替换软件中心
新立得拥有非常简单的用户图形界面,相比其它的应用商店非常快并易于使用。在左手边你可以浏览不同分类的各种应用,也可以轻松安装和卸载。
apt-get install synaptic
四、挂载共享文件夹
1.使用以下命令挂载(需要root用户权限)
/usr/bin/vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other -o uid=1000 -o gid=1000 -o umask=022
【注意】上面命令中的 uid 和 gid 需要根据用户 uid 来决定,在home目录输入id 命令即可查询。
user@user:~$ id
用户id=1000(user) 组id=1000(user) 组=1000(user),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),122(lpadmin),134(lxd),135(sambashare)
如果出错
user@root:~$ /usr/bin/vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other -o uid=1000 -o gid=1000 -o umask=022
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
把命令改为
/usr/bin/vmhgfs-fuse .host:/ /mnt/hgfs -o nonempty -o allow_other -o uid=1000 -o gid=1000 -o umask=022
2.查看权限
root@wanvm:/mnt# ll
总用量 13
drwxr-xr-x 3 root root 4096 9月 22 15:01 ./
drwxr-xr-x 20 root root 4096 9月 22 14:18 ../
drwxr-xr-x 1 UserName UserName 4192 6月 18 11:11 hgfs/
-
设置开机自动挂载
打开配置文件并设置开机自启
vim /etc/fstab
.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other,uid=1000,gid=1000,umask=022 0 0