neutrinolabs / xrdp

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

Can't start the Xorg session --- Arch Linux #2569

Closed InverseDa closed 1 year ago

InverseDa commented 1 year ago

Hi there! Recently I have a need for windows OS to remote Arch Linux gnome desktop. But there are some troubles.

paru -S xrdp xorgxrdp pulseaudio-module-xrdp

After installed xrdp, xorgxrdp and pulseaudio-module-xrdp. I start the xrdp.service and xrdp-sesman.service. Then I try to remote Arch Linux Gnome Desktop. After I login via Xorg, It seems no any responses. Stucking in the blue screen.

Here's my /var/log/xrdp.log

[20230228-13:36:04] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:127.0.0.1 port 39948
[20230228-13:36:04] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20230228-13:36:04] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20230228-13:36:04] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SSL]
[20230228-13:36:11] [INFO ] Connected client computer name: idsmac
[20230228-13:36:11] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
[20230228-13:36:11] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
[20230228-13:36:12] [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000000]
[20230228-13:36:12] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options []
[20230228-13:36:12] [INFO ] TLS connection established from ::ffff:127.0.0.1 port 39948: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384
[20230228-13:36:12] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
[20230228-13:36:12] [INFO ] xrdp_process_offscreen_bmpcache: support level 0 cache size 0 MB cache entries 0
[20230228-13:36:12] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
[20230228-13:36:12] [WARN ] Cannot find keymap file /etc/xrdp/km-00000000.ini
[20230228-13:36:12] [WARN ] Cannot find keymap file /etc/xrdp/km-00000000.ini
[20230228-13:36:12] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20230228-13:36:12] [WARN ] local keymap file for 0x00000000 found and doesn't match built in keymap, using local keymap file
[20230228-13:36:12] [INFO ] connecting to sesman on 127.0.0.1:3350
[20230228-13:36:12] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20230228-13:36:12] [INFO ] sesman connect ok
[20230228-13:36:12] [INFO ] sending login info to session manager. Please wait...
[20230228-13:36:12] [INFO ] xrdp_wm_log_msg: login successful for user rdp on display 10
[20230228-13:36:12] [INFO ] login successful for user rdp on display 10
[20230228-13:36:12] [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
[20230228-13:36:12] [INFO ] started connecting
[20230228-13:36:12] [INFO ] lib_mod_connect: connecting via UNIX socket
[20230228-13:39:42] [INFO ] connection problem, giving up
[20230228-13:39:42] [INFO ] some problem
[20230228-13:39:42] [ERROR] xrdp_wm_log_msg: Error connecting to user session
[20230228-13:39:42] [INFO ] Error connecting to user session

/var/log/xrdp-sesman.log:

[20230228-13:36:12] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 44092
[20230228-13:36:12] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20230228-13:36:12] [INFO ] ++ created session (access granted): username rdp, ip ::ffff:127.0.0.1:39948 - socket: 12
[20230228-13:36:12] [INFO ] starting Xorg session...
[20230228-13:36:12] [INFO ] Starting session: session_pid 35192, display :10.0, width 1440, height 900, bpp 24, client ip ::ffff:127.0.0.1:39948 - socket: 12, user name rdp
[20230228-13:36:12] [ERROR] sesman_data_in: scp_process_msg failed
[20230228-13:36:12] [INFO ] [session start] (display 10): calling auth_start_session from pid 35192
[20230228-13:36:12] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20230228-13:36:12] [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log  
[20230228-13:36:22] [WARN ] Timed out waiting for X server on display 10 to startup
[20230228-13:36:22] [INFO ] Session started successfully for user rdp on display 10
[20230228-13:36:22] [INFO ] Session in progress on display 10, waiting until the window manager (pid 35193) exits to end the session
[20230228-13:36:22] [INFO ] Starting the xrdp channel server for display 10
[20230228-13:36:22] [WARN ] Timed out waiting for X server on display 10 to startup
[20230228-13:36:22] [ERROR] There is no X server active on display 10
[20230228-13:36:22] [ERROR] A fatal error has occurred attempting to start the window manager on display 10, aborting connection
[20230228-13:36:22] [WARN ] Window manager (pid 35193, display 10) exited quickly (0 secs). This could indicate a window manager config problem
[20230228-13:36:22] [INFO ] Calling auth_stop_session and auth_end from pid 35192
[20230228-13:36:22] [INFO ] Terminating X server (pid 35194) on display 10
[20230228-13:36:22] [INFO ] Terminating the xrdp channel server (pid 35196) on display 10
[20230228-13:36:22] [INFO ] X server on display 10 (pid 35194) returned exit code 1 and signal number 0
[20230228-13:36:22] [INFO ] xrdp channel server for display 10 (pid 35196) exit code 0 and signal number 0
[20230228-13:36:22] [INFO ] cleanup_sockets:
[20230228-13:36:22] [INFO ] Process 35192 has exited
[20230228-13:36:22] [INFO ] ++ terminated session:  username rdp, display :10.0, session_pid 35192, ip ::ffff:127.0.0.1:39948 - socket: 12

Here's my configuration of xrdp and xrdp-sesman: /etc/xrdp/xrdp.ini

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

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

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

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

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

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

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

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

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

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

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

; concats the domain name to the user if set for authentication with the separator
; for example when the server is multi homed with SSSd
#domain_user_separator=@

; The following options will override the keyboard layout settings.
; These options are for DEBUG and are not recommended for regular use.
#xrdp.override_keyboard_type=0x04
#xrdp.override_keyboard_subtype=0x01
#xrdp.override_keylayout=0x00000409

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

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

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

;
; configure login screen
;

; Login Screen Window Title
#ls_title=My Login Title

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

; width and height of login screen
;
; The default height allows for about 5 fields to be comfortably displayed
; above the buttons at the bottom. To display more fields, make <ls_height>
; larger, and also increase <ls_btn_ok_y_pos> and <ls_btn_cancel_y_pos>
; below
;
ls_width=350
ls_height=430

; login screen background color in RGB format
ls_bg_color=dedede

; optional background image filename. BMP format is always supported,
; but other formats will be supported if xrdp is build with imlib2
; The transform can be one of the following:-
;     none  : No transformation. Image is placed in bottom-right corner
;             of the screen.
;     scale : Image is scaled to the screen size. The image aspect
;             ratio is not preserved.
;     zoom  : Image is scaled to the screen size. The image aspect
;             ratio is preserved by clipping the image.
#ls_background_image=
#ls_background_transform=none

; logo
; full path to file or file in shared folder. BMP format is always supported,
; but other formats will be supported if xrdp is build with imlib2
; For transform values, see 'ls_background_transform'. The logo width and
; logo height are ignored for a transform of 'none'.
ls_logo_filename=
#ls_logo_transform=none
#ls_logo_width=240
#ls_logo_height=140
ls_logo_x_pos=55
ls_logo_y_pos=50

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

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

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

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

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

[Logging]
; Note: Log levels can be any of: core, error, warning, info, debug, or trace
LogFile=xrdp.log
LogLevel=INFO
EnableSyslog=true
#SyslogLevel=INFO
#EnableConsole=false
#ConsoleLevel=INFO
#EnableProcessId=false

[LoggingPerLogger]
; Note: per logger configuration is only used if xrdp is built with
; --enable-devel-logging
#xrdp.c=INFO
#main()=INFO

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

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

;
; Session types
;

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

[Xvnc]
name=Xvnc
lib=libvnc.so
username=ask
password=ask
ip=127.0.0.1
port=-1
#xserverbpp=24
#delay_ms=2000
; Disable requested encodings to support buggy VNC servers
; (1 = ExtendedDesktopSize)
#disabled_encodings_mask=0
; Use this to connect to a chansrv instance created outside of sesman
; (e.g. as part of an x11vnc console session). Replace '0' with the
; display number of the session
#chansrvport=DISPLAY(0)

; Generic VNC Proxy
; Tailor this to specific hosts and VNC instances by specifying an ip
; and port and setting a suitable name.
[vnc-any]
name=vnc-any
lib=libvnc.so
ip=ask
port=ask5900
username=na
password=ask
#pamusername=asksame
#pampassword=asksame
#pamsessionmng=127.0.0.1
#delay_ms=2000

; Generic RDP proxy using NeutrinoRDP
; Tailor this to specific hosts by specifying an ip and port and setting
; a suitable name.
[neutrinordp-any]
name=neutrinordp-any
; To use this section, you should build xrdp with configure option
; --enable-neutrinordp.
lib=libxrdpneutrinordp.so
ip=ask
port=ask3389
username=ask
password=ask
; Uncomment the following lines to enable PAM authentication for proxy
; connections.
#pamusername=ask
#pampassword=ask
#pamsessionmng=127.0.0.1
; Currently NeutrinoRDP doesn't support dynamic resizing. Uncomment
; this line if you're using a client which does.
#enable_dynamic_resizing=false
; By default, performance settings requested by the RDP client are ignored
; and chosen by NeutrinoRDP. Uncomment this line to allow the user to
; select performance settings in the RDP client.
#perf.allow_client_experiencesettings=true
; Override any experience setting by uncommenting one or more of the
; following lines.
#perf.wallpaper=false
#perf.font_smoothing=false
#perf.desktop_composition=false
#perf.full_window_drag=false
#perf.menu_anims=false
#perf.themes=false
#perf.cursor_blink=false
; By default NeutrinoRDP supports cursor shadows. If this is giving
; you problems (e.g. cursor is a black rectangle) try disabling cursor
; shadows by uncommenting the following line.
#perf.cursor_shadow=false
; By default, NeutrinoRDP uses the keyboard layout of the remote RDP Server.
; If you want to tell the remote the keyboard layout of the RDP Client,
; by uncommenting the following line.
#neutrinordp.allow_client_keyboardLayout=true
; The following options will override the remote keyboard layout settings.
; These options are for DEBUG and are not recommended for regular use.
#neutrinordp.override_keyboardLayout_mask=0x0000FFFF
#neutrinordp.override_kbd_type=0x04
#neutrinordp.override_kbd_subtype=0x01
#neutrinordp.override_kbd_fn_keys=12
#neutrinordp.override_kbd_layout=0x00000409

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

/etc/xrdp/sesman.ini

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

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

[Security]
AllowRootLogin=true
MaxLoginRetry=4
; TerminalServerUsers=tsusers
TerminalServerAdmins=tsadmins
; When AlwaysGroupCheck=false access will be permitted
; if the group TerminalServerUsers is not defined.
AlwaysGroupCheck=false
; When RestrictOutboundClipboard=all clipboard from the
; server is not pushed to the client.
; In addition, you can control text/file/image transfer restrictions
; respectively. It also accepts comma separated list such as text,file,image.
; To keep compatibility, some aliases are also available:
;   true: an alias of all
;   false: an alias of none
;   yes: an alias of all
RestrictOutboundClipboard=none
; When RestrictInboundClipboard=all clipboard from the
; client is not pushed to the server.
; In addition, you can control text/file/image transfer restrictions
; respectively. It also accepts comma separated list such as text,file,image.
; To keep compatibility, some aliases are also available:
;   true: an alias of all
;   false: an alias of none
;   yes: an alias of all
RestrictInboundClipboard=none

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

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

;; KillDisconnected - kill disconnected sessions
; Type: boolean
; Default: false
; if 1, true, or yes, every session will be killed within DisconnectedTimeLimit
; seconds after the user disconnects
KillDisconnected=false

;; DisconnectedTimeLimit (seconds) - wait before kill disconnected sessions
; Type: integer
; Default: 0
; if KillDisconnected is set to false, this value is ignored
DisconnectedTimeLimit=0

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

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

[Logging]
; Note: Log levels can be any of: core, error, warning, info, debug, or trace
LogFile=xrdp-sesman.log
LogLevel=INFO
EnableSyslog=true
#SyslogLevel=INFO
#EnableConsole=false
#ConsoleLevel=INFO
#EnableProcessId=false

[LoggingPerLogger]
; Note: per logger configuration is only used if xrdp is built with
; --enable-devel-logging
#sesman.c=INFO
#main()=INFO

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

[Xorg]
; Specify the path of non-suid Xorg executable. It might differ depending
; on your distribution and version. Find out the appropriate path for your
; environment. The typical path is known as follows:
;
; Fedora 26 or later    :  param=/usr/libexec/Xorg
; Debian 9 or later     :  param=/usr/lib/xorg/Xorg
; Ubuntu 16.04 or later :  param=/usr/lib/xorg/Xorg
; Arch Linux            :  param=/usr/lib/Xorg
; CentOS 7              :  param=/usr/bin/Xorg or param=Xorg
; CentOS 8              :  param=/usr/libexec/Xorg
; FreeBSD (from 2022Q4) :  param=/usr/local/libexec/Xorg
;
param=/usr/lib/Xorg
; Leave the rest parameters as-is unless you understand what will happen.
param=-config
param=xrdp/xorg.conf
param=-noreset
param=-nolisten
param=tcp
param=-logfile
param=.xorgxrdp.%s.log

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

[Chansrv]
; drive redirection
; See sesman.ini(5) for the format of this parameter
#FuseMountName=/run/user/%u/thinclient_drives
#FuseMountName=/media/thinclient_drives/%U/thinclient_drives
FuseMountName=thinclient_drives
; this value allows only the user to access their own mapped drives.
; Make this more permissive (e.g. 022) if required.
FileUmask=077
; Can be used to disable FUSE functionality - see sesman.ini(5)
#EnableFuseMount=false
; Uncomment this line only if you are using GNOME 3 versions 3.29.92
; and up, and you wish to cut-paste files between Nautilus and Windows. Do
; not use this setting for GNOME 4, or other file managers
#UseNautilus3FlistFormat=true

[ChansrvLogging]
; Note: one log file is created per display and the LogFile config value
; is ignored. The channel server log file names follow the naming convention:
; xrdp-chansrv.${DISPLAY}.log
;
; Note: Log levels can be any of: core, error, warning, info, debug, or trace
LogLevel=INFO
EnableSyslog=true
#SyslogLevel=INFO
#EnableConsole=false
#ConsoleLevel=INFO
#EnableProcessId=false

[ChansrvLoggingPerLogger]
; Note: per logger configuration is only used if xrdp is built with
; --enable-devel-logging
#chansrv.c=INFO
#main()=INFO

[SessionVariables]
PULSE_SCRIPT=/etc/xrdp/pulse/default.pa
matt335672 commented 1 year ago

Problem seems to be here:-

[20230228-13:36:12] [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log  
[20230228-13:36:22] [WARN ] Timed out waiting for X server on display 10 to startup

Can you append the following:- 1) ls -l /usr/lib/Xorg 2) Contents of /home/rdp/.xorgxrdp.10.log

InverseDa commented 1 year ago
  1. ls -l /usr/lib/Xorg
    -rwxr-xr-x 1 root root 2507080  2月 7日 15:58 /usr/lib/Xorg
  2. cat /home/rdp/.xorgxrdp.10.log
    
    [   158.837] 
    X.Org X Server 1.21.1.7
    X Protocol Version 11, Revision 0
    [   158.837] Current Operating System: Linux myarch 6.2.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 26 Feb 2023 03:39:23 +0000 x86_64
    [   158.837] Kernel command line: BOOT_IMAGE=/@/boot/vmlinuz-linux root=UUID=84d69013-c894-4f5d-a56e-5aed0e69676f rw rootflags=subvol=@ loglevel=5 nowatchdog intel_iommu=on iommu=pt
    [   158.837]  
    [   158.837] Current version of pixman: 0.42.2
    [   158.837]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    [   158.837] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [   158.837] (++) Log file: ".xorgxrdp.10.log", Time: Tue Feb 28 17:13:25 2023
    [   158.837] (++) Using config file: "/etc/X11/xrdp/xorg.conf"
    [   158.837] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [   158.837] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    [   158.837] (**) Option "defaultserverlayout" "X11 Server"
    [   158.837] (**) ServerLayout "X11 Server"
    [   158.837] (**) |-->Screen "Screen (xrdpdev)" (0)
    [   158.837] (**) |   |-->Monitor "Monitor"
    [   158.837] (**) |   |-->Device "Video Card (xrdpdev)"
    [   158.837] (**) |   |-->GPUDevice "nvidia"
    [   158.837] (**) |   |-->GPUDevice "integrated"
    [   158.837] (**) |-->Input Device "xrdpMouse"
    [   158.837] (**) |-->Input Device "xrdpKeyboard"
    [   158.837] (**) Option "DontVTSwitch" "on"
    [   158.837] (**) Option "AutoAddDevices" "off"
    [   158.837] (**) Not automatically adding devices
    [   158.837] (==) Automatically enabling devices
    [   158.837] (==) Automatically adding GPU devices
    [   158.837] (==) Automatically binding GPU devices
    [   158.837] (==) Max clients allowed: 256, resource mask: 0x1fffff
    [   158.837] (WW) The directory "/usr/share/fonts/misc" does not exist.
    [   158.837]    Entry deleted from font path.
    [   158.837] (WW) The directory "/usr/share/fonts/OTF" does not exist.
    [   158.837]    Entry deleted from font path.
    [   158.837] (WW) The directory "/usr/share/fonts/Type1" does not exist.
    [   158.837]    Entry deleted from font path.
    [   158.837] (==) FontPath set to:
    /usr/share/fonts/TTF,
    /usr/share/fonts/100dpi,
    /usr/share/fonts/75dpi
    [   158.837] (**) ModulePath set to "/usr/lib/nvidia,/usr/lib32/nvidia,/usr/lib32/nvidia/xorg/modules,/usr/lib32/xorg/modules,/usr/lib64/nvidia/xorg/modules,/usr/lib64/nvidia/xorg,/usr/lib64/xorg/modules"
    [   158.837] (II) Module ABI versions:
    [   158.837]    X.Org ANSI C Emulation: 0.4
    [   158.837]    X.Org Video Driver: 25.2
    [   158.837]    X.Org XInput driver : 24.4
    [   158.837]    X.Org Server Extension : 10.0
    [   158.837] (--) using VT number 2

[ 158.837] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration [ 158.838] (II) xfree86: Adding drm device (/dev/dri/card1) [ 158.838] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1 [ 158.838] (II) xfree86: Adding drm device (/dev/dri/card0) [ 158.838] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0 [ 158.839] (--) PCI:*(0@0:2:0) 8086:9bc4:1d05:1097 rev 5, Mem @ 0xc4000000/16777216, 0xa0000000/268435456, I/O @ 0x00007000/64, BIOS @ 0x????????/131072 [ 158.839] (--) PCI: (1@0:0:0) 10de:1f15:1d05:1097 rev 161, Mem @ 0xc5000000/16777216, 0xb0000000/268435456, 0xc0000000/33554432, I/O @ 0x00006000/128, BIOS @ 0x????????/524288 [ 158.839] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory) [ 158.839] (II) "glx" will be loaded. This was enabled by default and also specified in the config file. [ 158.839] (II) LoadModule: "dbe" [ 158.839] (II) Module "dbe" already built-in [ 158.839] (II) LoadModule: "ddc" [ 158.839] (II) Module "ddc" already built-in [ 158.839] (II) LoadModule: "extmod" [ 158.839] (II) Module "extmod" already built-in [ 158.839] (II) LoadModule: "glx" [ 158.839] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so [ 158.840] (II) Module glx: vendor="X.Org Foundation" [ 158.840] compiled for 1.21.1.7, module version = 1.0.0 [ 158.840] ABI class: X.Org Server Extension, version 10.0 [ 158.840] (II) LoadModule: "int10" [ 158.840] (II) Loading /usr/lib64/xorg/modules/libint10.so [ 158.841] (II) Module int10: vendor="X.Org Foundation" [ 158.841] compiled for 1.21.1.7, module version = 1.0.0 [ 158.841] ABI class: X.Org Video Driver, version 25.2 [ 158.841] (II) LoadModule: "record" [ 158.841] (II) Module "record" already built-in [ 158.841] (II) LoadModule: "vbe" [ 158.841] (II) Loading /usr/lib64/xorg/modules/libint10.so [ 158.841] (II) Module int10: vendor="X.Org Foundation" [ 158.841] compiled for 1.21.1.7, module version = 1.0.0 [ 158.841] ABI class: X.Org Video Driver, version 25.2 [ 158.841] (II) LoadModule: "xorgxrdp" [ 158.841] (II) Loading /usr/lib64/xorg/modules/libxorgxrdp.so [ 158.842] (II) Module XORGXRDP: vendor="X.Org Foundation" [ 158.842] compiled for 1.21.1.7, module version = 0.9.19 [ 158.842] ABI class: X.Org Video Driver, version 25.2 [ 158.842] xorgxrdpSetup: [ 158.842] (II) LoadModule: "fb" [ 158.842] (II) Module "fb" already built-in [ 158.842] (II) LoadModule: "xrdpdev" [ 158.842] (II) Loading /usr/lib64/xorg/modules/drivers/xrdpdev_drv.so [ 158.842] (II) Module XRDPDEV: vendor="X.Org Foundation" [ 158.842] compiled for 1.21.1.7, module version = 0.9.19 [ 158.842] ABI class: X.Org Video Driver, version 25.2 [ 158.842] xrdpdevSetup: [ 158.842] (II) LoadModule: "nvidia" [ 158.842] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so [ 158.842] (II) Module nvidia: vendor="NVIDIA Corporation" [ 158.842] compiled for 1.6.99.901, module version = 1.0.0 [ 158.842] Module class: X.Org Video Driver [ 158.842] (II) LoadModule: "modesetting" [ 158.842] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so [ 158.843] (II) Module modesetting: vendor="X.Org Foundation" [ 158.843] compiled for 1.21.1.7, module version = 1.21.1 [ 158.843] Module class: X.Org Video Driver [ 158.843] ABI class: X.Org Video Driver, version 25.2 [ 158.843] (II) LoadModule: "xrdpmouse" [ 158.843] (II) Loading /usr/lib64/xorg/modules/input/xrdpmouse_drv.so [ 158.843] (II) Module XRDPMOUSE: vendor="X.Org Foundation" [ 158.843] compiled for 1.21.1.7, module version = 0.9.19 [ 158.843] Module class: X.Org XInput Driver [ 158.843] ABI class: X.Org XInput driver, version 24.4 [ 158.843] rdpmousePlug: [ 158.843] (II) LoadModule: "xrdpkeyb" [ 158.843] (II) Loading /usr/lib64/xorg/modules/input/xrdpkeyb_drv.so [ 158.843] (II) Module XRDPKEYB: vendor="X.Org Foundation" [ 158.843] compiled for 1.21.1.7, module version = 0.9.19 [ 158.843] Module class: X.Org XInput Driver [ 158.843] ABI class: X.Org XInput driver, version 24.4 [ 158.843] rdpkeybPlug: [ 158.843] rdpIdentify: [ 158.843] (II) XRDPDEV: driver for xrdp: XRDPDEV [ 158.843] rdpDriverFunc: op 10 [ 158.843] (II) NVIDIA dlloader X Driver 525.89.02 Wed Feb 1 23:14:37 UTC 2023 [ 158.843] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs [ 158.843] (II) modesetting: Driver for Modesetting Kernel Drivers: kms [ 158.843] (EE) Fatal server error: [ 158.843] (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied) [ 158.843] (EE) [ 158.843] (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 158.843] (EE) Please also check the log file at ".xorgxrdp.10.log" for additional information. [ 158.843] (EE) [ 158.843] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor [ 158.843] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor [ 158.843] (EE) Server terminated with error (1). Closing log file.

matt335672 commented 1 year ago

Looks a bit like https://github.com/neutrinolabs/xorgxrdp/pull/241

Have a look in /etc/X11/xrdp/xorg.conf and see if these entries are present:-

Option "AutoAddGPU" "off"
GPUDevice ""

If they aren't add them. The first one goes in the "ServerFlags" section and the second one goes in the "Screen" section. See https://github.com/neutrinolabs/xorgxrdp/pull/241/files

InverseDa commented 1 year ago

It works. But still I can't start the gnome desktop. The session closed after I connected to the Xorg. Here's the /var/log/xrdp.log:

[20230228-20:32:25] [INFO ] address [0.0.0.0] port [3389] mode 1
[20230228-20:32:25] [INFO ] listening to port 3389 on 0.0.0.0
[20230228-20:32:25] [INFO ] xrdp_listen_pp done
[20230228-20:32:27] [INFO ] starting xrdp with pid 711
[20230228-20:32:27] [INFO ] address [0.0.0.0] port [3389] mode 1
[20230228-20:32:27] [INFO ] listening to port 3389 on 0.0.0.0
[20230228-20:32:27] [INFO ] xrdp_listen_pp done
[20230228-20:33:16] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:127.0.0.1 port 44234
[20230228-20:33:16] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20230228-20:33:16] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20230228-20:33:16] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SSL]
[20230228-20:33:23] [INFO ] Connected client computer name: idsmac
[20230228-20:33:23] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
[20230228-20:33:23] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
[20230228-20:33:24] [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000000]
[20230228-20:33:24] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options []
[20230228-20:33:24] [INFO ] TLS connection established from ::ffff:127.0.0.1 port 44234: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384
[20230228-20:33:24] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
[20230228-20:33:24] [INFO ] xrdp_process_offscreen_bmpcache: support level 0 cache size 0 MB cache entries 0
[20230228-20:33:24] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
[20230228-20:33:24] [WARN ] Cannot find keymap file /etc/xrdp/km-00000000.ini
[20230228-20:33:24] [WARN ] Cannot find keymap file /etc/xrdp/km-00000000.ini
[20230228-20:33:24] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20230228-20:33:24] [WARN ] local keymap file for 0x00000000 found and doesn't match built in keymap, using local keymap file
[20230228-20:33:24] [INFO ] connecting to sesman on 127.0.0.1:3350
[20230228-20:33:24] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20230228-20:33:24] [INFO ] sesman connect ok
[20230228-20:33:24] [INFO ] sending login info to session manager. Please wait...
[20230228-20:33:24] [INFO ] xrdp_wm_log_msg: login successful for user rdp on display 10
[20230228-20:33:24] [INFO ] login successful for user rdp on display 10
[20230228-20:33:24] [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
[20230228-20:33:24] [INFO ] started connecting
[20230228-20:33:24] [INFO ] lib_mod_connect: connecting via UNIX socket
[20230228-20:33:24] [INFO ] lib_mod_log_peer: xrdp_pid=2155 connected to X11rdp_pid=2164 X11rdp_uid=1001 X11rdp_gid=1001 client_ip=::ffff:127.0.0.1 client_port=44234
[20230228-20:33:24] [INFO ] connected ok
[20230228-20:33:28] [WARN ] xrdp_mm_chansrv_connect: connect failed trying again...
[20230228-20:33:32] [WARN ] xrdp_mm_chansrv_connect: connect failed trying again...
[20230228-20:33:36] [WARN ] xrdp_mm_chansrv_connect: connect failed trying again...
[20230228-20:33:40] [WARN ] xrdp_mm_chansrv_connect: connect failed trying again...
[20230228-20:33:40] [ERROR] xrdp_mm_chansrv_connect: error in trans_connect chan
[20230228-20:33:40] [ERROR] SSL_shutdown: Failure in SSL library (protocol error?)
[20230228-20:33:40] [ERROR] SSL: error:0A000123:SSL routines::application data after close notify

and /var/log/xrdp-sesman.log:

[20230228-20:32:25] [INFO ] starting xrdp-sesman with pid 634
[20230228-20:33:24] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 50998
[20230228-20:33:24] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20230228-20:33:24] [INFO ] ++ created session (access granted): username rdp, ip ::ffff:127.0.0.1:44234 - socket: 12
[20230228-20:33:24] [INFO ] starting Xorg session...
[20230228-20:33:24] [INFO ] Starting session: session_pid 2162, display :10.0, width 1440, height 900, bpp 24, client ip ::ffff:127.0.0.1:44234 - socket: 12, user name rdp
[20230228-20:33:24] [ERROR] sesman_data_in: scp_process_msg failed
[20230228-20:33:24] [INFO ] [session start] (display 10): calling auth_start_session from pid 2162
[20230228-20:33:24] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20230228-20:33:24] [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log  
[20230228-20:33:24] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20230228-20:33:24] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20230228-20:33:24] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20230228-20:33:24] [INFO ] Session started successfully for user rdp on display 10
[20230228-20:33:24] [INFO ] Session in progress on display 10, waiting until the window manager (pid 2163) exits to end the session
[20230228-20:33:24] [INFO ] Starting the xrdp channel server for display 10
[20230228-20:33:24] [INFO ] Starting the default window manager on display 10: /etc/xrdp/startwm.sh
[20230228-20:33:24] [WARN ] Window manager (pid 2163, display 10) exited with non-zero exit code 127 and signal 0. This could indicate a window manager config problem
[20230228-20:33:24] [WARN ] Window manager (pid 2163, display 10) exited quickly (0 secs). This could indicate a window manager config problem
[20230228-20:33:24] [INFO ] Calling auth_stop_session and auth_end from pid 2162
[20230228-20:33:24] [INFO ] Terminating X server (pid 2164) on display 10
[20230228-20:33:24] [INFO ] Terminating the xrdp channel server (pid 2169) on display 10
[20230228-20:33:24] [INFO ] X server on display 10 (pid 2164) returned exit code 0 and signal number 0
[20230228-20:33:24] [INFO ] xrdp channel server for display 10 (pid 2169) exit code 0 and signal number 0
[20230228-20:33:24] [INFO ] cleanup_sockets:
[20230228-20:33:24] [INFO ] Process 2162 has exited
[20230228-20:33:24] [INFO ] ++ terminated session:  username rdp, display :10.0, session_pid 2162, ip ::ffff:127.0.0.1:44234 - socket: 12

Also, the /home/rdp/.xorgxrdp.10.log:

[    64.296] 
X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
[    64.296] Current Operating System: Linux myarch 6.2.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 26 Feb 2023 03:39:23 +0000 x86_64
[    64.296] Kernel command line: BOOT_IMAGE=/@/boot/vmlinuz-linux root=UUID=84d69013-c894-4f5d-a56e-5aed0e69676f rw rootflags=subvol=@ loglevel=5 nowatchdog intel_iommu=on iommu=pt
[    64.296]  
[    64.296] Current version of pixman: 0.42.2
[    64.296]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[    64.296] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    64.296] (++) Log file: ".xorgxrdp.10.log", Time: Tue Feb 28 20:33:24 2023
[    64.296] (++) Using config file: "/etc/X11/xrdp/xorg.conf"
[    64.296] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    64.296] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    64.296] (**) Option "defaultserverlayout" "X11 Server"
[    64.296] (**) ServerLayout "X11 Server"
[    64.296] (**) |-->Screen "Screen (xrdpdev)" (0)
[    64.296] (**) |   |-->Monitor "Monitor"
[    64.296] (**) |   |-->Device "Video Card (xrdpdev)"
[    64.296] (**) |-->Input Device "xrdpMouse"
[    64.296] (**) |-->Input Device "xrdpKeyboard"
[    64.296] (**) Option "DontVTSwitch" "on"
[    64.296] (**) Option "AutoAddDevices" "off"
[    64.296] (**) Option "AutoAddGPU" "off"
[    64.296] (**) Not automatically adding devices
[    64.296] (==) Automatically enabling devices
[    64.296] (**) Not automatically adding GPU devices
[    64.296] (==) Automatically binding GPU devices
[    64.296] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    64.296] (WW) The directory "/usr/share/fonts/misc" does not exist.
[    64.296]    Entry deleted from font path.
[    64.296] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[    64.296]    Entry deleted from font path.
[    64.296] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[    64.296]    Entry deleted from font path.
[    64.296] (==) FontPath set to:
    /usr/share/fonts/TTF,
    /usr/share/fonts/100dpi,
    /usr/share/fonts/75dpi
[    64.296] (**) ModulePath set to "/usr/lib/nvidia,/usr/lib32/nvidia,/usr/lib32/nvidia/xorg/modules,/usr/lib32/xorg/modules,/usr/lib64/nvidia/xorg/modules,/usr/lib64/nvidia/xorg,/usr/lib64/xorg/modules"
[    64.296] (II) Module ABI versions:
[    64.296]    X.Org ANSI C Emulation: 0.4
[    64.296]    X.Org Video Driver: 25.2
[    64.296]    X.Org XInput driver : 24.4
[    64.296]    X.Org Server Extension : 10.0
[    64.297] (--) using VT number 2

[    64.297] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    64.298] (II) xfree86: Adding drm device (/dev/dri/card1)
[    64.298] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1
[    64.298] (II) xfree86: Adding drm device (/dev/dri/card0)
[    64.298] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[    64.299] (--) PCI:*(0@0:2:0) 8086:9bc4:1d05:1097 rev 5, Mem @ 0xc4000000/16777216, 0xa0000000/268435456, I/O @ 0x00007000/64, BIOS @ 0x????????/131072
[    64.299] (--) PCI: (1@0:0:0) 10de:1f15:1d05:1097 rev 161, Mem @ 0xc5000000/16777216, 0xb0000000/268435456, 0xc0000000/33554432, I/O @ 0x00006000/128, BIOS @ 0x????????/524288
[    64.299] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    64.299] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[    64.299] (II) LoadModule: "dbe"
[    64.299] (II) Module "dbe" already built-in
[    64.299] (II) LoadModule: "ddc"
[    64.299] (II) Module "ddc" already built-in
[    64.299] (II) LoadModule: "extmod"
[    64.299] (II) Module "extmod" already built-in
[    64.299] (II) LoadModule: "glx"
[    64.299] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[    64.300] (II) Module glx: vendor="X.Org Foundation"
[    64.300]    compiled for 1.21.1.7, module version = 1.0.0
[    64.300]    ABI class: X.Org Server Extension, version 10.0
[    64.300] (II) LoadModule: "int10"
[    64.300] (II) Loading /usr/lib64/xorg/modules/libint10.so
[    64.301] (II) Module int10: vendor="X.Org Foundation"
[    64.301]    compiled for 1.21.1.7, module version = 1.0.0
[    64.301]    ABI class: X.Org Video Driver, version 25.2
[    64.301] (II) LoadModule: "record"
[    64.301] (II) Module "record" already built-in
[    64.301] (II) LoadModule: "vbe"
[    64.301] (II) Loading /usr/lib64/xorg/modules/libint10.so
[    64.301] (II) Module int10: vendor="X.Org Foundation"
[    64.301]    compiled for 1.21.1.7, module version = 1.0.0
[    64.301]    ABI class: X.Org Video Driver, version 25.2
[    64.301] (II) LoadModule: "xorgxrdp"
[    64.301] (II) Loading /usr/lib64/xorg/modules/libxorgxrdp.so
[    64.302] (II) Module XORGXRDP: vendor="X.Org Foundation"
[    64.302]    compiled for 1.21.1.7, module version = 0.9.19
[    64.302]    ABI class: X.Org Video Driver, version 25.2
[    64.302] xorgxrdpSetup:
[    64.302] (II) LoadModule: "fb"
[    64.302] (II) Module "fb" already built-in
[    64.302] (II) LoadModule: "xrdpdev"
[    64.302] (II) Loading /usr/lib64/xorg/modules/drivers/xrdpdev_drv.so
[    64.302] (II) Module XRDPDEV: vendor="X.Org Foundation"
[    64.302]    compiled for 1.21.1.7, module version = 0.9.19
[    64.302]    ABI class: X.Org Video Driver, version 25.2
[    64.302] xrdpdevSetup:
[    64.302] (II) LoadModule: "xrdpmouse"
[    64.302] (II) Loading /usr/lib64/xorg/modules/input/xrdpmouse_drv.so
[    64.303] (II) Module XRDPMOUSE: vendor="X.Org Foundation"
[    64.303]    compiled for 1.21.1.7, module version = 0.9.19
[    64.303]    Module class: X.Org XInput Driver
[    64.303]    ABI class: X.Org XInput driver, version 24.4
[    64.303] rdpmousePlug:
[    64.303] (II) LoadModule: "xrdpkeyb"
[    64.303] (II) Loading /usr/lib64/xorg/modules/input/xrdpkeyb_drv.so
[    64.303] (II) Module XRDPKEYB: vendor="X.Org Foundation"
[    64.303]    compiled for 1.21.1.7, module version = 0.9.19
[    64.303]    Module class: X.Org XInput Driver
[    64.303]    ABI class: X.Org XInput driver, version 24.4
[    64.303] rdpkeybPlug:
[    64.303] rdpIdentify:
[    64.303] (II) XRDPDEV: driver for xrdp: XRDPDEV
[    64.303] rdpDriverFunc: op 10
[    64.303] (WW) Falling back to old probe method for XRDPDEV
[    64.303] rdpProbe:
[    64.303] (II) Loading sub module "fb"
[    64.303] (II) LoadModule: "fb"
[    64.303] (II) Module "fb" already built-in
[    64.303] (II) XRDPDEV(0): using default device
[    64.303] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    64.303] rdpPreInit:
[    64.303] (**) XRDPDEV(0): Depth 24, (--) framebuffer bpp 32
[    64.303] (==) XRDPDEV(0): RGB weight 888
[    64.303] (==) XRDPDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[    64.303] (==) XRDPDEV(0): Default visual is TrueColor
[    64.303] (==) XRDPDEV(0): DPI set to (96, 96)
[    64.303] (II) XRDPDEV(0):   mode "640x480" ok
[    64.303] (II) XRDPDEV(0):   mode "800x600" ok
[    64.303] (II) XRDPDEV(0): Virtual size is 800x600 (pitch 800)
[    64.303] (**) XRDPDEV(0):  Default mode "800x600": 36.0 MHz (scaled from 0.0 MHz), 35.2 kHz, 56.2 Hz
[    64.303] (II) XRDPDEV(0): Modeline "800x600"x0.0   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[    64.303] rdpScreenInit: virtualX 800 virtualY 600 rgbBits 8 depth 24
[    64.303] rdpScreenInit: pfbMemory bytes 1920000
[    64.303] rdpScreenInit: pfbMemory 0x7eff0af88010
[    64.303] rdpSimdInit: assigning yuv functions
[    64.303] rdpSimdInit: cpuid ax 1 cx 0 return ax 0x000a0652 bx 0x05100800 cx 0x7ffafbff dx 0xbfebfbff
[    64.303] rdpSimdInit: sse2 amd64 yuv functions assigned
[    64.303] (==) XRDPDEV(0): Backing store enabled
[    64.303] rdpClientConInit: disconnect idle session after [0] sec
[    64.303] rdpClientConInit: kill disconnected [0] timeout [0] sec
[    64.303] rdpClientConInit: do_touchpad_scroll_hack [0]
[    64.303] rdpXvInit: depth 24
[    64.303] rdpScreenInit: out
[    64.303] (II) Initializing extension Generic Event Extension
[    64.303] (II) Initializing extension SHAPE
[    64.303] (II) Initializing extension MIT-SHM
[    64.303] (II) Initializing extension XInputExtension
[    64.303] (II) Initializing extension XTEST
[    64.303] (II) Initializing extension BIG-REQUESTS
[    64.303] (II) Initializing extension SYNC
[    64.303] (II) Initializing extension XKEYBOARD
[    64.303] (II) Initializing extension XC-MISC
[    64.303] (II) Initializing extension SECURITY
[    64.303] (II) Initializing extension XFIXES
[    64.304] (II) Initializing extension RENDER
[    64.304] (II) Initializing extension RANDR
[    64.304] (II) Initializing extension COMPOSITE
[    64.304] (II) Initializing extension DAMAGE
[    64.304] (II) Initializing extension MIT-SCREEN-SAVER
[    64.304] (II) Initializing extension DOUBLE-BUFFER
[    64.304] (II) Initializing extension RECORD
[    64.304] (II) Initializing extension DPMS
[    64.304] (II) Initializing extension Present
[    64.304] (II) Initializing extension DRI3
[    64.304] (II) Initializing extension X-Resource
[    64.304] (II) Initializing extension XVideo
[    64.304] (II) Initializing extension XVideo-MotionCompensation
[    64.304] (II) Initializing extension GLX
[    64.304] (II) AIGLX: Screen 0 is not DRI2 capable
[    64.318] (II) IGLX: Loaded and initialized swrast
[    64.318] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    64.318] (II) Initializing extension XFree86-VidModeExtension
[    64.318] (II) Initializing extension XFree86-DGA
[    64.318] (II) Initializing extension XFree86-DRI
[    64.318] (II) Initializing extension DRI2
[    64.318] rdpCreateScreenResources:
[    64.348] (II) Using input driver 'XRDPMOUSE' for 'xrdpMouse'
[    64.348] (**) Option "CorePointer"
[    64.348] (**) xrdpMouse: always reports core events
[    64.348] rdpmousePreInit: drv 0x55c1271667d0 info 0x55c1276b1050, flags 0x0
[    64.348] (II) XINPUT: Adding extended input device "xrdpMouse" (type: Mouse, id 6)
[    64.348] rdpmouseControl: what 0
[    64.348] rdpmouseDeviceInit:
[    64.348] rdpmouseCtrl:
[    64.348] rdpRegisterInputCallback: type 1 proc 0x7eff0c3fd2c0
[    64.348] (**) xrdpMouse: (accel) keeping acceleration scheme 1
[    64.348] (**) xrdpMouse: (accel) acceleration profile 0
[    64.348] (**) xrdpMouse: (accel) acceleration factor: 2.000
[    64.348] (**) xrdpMouse: (accel) acceleration threshold: 4
[    64.348] rdpmouseControl: what 1
[    64.348] rdpmouseDeviceOn:
[    64.348] (II) Using input driver 'XRDPKEYB' for 'xrdpKeyboard'
[    64.348] (**) Option "CoreKeyboard"
[    64.348] (**) xrdpKeyboard: always reports core events
[    64.348] rdpkeybPreInit: drv 0x55c127162430 info 0x55c1276b4160, flags 0x0
[    64.348] (II) XINPUT: Adding extended input device "xrdpKeyboard" (type: Keyboard, id 7)
[    64.348] rdpkeybControl: what 0
[    64.348] rdpkeybDeviceInit:
[    64.354] rdpkeybChangeKeyboardControl:
[    64.354] rdpkeybChangeKeyboardControl: autoRepeat on
[    64.354] rdpRegisterInputCallback: type 0 proc 0x7eff0b15e920
[    64.354] rdpkeybControl: what 1
[    64.354] rdpkeybDeviceOn:
[    64.363] (II) config/udev: Adding input device Power Button (/dev/input/event3)
[    64.363] (II) AutoAddDevices is off - not adding device.
[    64.363] (II) config/udev: Adding input device Video Bus (/dev/input/event11)
[    64.363] (II) AutoAddDevices is off - not adding device.
[    64.364] (II) config/udev: Adding input device Video Bus (/dev/input/event12)
[    64.364] (II) AutoAddDevices is off - not adding device.
[    64.364] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[    64.364] (II) AutoAddDevices is off - not adding device.
[    64.364] (II) config/udev: Adding input device Lid Switch (/dev/input/event2)
[    64.364] (II) AutoAddDevices is off - not adding device.
[    64.364] (II) config/udev: Adding input device Sleep Button (/dev/input/event0)
[    64.364] (II) AutoAddDevices is off - not adding device.
[    64.364] (II) config/udev: Adding drm device (/dev/dri/card1)
[    64.364] (II) xfree86: Adding drm device (/dev/dri/card1)
[    64.364] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1
[    64.364] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event15)
[    64.364] (II) AutoAddDevices is off - not adding device.
[    64.365] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=7 (/dev/input/event16)
[    64.365] (II) AutoAddDevices is off - not adding device.
[    64.365] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=8 (/dev/input/event17)
[    64.365] (II) AutoAddDevices is off - not adding device.
[    64.365] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=9 (/dev/input/event18)
[    64.365] (II) AutoAddDevices is off - not adding device.
[    64.365] (II) config/udev: Adding drm device (/dev/dri/card0)
[    64.365] (II) xfree86: Adding drm device (/dev/dri/card0)
[    64.365] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[    64.365] (II) config/udev: Adding input device Logitech G502 HERO Gaming Mouse (/dev/input/event9)
[    64.365] (II) AutoAddDevices is off - not adding device.
[    64.365] (II) config/udev: Adding input device Logitech G502 HERO Gaming Mouse (/dev/input/mouse1)
[    64.365] (II) AutoAddDevices is off - not adding device.
[    64.366] (II) config/udev: Adding input device Logitech G502 HERO Gaming Mouse Keyboard (/dev/input/event10)
[    64.366] (II) AutoAddDevices is off - not adding device.
[    64.366] (II) config/udev: Adding input device HD Webcam: HD Webcam (/dev/input/event14)
[    64.366] (II) AutoAddDevices is off - not adding device.
[    64.366] (II) config/udev: Adding input device CX 2.4G Wireless Receiver (/dev/input/event5)
[    64.366] (II) AutoAddDevices is off - not adding device.
[    64.367] (II) config/udev: Adding input device CX 2.4G Wireless Receiver Mouse (/dev/input/event6)
[    64.367] (II) AutoAddDevices is off - not adding device.
[    64.367] (II) config/udev: Adding input device CX 2.4G Wireless Receiver Mouse (/dev/input/mouse0)
[    64.367] (II) AutoAddDevices is off - not adding device.
[    64.367] (II) config/udev: Adding input device CX 2.4G Wireless Receiver (/dev/input/event7)
[    64.367] (II) AutoAddDevices is off - not adding device.
[    64.367] (II) config/udev: Adding input device CX 2.4G Wireless Receiver Keyboard (/dev/input/event8)
[    64.367] (II) AutoAddDevices is off - not adding device.
[    64.368] (II) config/udev: Adding input device UNIW0001:00 093A:0255 Mouse (/dev/input/event19)
[    64.368] (II) AutoAddDevices is off - not adding device.
[    64.368] (II) config/udev: Adding input device UNIW0001:00 093A:0255 Mouse (/dev/input/mouse2)
[    64.368] (II) AutoAddDevices is off - not adding device.
[    64.368] (II) config/udev: Adding input device UNIW0001:00 093A:0255 Touchpad (/dev/input/event20)
[    64.368] (II) AutoAddDevices is off - not adding device.
[    64.368] (II) config/udev: Adding input device UNIW0001:00 093A:0255 Touchpad (/dev/input/mouse3)
[    64.368] (II) AutoAddDevices is off - not adding device.
[    64.368] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event21)
[    64.368] (II) AutoAddDevices is off - not adding device.
[    64.369] (II) config/udev: Adding input device HDA Intel PCH Front Headphone (/dev/input/event22)
[    64.369] (II) AutoAddDevices is off - not adding device.
[    64.369] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event23)
[    64.369] (II) AutoAddDevices is off - not adding device.
[    64.369] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=7 (/dev/input/event24)
[    64.369] (II) AutoAddDevices is off - not adding device.
[    64.369] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=8 (/dev/input/event25)
[    64.369] (II) AutoAddDevices is off - not adding device.
[    64.369] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event4)
[    64.369] (II) AutoAddDevices is off - not adding device.
[    64.369] (II) config/udev: Adding input device PC Speaker (/dev/input/event13)
[    64.369] (II) AutoAddDevices is off - not adding device.
[    64.372] rdpDeferredRandR:
[    64.372] rdpResizeSession: width 1024 height 768
[    64.372]   calling RRScreenSizeSet
[    64.372] rdpRRScreenSetSize: width 1024 height 768 mmWidth 271 mmHeight 203
[    64.372] rdpRRGetInfo:
[    64.372]   screen resized to 1024x768
[    64.373]   RRScreenSizeSet ok 1
[    64.373] rdpResizeSession: width 1440 height 900
[    64.373]   calling RRScreenSizeSet
[    64.373] rdpRRScreenSetSize: width 1440 height 900 mmWidth 381 mmHeight 238
[    64.373] rdpRRGetInfo:
[    64.373]   screen resized to 1440x900
[    64.373]   RRScreenSizeSet ok 1
[    64.391] rdpClientConGotConnection:
[    64.391] rdpClientConGotConnection: g_sck_accept ok new_sck 9
[    64.391] rdpClientConGetConnection: idle_disconnect_timeout set to non-positive value, idle timer turned off
[    64.391] rdpAddClientConToDev: adding first clientCon 0x55c12772d520
[    64.391] rdpClientConProcessMsgVersion: version 0 0 0 1
[    64.392] rdpClientConProcessScreenSizeMsg: set width 1440 height 900 bpp 32
[    64.392] rdpClientConAllocateSharedMemory: shmemid 17 shmemptr 0x7efefe21b000 bytes 5184000
[    64.392] rdpClientConProcessMsgClientInput: invalidate x 0 y 0 cx 1440 cy 900
[    64.455] rdpInDeferredRepeatCallback:
[    64.455] rdpkeybChangeKeyboardControl:
[    64.455] rdpkeybChangeKeyboardControl: autoRepeat off
[    64.574] rdpmouseControl: what 2
[    64.574] rdpmouseDeviceOff:
[    64.574] rdpkeybControl: what 2
[    64.574] rdpkeybDeviceOff:
[    64.574] xorgxrdpDamageDestroy:
[    64.575] rdpkeybControl: what 3
[    64.575] rdpkeybUnInit: drv 0x55c127162430 info 0x55c1276b4160, flags 0x0
[    64.575] rdpUnregisterInputCallback: proc 0x7eff0b15e920
[    64.575] rdpmouseControl: what 3
[    64.575] rdpmouseUnInit: drv 0x55c1271667d0 info 0x55c1276b1050, flags 0x0
[    64.575] rdpUnregisterInputCallback: proc 0x7eff0c3fd2c0
[    64.575] rdpCloseScreen:
[    64.575] xorgxrdpDownDown:
[    64.575] xorgxrdpDownDown: 1
[    64.575] rdpClientConDeinit:
[    64.575] rdpClientConDeinit: disconnecting clientCon
[    64.575] rdpClientConDisconnect:
[    64.575] rdpRemoveClientConFromDev: removing clientCon 0x55c12772d520
[    64.575] rdpClientConDeinit: deleting file /tmp/.xrdp/xrdp_display_10
[    64.575] rdpClientConDeinit: deleting file /tmp/.xrdp/xrdp_disconnect_display_10
[    64.576] (II) Server terminated successfully (0). Closing log file.
matt335672 commented 1 year ago

The X server seems OK now, but GNOME is exiting very quickly:-

[20230228-20:33:24] [INFO ] Starting the default window manager on display 10: /etc/xrdp/startwm.sh
[20230228-20:33:24] [WARN ] Window manager (pid 2163, display 10) exited with non-zero exit code 127 and signal 0. This could indicate a window manager config problem
[20230228-20:33:24] [WARN ] Window manager (pid 2163, display 10) exited quickly (0 secs). This could indicate a window manager config problem

The most common reason is that you're logged in to the console as the same user (rdp). This won't work - see this FAQ.

Check there are no processes running as rdp and try again. If GNOME still isn't starting you can get a system log for the last two minutes with sudo journalctl -S -2m. That might contain some useful info.