Well launched a server, it can be configured either through the console (or just work remotely in a graphical environment) or configure Remote Desktop. Install on the server the necessary components to it, the shell KDE (or Gnome) must already be installed, how to set up here, then we will go about KDE, do everything as root.
For xrdp need repository EPEL.
32 Bit # rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
64 Bit # rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Put packages
yum install xrdp tigervnc-server
Vnc Create a password for your user
su ваш юзер
vncpasswd
We enter the password back to the user Root Ctrl+D
Configuration for your server user vnc
nano /etc/sysconfig/vncservers
Remove the comment on the lines and tweak for themselves
VNCSERVERS="4:Your user"
VNCSERVERARGS[4]="-geometry 1366x768" -I mainly on the laptop will turn the remote table is his solution for comfort
Add a vncserver and xrdp in startup
chkconfig xrdp on
chkconfig vncserver on
Restart the vnc server and xrdp
service vncserver restart
service xrdp restart
#Firewall rules for the server RDP xrdp
iptables -I INPUT -p tcp --dport 3389 -m state --state NEW -j ACCEPT
To register for all to iptables
nano /etc/sysconfig/iptables
-I INPUT -p tcp --dport 3389 -m state --state NEW -j ACCEPT
Restart the firewall
service iptables restart
Sometimes when you connect, if more than one graphic shells xrdp not understand how to run (or on a server mess :)), then it is necessary to correct a file /etc/xrdp/startwm.sh in this case KDE, save the file to the original stories :)
nano /etc/xrdp/startwm.sh
Replace the contents of the file in accordance with the example below.
KDE for CentOS
#!/bin/sh
if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG LANGUAGE
fi
#. /etc/X11/Xsession
startkde
Hit Ctrl+O and exit Ctrl+X. The file /etc/default/locale need to add your locale is sometimes useful
nano /etc/default/locale
LANG="ru_RU.UTF-8"
SUPPORTED="ru_RU.UTF-8:ru_RU:ru"
SYSFONT="latarcyrheb-sun16"
Restarting the server XRDP team:
service xrdp restart
In both now run the program in Windows mstsc and forth.