neutrinolabs / xrdp

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

Kali Linux: Xrdp crash after login #3276

Open Haxxxoor opened 1 week ago

Haxxxoor commented 1 week ago

xrdp version

0.9.24-5

Detailed xrdp version, build options

Package: xrdp
Version: 0.9.24-5
Priority: optional
Section: net
Maintainer: Debian Remote Maintainers <debian-remote@lists.debian.org>
Installed-Size: 3279 kB
Pre-Depends: init-system-helpers (>= 1.54~)
Depends: adduser, sysvinit-utils (>= 3.06-4), ssl-cert, libc6 (>= 2.34), libfuse2t64 (>= 2.6), libjpeg62-turbo (>= 1.3.1), libopus0 (>= 1.1), libpam0g (>= 0.99.7.1), libssl3t64 (>= 3.0.0), libx11-6, libxfixes3, libxrandr2
Recommends: fuse, pipewire-module-xrdp, xorgxrdp
Suggests: guacamole
Homepage: http://www.xrdp.org/
Tag: implemented-in::c, interface::daemon, interface::graphical,
 interface::x11, network::server, role::program, use::login,
 use::viewing, x11::application
Download-Size: 497 kB
APT-Manual-Installed: yes
APT-Sources: http://http.kali.org/kali kali-rolling/main amd64 Packages
Description: Remote Desktop Protocol (RDP) server
 xrdp offers a graphical login to a remote client using
 RDP (the Remote Desktop Protocol). xrdp can connect to
 a locally created X.org session with the xorgxrdp drivers,
 to a VNC X11 server, and forward to another RDP server.
 .
 xrdp accepts connections from freerdp, rdesktop, and the
 built-in terminal server / remote desktop clients of
 Microsoft Windows operating systems.
 In the xorgxrdp (which replaces X11RDP) and VNC modes,
 it provides a fully functional Linux terminal server,
 offering an X-Window desktop to the user. In the RDP
 or VNC forwarding mode, any sort of desktop can be used.

Operating system & version

kali VERSION="2024.3"

Installation method

dnf / apt / zypper / pkg / etc

Which backend do you use?

Xorg

What desktop environment do you use?

Xfce

Environment xrdp running on

laptop bare metal

What's your client?

MS Remote Desktop

Area(s) with issue?

Crashes such as segfault, Other

Steps to reproduce

I've reinstalled kali 4 times.

apt update, apt upgrade, apt dist-upgrade, apt full-upgrade

installed via Apt install xrdp

sudo adduser xrdp ssl-cert

also tried

sudo apt install xfce4 xfce4-goodies sudo apt install xfce4 echo "startxfce4" > ~/.xsession chmod +x ~/.xsession startxfce4 in the /etc/xrdp/startwm.sh

✔️ Expected Behavior

figured clean install would fix the error. still crash after login

❌ Actual Behavior

still crash after login

Anything else?

### xrdp-sesman.log

[20241014-20:52:04] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 50582 [20241014-20:52:05] [ERROR] pam_authenticate failed: Authentication failure [20241014-20:52:05] [INFO ] AUTHFAIL: user=rag ip=::ffff:192.168.0.163 time=1728953525 [20241014-20:52:05] [ERROR] sesman_data_in: scp_process_msg failed [20241014-20:52:05] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans [20241014-20:52:12] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 41114 [20241014-20:52:12] [INFO ] Terminal Server Users group is disabled, allowing authentication [20241014-20:52:12] [INFO ] ++ created session (access granted): username rag, ip ::ffff:192.168.0.163:54869 - socket: 12 [20241014-20:52:12] [INFO ] starting Xorg session... [20241014-20:52:12] [INFO ] Starting session: session_pid 74174, display :10.0, width 2560, height 1440, bpp 24, client ip ::ffff:192.168.0.163:54869 - socket: 12, user name rag [20241014-20:52:12] [ERROR] sesman_data_in: scp_process_msg failed [20241014-20:52:12] [INFO ] [session start] (display 10): calling auth_start_session from pid 74174 [20241014-20:52:12] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans [20241014-20:52:12] [INFO ] Starting X server on display 10: /usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log [20241014-20:52:13] [INFO ] Found X server running at /tmp/.X11-unix/X10 [20241014-20:52:13] [INFO ] Found X server running at /tmp/.X11-unix/X10 [20241014-20:52:13] [INFO ] Found X server running at /tmp/.X11-unix/X10 [20241014-20:52:13] [INFO ] Session started successfully for user rag on display 10 [20241014-20:52:13] [INFO ] Session in progress on display 10, waiting until the window manager (pid 74176) exits to end the session [20241014-20:52:13] [INFO ] Starting the xrdp channel server for display 10 [20241014-20:52:13] [INFO ] Starting the default window manager on display 10: /etc/xrdp/startwm.sh [20241014-20:52:14] [WARN ] Window manager (pid 74176, display 10) exited with non-zero exit code 1 and signal 0. This could indicate a window manager config problem [20241014-20:52:14] [WARN ] Window manager (pid 74176, display 10) exited quickly (1 secs). This could indicate a window manager config problem [20241014-20:52:14] [INFO ] Calling auth_stop_session and auth_end from pid 74174 [20241014-20:52:14] [INFO ] Terminating X server (pid 74177) on display 10 [20241014-20:52:14] [INFO ] Terminating the xrdp channel server (pid 74193) on display 10 [20241014-20:52:14] [INFO ] X server on display 10 (pid 74177) returned exit code 1 and signal number 0 [20241014-20:52:14] [INFO ] xrdp channel server for display 10 (pid 74193) exit code 0 and signal number 0 [20241014-20:52:14] [INFO ] cleanup_sockets: [20241014-20:52:14] [INFO ] Process 74174 has exited [20241014-20:52:14] [INFO ] ++ terminated session: username rag, display :10.0, session_pid 74174, ip ::ffff:192.168.0.163:54869 - socket: 12

### xrdp.log

[20241014-20:52:12] [INFO ] xrdp_wm_log_msg: sesman connect ok [20241014-20:52:12] [INFO ] sesman connect ok [20241014-20:52:12] [INFO ] sending login info to session manager. Please wait... [20241014-20:52:12] [INFO ] xrdp_wm_log_msg: login successful for user rag on display 10 [20241014-20:52:12] [INFO ] login successful for user rag on display 10 [20241014-20:52:12] [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4 [20241014-20:52:12] [INFO ] started connecting [20241014-20:52:12] [INFO ] lib_mod_connect: connecting via UNIX socket [20241014-20:52:13] [INFO ] lib_mod_log_peer: xrdp_pid=74053 connected to X11rdp_pid=74177 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:192.168.0.163 client_port=54869 [20241014-20:52:13] [INFO ] connected ok [20241014-20:57:20] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.0.163 port 55386 [20241014-20:57:20] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem [20241014-20:57:20] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem [20241014-20:57:20] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied [20241014-20:57:20] [WARN ] Cannot accept TLS connections because certificate or private key file is not readable. certificate file: [/etc/xrdp/cert.pem], private key file: [/etc/xrdp/key.pem] [20241014-20:57:20] [INFO ] Security protocol: configured [RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [RDP] [20241014-20:57:20] [ERROR] libxrdp_force_read: header read error [20241014-20:57:20] [ERROR] Processing [ITU-T T.125] Connect-Initial failed [20241014-20:57:20] [ERROR] [MCS Connection Sequence] receive connection request failed [20241014-20:57:20] [ERROR] xrdp_sec_incoming: xrdp_mcs_incoming failed [20241014-20:57:20] [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed [20241014-20:57:20] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.0.163 port 55387 [20241014-20:57:20] [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed [20241014-20:57:20] [ERROR] xrdp_iso_send: trans_write_copy_s failed [20241014-20:57:20] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem [20241014-20:57:20] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem [20241014-20:57:20] [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed [20241014-20:57:20] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied [20241014-20:57:20] [WARN ] Cannot accept TLS connections because certificate or private key file is not readable. certificate file: [/etc/xrdp/cert.pem], private key file: [/etc/xrdp/key.pem] [20241014-20:57:20] [INFO ] Security protocol: configured [RDP], requested [RDP], selected [RDP] [20241014-20:57:20] [INFO ] Connected client computer name: MAINPC [20241014-20:57:20] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored) [20241014-20:57:20] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored) [20241014-20:57:20] [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000409] [20241014-20:57:20] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options [] [20241014-20:57:20] [INFO ] Non-TLS connection established from ::ffff:192.168.0.163 port 55387: with security level : high [20241014-20:57:20] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor [20241014-20:57:20] [INFO ] xrdp_process_offscreen_bmpcache: support level 1 cache size 10485760 MB cache entries 100 [20241014-20:57:20] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3 [20241014-20:57:20] [WARN ] xrdp_caps_process_codecs: unknown codec id 5 [20241014-20:57:20] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini [20241014-20:57:20] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file

matt335672 commented 1 week ago

This looks like the problem to me:-

[20241014-20:52:14] [WARN ] Window manager (pid 74176, display 10) exited quickly (1 secs). This could indicate a window manager config problem

This may be as you are using startxfce4 to start the window manager. I believe you should be using xfce4-session.

Try this

ln -sf `which xfce4-session` ~/.xsession

Listing the file should give you something like this:-

$ ls -l ~/.xsession
lrwxrwxrwx 1 xxxx xxxx xxx xxx xx xx:xx /home/xxxx/.xsession -> /usr/bin/xfce4-session

Please try logging in again and report back.

Haxxxoor commented 1 week ago

Yea, I just tried that. still giving me the same crash after I login.

[20241015-06:44:05] [WARN ] Window manager (pid 360521, display 10) exited with non-zero exit code 1 and signal 0. This could indicate a window manager config problem [20241015-06:44:05] [WARN ] Window manager (pid 360521, display 10) exited quickly (1 secs). This could indicate a window manager config problem

I did take a look at ran the code and it just closes the terminal when ran would that be correct?

/etc/xrdp/startwm.sh

`if test -r /etc/profile; then . /etc/profile fi

if test -r ~/.profile; then . ~/.profile fi

test -x /etc/X11/Xsession && exec /etc/X11/Xsession exec /bin/sh /etc/X11/Xsession`

matt335672 commented 1 week ago

Let's get a log.

Try this:-

DISPLAY= sh -x /etc/xrdp/startwm.sh

Mind the space after the '='.

That will give a bit of a log (which could be useful). The rest will be in ~/.xsession-errors.

Haxxxoor commented 1 week ago

I am trying to get access to my other machine but my ghetto setup right now wont let me but this is what i got

DISPLAY= sh -x /etc/xrdp/startwm.sh

  • test -r /etc/profile
  • . /etc/profile
  • id -u
  • [ 1000 -eq 0 ]
  • PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
  • export PATH
  • [ $ ]
  • [ ]
  • id -u
  • [ 1000 -eq 0 ]
  • PS1=$
  • [ -d /etc/profile.d ]
  • run-parts --list --regex ^[a-zA-Z0-9][a-zA-Z0-9.-]*.sh$ /etc/profile.d
  • [ -r /etc/profile.d/bash_completion.sh ]
  • . /etc/profile.d/bash_completion.sh
  • [ x != x -a x$ != x -a x = x ]
  • [ -r /etc/profile.d/dotnet-cli-tools-bin-path.sh ]
  • . /etc/profile.d/dotnet-cli-tools-bin-path.sh
  • export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/rag/.dotnet/tools
  • [ -r /etc/profile.d/gawk.sh ]
  • . /etc/profile.d/gawk.sh
  • [ -r /etc/profile.d/kali.sh ]
  • . /etc/profile.d/kali.sh
    • echo /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/rag/.dotnet/tools tr : \n
  • grep -q ^/sbin$
  • PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/rag/.dotnet/tools
  • [ -e /usr/bin/kali-motd ]
  • kali-motd
  • [ -r /etc/profile.d/vte-2.91.sh ]
  • . /etc/profile.d/vte-2.91.sh
  • [ -n -o -n ]
  • return 0
  • unset i
  • test -r /home/rag/.profile
  • . /home/rag/.profile
  • [ -n ]
  • [ -d /home/rag/bin ]
  • [ -d /home/rag/.local/bin ]
  • test -x /etc/X11/Xsession
  • exec /etc/X11/Xsession

~/.xsession-errors

Xsession: X session started for rag at Tue Oct 15 07:36:18 EDT 2024 dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus dbus-update-activation-environment: setting DISPLAY=:0 dbus-update-activation-environment: setting XAUTHORITY=/home/rag/.Xauthority localuser:rag being added to access control list dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/ dbus-update-activation-environment: setting QT_ACCESSIBILITY=1 dbus-update-activation-environment: setting POWERSHELL_TELEMETRY_OPTOUT=1 dbus-update-activation-environment: setting USER=rag dbus-update-activation-environment: setting XDG_SESSION_TYPE=x11 dbus-update-activation-environment: setting DOTNET_CLI_TELEMETRY_OPTOUT=1 dbus-update-activation-environment: setting HOME=/home/rag dbus-update-activation-environment: setting DESKTOP_SESSION=lightdm-xsession dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus dbus-update-activation-environment: setting COMMAND_NOT_FOUND_INSTALL_PROMPT=1 dbus-update-activation-environment: setting QT_QPA_PLATFORMTHEME=qt5ct dbus-update-activation-environment: setting LOGNAME=rag dbus-update-activation-environment: setting QT_AUTO_SCREEN_SCALE_FACTOR=0 dbus-update-activation-environment: setting XDG_SESSION_CLASS=user dbus-update-activation-environment: setting PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games dbus-update-activation-environment: setting _JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true dbus-update-activation-environment: setting XDG_RUNTIME_DIR=/run/user/1000 dbus-update-activation-environment: setting DISPLAY=:0 dbus-update-activation-environment: setting LANG=C.UTF-8 dbus-update-activation-environment: setting POWERSHELL_UPDATECHECK=Off dbus-update-activation-environment: setting XDG_SESSION_DESKTOP=lightdm-xsession dbus-update-activation-environment: setting XAUTHORITY=/home/rag/.Xauthority dbus-update-activation-environment: setting XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/rag dbus-update-activation-environment: setting SHELL=/usr/bin/zsh dbus-update-activation-environment: setting GDMSESSION=lightdm-xsession dbus-update-activation-environment: setting QT_ACCESSIBILITY=1 dbus-update-activation-environment: setting GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 dbus-update-activation-environment: setting PWD=/home/rag dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/ /usr/bin/x-session-manager: X server already running on display :0 /usr/bin/iceauth: creating new authority file /run/user/1000/ICEauthority xfce4-session-Message: 07:36:18.973: SSH authentication agent is already running gpg-agent: a gpg-agent is already running - not starting a new one

(xfwm4:1163): xfwm4-WARNING **: 07:36:19.216: Another compositing manager is running on screen 0

(polkit-mate-authentication-agent-1:1248): GLib-CRITICAL **: 07:36:20.336: g_variant_new_string: assertion 'string != NULL' failed

(polkit-mate-authentication-agent-1:1248): polkit-mate-1-WARNING **: 07:36:20.337: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(nm-applet:1215): Gdk-CRITICAL **: 07:36:20.435: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed

(wrapper-2.0:1227): xfce4-power-manager-plugin-WARNING **: 07:36:20.547: Xfce4-power-manager: The panel plugin is present, so the tray icon gets disabled. blueman-applet 07.36.20 WARNING PluginManager:150 __load_plugin: Not loading PPPSupport because its conflict has higher priority blueman-applet 07.36.20 WARNING PluginManager:150 __load_plugin: Not loading DhcpClient because its conflict has higher priority blueman-applet 07.36.20 WARNING DiscvManager:122 update_menuitems: warning: Adapter is None

(polkit-mate-authentication-agent-1:1248): GLib-GIO-CRITICAL **: 07:43:22.254: g_dbus_method_invocation_get_message: assertion 'G_IS_DBUS_METHOD_INVOCATION (invocation)' failed

(polkit-mate-authentication-agent-1:1248): GLib-GIO-CRITICAL **: 07:43:22.254: g_dbus_message_get_unix_fd_list: assertion 'G_IS_DBUS_MESSAGE (message)' failed

(polkit-mate-authentication-agent-1:1248): GLib-GIO-CRITICAL **: 07:43:22.314: g_dbus_method_invocation_get_message: assertion 'G_IS_DBUS_METHOD_INVOCATION (invocation)' failed

(polkit-mate-authentication-agent-1:1248): GLib-GIO-CRITICAL **: 07:43:22.314: g_dbus_message_get_unix_fd_list: assertion 'G_IS_DBUS_MESSAGE (message)' failed

(polkit-mate-authentication-agent-1:1248): GLib-GObject-CRITICAL *: 07:43:22.314: value "-1" of type 'gint' is invalid or out of range for property 'pid' of type 'gint' Xsession: X session started for rag at Tue Oct 15 07:45:52 EDT 2024 dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus dbus-update-activation-environment: setting DISPLAY= xrdb: Can't open display '' xhost: unable to open display "" dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/ dbus-update-activation-environment: setting QT_ACCESSIBILITY=1 dbus-update-activation-environment: setting LESS_TERMCAP_se= dbus-update-activation-environment: setting POWERSHELL_TELEMETRY_OPTOUT=1 dbus-update-activation-environment: setting USER=rag dbus-update-activation-environment: setting SSH_CLIENT=192.168.0.163 61995 22 dbus-update-activation-environment: setting LESS_TERMCAP_ue= dbus-update-activation-environment: setting XDG_SESSION_TYPE=tty dbus-update-activation-environment: setting DOTNET_CLI_TELEMETRY_OPTOUT=1 dbus-update-activation-environment: setting SHLVL=1 dbus-update-activation-environment: setting HOME=/home/rag dbus-update-activation-environment: setting MOTD_SHOWN=pam dbus-update-activation-environment: setting OLDPWD=/home/rag dbus-update-activation-environment: setting SSH_TTY=/dev/pts/1 dbus-update-activation-environment: setting LESS_TERMCAP_so= dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus dbus-update-activation-environment: setting COMMAND_NOT_FOUND_INSTALL_PROMPT=1 dbus-update-activation-environment: setting QT_QPA_PLATFORMTHEME=qt5ct dbus-update-activation-environment: setting LOGNAME=rag dbus-update-activation-environment: setting LESS_TERMCAPus= dbus-update-activation-environment: setting =/usr/bin/sh dbus-update-activation-environment: setting QT_AUTO_SCREEN_SCALE_FACTOR=0 dbus-update-activation-environment: setting XDG_SESSION_CLASS=user dbus-update-activation-environment: setting TERM=xterm-256color dbus-update-activation-environment: setting PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/rag/.dotnet/tools dbus-update-activation-environment: setting _JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true dbus-update-activation-environment: setting XDG_RUNTIME_DIR=/run/user/1000 dbus-update-activation-environment: setting DISPLAY= dbus-update-activation-environment: setting POWERSHELL_UPDATECHECK=Off dbus-update-activation-environment: setting LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.zst=01;31:.tzst=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.wim=01;31:.swm=01;31:.dwm=01;31:.esd=01;31:.avif=01;35:.jpg=01;35:.jpeg=01;35:.mjpg=01;35:.mjpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.webp=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:.xspf=00;36:~=00;90:#=00;90:.bak=00;90:.crdownload=00;90:.dpkg-dist=00;90:.dpkg-new=00;90:.dpkg-old=00;90:.dpkg-tmp=00;90:.old=00;90:.orig=00;90:.part=00;90:.rej=00;90:.rpmnew=00;90:.rpmorig=00;90:.rpmsave=00;90:.swp=00;90:.tmp=00;90:.ucf-dist=00;90:.ucf-new=00;90:.ucf-old=00;90::ow=30;44: dbus-update-activation-environment: setting SHELL=/usr/bin/zsh dbus-update-activation-environment: setting QT_ACCESSIBILITY=1 dbus-update-activation-environment: setting LESS_TERMCAP_mb= dbus-update-activation-environment: setting GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 dbus-update-activation-environment: setting LESS_TERMCAP_md= dbus-update-activation-environment: setting PWD=/var/log dbus-update-activation-environment: setting LESS_TERMCAP_me= dbus-update-activation-environment: setting SSH_CONNECTION=192.168.0.163 61995 192.168.0.151 22 dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/ /usr/bin/x-session-manager: Starting X server

/usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server X connection to :0 broken (explicit kill or server shutdown). Xsession: X session started for rag at Tue Oct 15 07:46:30 EDT 2024 dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus dbus-update-activation-environment: setting DISPLAY=:10.0 localuser:rag being added to access control list dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/ dbus-update-activation-environment: setting QT_ACCESSIBILITY=1 dbus-update-activation-environment: setting POWERSHELL_TELEMETRY_OPTOUT=1 dbus-update-activation-environment: setting USER=rag dbus-update-activation-environment: setting DOTNET_CLI_TELEMETRY_OPTOUT=1 dbus-update-activation-environment: setting XDG_SESSION_TYPE=x11 dbus-update-activation-environment: setting HOME=/home/rag dbus-update-activation-environment: setting XRDP_PULSE_SINK_SOCKET=xrdp_chansrv_audio_out_socket_10 dbus-update-activation-environment: setting XRDP_PULSE_SOURCE_SOCKET=xrdp_chansrv_audio_in_socket_10 dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus dbus-update-activation-environment: setting COMMAND_NOT_FOUND_INSTALL_PROMPT=1 dbus-update-activation-environment: setting PULSE_SCRIPT=/etc/xrdp/pulse/default.pa dbus-update-activation-environment: setting QT_QPA_PLATFORMTHEME=qt5ct dbus-update-activation-environment: setting LOGNAME=rag dbus-update-activation-environment: setting QT_AUTO_SCREEN_SCALE_FACTOR=0 dbus-update-activation-environment: setting XDG_SESSION_CLASS=user dbus-update-activation-environment: setting PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/rag/.dotnet/tools dbus-update-activation-environment: setting _JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true dbus-update-activation-environment: setting XRDP_SOCKET_PATH=/run/xrdp/sockdir dbus-update-activation-environment: setting XDG_RUNTIME_DIR=/run/user/1000 dbus-update-activation-environment: setting DISPLAY=:10.0 dbus-update-activation-environment: setting POWERSHELL_UPDATECHECK=Off dbus-update-activation-environment: setting UID=1000 dbus-update-activation-environment: setting SHELL=/usr/bin/zsh dbus-update-activation-environment: setting QT_ACCESSIBILITY=1 dbus-update-activation-environment: setting XRDP_SESSION=1 dbus-update-activation-environment: setting GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 dbus-update-activation-environment: setting PWD=/home/rag dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/ /usr/bin/x-session-manager: X server already running on display :10.0

matt335672 commented 1 week ago

Thanks.

A question I should have asked before; are you logged in to the graphical front end as the same user? This isn't supported (in the FAQ).

Can you set up a separate user for xrdp and try that?

Haxxxoor commented 1 week ago

I am not logged in, I am ssh'd in from my main desktop. I've done this same set up for years, until yesterday when this issue first started. I've also have added a separate account as well and same issue.

matt335672 commented 1 week ago

The reason I ask is there's evidence of the user logging in at the console in the ~/.xsession-errors. At the top there's a DISPLAY of :0

In your separate user, can you try this :-

DISPLAY= sh -x /etc/X11/Xsession

we can try tracing that through.

Haxxxoor commented 1 week ago

I believe its still saying cannot open DISPLAY of 10

+ set -e
+ PROGNAME=Xsession
+ OPTIONFILE=/etc/X11/Xsession.options
+ SYSRESOURCES=/etc/X11/Xresources
+ USRRESOURCES=/home/raggy/.Xresources
+ SYSSESSIONDIR=/etc/X11/Xsession.d
+ USERXSESSION=/home/raggy/.xsession
+ USERXSESSIONRC=/home/raggy/.xsessionrc
+ ALTUSERXSESSION=/home/raggy/.Xsession
+ ERRFILE=/home/raggy/.xsession-errors
+ [ -r /etc/X11/Xsession.options ]
+ cat /etc/X11/Xsession.options
+ [ -d /etc/X11/Xsession.options.d ]
+ OPTIONS=# $Id: Xsession.options 189 2005-06-11 00:04:27Z branden $
#
# configuration options for /etc/X11/Xsession
# See Xsession.options(5) for an explanation of the available options.
allow-failsafe
allow-user-resources
allow-user-xsession
use-ssh-agent
use-session-dbus
+ [ -w /home/raggy/.xsession-errors ]
+ [ ! -L /home/raggy/.xsession-errors ]
+ chmod 600 /home/raggy/.xsession-errors
+ exec

~/.xsession-errors

Xsession: X session started for raggy at Tue Oct 15 08:28:54 EDT 2024
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
dbus-update-activation-environment: setting DISPLAY=:10.0
xhost:  unable to open display ":10.0"
dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting POWERSHELL_TELEMETRY_OPTOUT=1
dbus-update-activation-environment: setting USER=raggy
dbus-update-activation-environment: setting DOTNET_CLI_TELEMETRY_OPTOUT=1
dbus-update-activation-environment: setting XDG_SESSION_TYPE=x11
dbus-update-activation-environment: setting HOME=/home/raggy
dbus-update-activation-environment: setting XRDP_PULSE_SINK_SOCKET=xrdp_chansrv_audio_out_socket_10
dbus-update-activation-environment: setting XRDP_PULSE_SOURCE_SOCKET=xrdp_chansrv_audio_in_socket_10
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
dbus-update-activation-environment: setting COMMAND_NOT_FOUND_INSTALL_PROMPT=1
dbus-update-activation-environment: setting PULSE_SCRIPT=/etc/xrdp/pulse/default.pa
dbus-update-activation-environment: setting QT_QPA_PLATFORMTHEME=qt5ct
dbus-update-activation-environment: setting LOGNAME=raggy
dbus-update-activation-environment: setting QT_AUTO_SCREEN_SCALE_FACTOR=0
dbus-update-activation-environment: setting XDG_SESSION_CLASS=user
dbus-update-activation-environment: setting PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/raggy/.dotnet/tools
dbus-update-activation-environment: setting _JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
dbus-update-activation-environment: setting XRDP_SOCKET_PATH=/run/xrdp/sockdir
dbus-update-activation-environment: setting XDG_RUNTIME_DIR=/run/user/1001
dbus-update-activation-environment: setting DISPLAY=:10.0
dbus-update-activation-environment: setting POWERSHELL_UPDATECHECK=Off
dbus-update-activation-environment: setting UID=1001
dbus-update-activation-environment: setting SHELL=/bin/bash
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting XRDP_SESSION=1
dbus-update-activation-environment: setting GPG_AGENT_INFO=/run/user/1001/gnupg/S.gpg-agent:0:1
dbus-update-activation-environment: setting PWD=/home/raggy
dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/
/usr/bin/x-session-manager: X server already running on display :10.0
xrdb: Connection refused
xrdb: Can't open display ':10.0'
xfce4-session: Cannot open display: .
Type 'xfce4-session --help' for usage.
+ date
+ echo Xsession: X session started for raggy at Tue Oct 15 08:29:23 EDT 2024
Xsession: X session started for raggy at Tue Oct 15 08:29:23 EDT 2024
+ [ ! -d /etc/X11/Xsession.d ]
+ mktemp
+ WRITE_TEST=/tmp/tmp.pw8sTVGgBj
+ echo *
+ rm -f /tmp/tmp.pw8sTVGgBj
+ run-parts --list /etc/X11/Xsession.d
+ SESSIONFILES=/etc/X11/Xsession.d/20dbus_xdg-runtime
/etc/X11/Xsession.d/20vdpau-va-gl
/etc/X11/Xsession.d/20x11-common_process-args
/etc/X11/Xsession.d/30x11-common_xresources
/etc/X11/Xsession.d/35x11-common_xhost-local
/etc/X11/Xsession.d/40x11-common_xsessionrc
/etc/X11/Xsession.d/50x11-common_determine-startup
/etc/X11/Xsession.d/55xfce4-session
/etc/X11/Xsession.d/75dbus_dbus-launch
/etc/X11/Xsession.d/90gpg-agent
/etc/X11/Xsession.d/90kali-themes
/etc/X11/Xsession.d/90qt-a11y
/etc/X11/Xsession.d/90x11-common_ssh-agent
/etc/X11/Xsession.d/90xbrlapi
/etc/X11/Xsession.d/95dbus_update-activation-env
/etc/X11/Xsession.d/99qt5ct
/etc/X11/Xsession.d/99x11-common_start
+ [ -n /etc/X11/Xsession.d/20dbus_xdg-runtime
/etc/X11/Xsession.d/20vdpau-va-gl
/etc/X11/Xsession.d/20x11-common_process-args
/etc/X11/Xsession.d/30x11-common_xresources
/etc/X11/Xsession.d/35x11-common_xhost-local
/etc/X11/Xsession.d/40x11-common_xsessionrc
/etc/X11/Xsession.d/50x11-common_determine-startup
/etc/X11/Xsession.d/55xfce4-session
/etc/X11/Xsession.d/75dbus_dbus-launch
/etc/X11/Xsession.d/90gpg-agent
/etc/X11/Xsession.d/90kali-themes
/etc/X11/Xsession.d/90qt-a11y
/etc/X11/Xsession.d/90x11-common_ssh-agent
/etc/X11/Xsession.d/90xbrlapi
/etc/X11/Xsession.d/95dbus_update-activation-env
/etc/X11/Xsession.d/99qt5ct
/etc/X11/Xsession.d/99x11-common_start ]
+ set +e
+ . /etc/X11/Xsession.d/20dbus_xdg-runtime
+ [ -z unix:path=/run/user/1001/bus ]
+ [ -x /usr/bin/dbus-update-activation-environment ]
+ dbus-update-activation-environment --verbose --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY XDG_CURRENT_DESKTOP
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
dbus-update-activation-environment: setting DISPLAY=
+ . /etc/X11/Xsession.d/20vdpau-va-gl
+ . /etc/X11/Xsession.d/20x11-common_process-args
+ . /etc/X11/Xsession.d/30x11-common_xresources
+ [ -d /etc/X11/Xresources ]
+ type xrdb
+ run-parts --list /etc/X11/Xresources
+ RESOURCEFILES=/etc/X11/Xresources/x11-common
+ [ -n /etc/X11/Xresources/x11-common ]
+ xrdb -merge /etc/X11/Xresources/x11-common
xrdb: Can't open display ''
+ has_option allow-user-resources
+ echo # $Id: Xsession.options 189 2005-06-11 00:04:27Z branden $
#
# configuration options for /etc/X11/Xsession
# See Xsession.options(5) for an explanation of the available options.
allow-failsafe
allow-user-resources
allow-user-xsession
use-ssh-agent
use-session-dbus
+ grep -Eo+  ^(no-)?allow-user-resources\>
tail -n 1
+ [ allow-user-resources = allow-user-resources ]
+ return 0
+ [ -f /home/raggy/.Xresources ]
+ . /etc/X11/Xsession.d/35x11-common_xhost-local
+ type xhost
+ id -un
+ xhost +si:localuser:raggy
xhost:  unable to open display ""
+ :
+ . /etc/X11/Xsession.d/40x11-common_xsessionrc
+ [ -r /home/raggy/.xsessionrc ]
+ . /etc/X11/Xsession.d/50x11-common_determine-startup
+ [ -z  ]
+ has_option allow-user-xsession
+ echo # $Id: Xsession.options 189 2005-06-11 00:04:27Z branden $
#
# configuration options for /etc/X11/Xsession
# See Xsession.options(5) for an explanation of the available options.
allow-failsafe
allow-user-resources
allow-user-xsession
use-ssh-agent
use-session-dbus
+ grep -Eo ^(no-)?allow-user-xsession\>
+ tail -n 1
+ [ allow-user-xsession = allow-user-xsession ]
+ return 0
+ [ -e /home/raggy/.xsession ]
+ [ -e /home/raggy/.Xsession ]
+ [ -z  ]
+ [ -x /usr/bin/x-session-manager ]
+ STARTUP=x-session-manager
+ [ -z x-session-manager ]
+ . /etc/X11/Xsession.d/55xfce4-session
+ basename x-session-manager
+ cut -d  -f1
+ BASESTARTUP=x-session-manager
+ [ x-session-manager = x-session-manager ]
+ readlink /etc/alternatives/x-session-manager
+ basename /usr/bin/startxfce4
+ BASESTARTUP=startxfce4
+ [ -z  ]
+ XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/
+ export XDG_DATA_DIRS
+ [ -n unix:path=/run/user/1001/bus ]
+ command -v dbus-update-activation-environment
+ dbus-update-activation-environment --verbose --systemd XDG_DATA_DIRS
dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/
+ . /etc/X11/Xsession.d/75dbus_dbus-launch
+ STARTDBUS=
+ DBUSLAUNCH=/usr/bin/dbus-launch
+ has_option use-session-dbus
+ echo # $Id: Xsession.options 189 2005-06-11 00:04:27Z branden $
#
# configuration options for /etc/X11/Xsession
# See Xsession.options(5) for an explanation of the available options.
allow-failsafe
allow-user-resources
allow-user-xsession
use-ssh-agent
use-session-dbus
+ grep -Eo ^(no-)?use-session-dbus\>
+ tail -n 1
+ [ use-session-dbus = use-session-dbus ]
+ return 0
+ [ -z unix:path=/run/user/1001/bus ]
+ [ -n  ]
+ . /etc/X11/Xsession.d/90gpg-agent
+ gpgconf --list-dirs agent-socket
+ agent_sock=/run/user/1001/gnupg/S.gpg-agent
+ export GPG_AGENT_INFO=/run/user/1001/gnupg/S.gpg-agent:0:1
+ gpgconf --list-options gpg-agent
+ awk -F: /^enable-ssh-support:/{ print $10 }
+ [ -n  ]
+ . /etc/X11/Xsession.d/90kali-themes
+ export QT_QPA_PLATFORMTHEME=qt5ct
+ export QT_AUTO_SCREEN_SCALE_FACTOR=0
+ export _JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
+ . /etc/X11/Xsession.d/90qt-a11y
+ QT_ACCESSIBILITY=1
+ export QT_ACCESSIBILITY
+ [ -x /usr/bin/dbus-update-activation-environment ]
+ dbus-update-activation-environment --verbose --systemd QT_ACCESSIBILITY
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
+ . /etc/X11/Xsession.d/90x11-common_ssh-agent
+ STARTSSH=
+ SSHAGENT=/usr/bin/ssh-agent
+ SSHAGENTARGS=
+ has_option use-ssh-agent
+ echo # $Id: Xsession.options 189 2005-06-11 00:04:27Z branden $
#
# configuration options for /etc/X11/Xsession
# See Xsession.options(5) for an explanation of the available options.
allow-failsafe
allow-user-resources
allow-user-xsession
use-ssh-agent
use-session-dbus
+ grep -Eo ^(no-)?use-ssh-agent\>
+ tail -n 1
+ [ use-ssh-agent = use-ssh-agent ]
+ return 0
+ [ -x /usr/bin/ssh-agent ]
+ [ -z  ]
+ STARTUP=/usr/bin/ssh-agent   x-session-manager
+ . /etc/X11/Xsession.d/90xbrlapi
+ prefix=
+ exec_prefix=
+ drivers_directory=/lib/brltty
+ program_directory=/bin
+ xbrlapi=/bin/xbrlapi
+ brltty=/bin/brltty
+ [ -x /bin/xbrlapi ]
+ /bin/xbrlapi
+ . /etc/X11/Xsession.d/95dbus_update-activation-env
+ [ -n unix:path=/run/user/1001/bus ]
+ [ -x /usr/bin/dbus-update-activation-environment ]
+ unset XDG_SEAT
+ unset XDG_SEAT_PATH
+ unset XDG_SESSION_ID
+ unset XDG_SESSION_PATH
+ unset XDG_VTNR
+ dbus-update-activation-environment --verbose --systemd --all
dbus-update-activation-environment: setting LESS_TERMCAP_se=
dbus-update-activation-environment: setting POWERSHELL_TELEMETRY_OPTOUT=1
dbus-update-activation-environment: setting USER=raggy
dbus-update-activation-environment: setting LESS_TERMCAP_ue=
dbus-update-activation-environment: setting SSH_CLIENT=192.168.0.163 29069 22
dbus-update-activation-environment: setting DOTNET_CLI_TELEMETRY_OPTOUT=1
dbus-update-activation-environment: setting XDG_SESSION_TYPE=tty
dbus-update-activation-environment: setting SHLVL=1
dbus-update-activation-environment: setting MOTD_SHOWN=pam
dbus-update-activation-environment: setting HOME=/home/raggy
dbus-update-activation-environment: setting SSH_TTY=/dev/pts/1
dbus-update-activation-environment: setting LESS_TERMCAP_so=
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
dbus-update-activation-environment: setting COMMAND_NOT_FOUND_INSTALL_PROMPT=1
dbus-update-activation-environment: setting QT_QPA_PLATFORMTHEME=qt5ct
dbus-update-activation-environment: setting LOGNAME=raggy
dbus-update-activation-environment: setting LESS_TERMCAP_us=
dbus-update-activation-environment: setting _=/usr/bin/sh
dbus-update-activation-environment: setting QT_AUTO_SCREEN_SCALE_FACTOR=0
dbus-update-activation-environment: setting XDG_SESSION_CLASS=user
dbus-update-activation-environment: setting TERM=xterm-256color
dbus-update-activation-environment: setting PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/raggy/.dotnet/tools
dbus-update-activation-environment: setting _JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
dbus-update-activation-environment: setting XDG_RUNTIME_DIR=/run/user/1001
dbus-update-activation-environment: setting DISPLAY=
dbus-update-activation-environment: setting POWERSHELL_UPDATECHECK=Off
dbus-update-activation-environment: setting LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90::ow=30;44:
dbus-update-activation-environment: setting SHELL=/bin/bash
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting LESS_TERMCAP_mb=
dbus-update-activation-environment: setting GPG_AGENT_INFO=/run/user/1001/gnupg/S.gpg-agent:0:1
dbus-update-activation-environment: setting LESS_TERMCAP_md=
dbus-update-activation-environment: setting PWD=/home/raggy
dbus-update-activation-environment: setting LESS_TERMCAP_me=
dbus-update-activation-environment: setting SSH_CONNECTION=192.168.0.163 29069 192.168.0.151 22
dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/
+ . /etc/X11/Xsession.d/99qt5ct
+ [ -z qt5ct ]
+ . /etc/X11/Xsession.d/99x11-common_start
+ exec /usr/bin/ssh-agent x-session-manager
/usr/bin/x-session-manager: Starting X server

/usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server
Authorization required, but no authorization protocol specified

xinit: giving up
xinit: unable to connect to X server: Resource temporarily unavailable
xinit: server error
Xsession: X session started for raggy at Tue Oct 15 08:31:58 EDT 2024
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
dbus-update-activation-environment: setting DISPLAY=:10.0
X connection to :10.0 broken (explicit kill or server shutdown).
xhost:  unable to open display ":10.0"
dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting POWERSHELL_TELEMETRY_OPTOUT=1
dbus-update-activation-environment: setting USER=raggy
dbus-update-activation-environment: setting DOTNET_CLI_TELEMETRY_OPTOUT=1
dbus-update-activation-environment: setting XDG_SESSION_TYPE=x11
dbus-update-activation-environment: setting HOME=/home/raggy
dbus-update-activation-environment: setting XRDP_PULSE_SINK_SOCKET=xrdp_chansrv_audio_out_socket_10
dbus-update-activation-environment: setting XRDP_PULSE_SOURCE_SOCKET=xrdp_chansrv_audio_in_socket_10
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
dbus-update-activation-environment: setting COMMAND_NOT_FOUND_INSTALL_PROMPT=1
dbus-update-activation-environment: setting PULSE_SCRIPT=/etc/xrdp/pulse/default.pa
dbus-update-activation-environment: setting QT_QPA_PLATFORMTHEME=qt5ct
dbus-update-activation-environment: setting LOGNAME=raggy
dbus-update-activation-environment: setting QT_AUTO_SCREEN_SCALE_FACTOR=0
dbus-update-activation-environment: setting XDG_SESSION_CLASS=user
dbus-update-activation-environment: setting PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/raggy/.dotnet/tools
dbus-update-activation-environment: setting _JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
dbus-update-activation-environment: setting XRDP_SOCKET_PATH=/run/xrdp/sockdir
dbus-update-activation-environment: setting XDG_RUNTIME_DIR=/run/user/1001
dbus-update-activation-environment: setting DISPLAY=:10.0
dbus-update-activation-environment: setting POWERSHELL_UPDATECHECK=Off
dbus-update-activation-environment: setting UID=1001
dbus-update-activation-environment: setting SHELL=/bin/bash
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting XRDP_SESSION=1
dbus-update-activation-environment: setting GPG_AGENT_INFO=/run/user/1001/gnupg/S.gpg-agent:0:1
dbus-update-activation-environment: setting PWD=/home/raggy
dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/
/usr/bin/x-session-manager: X server already running on display :10.0
xrdb: Connection refused
xrdb: Can't open display ':10.0'
xfce4-session: Cannot open display: .
Type 'xfce4-session --help' for usage.
Xsession: X session started for raggy at Tue Oct 15 08:34:02 EDT 2024
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
dbus-update-activation-environment: setting DISPLAY=:10.0
localuser:raggy being added to access control list
dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting POWERSHELL_TELEMETRY_OPTOUT=1
dbus-update-activation-environment: setting USER=raggy
dbus-update-activation-environment: setting DOTNET_CLI_TELEMETRY_OPTOUT=1
dbus-update-activation-environment: setting XDG_SESSION_TYPE=x11
dbus-update-activation-environment: setting HOME=/home/raggy
dbus-update-activation-environment: setting XRDP_PULSE_SINK_SOCKET=xrdp_chansrv_audio_out_socket_10
dbus-update-activation-environment: setting XRDP_PULSE_SOURCE_SOCKET=xrdp_chansrv_audio_in_socket_10
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
dbus-update-activation-environment: setting COMMAND_NOT_FOUND_INSTALL_PROMPT=1
dbus-update-activation-environment: setting PULSE_SCRIPT=/etc/xrdp/pulse/default.pa
dbus-update-activation-environment: setting QT_QPA_PLATFORMTHEME=qt5ct
dbus-update-activation-environment: setting LOGNAME=raggy
dbus-update-activation-environment: setting QT_AUTO_SCREEN_SCALE_FACTOR=0
dbus-update-activation-environment: setting XDG_SESSION_CLASS=user
dbus-update-activation-environment: setting PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/raggy/.dotnet/tools
dbus-update-activation-environment: setting _JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
dbus-update-activation-environment: setting XRDP_SOCKET_PATH=/run/xrdp/sockdir
dbus-update-activation-environment: setting XDG_RUNTIME_DIR=/run/user/1001
dbus-update-activation-environment: setting DISPLAY=:10.0
dbus-update-activation-environment: setting POWERSHELL_UPDATECHECK=Off
dbus-update-activation-environment: setting UID=1001
dbus-update-activation-environment: setting SHELL=/bin/bash
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting XRDP_SESSION=1
dbus-update-activation-environment: setting GPG_AGENT_INFO=/run/user/1001/gnupg/S.gpg-agent:0:1
dbus-update-activation-environment: setting PWD=/home/raggy
dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/
/usr/bin/x-session-manager: X server already running on display :10.0
xrdb: Connection refused
xrdb: Can't open display ':10.0'
xfce4-session: Cannot open display: .
Type 'xfce4-session --help' for usage.
+ date
+ echo Xsession: X session started for raggy at Tue Oct 15 08:34:19 EDT 2024
Xsession: X session started for raggy at Tue Oct 15 08:34:19 EDT 2024
+ [ ! -d /etc/X11/Xsession.d ]
+ mktemp
+ WRITE_TEST=/tmp/tmp.wY2g6KDbxD
+ echo *
+ rm -f /tmp/tmp.wY2g6KDbxD
+ run-parts --list /etc/X11/Xsession.d
+ SESSIONFILES=/etc/X11/Xsession.d/20dbus_xdg-runtime
/etc/X11/Xsession.d/20vdpau-va-gl
/etc/X11/Xsession.d/20x11-common_process-args
/etc/X11/Xsession.d/30x11-common_xresources
/etc/X11/Xsession.d/35x11-common_xhost-local
/etc/X11/Xsession.d/40x11-common_xsessionrc
/etc/X11/Xsession.d/50x11-common_determine-startup
/etc/X11/Xsession.d/55xfce4-session
/etc/X11/Xsession.d/75dbus_dbus-launch
/etc/X11/Xsession.d/90gpg-agent
/etc/X11/Xsession.d/90kali-themes
/etc/X11/Xsession.d/90qt-a11y
/etc/X11/Xsession.d/90x11-common_ssh-agent
/etc/X11/Xsession.d/90xbrlapi
/etc/X11/Xsession.d/95dbus_update-activation-env
/etc/X11/Xsession.d/99qt5ct
/etc/X11/Xsession.d/99x11-common_start
+ [ -n /etc/X11/Xsession.d/20dbus_xdg-runtime
/etc/X11/Xsession.d/20vdpau-va-gl
/etc/X11/Xsession.d/20x11-common_process-args
/etc/X11/Xsession.d/30x11-common_xresources
/etc/X11/Xsession.d/35x11-common_xhost-local
/etc/X11/Xsession.d/40x11-common_xsessionrc
/etc/X11/Xsession.d/50x11-common_determine-startup
/etc/X11/Xsession.d/55xfce4-session
/etc/X11/Xsession.d/75dbus_dbus-launch
/etc/X11/Xsession.d/90gpg-agent
/etc/X11/Xsession.d/90kali-themes
/etc/X11/Xsession.d/90qt-a11y
/etc/X11/Xsession.d/90x11-common_ssh-agent
/etc/X11/Xsession.d/90xbrlapi
/etc/X11/Xsession.d/95dbus_update-activation-env
/etc/X11/Xsession.d/99qt5ct
/etc/X11/Xsession.d/99x11-common_start ]
+ set +e
+ . /etc/X11/Xsession.d/20dbus_xdg-runtime
+ [ -z unix:path=/run/user/1001/bus ]
+ [ -x /usr/bin/dbus-update-activation-environment ]
+ dbus-update-activation-environment --verbose --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY XDG_CURRENT_DESKTOP
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
dbus-update-activation-environment: setting DISPLAY=
+ . /etc/X11/Xsession.d/20vdpau-va-gl
+ . /etc/X11/Xsession.d/20x11-common_process-args
+ . /etc/X11/Xsession.d/30x11-common_xresources
+ [ -d /etc/X11/Xresources ]
+ type xrdb
+ run-parts --list /etc/X11/Xresources
+ RESOURCEFILES=/etc/X11/Xresources/x11-common
+ [ -n /etc/X11/Xresources/x11-common ]
+ xrdb -merge /etc/X11/Xresources/x11-common
xrdb: Can't open display ''
+ has_option allow-user-resources
+ echo # $Id: Xsession.options 189 2005-06-11 00:04:27Z branden $
#
# configuration options for /etc/X11/Xsession
# See Xsession.options(5) for an explanation of the available options.
allow-failsafe
allow-user-resources
allow-user-xsession
use-ssh-agent
use-session-dbus
+ grep -Eo ^(no-)?allow-user-resources\>
+ tail -n 1
+ [ allow-user-resources = allow-user-resources ]
+ return 0
+ [ -f /home/raggy/.Xresources ]
+ . /etc/X11/Xsession.d/35x11-common_xhost-local
+ type xhost
+ id -un
+ xhost +si:localuser:raggy
xhost:  unable to open display ""
+ :
+ . /etc/X11/Xsession.d/40x11-common_xsessionrc
+ [ -r /home/raggy/.xsessionrc ]
+ . /etc/X11/Xsession.d/50x11-common_determine-startup
+ [ -z  ]
+ has_option allow-user-xsession
+ echo # $Id: Xsession.options 189 2005-06-11 00:04:27Z branden $
#
# configuration options for /etc/X11/Xsession
# See Xsession.options(5) for an explanation of the available options.
allow-failsafe
allow-user-resources
allow-user-xsession
use-ssh-agent
use-session-dbus
+ + grep -Eo ^(no-)?allow-user-xsession\>
tail -n 1
+ [ allow-user-xsession = allow-user-xsession ]
+ return 0
+ [ -e /home/raggy/.xsession ]
+ [ -e /home/raggy/.Xsession ]
+ [ -z  ]
+ [ -x /usr/bin/x-session-manager ]
+ STARTUP=x-session-manager
+ [ -z x-session-manager ]
+ . /etc/X11/Xsession.d/55xfce4-session
+ basename x-session-manager
+ cut -d  -f1
+ BASESTARTUP=x-session-manager
+ [ x-session-manager = x-session-manager ]
+ readlink /etc/alternatives/x-session-manager
+ basename /usr/bin/startxfce4
+ BASESTARTUP=startxfce4
+ [ -z  ]
+ XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/
+ export XDG_DATA_DIRS
+ [ -n unix:path=/run/user/1001/bus ]
+ command -v dbus-update-activation-environment
+ dbus-update-activation-environment --verbose --systemd XDG_DATA_DIRS
dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/
+ . /etc/X11/Xsession.d/75dbus_dbus-launch
+ STARTDBUS=
+ DBUSLAUNCH=/usr/bin/dbus-launch
+ has_option use-session-dbus
+ echo # $Id: Xsession.options 189 2005-06-11 00:04:27Z branden $
#
# configuration options for /etc/X11/Xsession
# See Xsession.options(5) for an explanation of the available options.
allow-failsafe
allow-user-resources
allow-user-xsession
use-ssh-agent
use-session-dbus
+ grep -Eo ^(no-)?use-session-dbus\>
+ tail -n 1
+ [ use-session-dbus = use-session-dbus ]
+ return 0
+ [ -z unix:path=/run/user/1001/bus ]
+ [ -n  ]
+ . /etc/X11/Xsession.d/90gpg-agent
+ gpgconf --list-dirs agent-socket
+ agent_sock=/run/user/1001/gnupg/S.gpg-agent
+ export GPG_AGENT_INFO=/run/user/1001/gnupg/S.gpg-agent:0:1
+ gpgconf --list-options gpg-agent
+ awk -F: /^enable-ssh-support:/{ print $10 }
+ [ -n  ]
+ . /etc/X11/Xsession.d/90kali-themes
+ export QT_QPA_PLATFORMTHEME=qt5ct
+ export QT_AUTO_SCREEN_SCALE_FACTOR=0
+ export _JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
+ . /etc/X11/Xsession.d/90qt-a11y
+ QT_ACCESSIBILITY=1
+ export QT_ACCESSIBILITY
+ [ -x /usr/bin/dbus-update-activation-environment ]
+ dbus-update-activation-environment --verbose --systemd QT_ACCESSIBILITY
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
+ . /etc/X11/Xsession.d/90x11-common_ssh-agent
+ STARTSSH=
+ SSHAGENT=/usr/bin/ssh-agent
+ SSHAGENTARGS=
+ has_option use-ssh-agent
+ echo # $Id: Xsession.options 189 2005-06-11 00:04:27Z branden $
#
# configuration options for /etc/X11/Xsession
# See Xsession.options(5) for an explanation of the available options.
allow-failsafe
allow-user-resources
allow-user-xsession
use-ssh-agent
use-session-dbus
+ grep -Eo ^(no-)?use-ssh-agent\>
+ tail -n 1
+ [ use-ssh-agent = use-ssh-agent ]
+ return 0
+ [ -x /usr/bin/ssh-agent ]
+ [ -z  ]
+ STARTUP=/usr/bin/ssh-agent   x-session-manager
+ . /etc/X11/Xsession.d/90xbrlapi
+ prefix=
+ exec_prefix=
+ drivers_directory=/lib/brltty
+ program_directory=/bin
+ xbrlapi=/bin/xbrlapi
+ brltty=/bin/brltty
+ [ -x /bin/xbrlapi ]
+ /bin/xbrlapi
+ . /etc/X11/Xsession.d/95dbus_update-activation-env
+ [ -n unix:path=/run/user/1001/bus ]
+ [ -x /usr/bin/dbus-update-activation-environment ]
+ unset XDG_SEAT
+ unset XDG_SEAT_PATH
+ unset XDG_SESSION_ID
+ unset XDG_SESSION_PATH
+ unset XDG_VTNR
+ dbus-update-activation-environment --verbose --systemd --all
dbus-update-activation-environment: setting LESS_TERMCAP_se=
dbus-update-activation-environment: setting POWERSHELL_TELEMETRY_OPTOUT=1
dbus-update-activation-environment: setting USER=raggy
dbus-update-activation-environment: setting LESS_TERMCAP_ue=
dbus-update-activation-environment: setting SSH_CLIENT=192.168.0.163 29069 22
dbus-update-activation-environment: setting DOTNET_CLI_TELEMETRY_OPTOUT=1
dbus-update-activation-environment: setting XDG_SESSION_TYPE=tty
dbus-update-activation-environment: setting SHLVL=1
dbus-update-activation-environment: setting MOTD_SHOWN=pam
dbus-update-activation-environment: setting HOME=/home/raggy
dbus-update-activation-environment: setting SSH_TTY=/dev/pts/1
dbus-update-activation-environment: setting LESS_TERMCAP_so=
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
dbus-update-activation-environment: setting COMMAND_NOT_FOUND_INSTALL_PROMPT=1
dbus-update-activation-environment: setting QT_QPA_PLATFORMTHEME=qt5ct
dbus-update-activation-environment: setting LOGNAME=raggy
dbus-update-activation-environment: setting LESS_TERMCAP_us=
dbus-update-activation-environment: setting _=/usr/bin/sh
dbus-update-activation-environment: setting QT_AUTO_SCREEN_SCALE_FACTOR=0
dbus-update-activation-environment: setting XDG_SESSION_CLASS=user
dbus-update-activation-environment: setting TERM=xterm-256color
dbus-update-activation-environment: setting PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/raggy/.dotnet/tools
dbus-update-activation-environment: setting _JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
dbus-update-activation-environment: setting XDG_RUNTIME_DIR=/run/user/1001
dbus-update-activation-environment: setting DISPLAY=
dbus-update-activation-environment: setting POWERSHELL_UPDATECHECK=Off
dbus-update-activation-environment: setting LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90::ow=30;44:
dbus-update-activation-environment: setting SHELL=/bin/bash
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting LESS_TERMCAP_mb=
dbus-update-activation-environment: setting GPG_AGENT_INFO=/run/user/1001/gnupg/S.gpg-agent:0:1
dbus-update-activation-environment: setting LESS_TERMCAP_md=
dbus-update-activation-environment: setting PWD=/home/raggy
dbus-update-activation-environment: setting LESS_TERMCAP_me=
dbus-update-activation-environment: setting SSH_CONNECTION=192.168.0.163 29069 192.168.0.151 22
dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/
+ . /etc/X11/Xsession.d/99qt5ct
+ [ -z qt5ct ]
+ . /etc/X11/Xsession.d/99x11-common_start
+ exec /usr/bin/ssh-agent x-session-manager
/usr/bin/x-session-manager: Starting X server

(EE)
Fatal server error:
(EE) Server is already active for display 0
        If this server is no longer running, remove /tmp/.X0-lock
        and start again.
(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE)
Authorization required, but no authorization protocol specified

xinit: giving up
xinit: unable to connect to X server: Resource temporarily unavailable
xinit: server error
KitefanaticNL commented 1 week ago

Hi Haxxoor,

We had the same problem. We checked with a kali system that did not have those changes yet, and the solution for now was to download an old package of xorgxrdp and install that again. Now we are able to login again.

The updated version was xorgxrdp 0.10.2-1 The reverted version is: 0.9.19-1, can be downloaded with:

wget http://ftp.de.debian.org/debian/pool/main/x/xorgxrdp/xorgxrdp_0.9.19-1_amd64.deb

Then install it with sudo dpkg -i xorgxrdp_0.9.19-1_amd64.deb

Hopefully this will help to get a solution

I know this is not the solution, but for now for us its a workaround.

Haxxxoor commented 1 week ago

xorgxrdp_0.9.19-1

Thanks. I just spun up a vm to test and it worked. I was going to do the same thing but my box that hasnt been turned on for a while wont turn on :(

also put sudo apt-mark hold xorgxrdp to prevent the issue again. Thanks all!

vlan-singularity commented 6 days ago

Having identical issues with 3 of my kali boxes on hard metal. One wasnt updated and worked until I just now updated the system, using their bleeding edge repo. I can't RDP into that one now either, the update I can confirm seems to be the issue.

SieBRUM commented 6 days ago

Hi Haxxoor,

We had the same problem. We checked with a kali system that did not have those changes yet, and the solution for now was to download an old package of xorgxrdp and install that again. Now we are able to login again.

The updated version was xorgxrdp 0.10.2-1 The reverted version is: 0.9.19-1, can be downloaded with:

wget http://ftp.de.debian.org/debian/pool/main/x/xorgxrdp/xorgxrdp_0.9.19-1_amd64.deb

Then install it with sudo dpkg -i xorgxrdp_0.9.19-1_amd64.deb

Hopefully this will help to get a solution

I know this is not the solution, but for now for us its a workaround.

You are a lifesaver. Was running Kali in an Azure environment and trying to connect to it using a Guacamole host. It worked months but suddenly stopped working. This fixed it!

matt335672 commented 6 days ago

Thanks @KitefanaticNL

I see someone has raised an issue on the Kali bug tracker:-

https://bugs.kali.org/view.php?id=8958

Do any of you know how the link from Kali back to Debian works? Issue #1076815 which is linked on the Kali report is not relevant to this particular fault.

KitefanaticNL commented 5 days ago

Thanks @KitefanaticNL

I see someone has raised an issue on the Kali bug tracker:-

https://bugs.kali.org/view.php?id=8958

Do any of you know how the link from Kali back to Debian works? Issue #1076815 which is linked on the Kali report is not relevant to this particular fault.

Hi Matt,

Is the Question: Why does a Debian package work on Kali? Then the answer is, we just searched for an old package of xorgxrdp, and Kali is Debian based. So we tried it.

matt335672 commented 5 days ago

The question is more about quality assurance,

How do faults in Debian packages on Kali get reported back to Debian? Do you just use the Debian BTS?

KitefanaticNL commented 5 days ago

The question is more about quality assurance,

How do faults in Debian packages on Kali get reported back to Debian? Do you just use the Debian BTS?

Sorry can't help you there, I really don't know.

matt335672 commented 5 days ago

I've had a look at this with a recent Kali rolling (2024.3 2024-10-17) running XFCE.

Firstly I set up a virgin VM running the ssh server and no other software. This was snapshotted so I could try different scenarios.

Scenario 1 : Clean update

I installed xrdp and xrdp from the repo using sudo apt install xrdp xorgxrdp resulting in the following additional packages:-

Get:1 http://mirror.vinehost.net/kali kali-rolling/main amd64 xrdp amd64 0.9.24-5 [497 kB]
Get:2 http://kali.download/kali kali-rolling/main amd64 libpipewire-0.3-modules-xrdp amd64 0.2-2 [19.0 kB]
Get:3 http://kali.download/kali kali-rolling/main amd64 pipewire-module-xrdp all 0.2-2 [4,188 B]
Get:4 http://http.kali.org/kali kali-rolling/main amd64 xorgxrdp amd64 1:0.10.2+really0.9.19-0kali1 [62.5 kB]

Service enabled with sudo systemctl enable --now xrdp. All works well.

I then logged out my test user, and got the latest Debian testing packages with :-

wget http://ftp.de.debian.org/debian/pool/main/x/xrdp/xrdp_0.10.1-3_amd64.deb
wget http://ftp.de.debian.org/debian/pool/main/x/xorgxrdp/xorgxrdp_0.10.2-1_amd64.deb
sudo dpkg -i xrdp_0.10.1-3_amd64.deb xorgxrdp_0.10.2-1_amd64.deb
sudo systemctl restart xrdp

That all worked fine. The new version connected with TLS rather than RDP security.

Scenario 2 : Broken update

This doesn't work well, and results in a situation identical to that reported by @Haxxxoor above.

1) Install xrdp and xrdp from the repo using sudo apt install xrdp xorgxrdp 2) Log in test user to check all is working fine (it is). 3) Leave the test user logged in, and (as before):-

   wget http://ftp.de.debian.org/debian/pool/main/x/xrdp/xrdp_0.10.1-3_amd64.deb
   wget http://ftp.de.debian.org/debian/pool/main/x/xorgxrdp/xorgxrdp_0.10.2-1_amd64.deb
   sudo dpkg -i xrdp_0.10.1-3_amd64.deb xorgxrdp_0.10.2-1_amd64.deb
   sudo systemctl restart xrdp

The only difference in these two scenarios is that there is an active xrdp user in scenario 2 (broken update).

Analysis of broken system

Further info can be got by adding export XFSM_VERBOSE=1 to /etc/xrdp/startwm.sh. That results in an additional log file ~/.xfce4-session.verbose-log containing the following:-

log file opened
TRACE[xfsm-properties.c:499] xfsm_properties_set_string(): -> Set string (Program, xfwm4)
TRACE[xfsm-properties.c:533] xfsm_properties_set_strv(): -> Set strv (RestartCommand)
TRACE[xfsm-properties.c:565] xfsm_properties_set_uchar(): -> Set uchar (_GSM_Priority, 15)
TRACE[xfsm-properties.c:499] xfsm_properties_set_string(): -> Set string (Program, xfsettingsd)
TRACE[xfsm-properties.c:533] xfsm_properties_set_strv(): -> Set strv (RestartCommand)
TRACE[xfsm-properties.c:565] xfsm_properties_set_uchar(): -> Set uchar (_GSM_Priority, 20)
TRACE[xfsm-properties.c:499] xfsm_properties_set_string(): -> Set string (Program, xfce4-panel)
TRACE[xfsm-properties.c:533] xfsm_properties_set_strv(): -> Set strv (RestartCommand)
TRACE[xfsm-properties.c:565] xfsm_properties_set_uchar(): -> Set uchar (_GSM_Priority, 25)
TRACE[xfsm-properties.c:499] xfsm_properties_set_string(): -> Set string (Program, Thunar)
TRACE[xfsm-properties.c:533] xfsm_properties_set_strv(): -> Set strv (RestartCommand)
TRACE[xfsm-properties.c:565] xfsm_properties_set_uchar(): -> Set uchar (_GSM_Priority, 30)
TRACE[xfsm-properties.c:499] xfsm_properties_set_string(): -> Set string (Program, xfdesktop)
TRACE[xfsm-properties.c:533] xfsm_properties_set_strv(): -> Set strv (RestartCommand)
TRACE[xfsm-properties.c:565] xfsm_properties_set_uchar(): -> Set uchar (_GSM_Priority, 35)
TRACE[xfsm-startup.c:512] xfsm_startup_begin(): Starting the session in failsafe mode.
TRACE[xfsm-startup.c:637] xfsm_startup_session_next_prio_group(): Starting apps in prio group 15
 (5)TRACE[xfsm-startup.c:564] xfsm_startup_start_properties(): Launching command "xfwm4" with PID 4185
TRACE[main.c:214] name_lost(): name_lost
TRACE[main.c:228] name_lost(): Disconnected from D-Bus

What is happening here is:-

1) When the upgraded xrdp-sesman is restarted, the existing session continues running but sesman ends up forgetting all about it - this is a long-standing bug (#800) 2) The user logs in and starts a new session. This runs as normal up to the point where xfce4-session is called. However, when xfce4-session tries to claim the DBus name org.xfce.SessionManager, the existing session doesn't allow this to happen. Consequently xrce4-session exits. Code links:- https://github.com/xfce-mirror/xfce4-session/blob/7333c5659021e2d1f0da67f895e4066068ac948d/xfce4-session/main.c#L283 https://github.com/xfce-mirror/xfce4-session/blob/7333c5659021e2d1f0da67f895e4066068ac948d/xfce4-session/main.c#L212

Recovery

A reboot fixes this.

Would someone in this thread care to try to reproduce this?

TLDR; There's nothing wrong with the Debian packages, but the major version upgrade doesn't work at all smoothly - it requires a reboot to fix things.

matt335672 commented 5 days ago

For my own benefit, the following command is useful in diagnosing a session collision like this:-

busctl --user list | grep xfce
KitefanaticNL commented 4 days ago

Hi Matt,

I tried your method: wget http://ftp.de.debian.org/debian/pool/main/x/xrdp/xrdp_0.10.1-3_amd64.deb wget http://ftp.de.debian.org/debian/pool/main/x/xorgxrdp/xorgxrdp_0.10.2-1_amd64.deb sudo dpkg -i xrdp_0.10.1-3_amd64.deb xorgxrdp_0.10.2-1_amd64.deb sudo systemctl restart xrdp

This works until you try updating kali again, then its wants to overwrite the installed package:

Hit:1 https://packages.microsoft.com/debian/12/prod bookworm InRelease Hit:2 https://packages.microsoft.com/repos/code stable InRelease
Hit:3 https://http.kali.org/kali kali-rolling InRelease
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Notice: Repository 'Kali Linux' changed its 'non-free component' value from 'non-free' to 'non-free non-free-firmware' Notice: More information about this can be found online at: https://www.kali.org/blog/non-free-firmware-transition/

sudo apt list --upgradable xorgxrdp/kali-rolling 1:0.10.2+really0.9.19-0kali1 amd64 [upgradable from: 1:0.10.2-1]

after the reboot of the system or using the systemctl command, it is broken again. After repeating your method above it does work again, but the package update will still there and messing things up (infinite loop)

For now we used the command sudo apt-mark hold xorgxrdp to easily update the instances

extra note: this only works with an SSH session, if you use the above method with RDP everything breaks, because RDP needs te be rebooted.

matt335672 commented 4 days ago

That sounds pretty consistent with what I expected.

Judging by the name 1:0.10.2+really0.9.19-0kali1 this is going to need some intervention from the Kali packagers to make work, at least for this version of xorgxrdp.