Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I already went through the similar issue tracked in Installing XRDP on Cent OS 6.5, however it haven't helped me to fix.

I am using MAC and trying to install XRDP in CentOS release 6.5 (64 bit). So that I can connect to this Centos machine from MAC.

I followed the steps explained in http://ajmatson.net/wordpress/2014/01/install-xrdp-remote-desktop-to-centos-6-5/

Created a new VNC user account named user_name_one and allotted a password as mentioned in http://wiki.centos.org/HowTos/VNC-Server

Now, when I tried to connect Centos using Remote Desktop Connection (from MAC), I am receiving following error:

enter image description here

Initially my vncservers configuration in etc/sysconfig/vncservers are as follows:

VNCSERVERS="1:user_name_one"
VNCSERVERARGS[1]="-geometry 800x600"

As suggested, now changed the config values as follows:

VNCSERVERS="0:user_name_one"
VNCSERVERARGS[0]="-geometry 800x600"

Error log in /var/log/xrdp-sesman.log:

[20140416-06:43:43] [WARN ] [init:45] libscp initialized
[20140416-06:43:43] [CORE ] starting sesman with pid 1442
[20140416-06:43:43] [INFO ] listening...
[20140416-06:46:56] [INFO ] scp thread on sck 7 started successfully
[20140416-06:46:56] [INFO ] ++ created session (access granted): username user_name_one, ip 202.83.25.7:13889 - socket: 7
[20140416-06:46:56] [INFO ] starting Xvnc session...
[20140416-06:47:06] [ERROR] X server for display 10 startup timeout
[20140416-06:47:06] [INFO ] starting xrdp-sessvc - xpid=1717 - wmpid=1716
[20140416-06:47:06] [ERROR] X server for display 10 startup timeout
[20140416-06:47:07] [ERROR] another Xserver is already active on display 10
[20140416-06:47:07] [DEBUG] aborting connection...
[20140416-06:47:07] [INFO ] ++ terminated session:  username user_name_one, display :10.0, session_pid 1715, ip 202.83.25.7:13889 - socket: 7

Log file found under /home/user_name_one/.vnc/SPU4-1-3-24-47230 :1.log

Xvnc TigerVNC 1.1.0 - built Feb  4 2014 05:26:31
Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11300000, The X.Org Foundation

Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension VNC
Initializing built-in extension GLX

Wed Apr 16 06:43:46 2014
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5900
 vncext:      created VNC server for screen 0
No protocol specified
vncconfig: unable to open display ":0"
No protocol specified
xrdb: Resource temporarily unavailable
xrdb: Can't open display ':0'
No protocol specified
xmodmap:  unable to open display ':0'
No protocol specified
No protocol specified

** (gnome-session:1605): WARNING **: Cannot open display: 

Can anyone please help me on this! Thanks.

share|improve this question

1 Answer 1

This error message is your issue:

Tue Apr 15 08:36:38 2014
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5901
 vncext:      created VNC server for screen 0
No protocol specified
vncconfig: unable to open display ":1"
No protocol specified
xrdb: Can't open display ':1'
No protocol specified
xmodmap:  unable to open display ':1'
No protocol specified
No protocol specified

** (gnome-session:2967): WARNING **: Cannot open display: 

You should be connecting to RDP on display :0. Double check that the display is set in your configuration files to :0 instead of :1. Also make sure that the CentOS system is in runlevel 5 and not 3.

You can check like this:

$ runlevel 
N 5

If it's anything but 5, then run this command to temporarily switch it:

$ sudo telinit 5
share|improve this answer
    
Thanks for the response. My vncserver configuration in etc/sysconfig/vncservers are mapped to :1. Hence I received such error log. Thanks and now I have changed that to :0.. However, still I am getting similar error in log. I have updated the error logs and vncserver configuration in above question.. can you please help me in this.. –  Senthil Kumaran Apr 16 at 11:00
    
Also, when I checked runlevel, its 'N 3'... as suggested I tried with telinit 5 command (to switch)... now the value is: '3 5'... Even now I am unable to connect using xrdp.. I also tried to change the default CentOS runlevel by editing the value in /etc/inittab file as 'id:5:initdefault:'. Rebooted server. now the value is 'N 5'. However, it haven't helped. I am getting the same error –  Senthil Kumaran Apr 16 at 11:13
1  
@Kamal - just curious, I was able to get that same dialog message you did "error - problem connecting". When I tried it a second time I got my desktop. Can you confirm trying this 2-3 times and seeing if the issue repeats each time? –  slm Apr 16 at 13:15
    
Thanks for the response. I tried the same for more than 5 times. I am receiving the same error.. –  Senthil Kumaran Apr 16 at 13:37
    
@Kamal - something to try. Can you comment out the VNCSERVER... lines in the file /etc/sysconfig/vncserver and restart xrdp and try again? Also make sure these pkgs are installed: yum install pixman libXfont. –  slm Apr 17 at 6:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.