# 阿里源
deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
# 网易163源
deb http://mirrors.163.com/ubuntu/ jammy main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ jammy main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ jammy-backports main restricted universe multiverse
网卡设置
eth → edit IPv4 → Manual
修改源地址
默认地址:
http://cn.archive.ubuntu.com/ubuntu/
修改为 阿里云地址:http://mirrors.aliyun.com/ubuntu/
开启root用户登录
给root账户设置密码:
然后按提示两次输入密码即可
修改sshd配置:
按i进入编辑模式,找到#PermitRootLogin prohibit-password,默认是注释掉的。直接在下面添加一行:
然后按esc,输入:wq保存并退出。重启sshd服务:
更换国内源地址
备份原有的源文件:
查看是否修改备份成功:
创建 sources.list 文件:
更新
安装ifconfig
安装vim编辑器
安装casaOS
把未分配的空间给系统盘
查看卷组的状态和配置信息,以及可用的空间和已分配的空间:
显示文件系统的磁盘空间使用情况:
可以使用以下的命令来将剩余的373G空间分配到你的逻辑卷/dev/mapper/ubuntu--vg-ubuntu--lv中:
这两个命令的含义是: