虚拟机的选择与使用
一、 虚拟机的选择
最开始使用的是Oracle VM VirtualBox,VirtualBox安装好Ubuntu后,发现有好多个问题,
1、使用起来有点卡顿。
2、增强工具安装不了。
3、共享文件夹无法使用。
4、ubuntu无法正常启动。
5、等等.....
被迫选择VMware Workstation(当时选择Oracle VM VirtualBox是因为它免费),VMware虽然收费,但是网上有破解版的。链接:https://pan.baidu.com/s/19WCG_SOH5XjPAEcL8wVhIA
提取码:mcsn
VMware目前使用比VirtualBox没那么卡,挺丝滑的。
二、VMware虚拟机安装 ubuntu18.04系统后配置实现主机和虚拟机之间文件的复制(直接拖拽即可),还能复制粘贴文本
一、Ubuntu 18.04 配置 国内 apt-get 更新源
由于需要apt upgrade ,不换源会很慢
1.备份文件
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
2.修改sources.list文件
sudo gedit /etc/apt/sources.list
编辑/etc/apt/sources.list
文件, 在文件最前面添加阿里云镜像源:
# 阿里源 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
3. 刷新列表
sudo apt-get update sudo apt-get upgrade sudo apt-get install build-essential
二、安装open-vm-tools
sudo apt-get autoremove open-vm-tools sudo apt-get install open-vm-tools sudo apt install open-vm-tools-desktop # 重启reboot # 不仅能改变不能占满全屏的问题,还能解决不能和Windows复制粘贴的问题
三、重启
reboot
就可以实现主机和虚拟机之间文件的复制(直接拖拽即可),还能互相复制粘贴文本
引用:https://blog.csdn.net/qq_43498345/article/details/122789743?spm=1001.2014.3001.5502
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 没有源码,如何修改代码逻辑?
· NetPad:一个.NET开源、跨平台的C#编辑器
· PowerShell开发游戏 · 打蜜蜂
· 凌晨三点救火实录:Java内存泄漏的七个神坑,你至少踩过三个!