云服务器一般没有安装图形界面,所以首先需要安装图形界面
1.安装Gnome桌面
sudo apt update
sudo apt install ubuntu-desktop
1.2安装Xfce
sudo apt install xubuntu-desktop
2.安装Xrdp(远程桌面协议)
sudo apt install xrdp //这是一个服务
sudo systemctl status xrdp //查看服务状态
sudo service xrdp status //和上面一样
3.配置用户
sudo adduser xrdp ssl-cert
4.重启服务
sudo systemctl restart xrdp //service xrdp restart
链接:
https://blog.csdn.net/snowdream86/article/details/106311024