Ubuntu-server-18.04和Ubuntu-desktop20.04安装

一、Ubunt 镜像文件下载

  • 清华镜像可以下载到不含live是server镜像文件。

  • 清华镜像:https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cdimage/ubuntu/releases/

  • 阿里镜像:http://mirrors.aliyun.com/ubuntu-releases/

二、安装Ubuntu18.04.5

2.1配置虚拟机

  • 新建虚拟机

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 选择自定义

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 选择虚拟机硬件兼容性为默认。

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 安装客户机操作系统选择稍后安装操作系统。

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 选择客户机操作系统为Linux,版本为Ubuntu 64 位

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 为虚拟机命名,并且选择安装位置。

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 为处理器配置为2个处理器,2个内核数量

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 配置内存为2GB,即为2048MB

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 网络类型、选择I/O控制器类型默认即可

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 选择磁盘类型为SCSI
    Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 选择磁盘为创建新虚拟机磁盘

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 指定磁盘容量大小为200GB,并且将虚拟 磁盘存储为单个文件

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 指定磁盘文件默认即可

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 点击完成,完成虚拟机的创建

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

2.2 为虚拟机添加映像文件

  • 点击CD/DVD进入虚拟机设置

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 点击使用ISO映像文件

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 点击预览选择需要的映像文件后点击打开。

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 查看是否正确,正确点击确定。

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

2.3 配置Ubuntu

  • 点击开启此虚拟机

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 选择English回车

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 选择Install Ubuntu Server回车进行安装

    Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 已经选择English回车继续。

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 选择*回车

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 检测键盘选择NO回车

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 键盘布局默认为English(US)回车,后一句默认回车。

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 配置Hostname,命名完成后按ALT到Continue回车。

  • 配置一个用户,配置完成后使用ALT切换到Continue回车。

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 配置密码完成后使用ALT到Contune回车后重新输入密码

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 进入分区选择Manual按回车,自己手动分区

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 选择到SCSI33回车,进入后选择YES

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 完成后SCSI33下多出pri/log选择到后回车进入。

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 进入分区:

分区规划

名称 大小
/ 100G
/boot 1G
/DATA 50G
SWAP 4G
  • 划分/分区

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 大小设置为100GB

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 选择Primary

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 选择Beginning

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • Use as:选择Ext4 默认即可然后到Done setting up the Partition回车即可。

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 其他分区类似 相同部分不在赘述。
  • 注意在进行/boot分区的时候默认是/home需要选择到 后手动更改。

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 在为/DATA分区时需要手动输入选择到Mount point 后选择Enter manually。

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 在进行SWAP分区的时候需要在 Use as回车进入上选择swap area。

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 完成分区后选择Finish partitioning and write changes to disk回车

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 选择Yes

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 设置代理 一般不需要回车

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 选择是否自动更新。

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 选择需要的软件,必须选择OpenSSH server使用空格进行选择。

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 安装GRUB默认为Yes即可

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 安装成功重启

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 完成安装,做快照备份即可。

三、安装Ubuntu 桌面版

3.1创建虚拟机

  • 和上面相同,不在赘述

3.2 添加映像文件

  • 和上面相同,不在赘述
  • 安装为20.04

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

3.3 配置Ubuntu

  • 开启虚拟机
  • 选择语言为English,点击Install Ubuntu

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 选择键盘布局English—English(US),点击Continue。

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 保持默认

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 选择Something eles

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 分盘设置点击New Partition Table,下一界面选择Continue

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 双击free space进行分盘

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 分区规划
名称 大小
/ 100G
/boot 1G
/DATA 50G
SWAP 4G

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 分区情况

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 选择地区

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 设置用户,提示短密码

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 开始安装

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 重启

Ubuntu-server-18.04和Ubuntu-desktop20.04安装

  • 进行简单的配置后完成。做快照。

Ubuntu-server-18.04和Ubuntu-desktop20.04安装