Closed Fisher-Wang closed 5 months ago
As mentioned in issue form, could you add the log?
Links? References? Anything that will give us more context about the issue you are encountering! We recommend attaching xrdp.log, xrdp-sesman.log, xrdp/xorg.conf or screenshots to clarify context.
Sure. xrdp.log is shown above, here is other logs
[20240313-21:50:12] [INFO ] sesman_main_loop: sesman asked to terminate
[20240313-21:50:12] [INFO ] starting xrdp-sesman with pid 5851
[20240313-21:52:59] [INFO ] Socket 12: AF_INET connection received from 127.0.0.1 port 49740
[20240313-21:52:59] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20240313-21:52:59] [INFO ] ++ created session (access granted): username fs, ip 192.168.1.108:32315 - socket: 12
[20240313-21:52:59] [INFO ] starting Xorg session...
[20240313-21:52:59] [INFO ] Starting session: session_pid 6232, display :10.0, width 2560, height 1600, bpp 24, client ip 192.168.1.108:32315 - socket: 12, user name fs
[20240313-21:52:59] [INFO ] [session start] (display 10): calling auth_start_session from pid 6232
[20240313-21:52:59] [ERROR] sesman_data_in: scp_process_msg failed
[20240313-21:52:59] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20240313-21:52:59] [INFO ] Starting X server on display 10: Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20240313-21:53:09] [WARN ] Timed out waiting for X server on display 10 to startup
[20240313-21:53:09] [INFO ] Session started successfully for user fs on display 10
[20240313-21:53:09] [INFO ] Starting the xrdp channel server for display 10
[20240313-21:53:09] [INFO ] Session in progress on display 10, waiting until the window manager (pid 6233) exits to end the session
[20240313-21:53:09] [WARN ] Timed out waiting for X server on display 10 to startup
[20240313-21:53:09] [ERROR] There is no X server active on display 10
[20240313-21:53:09] [ERROR] A fatal error has occurred attempting to start the window manager on display 10, aborting connection
[20240313-21:53:09] [WARN ] Window manager (pid 6233, display 10) exited quickly (0 secs). This could indicate a window manager config problem
[20240313-21:53:09] [INFO ] Calling auth_stop_session and auth_end from pid 6232
[20240313-21:53:09] [INFO ] Terminating X server (pid 6234) on display 10
[20240313-21:53:09] [INFO ] Terminating the xrdp channel server (pid 6247) on display 10
[20240313-21:53:09] [INFO ] X server on display 10 (pid 6234) returned exit code 1 and signal number 0
[20240313-21:53:09] [INFO ] xrdp channel server for display 10 (pid 6247) exit code 0 and signal number 0
[20240313-21:53:09] [INFO ] cleanup_sockets:
[20240313-21:53:09] [INFO ] Process 6232 has exited
[20240313-21:53:09] [INFO ] ++ terminated session: username fs, display :10.0, session_pid 6232, ip 192.168.1.108:32315 - socket: 12
I find xrdp/xorg.conf
at this path /etc/X11/xrdp/xorg.conf
, and here is its content:
Section "ServerLayout"
Identifier "X11 Server"
Screen "Screen (xrdpdev)"
InputDevice "xrdpMouse" "CorePointer"
InputDevice "xrdpKeyboard" "CoreKeyboard"
EndSection
Section "ServerFlags"
# This line prevents "ServerLayout" sections in xorg.conf.d files
# overriding the "X11 Server" layout (xrdp #1784)
Option "DefaultServerLayout" "X11 Server"
Option "DontVTSwitch" "on"
Option "AutoAddDevices" "off"
EndSection
Section "Module"
Load "dbe"
Load "ddc"
Load "extmod"
Load "glx"
Load "int10"
Load "record"
Load "vbe"
Load "glamoregl"
Load "xorgxrdp"
Load "fb"
EndSection
Section "InputDevice"
Identifier "xrdpKeyboard"
Driver "xrdpkeyb"
EndSection
Section "InputDevice"
Identifier "xrdpMouse"
Driver "xrdpmouse"
EndSection
Section "Monitor"
Identifier "Monitor"
Option "DPMS"
HorizSync 30-80
VertRefresh 60-75
ModeLine "1920x1080" 138.500 1920 1968 2000 2080 1080 1083 1088 1111 +hsync -vsync
ModeLine "1280x720" 74.25 1280 1720 1760 1980 720 725 730 750 +HSync +VSync
Modeline "1368x768" 72.25 1368 1416 1448 1528 768 771 781 790 +hsync -vsync
Modeline "1600x900" 119.00 1600 1696 1864 2128 900 901 904 932 -hsync +vsync
EndSection
Section "Device"
Identifier "Video Card (xrdpdev)"
Driver "xrdpdev"
Option "DRMDevice" "/dev/dri/renderD128"
Option "DRI3" "1"
EndSection
Section "Screen"
Identifier "Screen (xrdpdev)"
Device "Video Card (xrdpdev)"
Monitor "Monitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "640x480" "800x600" "1024x768" "1280x720" "1280x1024" "1600x900" "1920x1080"
EndSubSection
EndSection
I follow this issue comment and replace param=Xorg
with param=/usr/lib/xorg/Xorg
in file /etc/xrdp/sesman.ini
so that the X server start successfully.
Then I follow this issue comment to stay logged out at my physical machine, and I successfully connect to it from my Win11 MS Official Remote Desktop Connector.
Although there is a bit latency, the desktop looks odd and can't change configuration in settings, it still works amazing!
xrdp version
0.9.21.1
Detailed xrdp version, build options
xrdp 0.9.21.1 A Remote Desktop Protocol Server. Copyright (C) 2004-2020 Jay Sorg, Neutrino Labs, and all contributors. See https://github.com/neutrinolabs/xrdp for more information.
Configure options:
Compiled with OpenSSL 3.0.8 7 Feb 2023
Operating system & version
Ubuntu 23.04
Installation method
git clone & make install
Which backend do you use?
xorgxrdp
What desktop environment do you use?
GNOME
Environment xrdp running on
physical machine with RTX 3090
What's your client?
Microsoft official client
Area(s) with issue?
No response
Steps to reproduce
✔️ Expected Behavior
get connected to remote desktop
❌ Actual Behavior
Client behavior
After waiting in blue screen for ~3 minutes, I got this error message
xrdp log
Anything else?
No response