Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XRDP doesn't work with gnome #847

Closed
porunov opened this issue Aug 10, 2017 · 74 comments

Comments

@porunov
Copy link

commented Aug 10, 2017

Hello,
I tried to install an XRDP server on gnome, kde and unity desktops. Spend 4 days, but still without success.
Here are my results till now:
Debian 9.1 Gnome - XRDP doesn't work
Debian 9.1 KDE - XRDP doesn't work
Ubuntu 17.04 Gnome - XRDP doesn't work
Ubuntu 17.04 Unity - XRDP doesn't work
CentOS 7.3 Gnome - XRDP WORKS!!!
Fedora 26 Gnome - XRDP doesn't work

As you can see only CentOS works with XRDP.
It might be problems on my machine.
What do I have:
Server - Dell Poweredge T30
GPU - Intel HD Graphics 530

I found that only CentOS doesn't have drivers for this graphic card. So, maybe when my graphic card is used then XRDP doesn't work in this scenario.

I tried to install default xrdp distro packets and compile XRDP 0.9.3 by myself. Both ways failed.

Here are my XRDP logs from Fedora:

xrdp.log:

[20170810-17:01:29] [INFO ] starting xrdp with pid 3159
[20170810-17:01:29] [INFO ] listening to port 3389 on 0.0.0.0
[20170810-17:02:18] [INFO ] Socket 12: AF_INET connection received from 192.168.0.133 port 40692
[20170810-17:02:18] [DEBUG] Closed socket 12 (AF_INET 192.168.0.134:3389)
[20170810-17:02:18] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20170810-17:02:18] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20170810-17:02:18] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20170810-17:02:18] [DEBUG] TLSv1.2 enabled
[20170810-17:02:18] [DEBUG] TLSv1.1 enabled
[20170810-17:02:18] [DEBUG] TLSv1 enabled
[20170810-17:02:18] [DEBUG] Security layer: requested 3, selected 1
[20170810-17:02:20] [INFO ] connected client computer name: debian
[20170810-17:02:20] [INFO ] TLS connection established from 192.168.0.133 port 40692: TLSv1.2 with cipher AES256-GCM-SHA384
[20170810-17:02:20] [DEBUG] xrdp_00000c96_wm_login_mode_event_00000001
[20170810-17:02:20] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20170810-17:02:20] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20170810-17:02:29] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20170810-17:02:30] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20170810-17:02:30] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20170810-17:02:30] [DEBUG] return value from xrdp_mm_connect 0
[20170810-17:02:30] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20170810-17:02:30] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20170810-17:02:30] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5910
[20170810-17:02:33] [DEBUG] VNC error 1 after security negotiation
[20170810-17:02:33] [DEBUG] VNC error before sending share flag
[20170810-17:02:33] [DEBUG] VNC error before receiving server init
[20170810-17:02:33] [DEBUG] VNC error before receiving pixel format
[20170810-17:02:33] [DEBUG] VNC error before receiving name length
[20170810-17:02:33] [DEBUG] VNC error before receiving name
[20170810-17:02:33] [DEBUG] xrdp_wm_log_msg: VNC error - problem connecting
[20170810-17:02:33] [DEBUG] Closed socket 19 (AF_INET 0.0.0.0:56802)
[20170810-17:02:33] [DEBUG] xrdp_wm_log_msg: some problem
[20170810-17:02:33] [DEBUG] xrdp_mm_module_cleanup
[20170810-17:02:33] [DEBUG] VNC mod_exit
[20170810-17:02:33] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:57298)
[20170810-17:02:45] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20170810-17:02:46] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20170810-17:02:46] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20170810-17:02:46] [DEBUG] return value from xrdp_mm_connect 0
[20170810-17:02:46] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20170810-17:02:46] [DEBUG] xrdp_wm_log_msg: started connecting
[20170810-17:02:49] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:02:53] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:02:56] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:03:00] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:03:03] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:03:07] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:03:10] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:03:14] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:03:17] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:03:21] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:03:24] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:03:28] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:03:31] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:03:35] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:03:38] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:03:42] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:03:45] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:03:49] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:03:52] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:03:56] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:03:59] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:04:03] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:04:06] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:04:10] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:04:13] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:04:17] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:04:20] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:04:24] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:04:27] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:04:31] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:04:34] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:04:38] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:04:39] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20170810-17:04:39] [CORE ] shutting down log subsystem...
[20170810-17:04:42] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:04:45] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:04:49] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:04:52] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:04:56] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:04:59] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:05:03] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:05:06] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:05:10] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:05:13] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:05:17] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:05:20] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:05:24] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:05:27] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:05:31] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:05:34] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:05:38] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:05:41] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:05:45] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:05:48] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:05:52] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:05:55] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:05:59] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:06:02] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:06:06] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:06:09] [DEBUG] Closed socket 19 (AF_UNIX)
[20170810-17:06:10] [INFO ] starting xrdp with pid 3721
[20170810-17:06:10] [INFO ] listening to port 3389 on 0.0.0.0
[20170810-17:07:32] [INFO ] Socket 12: AF_INET connection received from 192.168.0.133 port 46736
[20170810-17:07:32] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20170810-17:07:32] [DEBUG] Closed socket 12 (AF_INET 192.168.0.134:3389)
[20170810-17:07:32] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20170810-17:07:32] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20170810-17:07:32] [DEBUG] TLSv1.2 enabled
[20170810-17:07:32] [DEBUG] TLSv1.1 enabled
[20170810-17:07:32] [DEBUG] TLSv1 enabled
[20170810-17:07:32] [DEBUG] Security layer: requested 3, selected 1
[20170810-17:07:32] [INFO ] connected client computer name: debian
[20170810-17:07:32] [INFO ] TLS connection established from 192.168.0.133 port 46736: TLSv1.2 with cipher AES256-GCM-SHA384
[20170810-17:07:32] [DEBUG] xrdp_00000f84_wm_login_mode_event_00000001
[20170810-17:07:32] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20170810-17:07:32] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20170810-17:07:45] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20170810-17:07:46] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20170810-17:07:46] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20170810-17:07:46] [DEBUG] return value from xrdp_mm_connect 0
[20170810-17:07:46] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20170810-17:07:46] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20170810-17:07:46] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5910
[20170810-17:07:49] [DEBUG] VNC error 1 after security negotiation
[20170810-17:07:49] [DEBUG] VNC error before sending share flag
[20170810-17:07:49] [DEBUG] VNC error before receiving server init
[20170810-17:07:49] [DEBUG] VNC error before receiving pixel format
[20170810-17:07:49] [DEBUG] VNC error before receiving name length
[20170810-17:07:49] [DEBUG] VNC error before receiving name
[20170810-17:07:49] [DEBUG] xrdp_wm_log_msg: VNC error - problem connecting
[20170810-17:07:49] [DEBUG] Closed socket 19 (AF_INET 0.0.0.0:58226)
[20170810-17:07:49] [DEBUG] xrdp_wm_log_msg: some problem
[20170810-17:07:49] [DEBUG] xrdp_mm_module_cleanup
[20170810-17:07:49] [DEBUG] VNC mod_exit
[20170810-17:07:49] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:58722)

xrdp-sesman.log

[20170810-17:01:29] [DEBUG] libscp initialized
[20170810-17:01:29] [INFO ] starting xrdp-sesman with pid 3158
[20170810-17:01:29] [INFO ] listening to port 3350 on 127.0.0.1
[20170810-17:02:29] [INFO ] A connection received from 127.0.0.1 port 57298
[20170810-17:02:30] [INFO ] ++ created session (access granted): username alex, ip 192.168.0.133:40692 - socket: 12
[20170810-17:02:30] [INFO ] starting Xvnc session...
[20170810-17:02:30] [DEBUG] Closed socket 12 (AF_INET 0.0.0.0:5910)
[20170810-17:02:30] [DEBUG] Closed socket 12 (AF_INET 0.0.0.0:6010)
[20170810-17:02:30] [DEBUG] Closed socket 12 (AF_INET 0.0.0.0:6210)
[20170810-17:02:30] [DEBUG] Closed socket 10 (AF_INET 127.0.0.1:3350)
[20170810-17:02:30] [DEBUG] Closed socket 9 (AF_INET 127.0.0.1:3350)
[20170810-17:02:30] [DEBUG] Closed socket 10 (AF_INET 127.0.0.1:3350)
[20170810-17:02:30] [INFO ] Xvnc :10 -auth .Xauthority -geometry 1024x768 -depth 16 -rfbauth /home/alex/.vnc/sesman_alex_passwd:10 -bs -nolisten tcp -localhost -dpi 96  
[20170810-17:02:30] [CORE ] waiting for window manager (pid 3231) to exit
[20170810-17:02:31] [CORE ] window manager (pid 3231) did exit, cleaning up session
[20170810-17:02:31] [INFO ] ++ terminated session:  username alex, display :10.0, session_pid 3227, ip 192.168.0.133:40692 - socket: 12
[20170810-17:02:45] [INFO ] A connection received from 127.0.0.1 port 57306
[20170810-17:02:46] [INFO ] ++ created session (access granted): username alex, ip 192.168.0.133:40692 - socket: 12
[20170810-17:02:46] [INFO ] starting Xorg session...
[20170810-17:02:46] [DEBUG] Closed socket 10 (AF_INET 0.0.0.0:5910)
[20170810-17:02:46] [DEBUG] Closed socket 10 (AF_INET 0.0.0.0:6010)
[20170810-17:02:46] [DEBUG] Closed socket 10 (AF_INET 0.0.0.0:6210)
[20170810-17:02:46] [DEBUG] Closed socket 5 (AF_INET 127.0.0.1:3350)
[20170810-17:02:46] [DEBUG] Closed socket 9 (AF_INET 127.0.0.1:3350)
[20170810-17:02:46] [DEBUG] Closed socket 5 (AF_INET 127.0.0.1:3350)
[20170810-17:02:46] [INFO ] setpriv --no-new-privs Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log  
[20170810-17:02:56] [ERROR] X server for display 10 startup timeout
[20170810-17:02:56] [CORE ] waiting for window manager (pid 3368) to exit
[20170810-17:02:56] [ERROR] X server for display 10 startup timeout
[20170810-17:02:56] [ERROR] another Xserver might already be active on display 10 - see log
[20170810-17:02:56] [DEBUG] aborting connection...
[20170810-17:02:56] [CORE ] window manager (pid 3368) did exit, cleaning up session
[20170810-17:02:56] [INFO ] ++ terminated session:  username alex, display :10.0, session_pid 3367, ip 192.168.0.133:40692 - socket: 12
[20170810-17:06:10] [INFO ] shutting down sesman 1
[20170810-17:06:10] [DEBUG] Closed socket 9 (AF_INET 127.0.0.1:3350)
[20170810-17:06:10] [CORE ] shutting down log subsystem...
[20170810-17:06:10] [DEBUG] libscp initialized
[20170810-17:06:10] [INFO ] starting xrdp-sesman with pid 3720
[20170810-17:06:10] [INFO ] listening to port 3350 on 127.0.0.1
[20170810-17:07:45] [INFO ] A connection received from 127.0.0.1 port 58722
[20170810-17:07:46] [INFO ] ++ created session (access granted): username alex, ip 192.168.0.133:46736 - socket: 12
[20170810-17:07:46] [INFO ] starting Xvnc session...
[20170810-17:07:46] [DEBUG] Closed socket 12 (AF_INET 0.0.0.0:5910)
[20170810-17:07:46] [DEBUG] Closed socket 12 (AF_INET 0.0.0.0:6010)
[20170810-17:07:46] [DEBUG] Closed socket 12 (AF_INET 0.0.0.0:6210)
[20170810-17:07:46] [DEBUG] Closed socket 10 (AF_INET 127.0.0.1:3350)
[20170810-17:07:46] [DEBUG] Closed socket 9 (AF_INET 127.0.0.1:3350)
[20170810-17:07:46] [DEBUG] Closed socket 10 (AF_INET 127.0.0.1:3350)
[20170810-17:07:46] [INFO ] Xvnc :10 -auth .Xauthority -geometry 1024x768 -depth 16 -rfbauth /home/alex/.vnc/sesman_alex_passwd:10 -bs -nolisten tcp -localhost -dpi 96  
[20170810-17:07:46] [CORE ] waiting for window manager (pid 3978) to exit
[20170810-17:07:47] [CORE ] window manager (pid 3978) did exit, cleaning up session
[20170810-17:07:47] [INFO ] ++ terminated session:  username alex, display :10.0, session_pid 3976, ip 192.168.0.133:46736 - socket: 12

Please, if you have any ideas / suggestions how to instal XRDP I would be happy!

@shalabhgoel13

This comment has been minimized.

Copy link

commented Aug 11, 2017

@porunov

This comment has been minimized.

Copy link
Author

commented Aug 11, 2017

@lieff

This comment has been minimized.

Copy link

commented Aug 11, 2017

I too can't run xrdp on modern distributions out of box, but can with some modifications.

For Ubontu 17.04: dpkg-reconfigure xserver-xorg-legacy and switch allowed_users=anybody. This because of better X11 security in modern distributions.
Then install mate and modify /etc/xrdp/startwm.sh:

#!/bin/sh
# xrdp X session start script (c) 2015 mirabilos
# published under The MirOS Licence

if test -r /etc/default/locale; then
	. /etc/default/locale
	test -z "${LANG+x}" || export LANG
	test -z "${LANGUAGE+x}" || export LANGUAGE
	test -z "${LC_ADDRESS+x}" || export LC_ADDRESS
	test -z "${LC_ALL+x}" || export LC_ALL
	test -z "${LC_COLLATE+x}" || export LC_COLLATE
	test -z "${LC_CTYPE+x}" || export LC_CTYPE
	test -z "${LC_IDENTIFICATION+x}" || export LC_IDENTIFICATION
	test -z "${LC_MEASUREMENT+x}" || export LC_MEASUREMENT
	test -z "${LC_MESSAGES+x}" || export LC_MESSAGES
	test -z "${LC_MONETARY+x}" || export LC_MONETARY
	test -z "${LC_NAME+x}" || export LC_NAME
	test -z "${LC_NUMERIC+x}" || export LC_NUMERIC
	test -z "${LC_PAPER+x}" || export LC_PAPER
	test -z "${LC_TELEPHONE+x}" || export LC_TELEPHONE
	test -z "${LC_TIME+x}" || export LC_TIME
	test -z "${LOCPATH+x}" || export LOCPATH
fi

#original:
#test -x /etc/X11/Xsession && exec /etc/X11/Xsession
#exec /bin/sh /etc/X11/Xsession

#modified:
export LOGNAME=$USER
export LIBGL_ALWAYS_INDIRECT=1

mate-session
#gnome-session
#startxfce4
#unity

At least this configuration works for me with xrdp from repo.

@shalabhgoel13

This comment has been minimized.

Copy link

commented Aug 11, 2017

@porunov

This comment has been minimized.

Copy link
Author

commented Aug 14, 2017

After spending 9 days I wasn't being able to run Gnome 3 under xrdp.

The situation is the next:
I connect with the next command to the server:
xfreerdp +clipboard /sound:rate:44100,channel:2 /v:192.168.0.134 /u:alex

it asks to choose backend and input username / password. I choose Xorg, put my credentials and press login.

It connects to the desktop, but desktop shows only for about 0.5 - 1 second and then connection closes and I see the next error:

[13:28:04:443] [3792:3793] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rdpdr
[13:28:04:443] [3792:3793] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rdpsnd
[13:28:04:443] [3792:3793] [INFO][com.freerdp.client.common.cmdline] - loading channelEx cliprdr
[13:28:04:551] [3792:3793] [ERROR][com.freerdp.core.gcc] - requested 3 channels, got 0 instead
[13:28:04:583] [3792:3793] [INFO][com.freerdp.gdi] - Local framebuffer format  PIXEL_FORMAT_BGRX32
[13:28:04:583] [3792:3793] [INFO][com.freerdp.gdi] - Remote framebuffer format PIXEL_FORMAT_RGB16
[13:28:04:594] [3792:3793] [INFO][com.winpr.clipboard] - initialized POSIX local file subsystem
[13:28:04:601] [3792:3803] [INFO][com.freerdp.channels.rdpsnd.client] - Loaded pulse backend for rdpsnd
[13:28:08:595] [3792:3793] [INFO][com.freerdp.core] - ERRINFO_LOGOFF_BY_USER (0x0000000C):The disconnection was initiated by the user logging off his or her session on the server.

Sometimes it shows:

[13:19:56:864] [1076:1077] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rdpdr
[13:19:56:864] [1076:1077] [INFO][com.freerdp.client.common.cmdline] - loading channelEx rdpsnd
[13:19:56:864] [1076:1077] [INFO][com.freerdp.client.common.cmdline] - loading channelEx cliprdr
[13:19:56:967] [1076:1077] [INFO][com.freerdp.gdi] - Local framebuffer format  PIXEL_FORMAT_BGRX32
[13:19:56:967] [1076:1077] [INFO][com.freerdp.gdi] - Remote framebuffer format PIXEL_FORMAT_RGB16
[13:19:56:979] [1076:1077] [INFO][com.winpr.clipboard] - initialized POSIX local file subsystem
[13:19:56:989] [1076:1087] [INFO][com.freerdp.channels.rdpsnd.client] - Loaded pulse backend for rdpsnd
[13:20:03:409] [1076:1087] [ERROR][com.freerdp.channels.rdpsnd.client] - unknown msgType 39
[13:20:05:928] [1076:1077] [INFO][com.freerdp.core] - ERRINFO_LOGOFF_BY_USER (0x0000000C):The disconnection was initiated by the user logging off his or her session on the server.

Below I am writing all needed info:

OS: Fedora 26 (the newest version).
XRDP: compiled from github (master)
xorgxrdp: compiled from github (master)

xrdp.ini:

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

; fork a new process for each incoming connection
fork=true
; tcp port to listen
port=3389
; 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
#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
; 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=/etc/xrdp/cert.pem
key_file=/etc/xrdp/key.pem
; set SSL protocols
; can be comma separated list of 'SSLv3', 'TLSv1', 'TLSv1.1', 'TLSv1.2'
ssl_protocols=TLSv1, TLSv1.1, TLSv1.2
; set TLS cipher suites
#tls_ciphers=HIGH

; 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=Xorg

allow_channels=false
allow_multimon=true
bitmap_cache=true
bitmap_compression=true
bulk_compression=true
#hidelogwindow=true
#max_bpp=32
max_bpp=16
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
; 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
ls_width=350
ls_height=430

; login screen background color in RGB format
ls_bg_color=dedede

; optional background image filename (bmp format).
#ls_background_image=

; logo
; full path to bmp-file or file in shared folder
ls_logo_filename=
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=60

; 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]
LogFile=xrdp.log
LogLevel=DEBUG
EnableSyslog=true
SyslogLevel=DEBUG
; LogLevel and SysLogLevel could by any of: core, error, warning, info or debug

[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

; for debugging xrdp, add following line to section xrdp1
#chansrvport=/tmp/.xrdp/xrdp_chansrv_socket_7210


;
; Session types
;

[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

[X11rdp]
name=X11rdp
lib=libxup.so
username=ask
password=ask
ip=127.0.0.1
port=-1
xserverbpp=24
code=10

#[console]
#name=console
#lib=libvnc.so
#ip=127.0.0.1
#port=5900
#username=na
#password=ask
##delay_ms=2000

#[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

#[sesman-any]
#name=sesman-any
#lib=libvnc.so
#ip=ask
#port=-1
#username=ask
#password=ask
#delay_ms=2000

#[neutrinordp-any]
#name=neutrinordp-any
#lib=libxrdpneutrinordp.so
#ip=ask
#port=ask3389
#username=ask
#password=ask

; 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/X11/Xwrapper.config:
allowed_users=anybody

/etc/polkit-1/rules.d/02-allow-colord.rules:

polkit.addRule(function(action, subject) {
   if ((action.id == "org.freedesktop.color-manager.create-device" ||
        action.id == "org.freedesktop.color-manager.create-profile" ||
        action.id == "org.freedesktop.color-manager.delete-device" ||
        action.id == "org.freedesktop.color-manager.delete-profile" ||
        action.id == "org.freedesktop.color-manager.modify-device" ||
        action.id == "org.freedesktop.color-manager.modify-profile") &&
        subject.isInGroup("vglusers")) {
      return polkit.Result.YES;
   }
});

/etc/polkit-1/rules.d/03-allow-pcscd.rules:

polkit.addRule(function(action, subject) {
    if (action.id == "org.debian.pcsc-lite.access_pcsc" &&
        subject.isInGroup("vglusers")) {
            return polkit.Result.YES;
    }
});

/home/alex/.Xclients:
gnome-session

LOGS

/var/log/xrdp.log:

[20170814-13:28:00] [INFO ] starting xrdp with pid 1239
[20170814-13:28:00] [INFO ] listening to port 3389 on 0.0.0.0
[20170814-13:28:04] [INFO ] Socket 12: AF_INET connection received from 192.168.0.133 port 59030
[20170814-13:28:04] [DEBUG] Closed socket 12 (AF_INET 192.168.0.134:3389)
[20170814-13:28:04] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20170814-13:28:04] [DEBUG] TLSv1.2 enabled
[20170814-13:28:04] [DEBUG] TLSv1.1 enabled
[20170814-13:28:04] [DEBUG] TLSv1 enabled
[20170814-13:28:04] [DEBUG] Info - All channels are disabled
[20170814-13:28:04] [DEBUG] Security layer: requested 3, selected 1
[20170814-13:28:04] [INFO ] connected client computer name: debian
[20170814-13:28:04] [INFO ] TLS connection established from 192.168.0.133 port 59030: TLSv1.2 with cipher AES256-GCM-SHA384
[20170814-13:28:04] [DEBUG] MCS_CJRQ - channel join request received
[20170814-13:28:04] [DEBUG] MCS_CJRQ - channel join request received
[20170814-13:28:04] [DEBUG] MCS_CJRQ - channel join request received
[20170814-13:28:04] [DEBUG] xrdp_000005d7_wm_login_mode_event_00000001
[20170814-13:28:04] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20170814-13:28:04] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20170814-13:28:04] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20170814-13:28:05] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20170814-13:28:05] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20170814-13:28:05] [DEBUG] return value from xrdp_mm_connect 0
[20170814-13:28:05] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20170814-13:28:05] [DEBUG] xrdp_wm_log_msg: started connecting
[20170814-13:28:05] [INFO ] lib_mod_log_peer: xrdp_pid=1495 connected to X11rdp_pid=1510 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=192.168.0.133 client_port=59030
[20170814-13:28:05] [DEBUG] xrdp_wm_log_msg: connected ok
[20170814-13:28:05] [DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
[20170814-13:28:05] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:52146)
[20170814-13:28:08] [DEBUG] Closed socket 20 (AF_UNIX)
[20170814-13:28:08] [DEBUG] Closed socket 12 (AF_INET 192.168.0.134:3389)
[20170814-13:28:08] [DEBUG] xrdp_mm_module_cleanup
[20170814-13:28:08] [DEBUG] Closed socket 19 (AF_UNIX)
[20170814-13:28:08] [ERROR] Listening socket is in wrong state, terminating listener
[20170814-13:28:08] [CORE ] shutting down log subsystem...

/var/log/xrdp-sesman.log:

[20170814-13:27:25] [INFO ] configuration reloaded, log subsystem restarted
[20170814-13:27:25] [DEBUG] Closed socket 9 (AF_INET 127.0.0.1:3350)
[20170814-13:27:25] [CORE ] shutting down log subsystem...
[20170814-13:28:00] [DEBUG] libscp initialized
[20170814-13:28:00] [INFO ] starting xrdp-sesman with pid 1238
[20170814-13:28:00] [INFO ] listening to port 3350 on 127.0.0.1
[20170814-13:28:04] [INFO ] A connection received from 127.0.0.1 port 52146
[20170814-13:28:05] [INFO ] ++ created session (access granted): username alex, ip 192.168.0.133:59030 - socket: 12
[20170814-13:28:05] [INFO ] starting Xorg session...
[20170814-13:28:05] [DEBUG] Closed socket 12 (AF_INET 0.0.0.0:5910)
[20170814-13:28:05] [DEBUG] Closed socket 12 (AF_INET 0.0.0.0:6010)
[20170814-13:28:05] [DEBUG] Closed socket 12 (AF_INET 0.0.0.0:6210)
[20170814-13:28:05] [DEBUG] Closed socket 10 (AF_INET 127.0.0.1:3350)
[20170814-13:28:05] [DEBUG] Closed socket 9 (AF_INET 127.0.0.1:3350)
[20170814-13:28:05] [DEBUG] Closed socket 10 (AF_INET 127.0.0.1:3350)
[20170814-13:28:05] [INFO ] setpriv --no-new-privs Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log  
[20170814-13:28:05] [CORE ] waiting for window manager (pid 1509) to exit
[20170814-13:28:08] [CORE ] window manager (pid 1509) did exit, cleaning up session
[20170814-13:28:08] [INFO ] ++ terminated session:  username alex, display :10.0, session_pid 1506, ip 192.168.0.133:59030 - socket: 12

/home/alex/.xorgxrdp.10.log:

[    11.374] 
X.Org X Server 1.19.3
Release Date: 2017-03-15
[    11.374] X Protocol Version 11, Revision 0
[    11.374] Build Operating System:  4.10.6-200.fc25.x86_64 
[    11.374] Current Operating System: Linux jblur.com 4.11.11-300.fc26.x86_64 #1 SMP Mon Jul 17 16:32:11 UTC 2017 x86_64
[    11.374] Kernel command line: BOOT_IMAGE=/vmlinuz-4.11.11-300.fc26.x86_64 root=UUID=ce1c6313-4783-401c-bfab-bee22843c04f ro rhgb quiet LANG=en_US.UTF-8
[    11.374] Build Date: 23 April 2017  11:51:31PM
[    11.374] Build ID: xorg-x11-server 1.19.3-4.fc26 
[    11.374] Current version of pixman: 0.34.0
[    11.374]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[    11.374] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    11.374] (++) Log file: ".xorgxrdp.10.log", Time: Mon Aug 14 13:28:05 2017
[    11.374] (++) Using config file: "/etc/X11/xrdp/xorg.conf"
[    11.374] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    11.374] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    11.377] (==) ServerLayout "X11 Server"
[    11.377] (**) |-->Screen "Screen (xrdpdev)" (0)
[    11.377] (**) |   |-->Monitor "Monitor"
[    11.377] (**) |   |-->Device "Video Card (xrdpdev)"
[    11.377] (**) |-->Input Device "xrdpMouse"
[    11.377] (**) |-->Input Device "xrdpKeyboard"
[    11.377] (**) Option "DontVTSwitch" "on"
[    11.377] (**) Option "AutoAddDevices" "off"
[    11.377] (**) Not automatically adding devices
[    11.377] (==) Automatically enabling devices
[    11.377] (==) Automatically adding GPU devices
[    11.377] (==) Automatically binding GPU devices
[    11.377] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    11.377] (==) FontPath set to:
        catalogue:/etc/X11/fontpath.d,
        built-ins
[    11.377] (==) ModulePath set to "/usr/lib64/xorg/modules"
[    11.377] (II) Loader magic: 0x823e00
[    11.377] (II) Module ABI versions:
[    11.377]    X.Org ANSI C Emulation: 0.4
[    11.377]    X.Org Video Driver: 23.0
[    11.377]    X.Org XInput driver : 24.1
[    11.377]    X.Org Server Extension : 10.0
[    11.380] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c2
[    11.381] (II) xfree86: Adding drm device (/dev/dri/card0)
[    11.381] (EE) systemd-logind: failed to take device /dev/dri/card0: Operation not permitted
[    11.487] (--) PCI:*(0:0:2:0) 8086:191d:1028:07c5 rev 6, Mem @ 0xde000000/16777216, 0xc0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/65536
[    11.487] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[    11.487] (II) LoadModule: "dbe"
[    11.487] (II) Module "dbe" already built-in
[    11.487] (II) LoadModule: "ddc"
[    11.487] (II) Module "ddc" already built-in
[    11.487] (II) LoadModule: "extmod"
[    11.487] (II) Module "extmod" already built-in
[    11.487] (II) LoadModule: "glx"
[    11.489] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[    11.493] (II) Module glx: vendor="X.Org Foundation"
[    11.493]    compiled for 1.19.3, module version = 1.0.0
[    11.493]    ABI class: X.Org Server Extension, version 10.0
[    11.493] (II) LoadModule: "int10"
[    11.493] (II) Loading /usr/lib64/xorg/modules/libint10.so
[    11.494] (II) Module int10: vendor="X.Org Foundation"
[    11.494]    compiled for 1.19.3, module version = 1.0.0
[    11.494]    ABI class: X.Org Video Driver, version 23.0
[    11.494] (II) LoadModule: "record"
[    11.494] (II) Module "record" already built-in
[    11.494] (II) LoadModule: "vbe"
[    11.494] (II) Loading /usr/lib64/xorg/modules/libvbe.so
[    11.495] (II) Module vbe: vendor="X.Org Foundation"
[    11.495]    compiled for 1.19.3, module version = 1.1.0
[    11.495]    ABI class: X.Org Video Driver, version 23.0
[    11.495] (II) LoadModule: "xorgxrdp"
[    11.495] (II) Loading /usr/lib64/xorg/modules/libxorgxrdp.so
[    11.497] (II) Module XORGXRDP: vendor="X.Org Foundation"
[    11.497]    compiled for 1.19.3, module version = 1.0.0
[    11.497]    ABI class: X.Org Video Driver, version 23.0
[    11.497] xorgxrdpSetup:
[    11.497] (II) LoadModule: "fb"
[    11.497] (II) Loading /usr/lib64/xorg/modules/libfb.so
[    11.497] (II) Module fb: vendor="X.Org Foundation"
[    11.497]    compiled for 1.19.3, module version = 1.0.0
[    11.497]    ABI class: X.Org ANSI C Emulation, version 0.4
[    11.497] (II) LoadModule: "xrdpdev"
[    11.497] (II) Loading /usr/lib64/xorg/modules/drivers/xrdpdev_drv.so
[    11.499] (II) Module XRDPDEV: vendor="X.Org Foundation"
[    11.499]    compiled for 1.19.3, module version = 1.0.0
[    11.499]    ABI class: X.Org Video Driver, version 23.0
[    11.499] xrdpdevSetup:
[    11.499] (II) LoadModule: "xrdpmouse"
[    11.499] (II) Loading /usr/lib64/xorg/modules/input/xrdpmouse_drv.so
[    11.499] (II) Module XRDPMOUSE: vendor="X.Org Foundation"
[    11.499]    compiled for 1.19.3, module version = 1.0.0
[    11.499]    Module class: X.Org XInput Driver
[    11.499]    ABI class: X.Org XInput driver, version 24.1
[    11.499] rdpmousePlug:
[    11.499] (II) LoadModule: "xrdpkeyb"
[    11.499] (II) Loading /usr/lib64/xorg/modules/input/xrdpkeyb_drv.so
[    11.499] (II) Module XRDPKEYB: vendor="X.Org Foundation"
[    11.499]    compiled for 1.19.3, module version = 1.0.0
[    11.499]    Module class: X.Org XInput Driver
[    11.499]    ABI class: X.Org XInput driver, version 24.1
[    11.499] rdpkeybPlug:
[    11.499] rdpIdentify:
[    11.499] (II) XRDPDEV: driver for xrdp: XRDPDEV
[    11.499] rdpDriverFunc: op 10
[    11.499] (WW) Falling back to old probe method for XRDPDEV
[    11.499] rdpProbe:
[    11.499] (II) Loading sub module "fb"
[    11.499] (II) LoadModule: "fb"
[    11.499] (II) Loading /usr/lib64/xorg/modules/libfb.so
[    11.499] (II) Module fb: vendor="X.Org Foundation"
[    11.499]    compiled for 1.19.3, module version = 1.0.0
[    11.499]    ABI class: X.Org ANSI C Emulation, version 0.4
[    11.499] (II) XRDPDEV(0): using default device
[    11.499] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    11.499] rdpPreInit:
[    11.499] (**) XRDPDEV(0): Depth 24, (--) framebuffer bpp 32
[    11.499] (==) XRDPDEV(0): RGB weight 888
[    11.499] (==) XRDPDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[    11.499] (==) XRDPDEV(0): Default visual is TrueColor
[    11.499] (==) XRDPDEV(0): DPI set to (96, 96)
[    11.499] (II) XRDPDEV(0):   mode "640x480" ok
[    11.499] (II) XRDPDEV(0):   mode "800x600" ok
[    11.499] (--) XRDPDEV(0): Virtual size is 800x600 (pitch 800)
[    11.499] (**) XRDPDEV(0):  Default mode "800x600": 36.0 MHz (scaled from 0.0 MHz), 35.2 kHz, 56.2 Hz
[    11.499] (II) XRDPDEV(0): Modeline "800x600"x0.0   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[    11.499] (==) Depth 24 pixmap format is 32 bpp
[    11.500] rdpScreenInit: virtualX 800 virtualY 600 rgbBits 8 depth 24
[    11.500] rdpScreenInit: pfbMemory bytes 1920000
[    11.500] rdpScreenInit: pfbMemory 0x7f296e75f010
[    11.501] rdpSimdInit: assigning yuv functions
[    11.501] rdpSimdInit: cpuid ax 1 cx 0 return ax 0x000506e3 bx 0x06100800 cx 0x7ffafbff dx 0xbfebfbff
[    11.501] rdpSimdInit: sse2 amd64 yuv functions assigned
[    11.501] rdpXvInit: depth 24
[    11.501] (==) XRDPDEV(0): Backing store enabled
[    11.502] rdpClientConInit: kill disconnected [0] timeout [0] sec
[    11.502] 
[    11.502] rdpScreenInit: out
[    11.502] (==) RandR enabled
[    11.508] (II) SELinux: Disabled on system
[    11.509] (II) AIGLX: Screen 0 is not DRI2 capable
[    11.509] (EE) AIGLX: reverting to software rendering
[    11.520] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[    11.521] (II) IGLX: Loaded and initialized swrast
[    11.521] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    11.557] (II) Using input driver 'XRDPMOUSE' for 'xrdpMouse'
[    11.557] (**) Option "CorePointer"
[    11.557] (**) xrdpMouse: always reports core events
[    11.557] rdpmousePreInit: drv 0xc9f450 info 0xdd5850, flags 0x0
[    11.557] (II) XINPUT: Adding extended input device "xrdpMouse" (type: Mouse, id 6)
[    11.557] rdpmouseControl: what 0
[    11.557] rdpmouseDeviceInit:
[    11.557] rdpmouseCtrl:
[    11.557] rdpRegisterInputCallback: type 1 proc 0x7f296eb38bf0
[    11.557] (**) xrdpMouse: (accel) keeping acceleration scheme 1
[    11.557] (**) xrdpMouse: (accel) acceleration profile 0
[    11.557] (**) xrdpMouse: (accel) acceleration factor: 2.000
[    11.557] (**) xrdpMouse: (accel) acceleration threshold: 4
[    11.557] rdpmouseControl: what 1
[    11.557] rdpmouseDeviceOn:
[    11.557] (II) Using input driver 'XRDPKEYB' for 'xrdpKeyboard'
[    11.557] (**) Option "CoreKeyboard"
[    11.557] (**) xrdpKeyboard: always reports core events
[    11.557] rdpkeybPreInit: drv 0xc9fb70 info 0xf5f440, flags 0x0
[    11.557] (II) XINPUT: Adding extended input device "xrdpKeyboard" (type: Keyboard, id 7)
[    11.557] rdpkeybControl: what 0
[    11.557] rdpkeybDeviceInit:
[    11.579] rdpkeybChangeKeyboardControl:
[    11.579] rdpkeybChangeKeyboardControl: autoRepeat on
[    11.579] rdpRegisterInputCallback: type 0 proc 0x7f296e935500
[    11.579] rdpkeybControl: what 1
[    11.579] rdpkeybDeviceOn:
[    11.587] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[    11.587] (II) AutoAddDevices is off - not adding device.
[    11.587] (II) config/udev: Adding input device Video Bus (/dev/input/event5)
[    11.587] (II) AutoAddDevices is off - not adding device.
[    11.587] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[    11.587] (II) AutoAddDevices is off - not adding device.
[    11.587] (II) config/udev: Adding input device Sleep Button (/dev/input/event0)
[    11.587] (II) AutoAddDevices is off - not adding device.
[    11.588] (II) config/udev: Adding drm device (/dev/dri/card0)
[    11.588] (II) xfree86: Adding drm device (/dev/dri/card0)
[    11.588] (EE) systemd-logind: failed to take device /dev/dri/card0: Operation not permitted
[    11.589] (II) config/udev: Adding input device HP HP USB 1000dpi Laser Mouse (/dev/input/event4)
[    11.589] (II) AutoAddDevices is off - not adding device.
[    11.589] (II) config/udev: Adding input device HP HP USB 1000dpi Laser Mouse (/dev/input/mouse0)
[    11.589] (II) AutoAddDevices is off - not adding device.
[    11.589] (II) config/udev: Adding input device HDA Intel PCH Rear Mic (/dev/input/event8)
[    11.589] (II) AutoAddDevices is off - not adding device.
[    11.589] (II) config/udev: Adding input device HDA Intel PCH Line Out (/dev/input/event9)
[    11.589] (II) AutoAddDevices is off - not adding device.
[    11.590] (II) config/udev: Adding input device HDA Intel PCH Front Headphone (/dev/input/event10)
[    11.590] (II) AutoAddDevices is off - not adding device.
[    11.590] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event11)
[    11.590] (II) AutoAddDevices is off - not adding device.
[    11.590] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=7 (/dev/input/event12)
[    11.590] (II) AutoAddDevices is off - not adding device.
[    11.590] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=8 (/dev/input/event13)
[    11.590] (II) AutoAddDevices is off - not adding device.
[    11.590] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=9 (/dev/input/event14)
[    11.590] (II) AutoAddDevices is off - not adding device.
[    11.590] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=10 (/dev/input/event15)
[    11.590] (II) AutoAddDevices is off - not adding device.
[    11.591] (II) config/udev: Adding input device HDA Intel PCH Front Mic (/dev/input/event7)
[    11.591] (II) AutoAddDevices is off - not adding device.
[    11.591] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event3)
[    11.591] (II) AutoAddDevices is off - not adding device.
[    11.592] (II) config/udev: Adding input device Dell WMI hotkeys (/dev/input/event6)
[    11.592] (II) AutoAddDevices is off - not adding device.
[    11.594] rdpSaveScreen:
[    11.594] rdpDeferredRandR:
[    11.594] rdpResizeSession: width 1024 height 768
[    11.594]   calling RRScreenSizeSet
[    11.594] rdpRRScreenSetSize: width 1024 height 768 mmWidth 271 mmHeight 203
[    11.594] rdpRRGetInfo:
[    11.594]   screen resized to 1024x768
[    11.596]   RRScreenSizeSet ok 1
[    11.596] rdpResizeSession: width 1024 height 768
[    11.679] rdpInDeferredUpdateCallback:
[    11.679] rdpkeybChangeKeyboardControl:
[    11.679] rdpkeybChangeKeyboardControl: autoRepeat off
[    11.956] rdpClientConGotConnection:
[    11.956] rdpClientConGotConnection: g_sck_accept ok new_sck 7
[    11.956] rdpClientConGotConnection: adding only clientCon
[    11.958] rdpClientConProcessMsgVersion: version 0 0 0 1
[    11.958] rdpClientConProcessScreenSizeMsg: set width 1024 height 768 bpp 16
[    11.958] rdpClientConProcessScreenSizeMsg: shmemid 65536 shmemptr 0x7f296e7b4000
[    11.958] rdpClientConProcessMsgClientInput: invalidate x 0 y 0 cx 1024 cy 768
[    11.962] rdpClientConProcessMsgClientInfo:
[    11.962]   got client info bytes 5744
[    11.962]   jpeg support 0
[    11.962]   offscreen support 1
[    11.962]   offscreen size 7864320
[    11.962]   offscreen entries 2000
[    11.962]   client supports glyph cache but server disabled
[    11.962]   client can do offscreen to offscreen blits
[    11.962]   client can do new(color) cursor
[    11.962]   client can not do multimon
[    11.962] rdpRRSetRdpOutputs: numCrtcs 0 monitorCount 0
[    11.962] rdpRRSetRdpOutputs: add output 0 left 0 top 0 width 1024 height 768
[    11.962] rdpLoadLayout: keylayout 0x00000409 variant  display 10
[    11.962] rdpkeybChangeKeyboardControl:
[    11.962] rdpkeybChangeKeyboardControl: autoRepeat on
[    11.962] rdpkeybChangeKeyboardControl:
[    11.962] rdpkeybChangeKeyboardControl: autoRepeat on
[    12.062] rdpInDeferredUpdateCallback:
[    12.062] rdpkeybChangeKeyboardControl:
[    12.062] rdpkeybChangeKeyboardControl: autoRepeat off
[    12.062] rdpkeybChangeKeyboardControl:
[    12.062] rdpkeybChangeKeyboardControl: autoRepeat off
[    12.176] rdpRRGetInfo:
[    12.184] rdpRRGetInfo:
[    12.200] rdpRRScreenSetSize: width 1024 height 768 mmWidth 271 mmHeight 203
[    12.200] rdpRRGetInfo:
[    12.200]   screen resized to 1024x768
[    12.201] rdpRROutputSetProperty:
[    12.201] rdpRROutputGetProperty:
[    12.203] rdpkeybChangeKeyboardControl:
[    12.203] rdpkeybChangeKeyboardControl: autoRepeat on
[    12.203] rdpkeybChangeKeyboardControl:
[    12.203] rdpkeybChangeKeyboardControl: autoRepeat on
[    12.203] rdpkeybChangeKeyboardControl:
[    12.203] rdpkeybChangeKeyboardControl: autoRepeat on
[    12.203] rdpkeybChangeKeyboardControl:
[    12.203] rdpkeybChangeKeyboardControl: autoRepeat on
[    12.303] rdpInDeferredUpdateCallback:
[    12.303] rdpkeybChangeKeyboardControl:
[    12.303] rdpkeybChangeKeyboardControl: autoRepeat off
[    12.303] rdpkeybChangeKeyboardControl:
[    12.303] rdpkeybChangeKeyboardControl: autoRepeat off
[    12.313] rdpkeybChangeKeyboardControl:
[    12.313] rdpkeybChangeKeyboardControl: autoRepeat off
[    12.313] rdpkeybChangeKeyboardControl:
[    12.313] rdpkeybChangeKeyboardControl: autoRepeat off
[    13.034] rdpkeybChangeKeyboardControl:
[    13.035] rdpkeybChangeKeyboardControl: autoRepeat off
[    13.035] rdpkeybChangeKeyboardControl:
[    13.035] rdpkeybChangeKeyboardControl: autoRepeat off
[    13.035] rdpRROutputGetProperty:
[    13.068] rdpRRGetInfo:
[    13.127] rdpkeybChangeKeyboardControl:
[    13.127] rdpkeybChangeKeyboardControl: autoRepeat off
[    13.127] rdpkeybChangeKeyboardControl:
[    13.127] rdpkeybChangeKeyboardControl: autoRepeat off
[    13.449] rdpkeybChangeKeyboardControl:
[    13.449] rdpkeybChangeKeyboardControl: autoRepeat off
[    13.449] rdpkeybChangeKeyboardControl:
[    13.449] rdpkeybChangeKeyboardControl: autoRepeat off
[    13.498] rdpRRGetInfo:
[    13.498] rdpRRGetInfo:
[    13.502] rdpSaveScreen:
[    13.800] rdpRRCrtcGetGamma: 0xf7e650 (nil) (nil) (nil)
[    14.100] rdpRRCrtcGetGamma: 0xf7e650 0x1324110 0x133b360 0x134df60
[    14.424] rdpkeybChangeKeyboardControl:
[    14.424] rdpkeybChangeKeyboardControl: autoRepeat off
[    14.424] rdpkeybChangeKeyboardControl:
[    14.424] rdpkeybChangeKeyboardControl: autoRepeat off
[    14.502] rdpmouseControl: what 2
[    14.502] rdpmouseDeviceOff:
[    14.502] rdpkeybControl: what 2
[    14.502] rdpkeybDeviceOff:
[    14.502] rdpkeybControl: what 3
[    14.502] rdpkeybUnInit: drv 0xc9fb70 info 0xf5f440, flags 0x0
[    14.503] rdpUnregisterInputCallback: proc 0x7f296e935500
[    14.503] rdpmouseControl: what 3
[    14.503] rdpmouseUnInit: drv 0xc9f450 info 0xdd5850, flags 0x0
[    14.503] rdpUnregisterInputCallback: proc 0x7f296eb38bf0
[    14.504] rdpCloseScreen:
[    14.504] xorgxrdpDownDown:
[    14.504] xorgxrdpDownDown: 1
[    14.504] rdpClientConDeinit:
[    14.504] rdpClientConDeinit: disconnecting only clientCon
[    14.504] rdpClientConDisconnect:
[    14.504] rdpClientConDisconnect: clientCon removed from dev list
[    14.504] rdpClientConDeinit: deleting file /tmp/.xrdp/xrdp_display_10
[    14.506] (II) Server terminated successfully (0). Closing log file.

If somebody is able to fix this problem, please, write a solution here. I see that it is a common problem and lots of people cannot use xrdp without hacking.

@imc0

This comment has been minimized.

Copy link

commented Sep 13, 2017

GNOME does seem a bit temperamental to start up. On Fedora 24 it worked most of the time, and I now have it working on Fedora 26 but I had to hack the startwm script to start a dbus. Without starting a dbus, I get this output from gnome-session:

** (process:25696): WARNING **: Could not make bus activated clients aware of XDG_CURRENT_DESKTOP=GNOME environment variable: Could not connect: Connection refused

My fix is to name the following startwm script in the sesman.ini config:

$ cat /usr/libexec/xrdp/startwm-local.sh 
#!/bin/sh
exec dbus-launch /usr/libexec/xrdp/startwm-bash.sh
@coolcapnc

This comment has been minimized.

Copy link

commented Sep 18, 2017

imc0 can you please clarify where exactly you added this information?

@imc0

This comment has been minimized.

Copy link

commented Sep 18, 2017

I created the script called /usr/libexec/xrdp/startwm-local.sh containing the two lines (revised version:)

#!/bin/sh
exec dbus-launch --exit-with-x11 /usr/libexec/xrdp/startwm-bash.sh

Then in the config file /etc/xrdp/sesman.ini where it says DefaultWindowManager write startwm-local.sh as the value.

I'm still not sure whose fault this is, because if I start vncserver manually then GNOME fires up no problem inside it. There is something about the xrdp environment that causes GNOME not to start its own dbus.

@coolcapnc

This comment has been minimized.

Copy link

commented Sep 18, 2017

Thanks, that got me able to get past the "VNC Error" message but only shows me a terminal instead of the full GUI. I am on RHEL 7.

@Suncatcher

This comment has been minimized.

Copy link

commented Sep 21, 2017

So is it possible to install xrdp on Ubuntu 17.04 out-of-the-box?
It seems to be installed good, but connection session is always terminated after I pass credentials to login window:

[20170921-11:07:11] [INFO ] starting xrdp with pid 19772
[20170921-11:07:11] [INFO ] listening to port 3389 on 0.0.0.0
[20170921-11:38:56] [INFO ] A connection received from: ::ffff:192.168.137.1 port 4275
[20170921-11:38:56] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20170921-11:38:56] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20170921-11:38:56] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20170921-11:38:56] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20170921-11:38:56] [DEBUG] Security layer: requested 11, selected 0
[20170921-11:38:56] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20170921-11:38:56] [ERROR] Listening socket is in wrong state, terminating listener
[20170921-11:38:58] [INFO ] A connection received from: ::ffff:192.168.137.1 port 4276
[20170921-11:38:58] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20170921-11:38:58] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20170921-11:38:58] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20170921-11:38:58] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20170921-11:38:58] [DEBUG] Security layer: requested 0, selected 0
[20170921-11:38:58] [DEBUG] xrdp_000050c3_wm_login_mode_event_00000001
[20170921-11:38:58] [INFO ] Loading keymap file /etc/xrdp/km-00000419.ini
[20170921-11:38:58] [WARN ] local keymap file for 0x00000419 found and doesn't match built in keymap, using local keymap file
[20170921-11:42:06] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20170921-11:42:06] [DEBUG] xrdp_mm_module_cleanup
[20170921-11:42:06] [ERROR] Listening socket is in wrong state, terminating listener
[20170921-11:42:25] [INFO ] A connection received from: ::ffff:192.168.137.1 port 4377
[20170921-11:42:25] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20170921-11:42:25] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20170921-11:42:25] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20170921-11:42:25] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20170921-11:42:25] [DEBUG] Security layer: requested 11, selected 0
[20170921-11:42:25] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20170921-11:42:25] [INFO ] A connection received from: ::ffff:192.168.137.1 port 4378
[20170921-11:42:25] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20170921-11:42:25] [ERROR] Listening socket is in wrong state, terminating listener
[20170921-11:42:25] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20170921-11:42:25] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20170921-11:42:25] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20170921-11:42:25] [DEBUG] Security layer: requested 0, selected 0
[20170921-11:42:25] [DEBUG] xrdp_000050d5_wm_login_mode_event_00000001
[20170921-11:42:26] [INFO ] Loading keymap file /etc/xrdp/km-00000407.ini
[20170921-11:42:26] [WARN ] local keymap file for 0x00000407 found and doesn't match built in keymap, using local keymap file
[20170921-11:42:33] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20170921-11:42:34] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20170921-11:42:34] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20170921-11:42:34] [DEBUG] return value from xrdp_mm_connect 0
[20170921-11:42:34] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20170921-11:42:34] [DEBUG] xrdp_wm_log_msg: started connecting
[20170921-11:42:35] [INFO ] lib_mod_log_peer: xrdp_pid=20693 connected to X11rdp_pid=20696 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:192.168.137.1 client_port=4378
[20170921-11:42:35] [DEBUG] xrdp_wm_log_msg: connected ok
[20170921-11:42:35] [DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
[20170921-11:42:35] [DEBUG] Closed socket 16 (AF_INET6 ::1 port 53258)
[20170921-11:42:35] [INFO ] The following channel is allowed: rdpdr (0)
[20170921-11:42:35] [INFO ] The following channel is allowed: rdpsnd (1)
[20170921-11:42:35] [INFO ] The following channel is allowed: cliprdr (2)
[20170921-11:42:35] [INFO ] The following channel is allowed: drdynvc (3)
[20170921-11:42:35] [DEBUG] The allow channel list now initialized for this session
[20170921-11:42:39] [DEBUG] Closed socket 18 (AF_UNIX)
[20170921-11:42:39] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20170921-11:42:39] [DEBUG] xrdp_mm_module_cleanup
[20170921-11:42:39] [DEBUG] Closed socket 17 (AF_UNIX)
[20170921-11:42:39] [ERROR] Listening socket is in wrong state, terminating listener
[20170921-11:42:46] [INFO ] A connection received from: ::ffff:192.168.137.1 port 4381
[20170921-11:42:46] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20170921-11:42:46] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20170921-11:42:46] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20170921-11:42:46] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20170921-11:42:46] [DEBUG] Security layer: requested 11, selected 0
[20170921-11:42:46] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20170921-11:42:46] [ERROR] Listening socket is in wrong state, terminating listener
[20170921-11:42:46] [INFO ] A connection received from: ::ffff:192.168.137.1 port 4382
[20170921-11:42:46] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20170921-11:42:46] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20170921-11:42:46] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20170921-11:42:46] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20170921-11:42:46] [DEBUG] Security layer: requested 0, selected 0
[20170921-11:42:50] [DEBUG] xrdp_0000517d_wm_login_mode_event_00000001
[20170921-11:42:50] [INFO ] Loading keymap file /etc/xrdp/km-00000407.ini
[20170921-11:42:50] [WARN ] local keymap file for 0x00000407 found and doesn't match built in keymap, using local keymap file
[20170921-11:42:50] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20170921-11:42:50] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20170921-11:42:50] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20170921-11:42:50] [DEBUG] return value from xrdp_mm_connect 0
[20170921-11:42:51] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20170921-11:42:51] [DEBUG] xrdp_wm_log_msg: started connecting
[20170921-11:42:51] [INFO ] lib_mod_log_peer: xrdp_pid=20861 connected to X11rdp_pid=20864 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:192.168.137.1 client_port=4382
[20170921-11:42:51] [DEBUG] xrdp_wm_log_msg: connected ok
[20170921-11:42:51] [DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
[20170921-11:42:51] [DEBUG] Closed socket 16 (AF_INET6 ::1 port 53264)
[20170921-11:42:51] [INFO ] The following channel is allowed: rdpdr (0)
[20170921-11:42:51] [INFO ] The following channel is allowed: rdpsnd (1)
[20170921-11:42:51] [INFO ] The following channel is allowed: cliprdr (2)
[20170921-11:42:51] [INFO ] The following channel is allowed: drdynvc (3)
[20170921-11:42:51] [DEBUG] The allow channel list now initialized for this session
[20170921-11:42:51] [DEBUG] Closed socket 18 (AF_UNIX)
[20170921-11:42:51] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20170921-11:42:52] [DEBUG] xrdp_mm_module_cleanup
[20170921-11:42:52] [DEBUG] Closed socket 17 (AF_UNIX)
[20170921-11:42:52] [ERROR] Listening socket is in wrong state, terminating listener
[20170921-11:42:59] [INFO ] A connection received from: ::ffff:192.168.137.1 port 4383
[20170921-11:42:59] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20170921-11:42:59] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20170921-11:42:59] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20170921-11:42:59] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20170921-11:42:59] [DEBUG] Security layer: requested 11, selected 0
[20170921-11:42:59] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20170921-11:42:59] [INFO ] A connection received from: ::ffff:192.168.137.1 port 4384
[20170921-11:42:59] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20170921-11:42:59] [ERROR] Listening socket is in wrong state, terminating listener
[20170921-11:42:59] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20170921-11:42:59] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20170921-11:42:59] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20170921-11:42:59] [DEBUG] Security layer: requested 0, selected 0
[20170921-11:43:01] [DEBUG] xrdp_000051d9_wm_login_mode_event_00000001
[20170921-11:43:01] [INFO ] Loading keymap file /etc/xrdp/km-00000407.ini
[20170921-11:43:01] [WARN ] local keymap file for 0x00000407 found and doesn't match built in keymap, using local keymap file
[20170921-11:43:02] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20170921-11:43:02] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20170921-11:43:02] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20170921-11:43:02] [DEBUG] return value from xrdp_mm_connect 0
[20170921-11:43:02] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20170921-11:43:02] [DEBUG] xrdp_wm_log_msg: started connecting
[20170921-11:43:03] [INFO ] lib_mod_log_peer: xrdp_pid=20953 connected to X11rdp_pid=20957 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:192.168.137.1 client_port=4384
[20170921-11:43:03] [DEBUG] xrdp_wm_log_msg: connected ok
[20170921-11:43:03] [DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
[20170921-11:43:03] [DEBUG] Closed socket 16 (AF_INET6 ::1 port 53270)
[20170921-11:43:03] [DEBUG] Closed socket 18 (AF_UNIX)
[20170921-11:43:03] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20170921-11:43:03] [DEBUG] xrdp_mm_module_cleanup
[20170921-11:43:03] [DEBUG] Closed socket 17 (AF_UNIX)
[20170921-11:43:03] [ERROR] Listening socket is in wrong state, terminating listener
@Suncatcher

This comment has been minimized.

Copy link

commented Sep 24, 2017

nobody can say anything about that?

@lieff

This comment has been minimized.

Copy link

commented Sep 24, 2017

@Suncatcher I'm on Ubuntu 17.04. No, out of box it don't works. I write how to run it above (Mate also must be installed).

@Suncatcher

This comment has been minimized.

Copy link

commented Sep 24, 2017

@Suncatcher I'm on Ubuntu 17.04. No, out of box it don't works. I write how to run it above (Mate also must be installed).

I ran it on Enlightenment too, but running xrdp on Unity would be highly appreciated.

BTW, did you alter startwm.sh to run Mate? I was able to run Enlightenment via

exec enlightenment_start

but my power buttons (restart, shutdown, hibernate) are greyed out.
I read that this could be due lack of display manager or when one uses auto-login to DE. Haven't you had such issues?

@moobyfr

This comment has been minimized.

Copy link
Contributor

commented Oct 18, 2017

xrdp works with gnome:
My setup:
Ubuntu 17.04 installed with gnome desktop
xrdp 0.9.4 compiled from sources according to the debian8 documentation on the wiki
/etc/X11/Xwrapper.conf

allowed_users =anybody
needs_root_rights=no

startwm.sh (or ~/.xsession)

/usr/lib/gnome-session/gnome-session-binary --session=gnome

(the /usr/bin/gnome-session script doesn't work)

@Suncatcher

This comment has been minimized.

Copy link

commented Oct 18, 2017

Hm, i am also on 17.04 and this doesn't work for me. Do you have physical installation? It seems my issue is VM-related.

@lieff

This comment has been minimized.

Copy link

commented Oct 18, 2017

I have physical 17.04 installation. With xrdp from repo doesn't work for me too (mate-session works fine). Seems build from source is necessary.

@Suncatcher

This comment has been minimized.

Copy link

commented Oct 18, 2017

Ok, thanks. Will try to build from source.

@moobyfr

This comment has been minimized.

Copy link
Contributor

commented Oct 18, 2017

It's a installation in qemu, but there should no be difference.

@Suncatcher

This comment has been minimized.

Copy link

commented Oct 19, 2017

Seems build from source is necessary

Did you guys build from sources xorgxrdp too, or version installed from repo is okay? Should I reinstall it from sources too?

@Suncatcher

This comment has been minimized.

Copy link

commented Oct 19, 2017

Spectacular, men! Hats off. Finally it works after building from sources.
The only things that annoys me is window that popups when I connect

sketch44

Did you experience it? I can omit it by Cancel, but nevertheless. How to get rid of it?

P.S. Gnome seems to be very heavy-weight DE in comparison to others. How do you estimate your performance? Have you tried to do any graphics performance adjustment?

@moobyfr

This comment has been minimized.

Copy link
Contributor

commented Oct 19, 2017

google the message, you'll find some possible solutions, other ppl had same warning with Xvnc (I didn't try)

@Suncatcher

This comment has been minimized.

Copy link

commented Oct 20, 2017

Yeah, I has some consistent issue with policy kit. It prompts for credentials across all the system actions: poweroff, VPN, etc.

Well, Gnome is really cool and beautiful DE, yeah! But really slow too ((

@Suncatcher

This comment has been minimized.

Copy link

commented Oct 21, 2017

Ubuntu 17.04 installed with gnome desktop

Interesting. On 17.10 which is shipped with GNOME by default these steps don't work for me.

@Suncatcher

This comment has been minimized.

Copy link

commented Oct 21, 2017

Getting this:

[20171021-15:13:52] [INFO ] starting Xorg session...
[20171021-15:13:52] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:5910)
[20171021-15:13:52] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6010)
[20171021-15:13:52] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6210)
[20171021-15:13:52] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20171021-15:13:52] [INFO ] calling auth_start_session from pid 1128
[20171021-15:13:52] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20171021-15:13:52] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20171021-15:13:52] [INFO ] Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log  
[20171021-15:14:02] [ERROR] X server for display 10 startup timeout
[20171021-15:14:02] [CORE ] waiting for window manager (pid 1135) to exit
[20171021-15:14:02] [ERROR] X server for display 10 startup timeout
[20171021-15:14:02] [ERROR] another Xserver might already be active on display 10 - see log
[20171021-15:14:02] [DEBUG] aborting connection...
[20171021-15:14:02] [CORE ] window manager (pid 1135) did exit, cleaning up session
[20171021-15:14:02] [INFO ] calling auth_stop_session and auth_end from pid 1128
[20171021-15:14:02] [DEBUG] cleanup_sockets:
[20171021-15:14:02] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_socket_10
[20171021-15:14:02] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdpapi_10
[20171021-15:14:02] [DEBUG] cleanup_sockets: failed to delete /tmp/.xrdp/xrdpapi_10
[20171021-15:14:02] [INFO ] ++ terminated session:  username none, display :10.0, session_pid 1128, ip 192.168.137.1:7796 - socket: 12
@moobyfr

This comment has been minimized.

Copy link
Contributor

commented Oct 24, 2017

On Ubuntu 17.10, the default graphic system is wayland, and not X11. you should look into the rdp support for wayland, this is out of scope of xrdp (the x in xrdp means X11).

@lieff

This comment has been minimized.

Copy link

commented Oct 24, 2017

Ubuntu 17.10 supports X11 session too. I'm currently using xrdp on 17.10 with MATE.

@Suncatcher

This comment has been minimized.

Copy link

commented Oct 24, 2017

Ubuntu 17.10 supports X11 session too. I'm currently using xrdp on 17.10 with MATE.

Did you make any additional customizations to make it work?

@Suncatcher

This comment has been minimized.

Copy link

commented Oct 24, 2017

It seems, Wayland doesn't support RDP natively, but there is a middleware for this.

@gccmbr

This comment has been minimized.

Copy link

commented Jan 6, 2018

@Suncatcher

My snapshots (and Hyper-V exports) were manually done after testing RDP to Gnome after various package updates and eventually as updates were done I can get to the end of the 7-11 epel-release with good rdp to gnome connections. They didn't reveal anything but than again I need many more rdp attempts at previous snapshot points and have the xrdp problem to provide any helpful clue. It does seem to be random for me, perhaps a disconnect etc. that causes the break. Sorry I am not more helpful as the installs were all done for a production environment in an urgent time frame. I would really like to do this in a dev environment to be more helpful.

@moobyfr

This comment has been minimized.

Copy link
Contributor

commented Jan 6, 2018

I propose you to discuss directly on #xrdp on Slack, the issue report on github isn't the best place. Get here back with objective informations.

@grbd

This comment has been minimized.

Copy link

commented Jan 11, 2018

I managed to get xrdp working again after updating ubuntu mate on an rpi3 to 17.10

  1. I found that modifying /etc/X11/Xwrapper.config was definitely needed
#allowed_users=console
allowed_users=anybody
needs_root_rights=no
  1. one step not mentioned here that I pulled from
    https://askubuntu.com/questions/797973/error-problem-connecting-windows-10-rdp-into-xrdp
    (for some bizarre reason this did actually work as the last thing I tried)
sudo apt-get remove xrdp vnc4server tightvncserver
sudo apt-get install tightvncserver
sudo apt-get install xrdp
sudo service xrdp restart
  1. I found that editing /etc/xrdp/startwm.sh wasn't required in my case although that might just be because of something unique to the distro / platform I'm using
@Suncatcher

This comment has been minimized.

Copy link

commented Jan 11, 2018

after updating ubuntu mate on an rpi3 to 17.10

We are speaking here about Gnome, not Mate. There is a dedicated issue for Mate.

@scherepanov

This comment has been minimized.

Copy link

commented Jan 14, 2018

Disable SELinux!!!!!!!!!!!

Above line cost me 2.5 days.
And /etc/X11/Xwrapper.config not needed.
BTW that's explain why some users cannot get xrdp to work with out-of-box distribution Fedora or CentOS or RHEL - they all have SELinux enabled by default!
With SELinux enabled, logs are exactly as in original post on top.
One more symptom - Xvnc works when logged in as root.

@Suncatcher

This comment has been minimized.

Copy link

commented Jan 14, 2018

Disable SELinux!!!!!!!!!!!

This seems to be not the case of Ubuntu. SELinux is disabled in Ubuntu by default.

@sig2566

This comment has been minimized.

Copy link

commented Feb 5, 2018

Hi,
I had similar problem in my CentOS7 VM. The reason was using of python3.6 by default. I defined PATH to python3.6 at the head of PATH:
export PATH=/opt/anaconda3/bin:$PATH
CentOS uses python2 by default and after the PATH change I got the problem with xrdp.
The following change in the PATH definition fixed the problem:
export PATH=$PATH:/opt/anaconda3/bin

@mobilinkd

This comment has been minimized.

Copy link

commented Feb 9, 2018

I ran into this issue today. I resolved it by removing an old ~/.vnc directory.

@Suncatcher

This comment has been minimized.

Copy link

commented Feb 9, 2018

Run with what? With CentOS?

@scherepanov

This comment has been minimized.

Copy link

commented Feb 9, 2018

Here are some my investigations for reasons why xrdp does not work with Gnome

  1. SELinux enabled. Disable SELinux or install xrdp-selinux.
  2. Xrdp with Xorg does not work due to xorgxrdp bug #111. Even most recent xrdpxorg on Fedora27 still have this bug.
  3. Recent Gnome versions lost multi-session capability for same account. It means, you cannot open xrdp session if console Gnome session already opened for same account. Similar, you cannot open 2 parallel xrdp sessions for same account.
@mobilinkd

This comment has been minimized.

Copy link

commented Feb 10, 2018

Nevermind. My issues with XRDP ran deep. I can now at least use it with non-Gnome3 desktops. Gnome3 is still broken.

@Suncatcher

This comment has been minimized.

Copy link

commented Feb 10, 2018

Gnome3 is still broken

So, please, don't offtop here. This thread is only for posting successful Gnome experience.

@Jared-Harrington-Gibbs

This comment has been minimized.

Copy link

commented Feb 23, 2018

+1 for this issue.

I was able to get xrdp running on kali by simply moving away from gnome.

apt install lxde xrdp tigervnc-standalone-server                                                                                                               
sudo update-alternatives --config x-session-manager
  #chose lxsession
service xrdp-sesman start
service xrdp start

Not ideal but better than nothing.
Hope this helps someone like it helped me. :)

Simplified from https://forums.kali.org/showthread.php?34751-How-to-set-up-xrdp-on-the-AWS-Kali-image

@Suncatcher

This comment has been minimized.

Copy link

commented Mar 4, 2018

Any of the guys who successfully set up xrdp on CentOS 7, can you suggest what is wrong with my config?
I get in logs usual error:

Mar  4 09:06:52 localhost xrdp[1124]: (1124)(140033041733696)[INFO ] Socket 12: AF_INET connection received from 192.168.1.101 port 54800
Mar  4 09:06:52 localhost xrdp[2818]: (2818)(140033041733696)[INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
Mar  4 09:06:52 localhost xrdp[2818]: (2818)(140033041733696)[INFO ] Using default X.509 key file: /etc/xrdp/key.pem
Mar  4 09:06:52 localhost xrdp[1124]: (1124)(140033041733696)[INFO ] Socket 12: AF_INET connection received from 192.168.1.101 port 54801
Mar  4 09:06:52 localhost xrdp[2819]: (2819)(140033041733696)[INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
Mar  4 09:06:52 localhost xrdp[2819]: (2819)(140033041733696)[INFO ] Using default X.509 key file: /etc/xrdp/key.pem
Mar  4 09:06:52 localhost xrdp[2819]: (2819)(140033041733696)[INFO ] connected client computer name: ISIDA
Mar  4 09:06:52 localhost xrdp[2819]: (2819)(140033041733696)[INFO ] TLS connection established from 192.168.1.101 port 54801: TLSv1.2 with cipher AES256-GCM-SHA384
Mar  4 09:06:52 localhost xrdp[2819]: (2819)(140033041733696)[INFO ] Loading keymap file /etc/xrdp/km-00000419.ini
Mar  4 09:06:52 localhost xrdp[2819]: (2819)(140033041733696)[WARN ] local keymap file for 0x00000419 found and doesn't match built in keymap, using local keymap file
Mar  4 09:06:52 localhost xrdp-sesman[1098]: (1098)(140534459889792)[INFO ] A connection received from 127.0.0.1 port 44058
Mar  4 09:06:53 localhost xrdp[2819]: (2819)(140033041733696)[INFO ] xrdp_wm_log_msg: sesman connect ok
Mar  4 09:06:53 localhost xrdp-sesman[1098]: (1098)(140534459889792)[INFO ] ++ created session (access granted): username penny, ip 192.168.1.101:54801 - socket: 12
Mar  4 09:06:53 localhost xrdp-sesman[1098]: (1098)(140534459889792)[INFO ] starting Xorg session...
Mar  4 09:06:53 localhost xrdp[2819]: (2819)(140033041733696)[INFO ] xrdp_wm_log_msg: login successful for display 12
Mar  4 09:06:53 localhost xrdp-sesman[2822]: (2822)(140534459889792)[INFO ] calling auth_start_session from pid 2822
Mar  4 09:06:53 localhost xrdp-sesman[2825]: (2825)(140534459889792)[INFO ] Xorg :12 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
Mar  4 09:07:03 localhost xrdp-sesman[2822]: (2822)(140534459889792)[ERROR] X server for display 12 startup timeout
Mar  4 09:07:03 localhost xrdp-sesman[2822]: (2822)(140534459889792)[CORE ] waiting for window manager (pid 2824) to exit
Mar  4 09:07:03 localhost xrdp-sesman[2824]: (2824)(140534459889792)[ERROR] X server for display 12 startup timeout
Mar  4 09:07:03 localhost xrdp-sesman[2824]: (2824)(140534459889792)[ERROR] another Xserver might already be active on display 12 - see log
Mar  4 09:07:03 localhost xrdp-sesman[2822]: (2822)(140534459889792)[CORE ] window manager (pid 2824) did exit, cleaning up session
Mar  4 09:07:03 localhost xrdp-sesman[2822]: (2822)(140534459889792)[INFO ] calling auth_stop_session and auth_end from pid 2822
Mar  4 09:07:03 localhost xrdp-sesman[1098]: (1098)(140534459889792)[INFO ] ++ terminated session:  username penny, display :12.0, session_pid 2822, ip 192.168.1.101:54801 - socket: 1

Tried both @imc0 recommendations:

I created the script called /usr/libexec/xrdp/startwm-local.sh containing the two lines (revised version:)
#!/bin/sh
exec dbus-launch --exit-with-x11 /usr/libexec/xrdp/startwm-bash.sh
and adding this file to sesman.ini

and also simple adding /usr/lib/gnome-session/gnome-session-binary --session=gnome to startwm.sh.

Nothing worked, still another Xserver might already be active on display...

@scherepanov

This comment has been minimized.

Copy link

commented Mar 4, 2018

Looks like you already have gnome session open by user penny. Gnome cannot have more than one session per user, local or remote.

@Suncatcher

This comment has been minimized.

Copy link

commented Mar 4, 2018

Gnome cannot have more than one session per user, local or remote.

what does it mean? Should I disable X by default and start Gnome only via RDP?

sudo systemctl enable multi-user.target --force

If I start VM in Hyper-V console, does it mean that session is already started?

@Suncatcher

This comment has been minimized.

Copy link

commented Mar 4, 2018

Just tried to connect to xrdp with disabled X and got the same error.

image

So it's not the case.

@scherepanov

This comment has been minimized.

Copy link

commented Mar 11, 2018

I would try:

  1. Logout out of your console gnome session. Then try to login through xrdp.
  2. Try to use some other user that you know for sure is not logged in.
  3. Try to install vanilla Fedora (most recent). Install xrdp and xrdp-selinux. Then xrdp will just work. Again, this user should not be logged in when you are connecting with xrdp.
@Suncatcher

This comment has been minimized.

Copy link

commented Mar 11, 2018

Logout out of your console gnome session. Then try to login through xrdp.
Try to use some other user that you know for sure is not logged in.

I do xrdp connection prior to any logins

untitled

so this this irrelevant. Will use xfce, too tired of banging with gnome. Thanks for help anyway.

@gccmbr

This comment has been minimized.

Copy link

commented Mar 14, 2018

OMW. It turned out all along it was my python path was pointing to 3.6 and not the CentOS default. I removed the python path in .bashrc and my xrdp problems were gone.

@ganeshjkale

This comment has been minimized.

Copy link

commented Mar 28, 2018

xrdp version:-0.9.6
xorgxrdp version:-0.2.6

issue :-session crash while connecting then user has to again login.
having issue with centos7.4 classic gnome and gnome-shell
centos logs showing crashes as below ,
Mar 28 09:25:13 localhost xrdp[7007]: (7007)(140645177456704)[INFO ] xrdp_wm_log_msg: login successful for display 12
Mar 28 09:25:13 localhost systemd-logind: New session c7 of user ankit.kumar.
Mar 28 09:25:13 localhost systemd: Started Session c7 of user ankit.kumar.
Mar 28 09:25:13 localhost systemd: Starting Session c7 of user ankit.kumar.
Mar 28 09:25:13 localhost xrdp-sesman[7009]: (rdconf1.c:388): libxml detected a syntax error in /etc/security/pam_mount.conf.xml
Mar 28 09:25:13 localhost xrdp-sesman[7009]: (7009)(140555842676864)[CORE ] waiting for window manager (pid 7012) to exit
Mar 28 09:25:14 localhost kernel: gdbus[7218]: segfault at 120 ip 00007fe97422d0ed sp 00007fe96b652730 error 4 in libc-2.17.so[7fe9741f5000+1b8000]
Mar 28 09:25:14 localhost abrt-hook-ccpp: Process 7012 (gnome-session-binary) of user 2007 killed by SIGSEGV - dumping core

@metalefty

This comment has been minimized.

Copy link
Member

commented Mar 29, 2018

Hey, let's close this long thread. GNOME certainly works with xrdp and the original reporter is absent now. The original issue should be solved.

This thread lures people with the keyword "GNOME" but everyone who has trouble with GNOME has a different root cause. To support everyone with a different root cause confusing and it doesn't help.

@metalefty metalefty closed this Mar 29, 2018

@porunov

This comment has been minimized.

Copy link
Author

commented Mar 29, 2018

@metalefty Hi!
I constantly update XRDP. I've just checked if XRDP works on Fedora 27. And now it works. It asks to input an admin password 4 times to access the PC/SC daemon, colour profile and something else. And after that it works OK. So yes, I think the original issue is resolved.

@Suncatcher

This comment has been minimized.

Copy link

commented Mar 29, 2018

It seems it doesn't work anywhere on Gnome except Fedora :)

@metalefty

This comment has been minimized.

Copy link
Member

commented Mar 29, 2018

@porunov Thanks. Sounds good. The colord authentication issue occurs also with VNC. It is not xrdp issue and probably you can avoid it with a little Google search.

@metalefty

This comment has been minimized.

Copy link
Member

commented Mar 29, 2018

@Suncatcher As porunov says, GNOME is actually working with xrdp. Your case has your own issue. See you again on your separate issue.

@Suncatcher

This comment has been minimized.

Copy link

commented Apr 24, 2018

Hey, let's close this long thread. GNOME certainly works with xrdp and the original reporter is absent now.

Yes, can confirm that xrdp works with Gnome. Just installed xrdp on clean CentOS and it started just out-of-the-box without any customizations.
However, one should distinguish between these CentOS manuals: KDE and RHEL. Only the KDE (xordxrdp-based) manual worked for me, while RHEL (X11rdp-based) seems to be incomplete. Everybody who have problems with CentOS, I recommend to use the former one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.