前言
本文为Ubuntu16.04Lts版下载及安装教程 文末有常见问题归纳
可使用两侧的目录跳转到有需要的地方
一、Ubuntu下载链接
方式1: 官网下载 <<<点击
方式2: 国内镜像源下载
二、VMware Workstation Pro下载链接
下载VMware Workstation Pro15.x或是VMware Workstation Pro16.0
官网链接: VMware Workstation Pro16.0 <<<点击
百度网盘: VMware Workstation Pro15.0 <<<点击
提取码:wuhu
三、VMware Workstation安装Ubuntu16.04过程
1.新建虚拟机
2.安装Ubuntu

注意:此时会发现重启没反应
需点击【虚拟机】-【设置】

然后再点击【重新启动客户机】
即可正常登录
四、环境搭建
1、更改屏幕分辨率
2、换源
2.1 打开终端


2.2 备份文件
复制后,在虚拟机终端中,摁下鼠标中键,或是【Ctrl+Shift+V】进行粘贴
///若发现无法复制粘贴,可以先执行下一步,安装VM Tools后,再倒回来///
sudo cp /etc/apt/sources.list sources_bak.list
2.3 打开文件并修改
使用gedit打开该文本
sudo gedit /etc/apt/sources.list
将文本中内容全部删去,替换为下面内容
#阿里云源
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
保存后,在终端输入 进行更新
sudo apt-get update
sudo apt-get upgrade
3、安装VMware tools
安装VM Toools,我们就可在本机和虚拟机上进行信息传输
点击一直在下方的【安装Tools】
若之前将其关闭,可在【虚拟机->安装VMware Tools】重新打开
若该按钮为灰色,前往【虚拟机->设置】中,挂载ISO映像文件
点击安装后,弹出VM tools的文件夹
将其解压到Home
打开终端【Ctrl+Shift+T】,找到刚解压的文件
cd vmware-tools-distrib
ls
sudo ./vmware-install.pl
手动输入一个yes,然后一路回车
重启虚拟机即可生效
4、更改中文
若有同学在前面忘记设置成中文,可通过以下方法自行将系统语言更改为中文
【Setting-Language Support】
更新好后,将中文拖到最上层
然后重启虚拟机
常见问题
1、我的Ubuntu屏幕好小
答:在初始安装的过程中,Ubuntu是固定在800x640的分辨率,用户可在安装完成后通过以下两种方法来更改分辨率
一、在系统设置中调节分辨率大小
*【设置->显示->分辨率】选择合适的值*
**详细步骤可看【四、环境搭建】的第1步,【更改分辨率】**
二、安装VMware tools 【推荐】
*(安装后,分辨率可自适应屏幕大小)*
**具体步骤看【四、环境搭建】的第3步,【安装VMware tools】**