VMware15

安装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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

友情链接更多精彩内容