centos7上的xrdp无法连接

时间:2017-05-05 19:12:30

标签: linux centos centos7 xrdp

我已使用本指南guide

在centos 7上安装了xrdp
  netstat -antup | grep xrdp
    tcp        0      0 127.0.0.1:3350          0.0.0.0:*               LISTEN      3096/xrdp-sesman
    tcp        0      0 0.0.0.0:3389            0.0.0.0:*               LISTEN      3097/xrdp

所以这意味着它可以工作,但是当我尝试连接到xrdp时,登录后我看到了:

login succesfful for display 10
VNC started connecting
VNC connecting to 127.0.0.1 5910
VNC error - problem connecting
some problem

xrdp的日志文件:

[20170505-20:56:42] [INFO ] A connection received from 127.0.0.1 port 33004
[20170505-20:56:43] [INFO ] ++ created session (access granted): username root, ip my_ip:13473 - socket: 12
[20170505-20:56:43] [INFO ] starting Xvnc session...
[20170505-20:56:43] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:5910)
[20170505-20:56:43] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6010)
[20170505-20:56:43] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6210)
[20170505-20:56:43] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20170505-20:56:43] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20170505-20:56:43] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20170505-20:56:43] [INFO ] Xvnc :10 -auth .Xauthority -geometry 3840x2048 -depth 24 -rfbauth /root/.vnc/sesman_root_passwd:10 -bs -nolisten tcp -localhost -dpi 96
[20170505-20:56:43] [CORE ] waiting for window manager (pid 3029) to exit
[20170505-20:56:43] [CORE ] window manager (pid 3029) did exit, cleaning up session
[20170505-20:56:43] [INFO ] ++ terminated session:  username root, display :10.0, session_pid 3028, ip ip_goes_here:13473 - socket: 12

我无法解决这背后的问题,有什么建议吗?

1 个答案:

答案 0 :(得分:0)

您似乎需要正确配置显示(会话)管理器。

试试这个:

  1. yum groupinstall“带GUI的服务器”//安装了gnome,所有员工都包含gnome-session
  2. 检查gdm.service - systemctl status gdm //应该启用