Windows 10 to CentOS 7.7 MATE xrdp immediate disconnect after login

Issues related to applications and software problems
Post Reply
geckert
Posts: 3
Joined: 2019/10/31 08:08:10

Windows 10 to CentOS 7.7 MATE xrdp immediate disconnect after login

Post by geckert » 2019/10/31 09:12:50

I am trying to connect to a CentOS 7.7 system with only a MATE desktop from a Windows 10 system using the Remote Desktop application. I have successfully installed xrdp on the CentOS system. I provide the login credentials in the xrdp dialog and attempt to log in. As soon as I do, the Remote Desktop session ends, and I am back to the Windows Remote Desktop application dialog.

According to the research I have done on the Web, this used to work for people just fine. Additionally, if I install the GNOME Desktop, I can connect just fine. However, the goal is to connect to a MATE Desktop from the Windows system.

Any suggestions?

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Windows 10 to CentOS 7.7 MATE xrdp immediate disconnect after login

Post by TrevorH » 2019/10/31 16:11:02

Read all the logs you can find!
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

geckert
Posts: 3
Joined: 2019/10/31 08:08:10

Re: Windows 10 to CentOS 7.7 MATE xrdp immediate disconnect after login

Post by geckert » 2019/10/31 16:19:16

xrdp.log

Code: Select all

[20191031-10:48:11] [INFO ] starting xrdp with pid 14812
[20191031-10:48:11] [INFO ] address [0.0.0.0] port [3389] mode 1
[20191031-10:48:11] [INFO ] listening to port 3389 on 0.0.0.0
[20191031-10:48:11] [INFO ] xrdp_listen_pp done
[20191031-10:50:48] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20191031-10:51:05] [INFO ] starting xrdp with pid 1261
[20191031-10:51:05] [INFO ] address [0.0.0.0] port [3389] mode 1
[20191031-10:51:05] [INFO ] listening to port 3389 on 0.0.0.0
[20191031-10:51:05] [INFO ] xrdp_listen_pp done
[20191031-10:51:46] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20191031-10:52:28] [INFO ] starting xrdp with pid 1305
[20191031-10:52:28] [INFO ] address [0.0.0.0] port [3389] mode 1
[20191031-10:52:28] [INFO ] listening to port 3389 on 0.0.0.0
[20191031-10:52:28] [INFO ] xrdp_listen_pp done
[20191031-10:53:05] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20191031-10:53:32] [INFO ] starting xrdp with pid 1294
[20191031-10:53:32] [INFO ] address [0.0.0.0] port [3389] mode 1
[20191031-10:53:32] [INFO ] listening to port 3389 on 0.0.0.0
[20191031-10:53:32] [INFO ] xrdp_listen_pp done
[20191031-10:53:47] [INFO ] Socket 12: AF_INET connection received from 10.204.1.45 port 62306
[20191031-10:53:47] [DEBUG] Closed socket 12 (AF_INET 10.204.1.133:3389)
[20191031-10:53:47] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20191031-10:53:47] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20191031-10:53:47] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20191031-10:53:47] [WARN ] TLSv1.3 enabled by config, but not supported by system OpenSSL
[20191031-10:53:47] [DEBUG] TLSv1.2 enabled
[20191031-10:53:47] [DEBUG] Security layer: requested 11, selected 1
[20191031-10:53:47] [INFO ] connected client computer name: BURP
[20191031-10:53:47] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0x80800000
[20191031-10:53:47] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
[20191031-10:53:47] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
[20191031-10:53:47] [INFO ] adding channel item name drdynvc chan_id 1007 flags 0xc0800000
[20191031-10:53:47] [INFO ] TLS connection established from 10.204.1.45 port 62306: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384
[20191031-10:53:47] [DEBUG] xrdp_0000075a_wm_login_mode_event_00000001
[20191031-10:53:47] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20191031-10:53:47] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20191031-10:53:58] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20191031-10:53:59] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20191031-10:53:59] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20191031-10:53:59] [DEBUG] return value from xrdp_mm_connect 0
[20191031-10:53:59] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20191031-10:53:59] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20191031-10:53:59] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5910
[20191031-10:53:59] [DEBUG] xrdp_wm_log_msg: VNC tcp connected
[20191031-10:53:59] [DEBUG] xrdp_wm_log_msg: VNC security level is 2 (1 = none, 2 = standard)
[20191031-10:53:59] [DEBUG] xrdp_wm_log_msg: VNC password ok
[20191031-10:53:59] [DEBUG] xrdp_wm_log_msg: VNC sending share flag
[20191031-10:53:59] [DEBUG] xrdp_wm_log_msg: VNC receiving server init
[20191031-10:53:59] [DEBUG] xrdp_wm_log_msg: VNC receiving pixel format
[20191031-10:53:59] [DEBUG] xrdp_wm_log_msg: VNC receiving name length
[20191031-10:53:59] [DEBUG] xrdp_wm_log_msg: VNC receiving name
[20191031-10:53:59] [DEBUG] xrdp_wm_log_msg: VNC sending pixel format
[20191031-10:53:59] [DEBUG] xrdp_wm_log_msg: VNC sending encodings
[20191031-10:53:59] [DEBUG] xrdp_wm_log_msg: VNC sending framebuffer update request
[20191031-10:53:59] [DEBUG] xrdp_wm_log_msg: VNC sending cursor
[20191031-10:53:59] [DEBUG] xrdp_wm_log_msg: VNC connection complete, connected ok
[20191031-10:53:59] [DEBUG] xrdp_wm_log_msg: connected ok
[20191031-10:53:59] [DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
[20191031-10:53:59] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:42694)
[20191031-10:53:59] [DEBUG] Closed socket 12 (AF_INET 10.204.1.133:3389)
[20191031-10:53:59] [DEBUG] xrdp_mm_module_cleanup
[20191031-10:53:59] [DEBUG] VNC mod_exit
[20191031-10:53:59] [DEBUG] Closed socket 19 (AF_INET 127.0.0.1:51040)
[20191031-10:53:59] [DEBUG] Closed socket 20 (AF_UNIX)
[20191031-10:55:11] [INFO ] Socket 12: AF_INET connection received from 10.204.1.45 port 62313
[20191031-10:55:11] [DEBUG] Closed socket 12 (AF_INET 10.204.1.133:3389)
[20191031-10:55:11] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20191031-10:55:11] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20191031-10:55:11] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20191031-10:55:11] [WARN ] TLSv1.3 enabled by config, but not supported by system OpenSSL
[20191031-10:55:11] [DEBUG] TLSv1.2 enabled
[20191031-10:55:11] [DEBUG] Security layer: requested 11, selected 1
[20191031-10:55:11] [INFO ] connected client computer name: BURP
[20191031-10:55:11] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0x80800000
[20191031-10:55:11] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
[20191031-10:55:11] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
[20191031-10:55:11] [INFO ] adding channel item name drdynvc chan_id 1007 flags 0xc0800000
[20191031-10:55:11] [INFO ] TLS connection established from 10.204.1.45 port 62313: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384
[20191031-10:55:11] [DEBUG] xrdp_000007c4_wm_login_mode_event_00000001
[20191031-10:55:11] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20191031-10:55:11] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20191031-10:55:30] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20191031-10:55:30] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20191031-10:55:30] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20191031-10:55:30] [DEBUG] return value from xrdp_mm_connect 0
[20191031-10:55:30] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20191031-10:55:30] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20191031-10:55:30] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5910
[20191031-10:55:30] [DEBUG] xrdp_wm_log_msg: VNC tcp connected
[20191031-10:55:30] [DEBUG] xrdp_wm_log_msg: VNC security level is 2 (1 = none, 2 = standard)
[20191031-10:55:30] [DEBUG] xrdp_wm_log_msg: VNC password ok
[20191031-10:55:30] [DEBUG] xrdp_wm_log_msg: VNC sending share flag
[20191031-10:55:30] [DEBUG] xrdp_wm_log_msg: VNC receiving server init
[20191031-10:55:30] [DEBUG] xrdp_wm_log_msg: VNC receiving pixel format
[20191031-10:55:30] [DEBUG] xrdp_wm_log_msg: VNC receiving name length
[20191031-10:55:30] [DEBUG] xrdp_wm_log_msg: VNC receiving name
[20191031-10:55:30] [DEBUG] xrdp_wm_log_msg: VNC sending pixel format
[20191031-10:55:30] [DEBUG] xrdp_wm_log_msg: VNC sending encodings
[20191031-10:55:30] [DEBUG] xrdp_wm_log_msg: VNC sending framebuffer update request
[20191031-10:55:30] [DEBUG] xrdp_wm_log_msg: VNC sending cursor
[20191031-10:55:30] [DEBUG] xrdp_wm_log_msg: VNC connection complete, connected ok
[20191031-10:55:30] [DEBUG] xrdp_wm_log_msg: connected ok
[20191031-10:55:30] [DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
[20191031-10:55:30] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:42708)
[20191031-10:55:30] [DEBUG] Closed socket 12 (AF_INET 10.204.1.133:3389)
[20191031-10:55:30] [DEBUG] xrdp_mm_module_cleanup
[20191031-10:55:30] [DEBUG] VNC mod_exit
[20191031-10:55:30] [DEBUG] Closed socket 19 (AF_INET 127.0.0.1:51054)
[20191031-10:55:30] [DEBUG] Closed socket 20 (AF_UNIX)
[20191031-11:01:59] [INFO ] Socket 12: AF_INET connection received from 10.204.1.45 port 62419
[20191031-11:01:59] [DEBUG] Closed socket 12 (AF_INET 10.204.1.133:3389)
[20191031-11:01:59] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20191031-11:01:59] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20191031-11:01:59] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20191031-11:01:59] [WARN ] TLSv1.3 enabled by config, but not supported by system OpenSSL
[20191031-11:01:59] [DEBUG] TLSv1.2 enabled
[20191031-11:01:59] [DEBUG] Security layer: requested 11, selected 1
[20191031-11:01:59] [INFO ] connected client computer name: BURP
[20191031-11:01:59] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0x80800000
[20191031-11:01:59] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
[20191031-11:01:59] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
[20191031-11:01:59] [INFO ] adding channel item name drdynvc chan_id 1007 flags 0xc0800000
[20191031-11:01:59] [INFO ] TLS connection established from 10.204.1.45 port 62419: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384
[20191031-11:01:59] [DEBUG] xrdp_00000981_wm_login_mode_event_00000001
[20191031-11:01:59] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20191031-11:01:59] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20191031-11:02:08] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20191031-11:02:08] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20191031-11:02:08] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20191031-11:02:08] [DEBUG] return value from xrdp_mm_connect 0
[20191031-11:02:08] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20191031-11:02:08] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20191031-11:02:08] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5910
[20191031-11:02:09] [DEBUG] xrdp_wm_log_msg: VNC tcp connected
[20191031-11:02:09] [DEBUG] xrdp_wm_log_msg: VNC security level is 2 (1 = none, 2 = standard)
[20191031-11:02:09] [DEBUG] xrdp_wm_log_msg: VNC password ok
[20191031-11:02:09] [DEBUG] xrdp_wm_log_msg: VNC sending share flag
[20191031-11:02:09] [DEBUG] xrdp_wm_log_msg: VNC receiving server init
[20191031-11:02:09] [DEBUG] xrdp_wm_log_msg: VNC receiving pixel format
[20191031-11:02:09] [DEBUG] xrdp_wm_log_msg: VNC receiving name length
[20191031-11:02:09] [DEBUG] xrdp_wm_log_msg: VNC receiving name
[20191031-11:02:09] [DEBUG] xrdp_wm_log_msg: VNC sending pixel format
[20191031-11:02:09] [DEBUG] xrdp_wm_log_msg: VNC sending encodings
[20191031-11:02:09] [DEBUG] xrdp_wm_log_msg: VNC sending framebuffer update request
[20191031-11:02:09] [DEBUG] xrdp_wm_log_msg: VNC sending cursor
[20191031-11:02:09] [DEBUG] xrdp_wm_log_msg: VNC connection complete, connected ok
[20191031-11:02:09] [DEBUG] xrdp_wm_log_msg: connected ok
[20191031-11:02:09] [DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
[20191031-11:02:09] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:42726)
[20191031-11:02:09] [DEBUG] Closed socket 12 (AF_INET 10.204.1.133:3389)
[20191031-11:02:09] [DEBUG] xrdp_mm_module_cleanup
[20191031-11:02:09] [DEBUG] VNC mod_exit
[20191031-11:02:09] [DEBUG] Closed socket 19 (AF_INET 127.0.0.1:51072)
[20191031-11:02:09] [DEBUG] Closed socket 20 (AF_UNIX)
[20191031-11:03:15] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20191031-11:14:46] [INFO ] starting xrdp with pid 1291
[20191031-11:14:46] [INFO ] address [0.0.0.0] port [3389] mode 1
[20191031-11:14:46] [INFO ] listening to port 3389 on 0.0.0.0
[20191031-11:14:46] [INFO ] xrdp_listen_pp done
xrdp-sesman.log

Code: Select all

20191031-10:48:11] [DEBUG] libscp initialized
[20191031-10:48:11] [INFO ] starting xrdp-sesman with pid 14811
[20191031-10:48:11] [INFO ] listening to port 3350 on 127.0.0.1
[20191031-10:50:48] [INFO ] shutting down sesman 1
[20191031-10:50:48] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20191031-10:51:05] [DEBUG] libscp initialized
[20191031-10:51:05] [INFO ] starting xrdp-sesman with pid 1260
[20191031-10:51:05] [INFO ] listening to port 3350 on 127.0.0.1
[20191031-10:51:46] [INFO ] shutting down sesman 1
[20191031-10:51:46] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20191031-10:52:28] [DEBUG] libscp initialized
[20191031-10:52:28] [INFO ] starting xrdp-sesman with pid 1303
[20191031-10:52:28] [INFO ] listening to port 3350 on 127.0.0.1
[20191031-10:53:05] [INFO ] shutting down sesman 1
[20191031-10:53:05] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20191031-10:53:32] [DEBUG] libscp initialized
[20191031-10:53:32] [INFO ] starting xrdp-sesman with pid 1293
[20191031-10:53:32] [INFO ] listening to port 3350 on 127.0.0.1
[20191031-10:53:58] [INFO ] A connection received from 127.0.0.1 port 42694
[20191031-10:53:59] [INFO ] ++ created session (access granted): username admin, ip 10.204.1.45:62306 - socket: 12
[20191031-10:53:59] [INFO ] starting Xvnc session...
[20191031-10:53:59] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:5910)
[20191031-10:53:59] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6010)
[20191031-10:53:59] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6210)
[20191031-10:53:59] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20191031-10:53:59] [INFO ] calling auth_start_session from pid 1887
[20191031-10:53:59] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20191031-10:53:59] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20191031-10:53:59] [INFO ] Xvnc :10 -auth .Xauthority -geometry 1680x1050 -depth 24 -rfbauth /home/admin/.vnc/sesman_passwd-admin@rdptest:10 -bs -nolisten tcp -localhost -dpi 96  
[20191031-10:53:59] [CORE ] waiting for window manager (pid 1888) to exit
[20191031-10:53:59] [CORE ] window manager (pid 1888) did exit, cleaning up session
[20191031-10:53:59] [INFO ] calling auth_stop_session and auth_end from pid 1887
[20191031-10:53:59] [DEBUG] cleanup_sockets:
[20191031-10:53:59] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_audio_out_socket_10
[20191031-10:53:59] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_audio_in_socket_10
[20191031-10:53:59] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdpapi_10
[20191031-10:53:59] [INFO ] ++ terminated session:  username admin, display :10.0, session_pid 1887, ip 10.204.1.45:62306 - socket: 12
[20191031-10:55:30] [INFO ] A connection received from 127.0.0.1 port 42708
[20191031-10:55:30] [INFO ] ++ created session (access granted): username admin, ip 10.204.1.45:62313 - socket: 12
[20191031-10:55:30] [INFO ] starting Xvnc session...
[20191031-10:55:30] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:5910)
[20191031-10:55:30] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6010)
[20191031-10:55:30] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6210)
[20191031-10:55:30] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20191031-10:55:30] [INFO ] calling auth_start_session from pid 1992
[20191031-10:55:30] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20191031-10:55:30] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20191031-10:55:30] [INFO ] Xvnc :10 -auth .Xauthority -geometry 1680x1050 -depth 24 -rfbauth /home/admin/.vnc/sesman_passwd-admin@rdptest:10 -bs -nolisten tcp -localhost -dpi 96  
[20191031-10:55:30] [CORE ] waiting for window manager (pid 1993) to exit
[20191031-10:55:30] [CORE ] window manager (pid 1993) did exit, cleaning up session
[20191031-10:55:30] [INFO ] calling auth_stop_session and auth_end from pid 1992
[20191031-10:55:30] [DEBUG] cleanup_sockets:
[20191031-10:55:30] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_audio_out_socket_10
[20191031-10:55:30] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_audio_in_socket_10
[20191031-10:55:30] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdpapi_10
[20191031-10:55:30] [INFO ] ++ terminated session:  username admin, display :10.0, session_pid 1992, ip 10.204.1.45:62313 - socket: 12
[20191031-11:02:08] [INFO ] A connection received from 127.0.0.1 port 42726
[20191031-11:02:08] [INFO ] ++ created session (access granted): username admin, ip 10.204.1.45:62419 - socket: 12
[20191031-11:02:08] [INFO ] starting Xvnc session...
[20191031-11:02:08] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:5910)
[20191031-11:02:08] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6010)
[20191031-11:02:08] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6210)
[20191031-11:02:08] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20191031-11:02:08] [INFO ] calling auth_start_session from pid 2439
[20191031-11:02:08] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20191031-11:02:08] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20191031-11:02:08] [INFO ] Xvnc :10 -auth .Xauthority -geometry 1024x768 -depth 24 -rfbauth /home/admin/.vnc/sesman_passwd-admin@rdptest:10 -bs -nolisten tcp -localhost -dpi 96  
[20191031-11:02:09] [CORE ] waiting for window manager (pid 2440) to exit
[20191031-11:02:09] [CORE ] window manager (pid 2440) did exit, cleaning up session
[20191031-11:02:09] [INFO ] calling auth_stop_session and auth_end from pid 2439
[20191031-11:02:09] [DEBUG] cleanup_sockets:
[20191031-11:02:09] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_audio_out_socket_10
[20191031-11:02:09] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_audio_in_socket_10
[20191031-11:02:09] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdpapi_10
[20191031-11:02:09] [INFO ] ++ terminated session:  username admin, display :10.0, session_pid 2439, ip 10.204.1.45:62419 - socket: 12
[20191031-11:03:15] [INFO ] shutting down sesman 1
[20191031-11:03:15] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20191031-11:14:46] [DEBUG] libscp initialized
[20191031-11:14:46] [INFO ] starting xrdp-sesman with pid 1290
[20191031-11:14:46] [INFO ] listening to port 3350 on 127.0.0.1
sesman.ini

Code: Select all

;; See `man 5 sesman.ini` for details

[Globals]
ListenAddress=127.0.0.1
ListenPort=3350
EnableUserWindowManager=true
; Give in relative path to user's home directory
UserWindowManager=startwm.sh
; Give in full path or relative path to /etc/xrdp
DefaultWindowManager=startwm-bash.sh
; Give in full path or relative path to /etc/xrdp
ReconnectScript=reconnectwm.sh

[Security]
AllowRootLogin=true
MaxLoginRetry=4
TerminalServerUsers=tsusers
TerminalServerAdmins=tsadmins
; When AlwaysGroupCheck=false access will be permitted
; if the group TerminalServerUsers is not defined.
AlwaysGroupCheck=false
; When RestrictOutboundClipboard=true clipboard from the
; server is not pushed to the client.
RestrictOutboundClipboard=false

[Sessions]
;; X11DisplayOffset - x11 display number offset
; Type: integer
; Default: 10
X11DisplayOffset=10

;; MaxSessions - maximum number of connections to an xrdp server
; Type: integer
; Default: 0
MaxSessions=50

;; KillDisconnected - kill disconnected sessions
; Type: boolean
; Default: false
; if 1, true, or yes, kill session after 60 seconds
KillDisconnected=false

;; DisconnectedTimeLimit - when to kill idle sessions
; Type: integer
; Default: 0
; if not zero, the seconds before a disconnected session is killed
; min 60 seconds
DisconnectedTimeLimit=0

;; IdleTimeLimit (specify in second) - wait before disconnect idle sessions
; Type: integer
; Default: 0
; Set to 0 to disable idle disconnection.
IdleTimeLimit=0

;; Policy - session allocation policy
; Type: enum [ "Default" | "UBD" | "UBI" | "UBC" | "UBDI" | "UBDC" ]
; Default: Xrdp:<User,BitPerPixel> and Xvnc:<User,BitPerPixel,DisplaySize>
; "UBD" session per <User,BitPerPixel,DisplaySize>
; "UBI" session per <User,BitPerPixel,IPAddr>
; "UBC" session per <User,BitPerPixel,Connection>
; "UBDI" session per <User,BitPerPixel,DisplaySize,IPAddr>
; "UBDC" session per <User,BitPerPixel,DisplaySize,Connection>
Policy=Default

[Logging]
LogFile=xrdp-sesman.log
LogLevel=DEBUG
EnableSyslog=1
SyslogLevel=DEBUG

;
; Session definitions - startup command-line parameters for each session type
;

[Xorg]
; Specify the path of non-suid Xorg executable. It might differ depending
; on your distribution and version. The typical path is shown as follows:
;
; Fedora 26 or later    :  param=/usr/libexec/Xorg
; Debian 9 or later     :  param=/usr/lib/xorg/Xorg
; Ubuntu 16.04 or later :  param=/usr/lib/xorg/Xorg
; Arch Linux            :  param=/usr/lib/xorg-server/Xorg
; CentOS 7              :  param=/usr/bin/Xorg or param=Xorg
;
param=Xorg
; Leave the rest paramaters as-is unless you understand what will happen.
param=-config
param=xrdp/xorg.conf
param=-noreset
param=-nolisten
param=tcp
param=-logfile
param=.xorgxrdp.%s.log

[Xvnc]
param=Xvnc
param=-bs
param=-nolisten
param=tcp
param=-localhost
param=-dpi
param=96

[Chansrv]
; drive redirection, defaults to xrdp_client if not set
FuseMountName=thinclient_drives

[SessionVariables]
PULSE_SCRIPT=/etc/xrdp/pulse/default.pa
xrdp.ini

Code: Select all

[Globals]
; xrdp.ini file version number
ini_version=1

; fork a new process for each incoming connection
fork=true

; ports to listen on, number alone means listen on all interfaces
; 0.0.0.0 or :: if ipv6 is configured
; space between multiple occurrences
;
; Examples:
;   port=3389
;   port=unix://./tmp/xrdp.socket
;   port=tcp://.:3389                           127.0.0.1:3389
;   port=tcp://:3389                            *:3389
;   port=tcp://<any ipv4 format addr>:3389      192.168.1.1:3389
;   port=tcp6://.:3389                          ::1:3389
;   port=tcp6://:3389                           *:3389
;   port=tcp6://{<any ipv6 format addr>}:3389   {FC00:0:0:0:0:0:0:1}:3389
;   port=vsock://<cid>:<port>
port=3389

; 'port' above should be connected to with vsock instead of tcp
; use this only with number alone in port above
; prefer use vsock://<cid>:<port> above
use_vsock=false

; regulate if the listening socket use socket option tcp_nodelay
; no buffering will be performed in the TCP stack
tcp_nodelay=true

; regulate if the listening socket use socket option keepalive
; if the network connection disappear without close messages the connection will be closed
tcp_keepalive=true

; set tcp send/recv buffer (for experts)
#tcp_send_buffer_bytes=32768
#tcp_recv_buffer_bytes=32768

; security layer can be 'tls', 'rdp' or 'negotiate'
; for client compatible layer
security_layer=negotiate

; minimum security level allowed for client for classic RDP encryption
; use tls_ciphers to configure TLS encryption
; can be 'none', 'low', 'medium', 'high', 'fips'
crypt_level=high

; X.509 certificate and private key
; openssl req -x509 -newkey rsa:2048 -nodes -keyout key.pem -out cert.pem -days 365
certificate=
key_file=

; set SSL protocols
; can be comma separated list of 'SSLv3', 'TLSv1', 'TLSv1.1', 'TLSv1.2', 'TLSv1.3'
ssl_protocols=TLSv1.2, TLSv1.3
; set TLS cipher suites
#tls_ciphers=HIGH

; Section name to use for automatic login if the client sends username
; and password. If empty, the domain name sent by the client is used.
; If empty and no domain name is given, the first suitable section in
; this file will be used.
autorun=

allow_channels=true
allow_multimon=true
bitmap_cache=true
bitmap_compression=true
bulk_compression=true
#hidelogwindow=true
max_bpp=32
new_cursors=true
; fastpath - can be 'input', 'output', 'both', 'none'
use_fastpath=both
; when true, userid/password *must* be passed on cmd line
#require_credentials=true
; You can set the PAM error text in a gateway setup (MAX 256 chars)
#pamerrortxt=change your password according to policy at http://url

;
; colors used by windows in RGB format
;
blue=009cb5
grey=dedede
#black=000000
#dark_grey=808080
#blue=08246b
#dark_blue=08246b
#white=ffffff
#red=ff0000
#green=00ff00
#background=626c72

;
; configure login screen
;

; Login Screen Window Title
#ls_title=My Login Title

; top level window background color in RGB format
ls_top_window_bg_color=009cb5

; width and height of login screen
ls_width=350
ls_height=430

; login screen background color in RGB format
ls_bg_color=dedede

; optional background image filename (bmp format).
#ls_background_image=

; logo
; full path to bmp-file or file in shared folder
ls_logo_filename=
ls_logo_x_pos=55
ls_logo_y_pos=50

; for positioning labels such as username, password etc
ls_label_x_pos=30
ls_label_width=65

; for positioning text and combo boxes next to above labels
ls_input_x_pos=110
ls_input_width=210

; y pos for first label and combo box
ls_input_y_pos=220

; OK button
ls_btn_ok_x_pos=142
ls_btn_ok_y_pos=370
ls_btn_ok_width=85
ls_btn_ok_height=30

; Cancel button
ls_btn_cancel_x_pos=237
ls_btn_cancel_y_pos=370
ls_btn_cancel_width=85
ls_btn_cancel_height=30

[Logging]
LogFile=xrdp.log
LogLevel=DEBUG
EnableSyslog=true
SyslogLevel=DEBUG
; LogLevel and SysLogLevel could by any of: core, error, warning, info or debug

[Channels]
; Channel names not listed here will be blocked by XRDP.
; You can block any channel by setting its value to false.
; IMPORTANT! All channels are not supported in all use
; cases even if you set all values to true.
; You can override these settings on each session type
; These settings are only used if allow_channels=true
rdpdr=true
rdpsnd=true
drdynvc=true
cliprdr=true
rail=true
xrdpvr=true
tcutils=true

; for debugging xrdp, in section xrdp1, change port=-1 to this:
#port=/tmp/.xrdp/xrdp_display_10

; for debugging xrdp, add following line to section xrdp1
#chansrvport=/tmp/.xrdp/xrdp_chansrv_socket_7210


;
; Session types
;

; Some session types such as Xorg, X11rdp and Xvnc start a display server.
; Startup command-line parameters for the display server are configured
; in sesman.ini. See and configure also sesman.ini.
#[Xorg]
#name=Xorg
#lib=libxup.so
#username=ask
#password=ask
#ip=127.0.0.1
#port=-1
#code=20

[Xvnc]
name=Xvnc
lib=libvnc.so
username=ask
password=ask
ip=127.0.0.1
port=-1
#xserverbpp=24
#delay_ms=2000

#[vnc-any]
#name=vnc-any
#lib=libvnc.so
#ip=ask
#port=ask5900
#username=na
#password=ask
#pamusername=asksame
#pampassword=asksame
#pamsessionmng=127.0.0.1
#delay_ms=2000

#[neutrinordp-any]
#name=neutrinordp-any
#lib=libxrdpneutrinordp.so
#ip=ask
#port=ask3389
#username=ask
#password=ask

; You can override the common channel settings for each session type
#channel.rdpdr=true
#channel.rdpsnd=true
#channel.drdynvc=true
#channel.cliprdr=true
#channel.rail=true
#channel.xrdpvr=true
~/.xsession-errors

Code: Select all

Failed to open connection to "session" message bus: Failed to connect to socket /tmp/dbus-SVPAnSW1Sn: Connection refused
Running without a11y support!
Error: cannot open display: :10.0
Last edited by geckert on 2019/10/31 17:14:00, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Windows 10 to CentOS 7.7 MATE xrdp immediate disconnect after login

Post by TrevorH » 2019/10/31 16:51:07

Well looking at the log I'd say your window manager just exits immediately.
[20191031-11:02:09] [CORE ] waiting for window manager (pid 2440) to exit
[20191031-11:02:09] [CORE ] window manager (pid 2440) did exit, cleaning up session
I'd be looking at things like .Xinitrc to see if they actually do anything or if they just fall through and exit.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

geckert
Posts: 3
Joined: 2019/10/31 08:08:10

Re: Windows 10 to CentOS 7.7 MATE xrdp immediate disconnect after login

Post by geckert » 2019/10/31 16:59:47

The .Xinitrc file should be in a user's home directory, right?

There is no .xinitrc file...

I also don't see any "MATE" option-like thing in /etc/X11/xinit/Xclients.

Should I?

Code: Select all

#!/bin/bash
# Copyright (C) 1999 - 2004 Red Hat, Inc. All rights reserved. This
# copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the
# GNU General Public License version 2.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

GSESSION="$(type -p gnome-session)"
STARTKDE="$(type -p startkde)"

# check to see if the user has a preferred desktop
PREFERRED=
if [ -f /etc/sysconfig/desktop ]; then
    . /etc/sysconfig/desktop
    if [ "$DESKTOP" = "GNOME" ]; then
	PREFERRED="$GSESSION"
    elif [ "$DESKTOP" = "KDE" ]; then
	PREFERRED="$STARTKDE"
    fi
fi

if [ -n "$PREFERRED" ]; then
    exec "$PREFERRED"
fi

# now if we can reach here, either no desktop file was present,
# or the desktop requested is not installed.

if [ -n "$GSESSION" -a -f /usr/share/xsessions/gnome-classic.desktop ]; then
    # by default, we run GNOME.
    export GNOME_SHELL_SESSION_MODE=classic
    exec "$GSESSION" --session=gnome-classic
elif [ -n "$STARTKDE" ]; then
    # if GNOME isn't installed, try KDE.
    exec "$STARTKDE"
fi

# We should also support /etc/X11/xinit/Xclients.d scripts
XCLIENTS_D=/etc/X11/xinit/Xclients.d
if [ "$#" -eq 1 ] && [ -x "$XCLIENTS_D/Xclients.$1.sh" ]; then
    exec -l $SHELL -c "$SSH_AGENT $XCLIENTS_D/Xclients.$1.sh"
fi

# Failsafe.

# these files are left sitting around by TheNextLevel.
rm -f $HOME/Xrootenv.0

# Argh! Nothing good is installed. Fall back to twm
{
    # gosh, neither fvwm95 nor fvwm2 is available; 
    # fall back to failsafe settings
    [ -x /usr/bin/xsetroot ] && /usr/bin/xsetroot -solid '#222E45'

    if [ -x /usr/bin/xclock ] ; then
	/usr/bin/xclock -geometry 100x100-5+5 &
    fi
    if [ -x /usr/bin/xterm ] ; then
        /usr/bin/xterm -geometry 80x50-50+150 &
    fi
    if [ -x /usr/bin/firefox -a -f /usr/share/doc/HTML/index.html ]; then
	/usr/bin/firefox /usr/share/doc/HTML/index.html &
    fi
    if [ -x /usr/bin/twm ] ; then
	exec /usr/bin/twm
    fi
}

BShT
Posts: 585
Joined: 2019/10/09 12:31:40

Re: Windows 10 to CentOS 7.7 MATE xrdp immediate disconnect after login

Post by BShT » 2019/10/31 19:45:01

i used to export DISPLAY to windows using xming.

it was funny...

davymatt
Posts: 30
Joined: 2013/06/12 16:21:14
Location: Salisbury, UK
Contact:

Re: Windows 10 to CentOS 7.7 MATE xrdp immediate disconnect after login

Post by davymatt » 2020/03/19 17:02:13

I have a very similar thing going on, but my .xsession-errors only has the following

Code: Select all

Running without a11y support!
Error: cannot open display: :10.0
I'm not sure what is happening here. Any remote GUI that will work would be nice.
If anyone has worked it out I would appreciate knowing.
All versions new out of the box today.
Dave

albertj358
Posts: 9
Joined: 2013/11/02 12:49:37

Re: Windows 10 to CentOS 7.7 MATE xrdp immediate disconnect after login

Post by albertj358 » 2020/03/21 13:25:53

I got this working. What I needed was the file ~/.Xclients to contain the single line "mate-session".

Code: Select all

cat ~/.Xclients
mate-session
I have multiple .Xclients.xxxx files that I copy to ~/.Xclients for when I want to change session type:

Code: Select all

.Xclients.gnome = startgnome
.Xclients.kde = startkde
.Xclients.mate = mate-session
.Xclients.xfce = xfce4-session
Albert

davymatt
Posts: 30
Joined: 2013/06/12 16:21:14
Location: Salisbury, UK
Contact:

Re: Windows 10 to CentOS 7.7 MATE xrdp immediate disconnect after login

Post by davymatt » 2020/03/23 12:52:56

Does not solve the problem for me. No change at all.

changjun.cho
Posts: 3
Joined: 2020/04/24 13:21:08

Re: Windows 10 to CentOS 7.7 MATE xrdp immediate disconnect after login

Post by changjun.cho » 2020/04/24 13:46:07

In my case it was a dbus-launch file location problem.
I changed the name of anaconda3's dbus-launch file and tried to break it.
Perhaps you need to change the PATH order.

Post Reply