Skip to content

Building on CentOS (or Red Hat based distributions)

metalefty edited this page May 9, 2018 · 6 revisions
  • Install Pre-requisites for Red Hat based distributions (7.X??)
   yum update
   yum install finger cmake patch gcc make autoconf libtool automake pkgconfig openssl-devel gettext file \
    pam-devel libX11-devel libXfixes-devel libjpeg-devel libXrandr-devel nasm\
    flex bison gcc-c++ libxslt perl-libxml-perl xorg-x11-font-utils xmlto-tex
  • Install Pre-requisites for Red Hat based distributions (6.X)
   For bootstrap:
   sudo yum install autoconf automake libtool pkg-config
   For configure:
   sudo yum install openssl-devel pam-devel libjpeg-devel fuse-devel TurboJPEG libX11-devel libXfixes-devel libXrandr-devel nasm
   For make:
   sudo yum install binutils
   For /etc/init.d/xrdp status:
   sudo yum install redhat-lsb-core
  • Install git (if 'yum install git' fails)
   wget http://git-core.googlecode.com/files/git-1.8.0.2.tar.gz
   tar -zxvf git-1.8.0.2.tar.gz
   cd git-1.8.0.2
   ./configure --without-tcltk
   make
   make install
  • Clone xrdp repository from GitHub
  cd
  mkdir git
  cd git
  mkdir neutrinolabs
  cd neutrinolabs
  git clone --recursive https://github.com/neutrinolabs/xrdp.git
  • Build xrdp server
   cd xrdp
   ./bootstrap
   ./configure
   make
   make install
  • Build X11rdp - X11 display server for xrdp
   cd xorg
   cd X11R7.6
   ./buildx.sh /opt/X11rdp
   Note: create the symbolic link for sesman
   ln -s /opt/X11rdp/bin/X11rdp /usr/local/bin/X11rdp
  • Start xrdp on boot
   cp /etc/xrdp/xrdp.sh /etc/init.d/
   /sbin/chkconfig --add xrdp.sh
   reboot
  • More compliant with standard Linux functions
    If the Linux service /etc/init.d/xrdp complains about missing functions, like missing start-stop-daemon (program used in Debian distributions), see https://github.com/neutrinolabs/xrdp/issues/338#issuecomment-196601091).
Clone this wiki locally