CentOS7安装xrdp(Windows远程桌面连接Linux)
2021/10/23 7:12:53
本文主要是介绍CentOS7安装xrdp(Windows远程桌面连接Linux),对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
前提:
CentOS安装桌面,如果无桌面,请执行:
yum -y groups install "GNOME Desktop" startx
方法一
配置源
yum install epel* -y
安装xrdp
yum --enablerepo=epel -y install xrdp
方法二
1、安装xrdp
更具自己的系统位数选择对应的包(如果是32位使用则选择i386,如果是64位,请选择x86_64),查找的方法是到镜像网站http://mirrors.ustc.edu.cn/fedora/epel/7上进入到对应的目录,查找以epel-release-开头的RPM包)
http://mirrors.ustc.edu.cn/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm rpm -Uvh epel-release-7-11.noarch.rpm yum install xrdp
2、安装 tigervnc
yum install tigervnc tigervnc-server
3、配置SELinux , 否则可能无法启动xrdp服务,或者启动出错
chcon -t bin_t /usr/sbin/xrdp chcon -t bin_t /usr/sbin/xrdp-sesman
以下内容对于两种安装方法一致
启动xrdp并设置开机启动
systemctl start xrdp systemctl enable xrdp
安装好了之后将防火墙关闭,或者开放3389端口
//开放3389端口 firewall-cmd --permanent --zone=public --add-port=3389/tcp firewall-cmd --reload ======================或者关闭防火墙 //临时关闭 systemctl stop firewalld //禁止开机启动 systemctl disable firewalld
这篇关于CentOS7安装xrdp(Windows远程桌面连接Linux)的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-03-30[译]漫画SELinux概念
- 2024-03-29linux 移动文件
- 2024-03-28linux .so file
- 2024-03-28Linux 磁盘管理
- 2024-03-28Linux学习笔记(十三)磁盘管理(一):磁盘分区
- 2024-03-26linux 创建 文件
- 2024-03-25使用SecureCRT对Linux vim进行颜色设置
- 2024-03-202019-2020-12 20199317 《Linux内核原理与分析》 第十二周作业
- 2024-03-20Linux运维的第二周总结
- 2024-03-13how to count number of directories in linux