RDesktop on Centos
Centos 7
yum -y install epel-release yum -y groupinstall "GNOME Desktop" yum -y install xrdp xorg-x11-xinit firewall-cmd --permanent --zone=public --add-port=3389/tcp firewall-cmd --reload systemctl start xrdp.service systemctl enable xrdp.service
Centos 6
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm wget -O epel6.key.txt 'http://keys.gnupg.net:11371/pks/lookup?search=0x0608B895&op=get' rpm --import epel6.key.txt yum -y groupinstall "General Purpose Desktop" yum -y install xrdp xorg-x11-xinit tigervnc-server gnome-panel gnome-terminal
Using Mate instead of Gnome in XRDP
If you are running XRDP and want MATE to come up – each user needs to log on and at a bash prompt execute:
echo "exec mate-session" > ~/.Xclients chmod 700 ~/.Xclients
then log off and log back on again
Force MATE on all new users (accounts that have not be created) using XRDP
echo "exec mate-session" > /etc/skel/.Xclients chmod 700 /etc/skel/.Xclients
Using KDE instead of Gnome in XRDP
If you are running XRDP and want KDE to come up – each user needs to log on and at a bash prompt execute:
echo "startkde" > ~/.Xclients chmod 700 ~/.Xclients
then log off and log back on again
Force KDE on all new users (accounts that have not be created) using XRDP
echo "startkde" > /etc/skel/.Xclients chmod 700 /etc/skel/.Xclients
Problems running XRDP?
Centos 7 system and xrdp would not start. Error logged in /var/log/messages: Failed at step EXEC spawning /usr/sbin/xrdp: Permission denied
Fix:
chcon -t bin_t /usr/sbin/xrdp /usr/sbin/xrdp-sesman
Are you getting the following message in the /var/log/xrdp-sesman.log: errno: 2, description: No such file or directory
Centos 6
The two following lines should fix that.
yum -y groupinstall "General Purpose Desktop" yum -y install xorg-x11-xinit tigervnc-server gnome-panel gnome-terminal
The path is incorrect or bash_profile is ignored
fix for xrdp path
diff -u /etc/xrdp/startwm.sh.o /etc/xrdp/startwm.sh --- /etc/xrdp/startwm.sh.o 2009-09-17 05:39:53.000000000 +1000 +++ /etc/xrdp/startwm.sh 2010-07-06 16:50:45.926245031 +1000 @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash -l
https://bugzilla.redhat.com/show_bug.cgi?id=611669
xrdp could not acquire name on session bus
Add
unset DBUS_SESSION_BUS_ADDRESS
to the top line of ~/.Xclients
Authentication is required to access the PC/SC daemon
systemctl stop pcscd.socket systemctl stop pcscd systemctl disable pcscd.socket systemctl disable pcscd.service