Skip to content

Instantly share code, notes, and snippets.

@omps
Forked from dduvnjak/xrdp_rhel_centos_6.md
Created March 3, 2016 05:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omps/035ccdc4864a0b442f55 to your computer and use it in GitHub Desktop.
Save omps/035ccdc4864a0b442f55 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment