How to take GUI Remote of RHEL

linux-on-rdp-cover

 

 

You can install and configure XRDP on RHEL/CentOS to take GUI remote of server.

Below is the process to install xrdp

1. Install pre-requisites

sudo yum install gcc make pam-devel openssl-devel vnc-server autoconf automake libtool libX11-devel libXfixes-devel

2. Download the source code

wget http://downloads.sourceforge.net/project/xrdp/xrdp/0.6.1/xrdp-v0.6.1.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fxrdp%2F%3Fsource%3Ddirectory&ts=1390846301&use_mirror=softlayer-ams

3. Extract the source code
tar zxvf xrdp-v0.6.1.tar.gz
cd xrdp-v0.6.1

4. Run bootstrap and configure file
./bootstrap
./configure

5. Compile the source code
make
sudo make install

6. Edit iptables to permit inbound RDP

sudo nano /etc/sysconfig/iptables

add

-F INPUT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3389 -j ACCEPT

7. Restart iptables service
sudo service iptables restart

8. Make it a little more secure by enabling 128 bit 2-way encryption

sudo nano /etc/xrdp/xrdp.ini

Change crypt_level=low to crypt_level=high

9. Generate a new RSA key

sudo /usr/local/bin/xrdp-keygen xrdp auto

10. Start XRDP up and then try and connect to it using remote desktop client in Windows

sudo /etc/xrdp/xrdp.sh start

11. Finally make XRDP auto start as a service.

sudo ln -s /etc/xrdp/xrdp.sh /etc/init.d/xrdp
sudo chkconfig --add xrdp
sudo chkconfig xrdp on
sudo service xrdp start

119 Comments

Add a Comment

Your email address will not be published. Required fields are marked *