xrdp: Arch Linux : Can't start Xorg X server
i have install xrdp and xrdp-sesman, they can start ,but have some problems.My system is archlinux Kernel: 5.17.5 here is the xrdp service
sudo systemctl status xrdp|cat
● xrdp.service - xrdp daemon
Loaded: loaded (/usr/lib/systemd/system/xrdp.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2022-05-06 14:58:20 CST; 2min 3s ago
Docs: man:xrdp(8)
man:xrdp.ini(5)
Process: 109697 ExecStart=/usr/local/sbin/xrdp $XRDP_OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 109698 (xrdp)
Tasks: 1 (limit: 38340)
Memory: 872.0K
CPU: 4ms
CGroup: /system.slice/xrdp.service
└─ 109698 /usr/local/sbin/xrdp
May 06 14:58:19 nian systemd[1]: Starting xrdp daemon...
May 06 14:58:19 nian xrdp[109697]: [INFO ] address [0.0.0.0] port [3389] mode 1
May 06 14:58:19 nian xrdp[109697]: [INFO ] listening to port 3389 on 0.0.0.0
May 06 14:58:19 nian xrdp[109697]: [INFO ] xrdp_listen_pp done
May 06 14:58:19 nian systemd[1]: xrdp.service: Can't open PID file /run/xrdp.pid (yet?) after start: Operation not permitted
May 06 14:58:20 nian systemd[1]: Started xrdp daemon.
May 06 14:58:21 nian xrdp[109698]: [INFO ] starting xrdp with pid 109698
May 06 14:58:21 nian xrdp[109698]: [INFO ] address [0.0.0.0] port [3389] mode 1
May 06 14:58:21 nian xrdp[109698]: [INFO ] listening to port 3389 on 0.0.0.0
May 06 14:58:21 nian xrdp[109698]: [INFO ] xrdp_listen_pp done
here is the xrdp-sesman service
sudo systemctl status xrdp-sesman.service|cat
● xrdp-sesman.service - xrdp session manager
Loaded: loaded (/usr/lib/systemd/system/xrdp-sesman.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2022-05-06 14:58:19 CST; 7min ago
Docs: man:xrdp-sesman(8)
man:sesman.ini(5)
Process: 109695 ExecStart=/usr/local/sbin/xrdp-sesman $SESMAN_OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 109696 (xrdp-sesman)
Tasks: 1 (limit: 38340)
Memory: 828.0K
CPU: 3ms
CGroup: /system.slice/xrdp-sesman.service
└─ 109696 /usr/local/sbin/xrdp-sesman
May 06 14:58:19 nian systemd[1]: Starting xrdp session manager...
May 06 14:58:19 nian xrdp-sesman[109696]: [INFO ] starting xrdp-sesman with pid 109696
May 06 14:58:19 nian systemd[1]: Started xrdp session manager.
May 06 14:58:19 nian xrdp-sesman[109696]: [INFO ] Sesman now listening on /var/run/xrdp-sesman/sesman.socket
xrdp.log
[20220506-15:06:48] [INFO ] Socket 12: AF_INET connection received f
rom 192.168.1.23 port 47758
[20220506-15:06:48] [INFO ] Using default X.509 certificate: /etc/xr
dp/cert.pem
[20220506-15:06:48] [INFO ] Using default X.509 key file: /etc/xrdp/
key.pem
[20220506-15:06:48] [INFO ] Security protocol: configured [SSL|RDP],
requested [SSL|HYBRID|RDP], selected [SSL]
[20220506-15:06:48] [INFO ] Connected client computer name: nian
[20220506-15:06:48] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type
0xc006 is unknown (ignored)
[20220506-15:06:48] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type
0xc00a is unknown (ignored)
[20220506-15:06:49] [INFO ] xrdp_load_keyboard_layout: Keyboard info
rmation sent by the RDP client, keyboard_type:[0x04], keyboard_subty
pe:[0x00], keylayout:[0x00000409]
[20220506-15:06:49] [INFO ] xrdp_load_keyboard_layout: model [] vari
ant [] layout [us] options []
[20220506-15:06:49] [INFO ] TLS connection established from 192.168.
1.23 port 47758: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384
[20220506-15:06:49] [INFO ] xrdp_caps_process_pointer: client suppor
ts new(color) cursor
[20220506-15:06:49] [INFO ] xrdp_process_offscreen_bmpcache: support
level 1 cache size 7864320 MB cache entries 2000
[20220506-15:06:49] [INFO ] xrdp_caps_process_codecs: RemoteFX, code
c id 3, properties len 49
[20220506-15:06:49] [WARN ] Client Capability: not enough orders sup
ported by client, client wants off screen bitmap but offscreen bitma
ps disabled
[20220506-15:06:49] [INFO ] Loading keymap file /etc/xrdp/km-0000040
9.ini
[20220506-15:06:49] [WARN ] local keymap file for 0x00000409 found a
nd doesn't match built in keymap, using local keymap file
[20220506-15:06:55] [INFO ] connecting to sesman on sesman.socket
[20220506-15:06:55] [WARN ] Ignoring obsolete SCP port value '3350'
[20220506-15:06:55] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20220506-15:06:55] [INFO ] sesman connect ok
[20220506-15:06:55] [INFO ] sending login info to session manager. P
lease wait...
[20220506-15:06:55] [INFO ] xrdp_wm_log_msg: login successful for us
er nian on display 10
[20220506-15:06:55] [INFO ] login successful for user nian on displa
y 10
[20220506-15:06:55] [INFO ] loaded module 'libxup.so' ok, interface
size 11064, version 4
[20220506-15:06:55] [INFO ] started connecting
[20220506-15:06:55] [INFO ] lib_mod_connect: connecting via UNIX soc
ket
[20220506-15:07:25] [INFO ] connection problem, giving up
[20220506-15:07:25] [INFO ] some problem
[20220506-15:07:25] [ERROR] xrdp_wm_log_msg: Error connecting to use
r session
[20220506-15:07:25] [INFO ] Error connecting to user session
xrdp-sesman.log
[20220506-15:06:55] [INFO ] Socket 13: AF_UNIX connection received
[20220506-15:06:55] [INFO ] Received request to create Xorg session
for user: nian
[20220506-15:06:55] [INFO ] Terminal Server Users group is disabled,
allowing authentication
[20220506-15:06:55] [INFO ] ++ created session (access granted): use
rname nian, ip 192.168.1.23:47758 - socket: 12
[20220506-15:06:55] [INFO ] Starting session: session_pid 110140, di
splay :10.0, width 2516, height 1320, bpp 24, client ip 192.168.1.23
:47758 - socket: 12, user name nian
[20220506-15:06:55] [INFO ] [session start] (display 10): calling au
th_start_session from pid 110140
[20220506-15:06:55] [INFO ] Starting X server on display 10: Xorg :1
0 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -l
ogfile .xorgxrdp.%s.log
[20220506-15:07:04] [WARN ] Timed out waiting for X server on displa
y 10 to startup
[20220506-15:07:04] [INFO ] Session started successfully for user ni
an on display 10
[20220506-15:07:04] [INFO ] Session in progress on display 10, waiti
ng until the window manager (pid 110141) exits to end the session
[20220506-15:07:04] [INFO ] Starting the xrdp channel server for dis
play 10
[20220506-15:07:05] [WARN ] Timed out waiting for X server on displa
y 10 to startup
[20220506-15:07:05] [ERROR] There is no X server active on display 1
0
[20220506-15:07:05] [ERROR] A fatal error has occured attempting to
start the window manager on display 10, aborting connection
[20220506-15:07:05] [WARN ] Window manager (pid 110141, display 10)
exited quickly (1 secs). This could indicate a window manager config
problem
[20220506-15:07:05] [INFO ] Calling auth_stop_session and auth_end f
rom pid 110140
[20220506-15:07:05] [INFO ] Terminating X server (pid 110142) on dis
play 10
[20220506-15:07:05] [INFO ] Terminating the xrdp channel server (pid
110146) on display 10
[20220506-15:07:05] [INFO ] X server on display 10 (pid 110142) retu
rned exit code 1 and signal number 0
[20220506-15:07:05] [INFO ] xrdp channel server for display 10 (pid
110146) exit code 0 and signal number 0
[20220506-15:07:05] [INFO ] cleanup_sockets:
[20220506-15:07:05] [INFO ] Process 110140 has exited
[20220506-15:07:05] [INFO ] ++ terminated session: username nian, d
isplay :10.0, session_pid 110140, ip 192.168.1.23:47758 - socket: 12
[20220506-15:07:25] [ERROR] sesman_main_loop: trans_check_wait_objs
failed, removing trans
cat /home/nian/.xinitrc
#!/bin/bash
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
DEFAULT_SESSION=startplasma-x11
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
get_session(){
local dbus_args=(--sh-syntax)
case $1 in
awesome) dbus_args+=(awesome) ;;
bspwm) dbus_args+=(bspwm-session) ;;
budgie) dbus_args+=(budgie-desktop) ;;
cinnamon) dbus_args+=(cinnamon-session) ;;
deepin) dbus_args+=(startdde) ;;
enlightenment) dbus_args+=(enlightenment_start) ;;
fluxbox) dbus_args+=(startfluxbox) ;;
gnome) dbus_args+=(gnome-session) ;;
i3|i3wm) dbus_args+=(i3 --shmlog-size 0) ;;
jwm) dbus_args+=(jwm) ;;
kde) dbus_args+=(startplasma-x11) ;;
lxde) dbus_args+=(startlxde) ;;
lxqt) dbus_args+=(lxqt-session) ;;
mate) dbus_args+=(mate-session) ;;
xfce) dbus_args+=(xfce4-session) ;;
openbox) dbus_args+=(openbox-session) ;;
*) dbus_args+=($DEFAULT_SESSION) ;;
esac
echo "dbus-launch ${dbus_args[*]}"
}
exec $(get_session "$1")
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (7 by maintainers)
Hi @matt335672 , I am experiencing a similar issue as @mustafa58 . Adding
Option "AutoAddGPU" "off"as you suggested didn’t work for me. However, I found that addingGPUDevice ""right underneathDevice "Video Card (xrdpdev)"in the"Screen"section fixed the problem. From some testing, it seems that thisGPUDevice ""setting is needed because I have a"Device"section in one of the *.conf files in /etc/X11/xorg.conf.d/ . X must be seeing that and automatically adding the device specified in that section as aGPUDevicesince it isn’t theDeviceproper. WhyOption "AutoAddGPU" "off"isn’t working is less clear to me, but according to the documentationAutoAddGPUmay only apply to devices added from the udev backend, not devices specified in *.conf files.If you would like me to file a separate issue, post my logs, etc., please let me know.
I have the same problem (on Manjaro) param was already set