Skip to content

Instantly share code, notes, and snippets.

@dduvnjak
Last active August 31, 2022 01:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save dduvnjak/5332239 to your computer and use it in GitHub Desktop.
Save dduvnjak/5332239 to your computer and use it in GitHub Desktop.
Setting up xrdp on RHEL 6

1 - Install the prerequisites for building and installation

yum groupinstall Desktop -y
yum install finger cmake patch gcc make autoconf libtool automake pkgconfig openssl-devel gettext file pam-devel libX11-devel libXfixes-devel libjpeg-devel
yum install flex bison gcc-c++ libxslt perl-libxml-perl xorg-x11-font-utils tigervnc-server git -y
reboot

2 - Get the latest source from the xrdp git repo, build and install

git clone git://github.com/FreeRDP/xrdp.git
cd xrdp
./bootstrap
./configure --enable-jpeg
make
make install

Build X11rdp

cd xorg/X11R7.6
./buildx.sh /opt/X11rdp
# create the symbolic link for sesman
ln -s /opt/X11rdp/bin/X11rdp /usr/local/bin/X11rdp

3 - Install the init script and start xrdp

cp /etc/xrdp/xrdp.sh /etc/init.d/xrdp
/sbin/chkconfig --add xrdp

Check /etc/xrdp/startwm.sh and make sure that the SESSIONS env variable has gnome-session set on the first place. If it doesn't add it manually. It should look like this:

SESSIONS="gnome-session mate-session blackbox fluxbox startxfce4 startkde xterm"

Start the xrdp service

service xrdp start

4 - Add the user for connecting via RDP

adduser someuser
passwd someuser
@Abinayasandhiya
Copy link

Hello,

Have some doubt:

Latest version of XRDP-0.9.7 is available in RHEL7 epel repo.
The same is not available for RHEL6, is that means that XRDP - 0.9.7 cannot work with RHEL6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment