2016年09月29日 15:51:56
阅读数:5757
首先你需要安装gnome, 这里就不介绍了
安装:
1. 准备环境:
首先安装 EPEL and nux Desktoprepository rpms, 注意版本更新(如果rpm包版本已经不存在,把链接的前面copy下来用浏览器打开,查询最新版本,然后更换):
# rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
# rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
2. 开始安装 xrdp , tigervnc-server:
# yum -y install xrdp tigervnc-server
3. 确认你的xrdp安装成功后,启动xrdp:
# systemctl start xrdp.service
4. 检查xrdp是否启动成功,xrdp监听3389端口:
netstat -antup | grep xrdp
5. 如果发现启动不成功,请检查 /var/log/message , 如果发现类似 “Failed at step EXEC spawning /usr/sbin/xrdp-sesman: Permission denied” ,请执行如下命令:
chcon -t bin_t /usr/sbin/xrdp /usr/sbin/xrdp-sesman
6. 执行如下步骤让xrdp下次系统启动后自动运行:
# systemctl enable xrdp.service
7. 开启防火墙对应端口,也可以直接把防火墙关掉
# firewall-cmd --permanent --zone=public --add-port=3389/tcp
# firewall-cmd --reload
(adsbygoogle = window.adsbygoogle || []).push({});
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有