centos7上的xrdp无法连接

xrdp on centos7 can't connect

我已经使用本指南在 centos 7 上安装了 xrdp guide

  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. yum groupinstall "Server with GUI" //它安装了 gnome 并且所有人员都包括 gnome-session
  2. 检查 gdm.service - systemctl status gdm // 应该启用