Cent OS 6.5 上 XRDP 安装的问题

Cent OS 6.5 上 XRDP 安装的问题

我已经经历过中跟踪的类似问题启动 XRDP/Xvnc 时未找到 xsetroot、xterm 和 twm(在 Cent OS 上),但是它并没有帮助我解决。

我正在使用 MAC 并尝试在 CentOS 版本 6.5(64 位)中安装 XRDP。这样我就可以从MAC连接到这台Centos机器。

我按照中解释的步骤进行操作http://ajmatson.net/wordpress/2014/01/install-xrdp-remote-desktop-to-centos-6-5/

创建了一个名为的新 VNC 用户帐户用户名一并分配一个密码,如中所述http://wiki.centos.org/HowTos/VNC-Server

现在,当我尝试使用远程桌面连接(从 MAC)连接 Centos 时,我收到以下错误:

在此输入图像描述

最初我在etc/sysconfig/vncservers中的vncservers配置如下:

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

按照建议,现在更改配置值如下:

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

/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

在 /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: 

答案1

此错误消息是您的问题:

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: 

您应该正在连接到显示屏上的 RDP :0。仔细检查配置文件中的显示设置是否:0:1.还要确保 CentOS 系统处于运行级别 5 而不是 3。

你可以这样检查:

$ runlevel 
N 5

如果不是 5,则运行以下命令临时切换它:

$ sudo telinit 5

答案2

我和你有同样的错误。通过安装一些桌面软件包解决了这个问题。我想这会起作用:

yum groupinstall Desktop

我刚刚安装了xterm一些其他软件包:

yum install xterm x-org-x11-fonts-Type1 xorg-x11-twm

另外还做了一个准系统木偶模块为了它。

答案3

我想添加这个解决方案:

sudo yum install tigervnc-server

相关内容