neutrinolabs / xrdp

xrdp: an open source RDP server
http://www.xrdp.org/
Apache License 2.0
5.74k stars 1.73k forks source link

Rhel8 - XRDP no longer loads default desktop - after installing XCFE (as well as KDE) - default desktop session shows black screen and quits ~/.Xclients works #2682

Closed morgancoxuk closed 1 year ago

morgancoxuk commented 1 year ago

Hi.

I have a XRDP setup, previously I had installed KDE and by default XRDP would login to that.

I have now installed XFCE as well and on login now you get a black screen for a second then quits.

However if my user has a ~/.Xclients file and I uncomment either of these

#startkde
#xfce4-session

XRDP loads into the desktop fine.

But I want the default to work - i.e for users with no ~/.Xclients file

Just to confirm with no ~/.Xclients I login and it asks for user/pass (as normal) but straight after entering details the application quits

All I want to do is for XRDP to load 'startkde/startplasma-x11' be default.,

Here are logs (/var/log/messages) from a login where the issue occurs

This is when I first login (by rdp client doesn't store the pass - which is why user login shows as failed initially) - i.e this part shows to the point where you get the XRDP login screen

May 17 12:50:15 ng2-vdmz-ts2 xrdp[10288]: [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
May 17 12:50:15 ng2-vdmz-ts2 xrdp[10288]: [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
May 17 12:50:15 ng2-vdmz-ts2 xrdp[10288]: [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|RDP], selected [SSL]
May 17 12:50:15 ng2-vdmz-ts2 xrdp[10288]: [INFO ] Connected client computer name: mcox-XPS-15-952
May 17 12:50:15 ng2-vdmz-ts2 xrdp[10288]: [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
May 17 12:50:15 ng2-vdmz-ts2 xrdp[10288]: [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
May 17 12:50:16 ng2-vdmz-ts2 xrdp[10288]: [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000809]
May 17 12:50:16 ng2-vdmz-ts2 xrdp[10288]: [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [gb] options []
May 17 12:50:16 ng2-vdmz-ts2 xrdp[10288]: [INFO ] TLS connection established from ::ffff:10.88.1.105 port 35592: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384
May 17 12:50:16 ng2-vdmz-ts2 xrdp[10288]: [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
May 17 12:50:16 ng2-vdmz-ts2 xrdp[10288]: [INFO ] xrdp_caps_process_codecs: RemoteFX, codec id 3, properties len 49
May 17 12:50:16 ng2-vdmz-ts2 xrdp[10288]: [WARN ] Dynamic Virtual Channel named 'drdynvc' not found, channel not initialized
May 17 12:50:16 ng2-vdmz-ts2 xrdp[10288]: [INFO ] Loading keymap file /etc/xrdp/km-00000809.ini
May 17 12:50:16 ng2-vdmz-ts2 xrdp[10288]: [WARN ] local keymap file for 0x00000809 found and doesn't match built in keymap, using local keymap file
May 17 12:50:16 ng2-vdmz-ts2 xrdp[10288]: [INFO ] connecting to sesman on 127.0.0.1:3350
May 17 12:50:16 ng2-vdmz-ts2 xrdp-sesman[8049]: [INFO ] Socket 14: AF_INET6 connection received from ::1 port 34046
May 17 12:50:16 ng2-vdmz-ts2 xrdp[10288]: [INFO ] xrdp_wm_log_msg: sesman connect ok
May 17 12:50:16 ng2-vdmz-ts2 xrdp[10288]: [INFO ] sesman connect ok
May 17 12:50:16 ng2-vdmz-ts2 xrdp[10288]: [INFO ] sending login info to session manager. Please wait...
May 17 12:50:19 ng2-vdmz-ts2 xrdp-sesman[8049]: [ERROR] pam_authenticate failed: Authentication failure
May 17 12:50:19 ng2-vdmz-ts2 xrdp-sesman[8049]: [INFO ] AUTHFAIL: user=mcox ip=::ffff:10.88.1.105 time=1684324219
May 17 12:50:19 ng2-vdmz-ts2 xrdp-sesman[8049]: [ERROR] sesman_data_in: scp_process_msg failed
May 17 12:50:19 ng2-vdmz-ts2 xrdp[10288]: [INFO ] xrdp_wm_log_msg: login failed for user mcox
May 17 12:50:19 ng2-vdmz-ts2 xrdp-sesman[8049]: [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
May 17 12:50:19 ng2-vdmz-ts2 xrdp[10288]: [INFO ] login failed for user mcox

Then I enter my user / pass

May 17 12:54:17 ng2-vdmz-ts2 xrdp[10437]: [INFO ] connecting to sesman on 127.0.0.1:3350
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[8049]: [INFO ] Socket 14: AF_INET6 connection received from ::1 port 39358
May 17 12:54:17 ng2-vdmz-ts2 xrdp[10437]: [INFO ] xrdp_wm_log_msg: sesman connect ok
May 17 12:54:17 ng2-vdmz-ts2 xrdp[10437]: [INFO ] sesman connect ok
May 17 12:54:17 ng2-vdmz-ts2 xrdp[10437]: [INFO ] sending login info to session manager. Please wait...
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[8049]: [INFO ] Terminal Server Users group is disabled, allowing authentication
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[8049]: [INFO ] ++ created session (access granted): username mcox, ip ::ffff:10.88.1.105:46026 - socket: 12
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[8049]: [INFO ] starting Xorg session...
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[8049]: [INFO ] Starting session: session_pid 10446, display :10.0, width 1920, height 1080, bpp 24, client ip ::ffff:10.88.1.105:46026 - socket: 12, user name mcox
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10446]: [INFO ] [session start] (display 10): calling auth_start_session from pid 10446
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[8049]: [ERROR] sesman_data_in: scp_process_msg failed
May 17 12:54:17 ng2-vdmz-ts2 xrdp[10437]: [INFO ] xrdp_wm_log_msg: login successful for user mcox on display 10
May 17 12:54:17 ng2-vdmz-ts2 xrdp[10437]: [INFO ] login successful for user mcox on display 10
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[8049]: [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
May 17 12:54:17 ng2-vdmz-ts2 xrdp[10437]: [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
May 17 12:54:17 ng2-vdmz-ts2 xrdp[10437]: [INFO ] started connecting
May 17 12:54:17 ng2-vdmz-ts2 xrdp[10437]: [INFO ] lib_mod_connect: connecting via UNIX socket
May 17 12:54:17 ng2-vdmz-ts2 systemd-logind[1183]: New session c32 of user mcox.
May 17 12:54:17 ng2-vdmz-ts2 systemd[1]: Started Session c32 of user mcox.
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: [INFO ] Starting X server on display 10: /usr/libexec/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: X.Org X Server 1.20.11
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: X Protocol Version 11, Revision 0
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: Build Operating System:  4.18.0-305.25.1.el8_4.x86_64
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: Current Operating System: Linux ng2-vdmz-ts2 4.18.0-425.19.2.el8_7.x86_64 #1 SMP Fri Mar 17 01:52:38 EDT 2023 x86_64
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: Kernel command line: BOOT_IMAGE=(hd0,msdos2)/vmlinuz-4.18.0-425.19.2.el8_7.x86_64 root=/dev/mapper/rhel-root ro resume=/dev/mapper/rhel-swap rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: Build Date: 22 February 2023  12:10:01PM
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: Build ID: xorg-x11-server 1.20.11-15.el8
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: Current version of pixman: 0.38.4
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]:        Before reporting problems, check http://wiki.x.org
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]:        to make sure that you have the latest version.
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: Markers: (--) probed, (**) from config file, (==) default setting,
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]:        (++) from command line, (!!) notice, (II) informational,
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]:        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: (++) Log file: ".xorgxrdp.10.log", Time: Wed May 17 12:54:17 2023
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: (++) Using config file: "/etc/X11/xrdp/xorg.conf"
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: (==) Using config directory: "/etc/X11/xorg.conf.d"
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: (==) Using system config directory "/usr/share/X11/xorg.conf.d"
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: xorgxrdpSetup:
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: xrdpdevSetup:
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpmousePlug:
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybPlug:
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpIdentify:
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpDriverFunc: op 10
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpProbe:
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpPreInit:
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpScreenInit: virtualX 800 virtualY 600 rgbBits 8 depth 24
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpScreenInit: pfbMemory bytes 1920000
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpScreenInit: pfbMemory 0x7f76c39f6010
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpSimdInit: assigning yuv functions
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpSimdInit: cpuid ax 1 cx 0 return ax 0x000306d2 bx 0x05000800 cx 0xfffa3203 dx 0x078bfbff
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpSimdInit: sse2 amd64 yuv functions assigned
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpClientConInit: disconnect idle session after [0] sec
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpClientConInit: kill disconnected [0] timeout [0] sec
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpClientConInit: do_touchpad_scroll_hack [0]
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpXvInit: depth 24
May 17 12:54:17 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpScreenInit: out
May 17 12:54:17 ng2-vdmz-ts2 xrdp[10437]: [INFO ] lib_mod_log_peer: xrdp_pid=10437 connected to X11rdp_pid=10448 X11rdp_uid=1005 X11rdp_gid=1005 client_ip=::ffff:10.88.1.105 client_port=46026
May 17 12:54:17 ng2-vdmz-ts2 xrdp[10437]: [INFO ] connected ok
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpCreateScreenResources:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpmousePreInit: drv 0x55fbcb10e2c0 info 0x55fbcb3d60b0, flags 0x0
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpmouseControl: what 0
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpmouseDeviceInit:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpmouseCtrl:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpRegisterInputCallback: type 1 proc 0x7f76c3dcfd50
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpmouseControl: what 1
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpmouseDeviceOn:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybPreInit: drv 0x55fbcb0eb7b0 info 0x55fbcb3d86d0, flags 0x0
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybControl: what 0
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybDeviceInit:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl: autoRepeat on
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpRegisterInputCallback: type 0 proc 0x7f76c3bcc6b0
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybControl: what 1
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybDeviceOn:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10447]: [INFO ] Found X server running at /tmp/.X11-unix/X10
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10446]: [INFO ] Found X server running at /tmp/.X11-unix/X10
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10446]: [INFO ] Session started successfully for user mcox on display 10
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10452]: [INFO ] Starting the xrdp channel server for display 10
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10447]: [INFO ] Found X server running at /tmp/.X11-unix/X10
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10446]: [INFO ] Session in progress on display 10, waiting until the window manager (pid 10447) exits to end the session
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10447]: [INFO ] Starting the default window manager on display 10: /usr/libexec/xrdp/startwm-bash.sh
May 17 12:54:18 ng2-vdmz-ts2 xrdp-chansrv[10452]: [INFO ] Socket 12: AF_UNIX connection received
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpDeferredRandR:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpResizeSession: width 1024 height 768
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]:  calling RRScreenSizeSet
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpRRScreenSetSize: width 1024 height 768 mmWidth 271 mmHeight 203
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpRRGetInfo:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]:  screen resized to 1024x768
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]:  RRScreenSizeSet ok 1
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpResizeSession: width 1920 height 1080
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]:  calling RRScreenSizeSet
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpRRScreenSetSize: width 1920 height 1080 mmWidth 508 mmHeight 286
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpRRGetInfo:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]:  screen resized to 1920x1080
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]:  RRScreenSizeSet ok 1
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpClientConGotConnection:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpClientConGotConnection: g_sck_accept ok new_sck 7
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpClientConGetConnection: idle_disconnect_timeout set to non-positive value, idle timer turned off
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpAddClientConToDev: adding first clientCon 0x55fbcb4170f0
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpClientConProcessMsgVersion: version 0 0 0 1
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpClientConProcessScreenSizeMsg: set width 1920 height 1080 bpp 32
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpClientConAllocateSharedMemory: shmemid 393249 shmemptr 0x7f76b8d7b000 bytes 8294400
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpClientConProcessMsgClientInput: invalidate x 0 y 0 cx 1920 cy 1080
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: KbdSync: toggling num lock
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpClientConProcessMsgClientInfo:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]:  got client info bytes 7072
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]:  jpeg support 0
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]:  offscreen support 0
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]:  offscreen size 0
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]:  offscreen entries 0
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpClientConProcessMsgClientInfo: got RFX capture
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]:  cap_width 1920 cap_height 1088
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpClientConAllocateSharedMemory: shmemid 393250 shmemptr 0x7f76b8d6c000 bytes 8355840
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]:  client can not do offscreen to offscreen blits
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]:  client can do new(color) cursor
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]:  client can not do multimon
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpRRSetRdpOutputs: numCrtcs 0 numOutputs 0 monitorCount 0
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpRRSetRdpOutputs: add output 0 left 0 top 0 width 1920 height 1080
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpLoadLayout: keylayout 0x00000809 variant  display 10
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl: autoRepeat on
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl: autoRepeat on
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl: autoRepeat on
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl: autoRepeat on
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpInDeferredRepeatCallback:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl: autoRepeat off
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpInDeferredRepeatCallback:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl: autoRepeat off
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpInDeferredRepeatCallback:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl: autoRepeat off
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpInDeferredRepeatCallback:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl: autoRepeat off
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpInDeferredRepeatCallback:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl:
May 17 12:54:18 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybChangeKeyboardControl: autoRepeat off
May 17 12:54:18 ng2-vdmz-ts2 xrdp-chansrv[10452]: [INFO ] Detected remote drive 'media'
May 17 12:54:18 ng2-vdmz-ts2 xrdp-chansrv[10452]: [INFO ] sound_process_training: round trip time 10
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10446]: [WARN ] Window manager (pid 10447, display 10) exited quickly (1 secs). This could indicate a window manager config problem
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10446]: [INFO ] Calling auth_stop_session and auth_end from pid 10446
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10446]: [INFO ] Terminating X server (pid 10448) on display 10
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10446]: [INFO ] Terminating the xrdp channel server (pid 10452) on display 10
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpmouseControl: what 2
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpmouseDeviceOff:
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybControl: what 2
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybDeviceOff:
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: xorgxrdpDamageDestroy:
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybControl: what 3
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpkeybUnInit: drv 0x55fbcb0eb7b0 info 0x55fbcb3d86d0, flags 0x0
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpUnregisterInputCallback: proc 0x7f76c3bcc6b0
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpmouseControl: what 3
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpmouseUnInit: drv 0x55fbcb10e2c0 info 0x55fbcb3d60b0, flags 0x0
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpUnregisterInputCallback: proc 0x7f76c3dcfd50
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpCloseScreen:
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: xorgxrdpDownDown:
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: xorgxrdpDownDown: 1
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpClientConDeinit:
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpClientConDeinit: disconnecting clientCon
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpClientConDisconnect:
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpRemoveClientConFromDev: removing clientCon 0x55fbcb4170f0
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpClientConDeinit: deleting file /run/xrdp/xrdp_display_10
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: rdpClientConDeinit: deleting file /run/xrdp/xrdp_disconnect_display_10
May 17 12:54:19 ng2-vdmz-ts2 systemd[1]: home-mcox-thinclient_drives.mount: Succeeded.
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10448]: (II) Server terminated successfully (0). Closing log file.
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10452]: Global configuration:
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10452]:    UseUnixSocket (derived):   true
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10452]: Security configuration:
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10452]:    RestrictOutboundClipboard: none
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10452]:    RestrictInboundClipboard:  none
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10452]: Chansrv configuration:
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10452]:    EnableFuseMount            true
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10452]:    FuseMountName:             thinclient_drives
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10452]:    FileMask:                  077
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10452]:    Nautilus 3 Flist Format:   false
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10452]: chansrv::main: using log file [/home/mcox/.local/share/xrdp/xrdp-chansrv.10.log]
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10446]: [INFO ] X server on display 10 (pid 10448) returned exit code 0 and signal number 0
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10446]: [INFO ] xrdp channel server for display 10 (pid 10452) exit code 0 and signal number 0
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[10446]: [INFO ] cleanup_sockets:
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[8049]: [INFO ] Process 10446 has exited
May 17 12:54:19 ng2-vdmz-ts2 xrdp-sesman[8049]: [INFO ] ++ terminated session:  username mcox, display :10.0, session_pid 10446, ip ::ffff:10.88.1.105:46026 - socket: 12
May 17 12:54:19 ng2-vdmz-ts2 systemd-logind[1183]: Session c32 logged out. Waiting for processes to exit.
May 17 12:54:20 ng2-vdmz-ts2 xrdp[10437]: rfxcodec_encode_create: got sse2
May 17 12:54:20 ng2-vdmz-ts2 xrdp[10437]: rfxcodec_encode_create: got sse3
May 17 12:54:20 ng2-vdmz-ts2 xrdp[10437]: rfxcodec_encode_create: got sse4.1
May 17 12:54:20 ng2-vdmz-ts2 xrdp[10437]: rfxcodec_encode_create: got sse4.2
May 17 12:54:20 ng2-vdmz-ts2 xrdp[10437]: rfxcodec_encode_create: got popcnt
May 17 12:54:20 ng2-vdmz-ts2 xrdp[10437]: rfxcodec_encode_create: got lzcnt
May 17 12:54:20 ng2-vdmz-ts2 xrdp[10437]: rfxcodec_encode_create: rfx_encode set to rfx_encode_component_rlgr3_amd64_sse41

Can anyone help me restore the default XRDP desktop session ?

XRDP is working fine with ~/.Xclients file.

matt335672 commented 1 year ago

On RHEL(etc), if the user doesn't have a ~/.Xclients or ~/.xsession file, the system will call the shell script /etc/X11/xinit/Xclients.

If this file is unchanged, the script should call KDE by default on your setup, as the supplied RHEL setup scripts do not support XFCE. It's odd it isn't, so I suspect there's more going on here than is obvious.

Again, if the file is unchanged, you should be able to get KDE working by creating /etc/sysconfig/desktop with this line:-

DESKTOP=KDE

You can try that. If that doesn't work, add some tracing to the file /usr/libexec/xrdp/startwm.sh by putting a set -x command near the top.

morgancoxuk commented 1 year ago

Thanks - I already had DESKTOP=KDE in /etc/sysconfig/desktop. This doesn't appear to be working.

matt335672 commented 1 year ago

If you get a trace from startwm.sh, post it here and we can look at it.

morgancoxuk commented 1 year ago

Here is the logs when adding set -x to /usr/libexec/xrdp/startwm.sh (with no ~/.Xclients)

May 18 10:09:36 mcox xrdp-sesman[1625]: ++ wm_start
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ '[' -r /etc/default/locale ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ '[' -r /etc/X11/Xsession ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ '[' -f /etc/alpine-release ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ '[' -r /etc/X11/xinit/Xsession ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ pre_start
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ '[' -r /etc/profile ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ . /etc/profile
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -x /usr/bin/id ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -z 1000 ']'
May 18 10:09:36 mcox xrdp-sesman[1662]: ++++ /usr/bin/id -un
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ USER=mcox
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ LOGNAME=mcox
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ MAIL=/var/spool/mail/mcox
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' 1000 = 0 ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ pathmunge /usr/local/sbin after
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ case ":${PATH}:" in
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ pathmunge /usr/sbin after
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ case ":${PATH}:" in
May 18 10:09:36 mcox xrdp-sesman[1664]: ++++ /usr/bin/hostname
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ HOSTNAME=mcox.rhel8.desktop
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ HISTSIZE=1000
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' ignoredups = ignorespace ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ export HISTCONTROL=ignoredups
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ HISTCONTROL=ignoredups
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' 1000 -gt 199 ']'
May 18 10:09:36 mcox xrdp-sesman[1666]: ++++ /usr/bin/id -gn
May 18 10:09:36 mcox xrdp-sesman[1668]: ++++ /usr/bin/id -un
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' mcox = mcox ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ umask 002
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/bash_completion.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/bash_completion.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -n '4.4.20(1)-release' -a -n '' -a -z '' ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/colorgrep.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/colorgrep.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ /usr/libexec/grepconf.sh -c
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias 'grep=grep --color=auto'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias 'egrep=egrep --color=auto'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias 'fgrep=fgrep --color=auto'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/colorls.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/colorls.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' '!' -t 0 ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ return
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/colorxzgrep.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/colorxzgrep.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ /usr/libexec/grepconf.sh -c
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias 'xzgrep=xzgrep --color=auto'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias 'xzegrep=xzegrep --color=auto'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias 'xzfgrep=xzfgrep --color=auto'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/colorzgrep.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/colorzgrep.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -f /usr/libexec/grepconf.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ /usr/libexec/grepconf.sh -c
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias 'zgrep=zgrep --color=auto'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias 'zfgrep=zfgrep --color=auto'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias 'zegrep=zegrep --color=auto'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/flatpak.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/flatpak.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ command -v flatpak
May 18 10:09:36 mcox xrdp-sesman[1677]: +++++ unset G_MESSAGES_DEBUG
May 18 10:09:36 mcox xrdp-sesman[1677]: +++++ echo /home/mcox/.local/share/flatpak
May 18 10:09:36 mcox xrdp-sesman[1677]: +++++ GIO_USE_VFS=local
May 18 10:09:36 mcox xrdp-sesman[1677]: +++++ flatpak --installations
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ new_dirs=
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ read -r install_path
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ share_path=/home/mcox/.local/share/flatpak/exports/share
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ case ":$XDG_DATA_DIRS:" in
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ :
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ read -r install_path
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ share_path=/var/lib/flatpak/exports/share
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ case ":$XDG_DATA_DIRS:" in
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ :
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ read -r install_path
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ echo ''
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ new_dirs=
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ export XDG_DATA_DIRS
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ XDG_DATA_DIRS=/home/mcox/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/gawk.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/gawk.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/gnome-ssh-askpass.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/gnome-ssh-askpass.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ export SSH_ASKPASS
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/histtimeformat.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/histtimeformat.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ export 'HISTTIMEFORMAT=%d/%m/%y %T '
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ HISTTIMEFORMAT='%d/%m/%y %T '
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ export HISTSIZE=12000
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ HISTSIZE=12000
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ export HISTFILESIZE=22000
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ HISTFILESIZE=22000
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/kde.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/kde.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -z /usr ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -z '' ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ grep -qs '^PRELINKING=yes' /etc/sysconfig/prelink
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/lang.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/lang.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -n en_GB.UTF-8 ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ LANG_backup=en_GB.UTF-8
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ for config in /etc/locale.conf "${HOME}/.i18n"
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -f /etc/locale.conf ']'
May 18 10:09:36 mcox xrdp-sesman[1681]: +++++ /usr/bin/sed -r -e 's/^[[:blank:]]*([[:upper:]_]+)=([[:print:][:digit:]\._-]+|"[[:print:][:digit:]\._-]+")/export \1=\2/;t;d' /etc/locale.conf
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ eval export 'LANG="en_GB.UTF-8"'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++++ export LANG=en_GB.UTF-8
May 18 10:09:36 mcox xrdp-sesman[1625]: +++++ LANG=en_GB.UTF-8
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ for config in /etc/locale.conf "${HOME}/.i18n"
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -f /home/mcox/.i18n ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -n en_GB.UTF-8 ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ LANG=en_GB.UTF-8
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ unset LANG_backup config
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -n '' ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -n en_GB.UTF-8 ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' dumb = linux ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/less.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/less.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -z '||/usr/bin/lesspipe.sh %s' ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/PackageKit.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/PackageKit.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ [[ -n '' ]]
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/session_tmout.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/session_tmout.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ TMOUT=900
May 18 10:09:36 mcox xrdp-sesman[1625]: /etc/profile.d/session_tmout.sh: line 1: TMOUT: readonly variable
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ readonly TMOUT
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ export TMOUT
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/ssh-x-forwarding.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/ssh-x-forwarding.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -z '' ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ return
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/vim.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/vim.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -n '4.4.20(1)-release' -o -n '' -o -n '' ']'
May 18 10:09:36 mcox xrdp-sesman[1683]: +++++ /usr/bin/id -u
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' 1000 -le 200 ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias vi
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/vte.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/vte.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -n '4.4.20(1)-release' -o -n '' ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ [[ hxB == *i* ]]
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ return 0
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/which2.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/which2.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ case "$(basename $(readlink /proc/$$/exe))" in
May 18 10:09:36 mcox xrdp-sesman[1686]: ++++++ readlink /proc/1625/exe
May 18 10:09:36 mcox xrdp-sesman[1685]: +++++ basename /usr/bin/bash
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ which_declare='declare -f'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ which_opt=-f
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ export which_declare
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ export -f which
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/sh.local ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ unset i
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ unset -f pathmunge
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -n '4.4.20(1)-release' ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -f /etc/bashrc ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/bashrc
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -z Y ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ '[' -r /home/mcox/.bash_profile ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ . /home/mcox/.bash_profile
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -f /home/mcox/.bashrc ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /home/mcox/.bashrc
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -f /etc/bashrc ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ . /etc/bashrc
May 18 10:09:36 mcox xrdp-sesman[1625]: +++++ '[' -z Y ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ [[ /home/mcox/.local/bin:/home/mcox/bin:/sbin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin =~ /home/mcox/\.local/bin:/home/mcox/bin: ]]
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ export PATH
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ return 0
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ . /etc/X11/xinit/Xsession
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -z '' ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ errfile=/home/mcox/.xsession-errors
May 18 10:09:36 mcox xrdp-sesman[1689]: +++ umask 077
May 18 10:09:36 mcox xrdp-sesman[1689]: +++ cp /dev/null /home/mcox/.xsession-errors
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ chmod 600 /home/mcox/.xsession-errors
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -x /sbin/restorecon ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ /sbin/restorecon /home/mcox/.xsession-errors
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ exec
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpInDeferredRepeatCallback:
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpkeybChangeKeyboardControl:
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpkeybChangeKeyboardControl: autoRepeat off
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpInDeferredRepeatCallback:
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpkeybChangeKeyboardControl:
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpkeybChangeKeyboardControl: autoRepeat off
May 18 10:09:36 mcox xrdp-chansrv[1631]: [INFO ] Detected remote drive 'media'
May 18 10:09:36 mcox xrdp-chansrv[1631]: [INFO ] sound_process_training: round trip time 15
May 18 10:09:36 mcox xrdp-sesman[1624]: [WARN ] Window manager (pid 1625, display 10) exited quickly (0 secs). This could indicate a window manager config problem
May 18 10:09:36 mcox xrdp-sesman[1624]: [INFO ] Calling auth_stop_session and auth_end from pid 1624
May 18 10:09:36 mcox xrdp-sesman[1624]: [INFO ] Terminating X server (pid 1626) on display 10
May 18 10:09:36 mcox xrdp-sesman[1624]: [INFO ] Terminating the xrdp channel server (pid 1631) on display 10
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpmouseControl: what 2
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpmouseDeviceOff:
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpkeybControl: what 2
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpkeybDeviceOff:
May 18 10:09:36 mcox xrdp-sesman[1626]: xorgxrdpDamageDestroy:
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpkeybControl: what 3
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpkeybUnInit: drv 0x563a49d37620 info 0x563a4a000e80, flags 0x0
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpUnregisterInputCallback: proc 0x7f0a170e56b0
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpmouseControl: what 3
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpmouseUnInit: drv 0x563a49d16740 info 0x563a49e91f20, flags 0x0
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpUnregisterInputCallback: proc 0x7f0a172e8d50
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpCloseScreen:
May 18 10:09:36 mcox xrdp-sesman[1626]: xorgxrdpDownDown:
May 18 10:09:36 mcox xrdp-sesman[1626]: xorgxrdpDownDown: 1
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpClientConDeinit:
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpClientConDeinit: disconnecting clientCon
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpClientConDisconnect:
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpRemoveClientConFromDev: removing clientCon 0x563a4a03e9d0
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpClientConDeinit: deleting file /run/xrdp/xrdp_display_10
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpClientConDeinit: deleting file /run/xrdp/xrdp_disconnect_display_10
May 18 10:09:36 mcox systemd[1]: home-mcox-thinclient_drives.mount: Succeeded.
May 18 10:09:36 mcox xrdp-sesman[1626]: (II) Server terminated successfully (0). Closing log file.
May 18 10:09:36 mcox xrdp-sesman[1624]: [INFO ] X server on display 10 (pid 1626) returned exit code 0 and signal number 0
May 18 10:09:36 mcox xrdp-sesman[1631]: Global configuration:
May 18 10:09:36 mcox xrdp-sesman[1631]:    UseUnixSocket (derived):   true
May 18 10:09:36 mcox xrdp-sesman[1631]: Security configuration:
May 18 10:09:36 mcox xrdp-sesman[1631]:    RestrictOutboundClipboard: none
May 18 10:09:36 mcox xrdp-sesman[1631]:    RestrictInboundClipboard:  none
May 18 10:09:36 mcox xrdp-sesman[1631]: Chansrv configuration:
May 18 10:09:36 mcox xrdp-sesman[1631]:    EnableFuseMount            true
May 18 10:09:36 mcox xrdp-sesman[1631]:    FuseMountName:             thinclient_drives
May 18 10:09:36 mcox xrdp-sesman[1631]:    FileMask:                  077
May 18 10:09:36 mcox xrdp-sesman[1631]:    Nautilus 3 Flist Format:   false
May 18 10:09:36 mcox xrdp-sesman[1631]: chansrv::main: using log file [/home/mcox/.local/share/xrdp/xrdp-chansrv.10.log]
May 18 10:09:36 mcox xrdp-sesman[1624]: [INFO ] xrdp channel server for display 10 (pid 1631) exit code 0 and signal number 0
May 18 10:09:36 mcox xrdp-sesman[1624]: [INFO ] cleanup_sockets:
May 18 10:09:36 mcox xrdp-sesman[1020]: [INFO ] Process 1624 has exited
May 18 10:09:36 mcox systemd-logind[905]: Session c2 logged out. Waiting for processes to exit.
matt335672 commented 1 year ago

Two things:- 1) What's in /home/mcox/.xsession-errors? 2) You're getting this error:-

   /etc/profile.d/session_tmout.sh: line 1: TMOUT: readonly variable

See #2636 for why setting a readonly TMOUT is somewhat brittle and fairly pointless. It may or may not be related, but it's worth addressing I think.

morgancoxuk commented 1 year ago

Hi Matt335672

1.

+++ SWITCHDESKPATH=/usr/share/switchdesk
+++ . /etc/X11/xinit/xinitrc-common
++++ '[' -r /etc/profile.d/lang.sh ']'
++++ . /etc/profile.d/lang.sh
+++++ '[' -n en_GB.UTF-8 ']'
+++++ LANG_backup=en_GB.UTF-8
+++++ for config in /etc/locale.conf "${HOME}/.i18n"
+++++ '[' -f /etc/locale.conf ']'
++++++ /usr/bin/sed -r -e 's/^[[:blank:]]*([[:upper:]_]+)=([[:print:][:digit:]\._-]+|"[[:print:][:digit:]\._-]+")/export \1=\2/;t;d' /etc/locale.conf
+++++ eval export 'LANG="en_GB.UTF-8"'
++++++ export LANG=en_GB.UTF-8
++++++ LANG=en_GB.UTF-8
+++++ for config in /etc/locale.conf "${HOME}/.i18n"
+++++ '[' -f /home/mcox/.i18n ']'
+++++ '[' -n en_GB.UTF-8 ']'
+++++ LANG=en_GB.UTF-8
+++++ unset LANG_backup config
+++++ '[' -n '' ']'
+++++ '[' -n en_GB.UTF-8 ']'
+++++ '[' dumb = linux ']'
++++ '[' -r /home/mcox/.profile ']'
++++ userresources=/home/mcox/.Xresources
++++ usermodmap=/home/mcox/.Xmodmap
++++ userxkbmap=/home/mcox/.Xkbmap
++++ sysresources=/etc/X11/Xresources
++++ sysmodmap=/etc/X11/Xmodmap
++++ sysxkbmap=/etc/X11/Xkbmap
++++ '[' -r /etc/X11/Xresources ']'
++++ xrdb -nocpp -merge /etc/X11/Xresources
++++ '[' -r /home/mcox/.Xresources ']'
++++ '[' -r /etc/X11/Xkbmap ']'
++++ '[' -r /home/mcox/.Xkbmap ']'
++++ '[' -r /etc/X11/Xkbmap -o -r /home/mcox/.Xkbmap ']'
++++ '[' -r /etc/X11/Xmodmap ']'
++++ xmodmap /etc/X11/Xmodmap
++++ '[' -r /home/mcox/.Xmodmap ']'
++++ for file in /etc/X11/xinit/xinitrc.d/*
++++ . /etc/X11/xinit/xinitrc.d/00-start-message-bus.sh
+++++ '[' -z unix:path=/run/user/1000/bus ']'
++++ for file in /etc/X11/xinit/xinitrc.d/*
++++ . /etc/X11/xinit/xinitrc.d/10-qt5-check-opengl2.sh
+++++ '[' -z '' ']'
++++++ LANG=C
++++++ glxinfo
++++++ grep '^OpenGL version string: '
++++++ head -n 1
++++++ sed -e 's/^OpenGL version string: \([0-9]\).*$/\1/g'
+++++ QT5_CHECK_OPENGL_VERSION=4
+++++ '[' 4 == 1 ']'
+++++ unset QT5_CHECK_OPENGL_VERSION
++++ for file in /etc/X11/xinit/xinitrc.d/*
++++ . /etc/X11/xinit/xinitrc.d/50-systemd-user.sh
+++++ systemctl --user import-environment DISPLAY XAUTHORITY
+++++ command -v dbus-update-activation-environment
+++++ dbus-update-activation-environment DISPLAY XAUTHORITY
++++ for file in /etc/X11/xinit/xinitrc.d/*
++++ . /etc/X11/xinit/xinitrc.d/localuser.sh
+++++ '[' -x /usr/bin/xhost ']'
+++++ '[' -x /usr/bin/id ']'
++++++ id -un
+++++ xhost +si:localuser:mcox
++++ '[' -z '' ']'
++++ '[' -z '' ']'
++++ '[' -z '' ']'
++++ '[' -x /usr/bin/ssh-agent ']'
++++ '[' x '!=' x ']'
++++ SSH_AGENT=/usr/bin/ssh-agent
+++ XCLIENTS_D=/etc/X11/xinit/Xclients.d
+++ '[' 0 -eq 1 ']'
+++ case $# in
+++ '[' -x /home/mcox/.xsession ']'
+++ '[' -x /home/mcox/.Xclients ']'
+++ exec -l /bin/bash -c ' /usr/bin/ssh-agent /home/mcox/.Xclients'
  1. This is due to

readonly TMOUT export TMOUT

Used for hardening - pretty sure its not connected (as previously when just KDE was installed the desktop worked without Xclients file.

e.g

[mcox@mcox ~]$ cat /etc/profile.d/session_tmout.sh
TMOUT=900
readonly TMOUT
export TMOUT
matt335672 commented 1 year ago
  1. You still appear to have a file /home/mcox/.Xclients. The test for it is triggering at the end of the log trace. Can you remove it, or mark it non-executable? The test is at line 85 in .etc/X11/xinit/Xsession.
  2. Suggest you surround the setting of TMOUT with a guard:-
    # set a 15 min timeout policy for bash shell
    if [ -z "$TMOUT" ]; then
    TMOUT=900
    readonly TMOUT
    export TMOUT
    fi

    Reasons are explained in the linked issue. If nothing else, it will prevent the odd error message in log files.