服务器信息
操作系统: Ubuntu Server 20.04 LTS 64位
实例规格:标准型S2 | S2.SMALL4
CPU:1核
内存:4G
step1 安装ubuntu镜像
step2 配置安全组,并关联加入
step3 修改源
step3.1 使用FileZilla等工具,取出/etc/apt/resource.list文件
担心可备份
cp /etc/apt/sources.list /etc/apt/sources.list.bak
step3.2 修改源为清华开源
# 清华源# 注释源码镜像以提高更新速度
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multivers
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
step3.3 使用FileZilla将resource.list文件放入/tmp
3.4 将文件拷贝到/etc/apt
cp /tmp/resource.list /etc/apt/resource.list
step4 更新源文件
apt-get update
apt-get upgrade
step5 安装桌面
apt-get install -y ubuntu-desktop
step6 安装xrdp
apt-get install -y xrdp
step7 使用windows尝试登陆
win + R
mstsc
使用xorg,输入用户名(ubuntu),密码
TIPS
如果中途出现异常,参考下列博文
https://cloud.tencent.com/developer/article/1848352?from=15425
https://cloud.tencent.com/developer/article/1609578?from=15425
https://cloud.tencent.com/developer/article/1857408?from=15425
https://blog.csdn.net/qq_37082966/article/details/96720635
https://www.freesion.com/article/4455915953/
https://www.cnblogs.com/xuliangxing/p/7642650.html