一、Ubuntu 的安装教程
1、Ubuntu的镜像下载
这里我选择阿里云的镜像下载你也可以选择Ubuntu的官网下载
如果英文版的看着有点歪瓜裂枣就选择中文版
在这里我们选择阿里云的镜像网站下载
2、服务器版的安装教程
点击创建虚拟机
回车
选择稍后安装操作系统
选择 English
服务器版,没有简体中文,所以选English
也可以手动设置静态IP
选择Manual
选择 Continue
一些可选的额外软件
回车,然后输入用户名密码
设置root密码
agan@cloudsino:~$ sudo passwd root
[sudol password for agan: 先输入agan用户的密码9639
New password: 再设置root用户密码 cloudsino_666
Retype new password:passwd: 确认root用户密码 cloudsino_666
password updated successfully # 设置密码成功
agan@cloudsino:~$ echo $? # 表示上一条命令是否执行成功
0
agan@cloudsino:~$ su - root # 登录root用户
Password: cloudsino_666
root@cloudsino:~#
2.1.1、允许 root 远程登录
**重启 sshd 服务时,竟然显示没有这项服务,但远程ssh是可用的,已在远程用root登录 **
root@cloudsino-1:~# systemctl status sshd
Unit sshd.service could not be found.
发现22.10版,ssh服务默认是禁用的(disable)
**启用ssh **
root@cloudsino-1:~# sudo systemctl enable ssh
启用ssh后,sshd服务也出现了
对比发现,22.04版的ssh默认启用,22.10版的ssh默认禁用,但可以远程ssh连接
agan@cloudsino:~$ su - root
Password:
root@cloudsino:~#
# 重启服务就可以使用root远程了
root@cloudsino-1:~# systemctl restart ssh
root@cloudsino-1:~# systemctl restart sshd
3、桌面版的安装教程
**设置语Ubuntu语言,可以选择英文,也可以选择中文,然后选点击“安装 Ubuntu”或“Install Ubuntu” **
选择中文版
3.1.1、允许 root 远程登录
**重启 sshd 服务时,已在远程用root登录 **
root@agan-virtual-machine:~# systemctl status sshd
Unit sshd.service could not be found.
发现22.10版,ssh服务默认是禁用的(disable)
**启用ssh **
root@cloudsino-1:~# systemctl enable ssh
启用ssh后,但可以远程ssh连接
# 重启服务
root@agan-virtual-machine:~# systemctl restart sshd
root@agan-virtual-machine:~# systemctl restart ssh
原文地址:https://blog.csdn.net/m0_58805648/article/details/131021118
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。