安装Ubuntu18.04
1、创建新的虚拟机 ->
自定义(高级) ->
硬件兼容性:Workstation 15.x ->
稍后安装操作系统 ->
Linux + Ubuntu 64位 ->
Ubuntu Server x64 + E:\VMware\Ubuntu Server x64 ->
CPU1P1C-> 内存2048MB -> 网络NAT -> 控制器LSI Logic -> 硬盘类型SCSI -> 创建新虚拟磁盘 -> 磁盘容量20GB + 拆分成多个文件
2、编辑虚拟机设置 -> CD/DVD -> 使用ISO映像文件 ->开启此虚拟机
3、English -> Set Up LVM -> jackaliu+ ubuntu + root+ 123456 -> Install OpenSSH server
软件包管理
centos:yum
ubuntu:apt
编辑数据源(加速器)
修改etc/apt/sources.list,注意bionic替换
sudo vi /etc/apt/sources.list
按住d删除 -> ESC -> i编辑 -> 复制粘贴 -> ESC退出编辑 -> :+wq!
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-backports main restricted universe multiverse
更新数据源
sudo apt-get update
sudo apt-get install nano
sudo apt-get autoremove nano
设置允许远程登录 root
sudo passwd root -> 切换账号su
vi /etc/ssh/sshd_config
# Authentication:
#PermitRootLogin without-password //注释此行
PermitRootLogin yes //加入此行
service ssh restart