centos7 安装桌面

先装 xrdp

$ sudo yum install -y epel-release
$ sudo yum install -y xrdp
$ sudo systemctl enable xrdp
$ sudo systemctl start xrdp

开防火墙端口

$ sudo firewall-cmd --add-port=3389/tcp --permanent
$ sudo firewall-cmd --reload

比较喜欢 GNOME

$ sudo yum groupinstall "GNOME DESKTOP" -y

装完后设置

sudo systemctl set-default graphical.target
sudo systemctl isolate graphical.target

centos7 安装桌面_第1张图片

参考
https://draculaservers.com/tutorials/install-xrdp-centos/

你可能感兴趣的:(Linux,python,开发语言)