Install xrdp on CentOS 7 / RHEL 7
2015-07-20 11:28
1386 查看
Install xrdp on CentOS 7 / RHEL 7
RAJ SEPTEMBER18, 2014 59
COMMENTS CENTOS
7, RDP, REMOTE, RHEL
7, VNC, XRDP
![](http://www.itzgeek.com/wp-content/uploads/2014/09/xrdp-logo-150x150.jpg)
xrdp is an Open Source Remote desktop Protocol server, which allows you to RDP to your Linux server from Windows machine; it is capable of accepting
connections from rdesktop, freerdp, and remote desktop clients. This how to will help you to setup xrdp server on CentOS 7 / RHEL 7.
Prerequisites:
1. This was written when xrdp is available neither on CentOS repositories nor on EPEL repository, after a lot of Google search; i found desktop repository (http://li.nux.ro/) which was having xrdp for CentOS 7 / RHEL 7. We need to manually setup the repositoryon CentOS 7.
2. Don’t forget to install Gnome on CentOS 7
Automatic
(recommended):
Install EPEL and nux Desktop repository rpms.# 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[/code] |
Manual:
Create a repository file.# 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 |
Installation:
Issue the following command to install xrdp# yum -y install xrdp tigervnc-server |
--> Running transaction check ---> Package xrdp.x86_64 0:0.6.1-2.el7.nux will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: xrdp x86_64 0.6.1-2.el7.nux xrdp 271 k Transaction Summary ================================================================================ Install 1 Package Total download size: 271 k Installed size: 1.5 M Is this ok [y/d/N]: y Downloading packages: xrdp-0.6.1-2.el7.nux.x86_64.rpm | 271 kB 00:05 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : xrdp-0.6.1-2.el7.nux.x86_64 1/1 Verifying : xrdp-0.6.1-2.el7.nux.x86_64 1/1 Installed: xrdp.x86_64 0:0.6.1-2.el7.nux |
# systemctl start xrdp.service |
# netstat -antup | grep xrdp tcp 0 0 0.0.0.0:3389 0.0.0.0:* LISTEN 1508/xrdp tcp 0 0 127.0.0.1:3350 0.0.0.0:* LISTEN 1507/xrdp-sesman |
# systemctl enable xrdp.service |
# 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
Test:
Now take rdp from any windows machine using Remote Desktop Connection, enter ip address of Linux server in computer field and click on connect.![](http://www.itzgeek.com/wp-content/uploads/2014/09/CentOS-7-xrdp-MSTSC.jpg)
CentOS
7 – xrdp MSTSC
You would be asked to enter the user name and password, you can either use root or any user that you have it on system. Make sure you use module “sesman-Xvnc”.
![](http://www.itzgeek.com/wp-content/uploads/2014/09/CentOS-7-xrdp-Login-page.jpg)
CentOS
7 – xrdp Login page
If you click ok, you will see the processing. In less than a half min, you will get a desktop.
![](http://www.itzgeek.com/wp-content/uploads/2014/09/CentOS-7-xrdp-Desktop.jpg)
CentOS
7 – xrdp Desktop
That’s All, you have successfully configured xRDP on CentOS 7 / RHEL 7. We welcome your comments.
相关文章推荐
- Linux面试题汇总答案
- Linux进程的虚拟地址空间
- Ubuntu安装arm-linux-gcc编译工具
- Linux-->问题解决-->/dev/mapper/VolGroup-lv_root: unexpected inconsistency; run fsck manually
- 简单重置Centos服务器中Mysql的root密码
- Linux0.11内核--进程的调度(就绪态和运行态之间的转换)
- linux进程---sigaction 函数
- VMware软件安装问题
- Linux系统之更改默认块大小
- Broadcom NetXtreme II BCM5706/5708/5709/5716 Driver 驱动问题处理办法
- 2.1 linux文件系统应用实例:递归遍历目录
- 限制root账户不能使用密码只能使用密钥远程登陆或直接不允许远程登录
- 在Linux上限制远程登陆的IP
- Linux下Gcc生成和使用静态库和动态库详解
- linux终端或者虚拟机SecureCRT窗口拖动之后,会自动收到一个Ctrl+C的命令
- linux mint安装搜狗输入法
- ceph存储 Linux远程操作(rcp/rsh)命令实战
- Ubantu(Linux)下安装Eclipse并配置 PyDev
- CentOS/Redhat:手动配置IP地址(命令和图形界面)
- Linux控制台下的快捷键