Tuesday, April 9, 2013

Xrdp not working on CentOS 6.2

If you install Xrdp (xrdp-0.5.0-0.13.el6.x86_64.rpm) on CentOS 6.2 without any update. You might face the following problem when you try to RDP to your Linux machine.


And when you check your error log (/var/log/xrdp-sesman.log), you find the following
[20130410-09:39:03] [WARN ] [init:45] libscp initialized
[20130410-09:39:03] [CORE ] starting sesman with pid 4374
[20130410-09:39:03] [INFO ] listening...
[20130410-09:40:15] [INFO ] scp thread on sck 7 started successfully
[20130410-09:40:16] [INFO ] ++ created session (access granted): username root,
ip 10.217.242.65:2137 - socket: 7
[20130410-09:40:16] [INFO ] starting Xvnc session...
[20130410-09:40:25] [ERROR] X server for display 10 startup timeout
[20130410-09:40:25] [INFO ] starting xrdp-sessvc - xpid=4841 - wmpid=4840
[20130410-09:40:26] [ERROR] X server for display 10 startup timeout
[20130410-09:40:26] [ERROR] another Xserver is already active on display 10
[20130410-09:40:26] [DEBUG] aborting connection...
[20130410-09:40:26] [INFO ] ++ terminated session:  username root, display :10.0
, session_pid 4839, ip 10.217.242.65:2137 - socket: 7

You can try to solve this problem by doing update on your OS. And if that is not the option, because you have certain driver that will not work with the updated OS. You can choose to update these 2 packages:

yum install pixman libXfont

After updating these 2 packages, restart your xrdp service

service xrdp restart

In my case, these updates solve my problem.

4 comments:

fferrer said...

solee my problem
thanks

Tony Cocco said...

THANK YOU SO MUCH! =D

fenderCat said...

Glad it helps!

MortenVinding said...

I have just spend most of the day trying to track down this.

It turned out that the RDP client in Windows 7 is incompatible if set to use 15 bit color!
Any other colordepth than 15 bit worked perfect (16, 24 and 32 all worked).