新安装Ubuntu虚拟机推荐安装软件

一、更换镜像源

根据一下链接操作
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  922 15:01 ./
drwxr-xr-x 20 root root 4096  922 14:18 ../
drwxr-xr-x  1 UserName UserName 4192 618 11:11 hgfs/
  1. 设置开机自动挂载

    打开配置文件并设置开机自启

vim /etc/fstab
.host:/ /mnt/hgfs             fuse.vmhgfs-fuse   allow_other,uid=1000,gid=1000,umask=022   0 0
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值