我无法看到它的GUI。有可能做到吗?
我们可以
安装
xrdp
添加
mstsc
sudo -s
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target
yum -y install xrdp tigervnc-server
systemctl start xrdp.service
netstat -antup | grep xrdp
systemctl enable xrdp.service
firewall-cmd --permanent --zone=public --add-port=3389/tcp
firewall-cmd --reload
这里有一个关于如何在经典模块中为centos 7启用GUI的博客,请参阅
this link
.
使现代化
:
请按照以下步骤在RHEL 7.2上安装xrdp:
1.首先在RHEL 7.2上安装Gnome:
yum group install "GNOME Desktop" "Graphical Administration Tools"
yum groupinstall "Server with GUI"
ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target
reboot
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
3、添加nux存储库:
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
或手动:
vi /etc/yum.repos.d/xrdp.repo
[xrdp]
name=xrdp
baseurl=http://li.nux.ro/download/nux/dextop/el7/x86_64/
enabled=1
gpgcheck=0
4、安装xrdp:
yum -y install xrdp tigervnc-server
systemctl start xrdp.service
netstat -antup | grep xrdp
tcp 0 0 127.0.0.1:3350 0.0.0.0:* LISTEN 1784/xrdp-sesman
tcp 0 0 0.0.0.0:3389 0.0.0.0:* LISTEN 1785/xrdp
在系统启动时启用服务:
systemctl enable xrdp.service
添加端口3389:
firewall-cmd --permanent --zone=public --add-port=3389/tcp
firewall-cmd --reload
chcon --type=bin_t /usr/sbin/xrdp
chcon --type=bin_t /usr/sbin/xrdp-sesman
顺便说一句,我们应该将端口3389添加到NSG入站规则中:
以下是我的结果: