镜像准备:
http://mirrors.aliyun.com/ubuntu-releases/20.04/
安装步骤:
一、语言选择:English
二、Installer update available选择Continue without updating
三、Keyboard configuration(键盘布局)选择Done默认即可
四、Network connections(网络配置)选择默认的动态获取IP地址,成功获取IP地址后,选择Done
五、Configure Proxy(配置代理服务):默认空白即可,选择Done
六、configure Ubuntuu archive mirror(设置软件源的地址)修改为:http://mirrors.aliyun.com/ubuntu,然后点击Done
6.1Installer update available(安装器的更新)选择Update to the new installer{有的安装会出现这个界面}
七、Guided storage configuration(磁盘分区设置) 默认选择use an entire disk 然后选择Done
八、Storage configuration(分区预览),选择Done,然后会弹出警告:是否确认,点击Continue
九、Profile setup(创建用户配置),然后点击Done
十、SSH Setup(弹出是否安装open ssh),选择安装,然后点击Done(用 空格键 选择)
十一、Featured Server Snaps(其他功能软件列表),一个也不选,直接移动到最后,选择Done
十二、installing system(系统开始安装),然后等待让他安装,当Cancel update and reboot变成reboot 说明已经安装完成,点击重启
修改root密码
修改网络
修改/etc/netplan下面
1-network-manager-all.yaml
网络验证
更新list源
远程连接
如果报错,在/etc/ssh/sshd_config最后增加以下一行
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1
systemctl reload sshd
重新用xshell连接就可以了
开启root远程登录
sudo vim /etc/ssh/sshd_config
将PermitRootLogin prohibit-password更改为:PermitRootLogin yes
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/11825.html