LXDE XRDP with LXDE

I am trying to set up net/xrdp on 12.1-RELEASE-p7 with LXDE. There is something I am doing wrong and I cannot understand what.

I can connect from Windows to the XRDP server and I can authenticate. After that, my xrdp.log will show
Code:
[20200727-19:02:58] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20200727-19:02:58] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20200727-19:02:58] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20200727-19:02:58] [DEBUG] return value from xrdp_mm_connect 0
[20200727-19:02:58] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20200727-19:02:58] [DEBUG] xrdp_wm_log_msg: started connecting
[20200727-19:03:00] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:02] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:04] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:06] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:08] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:09] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:11] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:13] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:15] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:16] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:18] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:20] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:22] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:23] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:25] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:27] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:29] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:30] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:33] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:34] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:36] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:37] [DEBUG] Closed socket 19 (AF_UNIX)
[20200727-19:03:40] [DEBUG] Closed socket 19 (AF_UNIX)
until the connection times out. xrdp-sesman.log states
Code:
[20200727-19:40:47] [INFO ] A connection received from ::1 port 23835
[20200727-19:40:47] [INFO ] ++ created session (access granted): username xxx, ip ::ffff:10.168.0.53:15549 - socket: 12
[20200727-19:40:47] [INFO ] starting Xorg session...
[20200727-19:40:47] [DEBUG] Closed socket 9 (AF_INET6 :: port 5910)
[20200727-19:40:47] [DEBUG] Closed socket 9 (AF_INET6 :: port 6010)
[20200727-19:40:47] [DEBUG] Closed socket 9 (AF_INET6 :: port 6210)
[20200727-19:40:47] [DEBUG] Closed socket 9 (AF_INET6 :: port 5911)
[20200727-19:40:47] [DEBUG] Closed socket 9 (AF_INET6 :: port 6011)
[20200727-19:40:47] [DEBUG] Closed socket 9 (AF_INET6 :: port 6211)
[20200727-19:40:47] [DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350)
[20200727-19:40:47] [INFO ] calling auth_start_session from pid 2635
[20200727-19:40:47] [DEBUG] Closed socket 7 (AF_INET6 ::1 port 3350)
[20200727-19:40:47] [DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350)
[20200727-19:40:47] [INFO ] Xorg :11 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp
[20200727-19:40:58] [ERROR] X server for display 11 startup timeout
[20200727-19:40:58] [CORE ] waiting for window manager (pid 2637) to exit
[20200727-19:40:58] [ERROR] X server for display 11 startup timeout
[20200727-19:40:58] [ERROR] another Xserver might already be active on display 11 - see log
[20200727-19:40:58] [DEBUG] aborting connection...
[20200727-19:40:58] [CORE ] window manager (pid 2637) did exit, cleaning up session
[20200727-19:40:58] [INFO ] calling auth_stop_session and auth_end from pid 2636
[20200727-19:40:58] [DEBUG] cleanup_sockets:
[20200727-19:40:58] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_socket_11
[20200727-19:40:58] [DEBUG] cleanup_sockets: failed to delete /tmp/.xrdp/xrdp_chansrv_socket_11
[20200727-19:40:58] [INFO ] ++ terminated session:  username xxx, display :11.0, session_pid 2635, ip ::ffff:10.168.0.53:15549 - socket: 12

My /usr/local/etc/xrdp/startwm.sh contains
Code:
#!/bin/sh
#
# This script is an example. Edit this to suit your needs.
# If ${HOME}/startwm.sh exists, xrdp-sesman will execute it instead of this.

#### set environment variables here if you want
# export LANG=en_US.UTF-8

#### start desktop environment
# exec gnome-session
# exec mate-session
# exec start-lumina-desktop
# exec startkde
# exec startxfce4
# exec xterm
exec startlxde
and there is no user directory file called startwm.sh.

What is the thing that I am missing?
 
mikkol The comment in the shell script tells it clearly. If the file ${HOME}/startwm.sh exists, it will be executed instead of this /usr/local/etc/xrdp/startwm.sh. So if that file doesn't exist, this /usr/local/etc/xrdp/startwm.sh will be executed. So don't worry about ${HOME}/startwm.sh not exist.
 
mikkol The comment in the shell script tells it clearly. If the file ${HOME}/startwm.sh exists, it will be executed instead of this /usr/local/etc/xrdp/startwm.sh. So if that file doesn't exist, this /usr/local/etc/xrdp/startwm.sh will be executed. So don't worry about ${HOME}/startwm.sh not exist.
Thank you. I am not worrying about there not being a startwm.sh in the user's home directory. I'm stating that this is the case so that we can focus on the /usr/local/etc/xrdp/startwm.sh, instead.
 
Back
Top