neutrinolabs / xrdp

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

Best DE XRDP works with #893

Closed Suncatcher closed 6 years ago

Suncatcher commented 6 years ago

We know that XRDP doesn't work with gnome, we know that it has problems with MATE and also behaves badly with Xfce. What we do not know is with which DE it works like a charm. Don't we? Can somebody suggest the DE (compatible with Ubuntu!) he used with XRDP without any glitch?

I successfully used XRDP with Enlightenment (E19 and E20) but this DE lacks some very critical features for me so I beg for help here.

Thanks in advance.

jsorg71 commented 6 years ago

We should start a wiki for this. I think Unity would be on the bottom. I think gnome 3 as well. I use Mate a lot, it works great. KDE works great. Xfce4 always worked great for my too. openbox and blackbox work great too but they are minimalist. Note, sometimes I have to edit starwm.sh.

metalefty commented 6 years ago

At least Xfce actually works well. The topic in the Ubuntu forum is not caused by Xfce. It is a xrdp - VNC issue rather than WM.

Also, #713 is not a WM issue. Please don't think xrdp have a problem with a specific WM just because the issue title contains WM name. Each issue have different root cause.

Suncatcher commented 6 years ago

Okay, will try Xfce and Mate.

Suncatcher commented 6 years ago

Please don't think xrdp have a problem with a specific WM just because the issue title contains WM name. Each issue have different root cause.

Okay, let me not to think like that. What is the root cause of issues #847 and #844 ? They are exactly my issues.

Suncatcher commented 6 years ago

Okay, will try Xfce and Mate.

I tried MATE and I have the same error there as on Unity:

[20171004-19:40:02] [DEBUG] Closed socket 18 (AF_UNIX)
[20171004-19:40:02] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 4040)
[20171004-19:40:02] [DEBUG] xrdp_mm_module_cleanup
[20171004-19:40:02] [DEBUG] Closed socket 17 (AF_UNIX)
[20171004-19:40:02] [ERROR] Listening socket is in wrong state, terminating listener
[20171004-19:40:13] [INFO ] A connection received from: ::ffff:192.168.137.1 port 3498
[20171004-19:40:13] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 4040)
[20171004-19:40:13] [DEBUG] Closed socket 11 (AF_INET6 :: port 4040)
[20171004-19:40:13] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20171004-19:40:13] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20171004-19:40:13] [DEBUG] Security layer: requested 11, selected 0
[20171004-19:40:13] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 4040)
[20171004-19:40:13] [ERROR] Listening socket is in wrong state, terminating listener
[20171004-19:40:13] [INFO ] A connection received from: ::ffff:192.168.137.1 port 3499
[20171004-19:40:13] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 4040)
[20171004-19:40:13] [DEBUG] Closed socket 11 (AF_INET6 :: port 4040)
[20171004-19:40:13] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20171004-19:40:13] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20171004-19:40:13] [DEBUG] Security layer: requested 0, selected 0
[20171004-19:40:17] [DEBUG] xrdp_00000751_wm_login_mode_event_00000001
[20171004-19:40:17] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20171004-19:40:17] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20171004-19:40:17] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20171004-19:40:18] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20171004-19:40:18] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20171004-19:40:18] [DEBUG] return value from xrdp_mm_connect 0
[20171004-19:40:18] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20171004-19:40:18] [DEBUG] xrdp_wm_log_msg: started connecting
[20171004-19:40:18] [INFO ] lib_mod_log_peer: xrdp_pid=1873 connected to X11rdp_pid=1876 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:192.168.137.1 client_port=3499
[20171004-19:40:18] [DEBUG] xrdp_wm_log_msg: connected ok
[20171004-19:40:18] [DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
[20171004-19:40:18] [DEBUG] Closed socket 16 (AF_INET6 ::1 port 41822)
[20171004-19:40:19] [INFO ] The following channel is allowed: rdpdr (0)
[20171004-19:40:19] [INFO ] The following channel is allowed: rdpsnd (1)
[20171004-19:40:19] [INFO ] The following channel is allowed: cliprdr (2)
[20171004-19:40:19] [INFO ] The following channel is allowed: drdynvc (3)
[20171004-19:40:19] [DEBUG] The allow channel list now initialized for this session
[20171004-19:40:19] [DEBUG] Closed socket 18 (AF_UNIX)
[20171004-19:40:19] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 4040)
[20171004-19:40:19] [DEBUG] xrdp_mm_module_cleanup
[20171004-19:40:19] [DEBUG] Closed socket 17 (AF_UNIX)
[20171004-19:40:19] [ERROR] Listening socket is in wrong state, terminating listener
Suncatcher commented 6 years ago

Everybody except me has MATE running fine with xrdp?

Suncatcher commented 6 years ago

I have the same problem on xfce. Any ideas?

metalefty commented 6 years ago

What's your problem?

blackcrack commented 6 years ago

Okay, will try Xfce and Mate.

I tried MATE and I have the same error there as on Unity:

[20171004-19:40:02] [ERROR] Listening socket is in wrong state, terminating listener

and

[20171004-19:40:17] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file , [20171004-19:40:19] [ERROR] Listening socket is in wrong state, terminating listener

but [20171004-19:40:18] [INFO ] lib_mod_log_peer: xrdp_pid=1873 connected to X11rdp_pid=1876 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:192.168.137.1 client_port=3499

.. so, works it or works not Pavel ?( @Suncatcher ) Do you have a login or ? (brain pulling out of the nose) because, with this log have you a login. Something other in Software (and not XRDP) goes wrong

best regards Blacky

Suncatcher commented 6 years ago

What's your problem?

Black screen after connecting, like #764 and #598 and #901.

xrdp.log

[20171014-12:25:42] [INFO ] A connection received from: ::ffff:192.168.137.1 port 2317
[20171014-12:25:42] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20171014-12:25:42] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20171014-12:25:42] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20171014-12:25:42] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20171014-12:25:42] [DEBUG] Security layer: requested 11, selected 0
[20171014-12:25:42] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20171014-12:25:42] [ERROR] Listening socket is in wrong state, terminating listener
[20171014-12:25:42] [INFO ] A connection received from: ::ffff:192.168.137.1 port 2318
[20171014-12:25:42] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20171014-12:25:42] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20171014-12:25:42] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20171014-12:25:42] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20171014-12:25:42] [DEBUG] Security layer: requested 0, selected 0
[20171014-12:25:42] [DEBUG] xrdp_000006f6_wm_login_mode_event_00000001
[20171014-12:25:42] [INFO ] Loading keymap file /etc/xrdp/km-00000419.ini
[20171014-12:25:42] [WARN ] local keymap file for 0x00000419 found and doesn't match built in keymap, using local keymap file
[20171014-12:25:42] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20171014-12:25:43] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20171014-12:25:43] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20171014-12:25:43] [DEBUG] return value from xrdp_mm_connect 0
[20171014-12:25:43] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20171014-12:25:43] [DEBUG] xrdp_wm_log_msg: started connecting
[20171014-12:25:46] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-12:25:50] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-12:25:53] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-12:25:57] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-12:26:00] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-12:26:04] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-12:26:07] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-12:26:11] [DEBUG] Closed socket 17 (AF_UNIX)

xrdp-sesman.log

[20171014-12:25:42] [INFO ] A connection received from ::1 port 58184
[20171014-12:25:43] [INFO ] ++ created session (access granted): username none, ip 0.0.0.0:2318 - socket: 12
[20171014-12:25:43] [INFO ] starting Xorg session...
[20171014-12:25:43] [DEBUG] Closed socket 9 (AF_INET6 :: port 5910)
[20171014-12:25:43] [DEBUG] Closed socket 9 (AF_INET6 :: port 6010)
[20171014-12:25:43] [DEBUG] Closed socket 9 (AF_INET6 :: port 6210)
[20171014-12:25:43] [DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350)
[20171014-12:25:43] [DEBUG] Closed socket 7 (AF_INET6 ::1 port 3350)
[20171014-12:25:43] [INFO ] Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp  
[20171014-12:25:43] [INFO ] starting xrdp-sessvc - xpid=1785 - wmpid=1784
[20171014-12:25:43] [INFO ] ++ terminated session:  username none, display :10.0, session_pid 1783, ip 0.0.0.0:2318 - socket: 12

In ~/.xsession I put xfce4-session. Command

Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log

gives following

[    62.424] X.Org X Server 1.19.3 Release Date: 2017-03-15
[    62.424] X Protocol Version 11, Revision 0
[    62.424] Build Operating System: Linux 4.4.0-96-generic x86_64 Ubuntu
[    62.424] Current Operating System: Linux 4.10.0-37-generic #41-Ubuntu SMP Fri Oct 6 20:20:37 UTC 2017 x86_64
[    62.424] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.10.0-37-generic.efi.signed root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
[    62.424] Build Date: 11 October 2017  06:30:39PM
[    62.424] xorg-server 2:1.19.3-1ubuntu1.2 (For technical support please see http://www.ubuntu.com/support) 
[    62.424] Current version of pixman: 0.34.0
[    62.425]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[    62.425] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    62.426] (++) Log file: ".xorgxrdp.10.log", Time: Sat Oct 14 12:48:15 2017
[    62.435] (++) Using config file: "/etc/X11/xrdp/xorg.conf"
[    62.435] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    62.449] (==) ServerLayout "X11 Server"
[    62.449] (**) |-->Screen "Screen (xrdpdev)" (0)
[    62.449] (**) |   |-->Monitor "Monitor"
[    62.450] (**) |   |-->Device "Video Card (xrdpdev)"
[    62.450] (**) |-->Input Device "xrdpMouse"
[    62.450] (**) |-->Input Device "xrdpKeyboard"
[    62.450] (**) Option "DontVTSwitch" "on"
[    62.450] (**) Option "AutoAddDevices" "off"
[    62.450] (**) Not automatically adding devices
[    62.450] (==) Automatically enabling devices
[    62.450] (==) Automatically adding GPU devices
[    62.450] (==) Automatically binding GPU devices
[    62.450] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    62.450] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    62.450]    Entry deleted from font path.
[    62.450] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    62.450]    Entry deleted from font path.
[    62.450] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    62.450]    Entry deleted from font path.
[    62.450] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    62.450]    Entry deleted from font path.
[    62.450] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    62.450]    Entry deleted from font path.
[    62.450] (==) FontPath set to:
    /usr/share/fonts/X11/misc,
    /usr/share/fonts/X11/Type1,
    built-ins
[    62.450] (==) ModulePath set to "/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[    62.450] (II) Loader magic: 0x555ece08f020
[    62.450] (II) Module ABI versions:
[    62.450]    X.Org ANSI C Emulation: 0.4
[    62.450]    X.Org Video Driver: 23.0
[    62.450]    X.Org XInput driver : 24.1
[    62.450]    X.Org Server Extension : 10.0
[    62.455] (EE) systemd-logind: failed to get session: PID 1690 does not belong to any known session
[    62.456] (II) no primary bus or device found
[    62.456] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[    62.456] (II) LoadModule: "dbe"
[    62.456] (II) Module "dbe" already built-in
[    62.456] (II) LoadModule: "ddc"
[    62.456] (II) Module "ddc" already built-in
[    62.456] (II) LoadModule: "extmod"
[    62.456] (II) Module "extmod" already built-in
[    62.456] (II) LoadModule: "glx"
[    62.456] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    62.458] (II) Module glx: vendor="X.Org Foundation"
[    62.458]    compiled for 1.19.3, module version = 1.0.0
[    62.458]    ABI class: X.Org Server Extension, version 10.0
[    62.458] (II) LoadModule: "int10"
[    62.459] (II) Loading /usr/lib/xorg/modules/libint10.so
[    62.461] (II) Module int10: vendor="X.Org Foundation"
[    62.461]    compiled for 1.19.3, module version = 1.0.0
[    62.461]    ABI class: X.Org Video Driver, version 23.0
[    62.461] (II) LoadModule: "record"
[    62.461] (II) Module "record" already built-in
[    62.461] (II) LoadModule: "vbe"
[    62.461] (II) Loading /usr/lib/xorg/modules/libvbe.so
[    62.463] (II) Module vbe: vendor="X.Org Foundation"
[    62.463]    compiled for 1.19.3, module version = 1.1.0
[    62.463]    ABI class: X.Org Video Driver, version 23.0
[    62.463] (II) LoadModule: "xorgxrdp"
[    62.463] (II) Loading /usr/lib/xorg/modules/libxorgxrdp.so
[    62.464] (II) Module XORGXRDP: vendor="X.Org Foundation"
[    62.464]    compiled for 1.19.3, module version = 1.0.0
[    62.464]    ABI class: X.Org Video Driver, version 23.0
[    62.464] xorgxrdpSetup:
[    62.464] (II) LoadModule: "fb"
[    62.464] (II) Loading /usr/lib/xorg/modules/libfb.so
[    62.464] (II) Module fb: vendor="X.Org Foundation"
[    62.464]    compiled for 1.19.3, module version = 1.0.0
[    62.464]    ABI class: X.Org ANSI C Emulation, version 0.4
[    62.464] (II) LoadModule: "xrdpdev"
[    62.464] (II) Loading /usr/lib/xorg/modules/drivers/xrdpdev_drv.so
[    62.465] (II) Module XRDPDEV: vendor="X.Org Foundation"
[    62.465]    compiled for 1.19.3, module version = 1.0.0
[    62.465]    ABI class: X.Org Video Driver, version 23.0
[    62.465] xrdpdevSetup:
[    62.465] (II) LoadModule: "xrdpmouse"
[    62.465] (II) Loading /usr/lib/xorg/modules/input/xrdpmouse_drv.so
[    62.466] (II) Module XRDPMOUSE: vendor="X.Org Foundation"
[    62.466]    compiled for 1.19.3, module version = 1.0.0
[    62.466]    Module class: X.Org XInput Driver
[    62.466]    ABI class: X.Org XInput driver, version 24.1
[    62.466] rdpmousePlug:
[    62.466] (II) LoadModule: "xrdpkeyb"
[    62.466] (II) Loading /usr/lib/xorg/modules/input/xrdpkeyb_drv.so
[    62.466] (II) Module XRDPKEYB: vendor="X.Org Foundation"
[    62.466]    compiled for 1.19.3, module version = 1.0.0
[    62.466]    Module class: X.Org XInput Driver
[    62.466]    ABI class: X.Org XInput driver, version 24.1
[    62.466] rdpkeybPlug:
[    62.466] rdpIdentify:
[    62.466] (II) XRDPDEV: driver for xrdp: XRDPDEV
[    62.466] rdpDriverFunc: op 10
[    62.466] (WW) Falling back to old probe method for XRDPDEV
[    62.466] rdpProbe:
[    62.466] (II) Loading sub module "fb"
[    62.466] (II) LoadModule: "fb"
[    62.466] (II) Loading /usr/lib/xorg/modules/libfb.so
[    62.467] (II) Module fb: vendor="X.Org Foundation"
[    62.467]    compiled for 1.19.3, module version = 1.0.0
[    62.467]    ABI class: X.Org ANSI C Emulation, version 0.4
[    62.467] (II) XRDPDEV(0): using default device
[    62.467] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    62.467] rdpPreInit:
[    62.467] (**) XRDPDEV(0): Depth 24, (--) framebuffer bpp 32
[    62.467] (==) XRDPDEV(0): RGB weight 888
[    62.467] (==) XRDPDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[    62.467] (==) XRDPDEV(0): Default visual is TrueColor
[    62.467] (==) XRDPDEV(0): DPI set to (96, 96)
[    62.467] (II) XRDPDEV(0):   mode "640x480" ok
[    62.467] (II) XRDPDEV(0):   mode "800x600" ok
[    62.467] (--) XRDPDEV(0): Virtual size is 800x600 (pitch 800)
[    62.467] (**) XRDPDEV(0):  Default mode "800x600": 36.0 MHz (scaled from 0.0 MHz), 35.2 kHz, 56.2 Hz
[    62.467] (II) XRDPDEV(0): Modeline "800x600"x0.0   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[    62.467] (==) Depth 24 pixmap format is 32 bpp
[    62.467] rdpScreenInit: virtualX 800 virtualY 600 rgbBits 8 depth 24
[    62.467] rdpScreenInit: pfbMemory bytes 1920000
[    62.467] rdpScreenInit: pfbMemory 0x7fe5d0dee010
[    62.467] rdpSimdInit: assigning yuv functions
[    62.467] rdpSimdInit: cpuid ax 1 cx 0 return ax 0x000506e3 bx 0x00010800 cx 0xfed83203 dx 0x0f8bfbff
[    62.467] rdpSimdInit: sse2 amd64 yuv functions assigned
[    62.467] rdpXvInit: depth 24
[    62.467] (==) XRDPDEV(0): Backing store enabled
[    62.467] rdpScreenInit: out
[    62.467] (==) RandR enabled
[    62.473] (II) SELinux: Disabled on system
[    62.474] (II) AIGLX: Screen 0 is not DRI2 capable
[    62.474] (EE) AIGLX: reverting to software rendering
[    62.506] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[    62.507] (II) IGLX: Loaded and initialized swrast
[    62.507] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    62.526] (II) Using input driver 'XRDPMOUSE' for 'xrdpMouse'
[    62.526] (**) Option "CorePointer"
[    62.526] (**) xrdpMouse: always reports core events
[    62.526] rdpmousePreInit: drv 0x555ece4bfac0 info 0x555ece5e26f0, flags 0x0
[    62.526] (II) XINPUT: Adding extended input device "xrdpMouse" (type: Mouse, id 6)
[    62.526] rdpmouseControl: what 0
[    62.526] rdpmouseDeviceInit:
[    62.526] rdpmouseCtrl:
[    62.526] rdpRegisterInputCallback: type 1 proc 0x7fe5d11c7c70
[    62.527] (**) xrdpMouse: (accel) keeping acceleration scheme 1
[    62.527] (**) xrdpMouse: (accel) acceleration profile 0
[    62.527] (**) xrdpMouse: (accel) acceleration factor: 2.000
[    62.527] (**) xrdpMouse: (accel) acceleration threshold: 4
[    62.527] rdpmouseControl: what 1
[    62.527] rdpmouseDeviceOn:
[    62.527] (II) Using input driver 'XRDPKEYB' for 'xrdpKeyboard'
[    62.527] (**) Option "CoreKeyboard"
[    62.527] (**) xrdpKeyboard: always reports core events
[    62.527] rdpkeybPreInit: drv 0x555ece4c0260 info 0x555ece76c180, flags 0x0
[    62.527] (II) XINPUT: Adding extended input device "xrdpKeyboard" (type: Keyboard, id 7)
[    62.527] rdpkeybControl: what 0
[    62.527] rdpkeybDeviceInit:
[    62.545] rdpkeybChangeKeyboardControl:
[    62.545] rdpkeybChangeKeyboardControl: autoRepeat on
[    62.545] rdpRegisterInputCallback: type 0 proc 0x7fe5d0fc4530
[    62.545] rdpkeybControl: what 1
[    62.545] rdpkeybDeviceOn:
[    62.549] (II) config/udev: Adding input device Microsoft Vmbus HID-compliant Mouse (/dev/input/event1)
[    62.549] (II) AutoAddDevices is off - not adding device.
[    62.549] (II) config/udev: Adding input device Microsoft Vmbus HID-compliant Mouse (/dev/input/js0)
[    62.549] (II) AutoAddDevices is off - not adding device.
[    62.549] (II) config/udev: Adding input device Microsoft Vmbus HID-compliant Mouse (/dev/input/mouse0)
[    62.549] (II) AutoAddDevices is off - not adding device.
[    62.549] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[    62.549] (II) AutoAddDevices is off - not adding device.
[    62.554] rdpSaveScreen:
[    62.554] rdpDeferredRandR:
[    62.554] rdpResizeSession: width 1024 height 768
[    62.554]   calling RRScreenSizeSet
[    62.554] rdpRRScreenSetSize: width 1024 height 768 mmWidth 271 mmHeight 203
[    62.554] rdpRRGetInfo:
[    62.554]   screen resized to 1024x768
[    62.556]   RRScreenSizeSet ok 1
[    62.646] rdpInDeferredUpdateCallback:
[    62.646] rdpkeybChangeKeyboardControl:
[    62.646] rdpkeybChangeKeyboardControl: autoRepeat off

though, it didn't execute completely.

Suncatcher commented 6 years ago

UPDATE: if I wait a decent amount of time I have a blue screen and this error

sketch2

Attaching logs again xrdp.log

[20171014-13:36:30] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20171014-13:36:42] [INFO ] starting xrdp with pid 920
[20171014-13:36:42] [INFO ] listening to port 3389 on 0.0.0.0
[20171014-13:40:09] [INFO ] A connection received from: ::ffff:192.168.137.1 port 3249
[20171014-13:40:09] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20171014-13:40:09] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20171014-13:40:09] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20171014-13:40:09] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20171014-13:40:09] [DEBUG] Security layer: requested 11, selected 0
[20171014-13:40:09] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20171014-13:40:09] [INFO ] A connection received from: ::ffff:192.168.137.1 port 3250
[20171014-13:40:09] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.137.103 port 3389)
[20171014-13:40:09] [ERROR] Listening socket is in wrong state, terminating listener
[20171014-13:40:09] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20171014-13:40:09] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20171014-13:40:09] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20171014-13:40:09] [DEBUG] Security layer: requested 0, selected 0
[20171014-13:40:09] [DEBUG] xrdp_0000066a_wm_login_mode_event_00000001
[20171014-13:40:09] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20171014-13:40:09] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20171014-13:40:09] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20171014-13:40:09] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20171014-13:40:09] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20171014-13:40:09] [DEBUG] return value from xrdp_mm_connect 0
[20171014-13:40:10] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20171014-13:40:10] [DEBUG] xrdp_wm_log_msg: started connecting
[20171014-13:40:13] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:40:17] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:40:20] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:40:24] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:40:27] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:40:31] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:40:34] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:40:38] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:40:41] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:40:45] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:40:48] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:40:52] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:40:55] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:40:59] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:41:02] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:41:06] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:41:09] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:41:13] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:41:16] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:41:20] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:41:23] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:41:27] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:41:30] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:41:34] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:41:37] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:41:41] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:41:44] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:41:48] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:41:51] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:41:55] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:41:58] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:42:02] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:42:05] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:42:09] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:42:12] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:42:16] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:42:19] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:42:23] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:42:26] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:42:30] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:42:33] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:42:37] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:42:40] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:42:44] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:42:48] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:42:51] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:42:55] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:42:58] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:43:02] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:43:05] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:43:09] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:43:12] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:43:16] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:43:19] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:43:23] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:43:26] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:43:30] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:43:33] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:43:37] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:43:40] [DEBUG] xrdp_wm_log_msg: connection problem, giving up
[20171014-13:43:40] [DEBUG] Closed socket 17 (AF_UNIX)
[20171014-13:43:40] [DEBUG] xrdp_wm_log_msg: some problem
[20171014-13:43:40] [DEBUG] xrdp_mm_module_cleanup
[20171014-13:43:40] [DEBUG] Closed socket 16 (AF_INET6 ::1 port 57152)

xrdp-sesman.log

[20171014-13:36:30] [INFO ] shutting down sesman 1
[20171014-13:36:30] [DEBUG] Closed socket 7 (AF_INET6 ::1 port 3350)
[20171014-13:36:40] [DEBUG] libscp initialized
[20171014-13:36:40] [INFO ] starting xrdp-sesman with pid 892
[20171014-13:36:40] [INFO ] listening to port 3350 on 127.0.0.1
[20171014-13:40:09] [INFO ] A connection received from ::1 port 57152
[20171014-13:40:09] [INFO ] ++ created session (access granted): username none, ip 0.0.0.0:3250 - socket: 12
[20171014-13:40:09] [INFO ] starting Xorg session...
[20171014-13:40:09] [DEBUG] Closed socket 9 (AF_INET6 :: port 5910)
[20171014-13:40:10] [DEBUG] Closed socket 9 (AF_INET6 :: port 6010)
[20171014-13:40:10] [DEBUG] Closed socket 9 (AF_INET6 :: port 6210)
[20171014-13:40:10] [DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350)
[20171014-13:40:10] [DEBUG] Closed socket 7 (AF_INET6 ::1 port 3350)
[20171014-13:40:10] [INFO ] Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp  
[20171014-13:40:10] [INFO ] starting xrdp-sessvc - xpid=1645 - wmpid=1644
[20171014-13:40:10] [INFO ] ++ terminated session:  username none, display :10.0, session_pid 1643, ip 0.0.0.0:3250 - socket: 12

Xorg.0.log

[    11.414] X.Org X Server 1.19.3 Release Date: 2017-03-15
[    11.414] X Protocol Version 11, Revision 0
[    11.414] Build Operating System: Linux 4.4.0-96-generic x86_64 Ubuntu
[    11.414] Current Operating System: Linux 4.10.0-37-generic #41-Ubuntu SMP Fri Oct 6 20:20:37 UTC 2017 x86_64
[    11.414] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.10.0-37-generic.efi.signed root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
[    11.414] Build Date: 11 October 2017  06:30:39PM
[    11.414] xorg-server 2:1.19.3-1ubuntu1.2 (For technical support please see http://www.ubuntu.com/support) 
[    11.414] Current version of pixman: 0.34.0
[    11.414]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[    11.414] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    11.414] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Oct 14 13:36:46 2017
[    11.415] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    11.416] (==) No Layout section.  Using the first Screen section.
[    11.416] (==) No screen section available. Using defaults.
[    11.416] (**) |-->Screen "Default Screen Section" (0)
[    11.416] (**) |   |-->Monitor "<default monitor>"
[    11.417] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[    11.417] (==) Automatically adding devices
[    11.417] (==) Automatically enabling devices
[    11.417] (==) Automatically adding GPU devices
[    11.417] (==) Automatically binding GPU devices
[    11.417] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    11.417] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    11.417]    Entry deleted from font path.
[    11.417] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    11.417]    Entry deleted from font path.
[    11.417] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    11.417]    Entry deleted from font path.
[    11.417] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    11.417]    Entry deleted from font path.
[    11.417] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    11.417]    Entry deleted from font path.
[    11.417] (==) FontPath set to:
    /usr/share/fonts/X11/misc,
    /usr/share/fonts/X11/Type1,
    built-ins
[    11.417] (==) ModulePath set to "/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[    11.417] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[    11.418] (II) Loader magic: 0x55c8d71cd020
[    11.418] (II) Module ABI versions:
[    11.418]    X.Org ANSI C Emulation: 0.4
[    11.418]    X.Org Video Driver: 23.0
[    11.418]    X.Org XInput driver : 24.1
[    11.418]    X.Org Server Extension : 10.0
[    11.420] (++) using VT number 7

[    11.420] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    11.420] (II) no primary bus or device found
[    11.420] (II) LoadModule: "glx"
[    11.422] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    11.432] (II) Module glx: vendor="X.Org Foundation"
[    11.432]    compiled for 1.19.3, module version = 1.0.0
[    11.432]    ABI class: X.Org Server Extension, version 10.0
[    11.432] (==) Matched modesetting as autoconfigured driver 0
[    11.432] (==) Matched fbdev as autoconfigured driver 1
[    11.432] (==) Matched vesa as autoconfigured driver 2
[    11.432] (==) Assigned the driver to the xf86ConfigLayout
[    11.432] (II) LoadModule: "modesetting"
[    11.432] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    11.433] (II) Module modesetting: vendor="X.Org Foundation"
[    11.433]    compiled for 1.19.3, module version = 1.19.3
[    11.433]    Module class: X.Org Video Driver
[    11.433]    ABI class: X.Org Video Driver, version 23.0
[    11.433] (II) LoadModule: "fbdev"
[    11.433] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[    11.434] (II) Module fbdev: vendor="X.Org Foundation"
[    11.434]    compiled for 1.19.3, module version = 0.4.4
[    11.434]    Module class: X.Org Video Driver
[    11.434]    ABI class: X.Org Video Driver, version 23.0
[    11.434] (II) LoadModule: "vesa"
[    11.434] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[    11.439] (II) Module vesa: vendor="X.Org Foundation"
[    11.439]    compiled for 1.19.3, module version = 2.3.4
[    11.439]    Module class: X.Org Video Driver
[    11.439]    ABI class: X.Org Video Driver, version 23.0
[    11.439] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    11.439] (II) FBDEV: driver for framebuffer: fbdev
[    11.439] (II) VESA: driver for VESA chipsets: vesa
[    11.439] (WW) Falling back to old probe method for modesetting
[    11.439] (EE) open /dev/dri/card0: No such file or directory
[    11.439] (WW) Falling back to old probe method for fbdev
[    11.439] (II) Loading sub module "fbdevhw"
[    11.439] (II) LoadModule: "fbdevhw"
[    11.440] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    11.443] (II) Module fbdevhw: vendor="X.Org Foundation"
[    11.443]    compiled for 1.19.3, module version = 0.0.2
[    11.443]    ABI class: X.Org Video Driver, version 23.0
[    11.443] (II) FBDEV(0): using default device
[    11.443] (WW) Falling back to old probe method for vesa
[    11.443] (II) FBDEV(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[    11.443] (==) FBDEV(0): Depth 24, (==) framebuffer bpp 32
[    11.443] (==) FBDEV(0): RGB weight 888
[    11.443] (==) FBDEV(0): Default visual is TrueColor
[    11.443] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[    11.443] (II) FBDEV(0): hardware: hyperv_fb (video memory: 8192kB)
[    11.443] (II) FBDEV(0): checking modes against framebuffer device...
[    11.443] (II) FBDEV(0): checking modes against monitor...
[    11.443] (--) FBDEV(0): Virtual size is 1152x864 (pitch 1152)
[    11.443] (**) FBDEV(0):  Built-in mode "current"
[    11.443] (==) FBDEV(0): DPI set to (96, 96)
[    11.443] (II) Loading sub module "fb"
[    11.443] (II) LoadModule: "fb"
[    11.444] (II) Loading /usr/lib/xorg/modules/libfb.so
[    11.445] (II) Module fb: vendor="X.Org Foundation"
[    11.445]    compiled for 1.19.3, module version = 1.0.0
[    11.445]    ABI class: X.Org ANSI C Emulation, version 0.4
[    11.445] (**) FBDEV(0): using shadow framebuffer
[    11.445] (II) Loading sub module "shadow"
[    11.445] (II) LoadModule: "shadow"
[    11.446] (II) Loading /usr/lib/xorg/modules/libshadow.so
[    11.446] (II) Module shadow: vendor="X.Org Foundation"
[    11.446]    compiled for 1.19.3, module version = 1.1.0
[    11.446]    ABI class: X.Org ANSI C Emulation, version 0.4
[    11.446] (II) UnloadModule: "modesetting"
[    11.446] (II) Unloading modesetting
[    11.446] (II) UnloadModule: "vesa"
[    11.446] (II) Unloading vesa
[    11.446] (==) Depth 24 pixmap format is 32 bpp
[    11.449] (==) FBDEV(0): Backing store enabled
[    11.450] (==) FBDEV(0): DPMS enabled
[    11.450] (==) RandR enabled
[    11.454] (II) SELinux: Disabled on system
[    11.455] (II) AIGLX: Screen 0 is not DRI2 capable
[    11.455] (EE) AIGLX: reverting to software rendering
[    11.655] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[    11.655] (II) IGLX: Loaded and initialized swrast
[    11.655] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    11.715] (II) config/udev: Adding input device Microsoft Vmbus HID-compliant Mouse (/dev/input/event1)
[    11.715] (**) Microsoft Vmbus HID-compliant Mouse: Applying InputClass "libinput pointer catchall"
[    11.715] (II) LoadModule: "libinput"
[    11.715] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[    11.722] (II) Module libinput: vendor="X.Org Foundation"
[    11.722]    compiled for 1.19.3, module version = 0.25.0
[    11.722]    Module class: X.Org XInput Driver
[    11.722]    ABI class: X.Org XInput driver, version 24.1
[    11.722] (II) Using input driver 'libinput' for 'Microsoft Vmbus HID-compliant Mouse'
[    11.722] (**) Microsoft Vmbus HID-compliant Mouse: always reports core events
[    11.722] (**) Option "Device" "/dev/input/event1"
[    11.722] (**) Option "_source" "server/udev"
[    11.722] (II) input device 'Microsoft Vmbus HID-compliant Mouse', /dev/input/event1 is tagged by udev as: Mouse
[    11.722] (II) input device 'Microsoft Vmbus HID-compliant Mouse', /dev/input/event1 is a pointer caps
[    11.722] (**) Option "config_info" "udev:/sys/devices/0006:045E:0621.0001/input/input1/event1"
[    11.722] (II) XINPUT: Adding extended input device "Microsoft Vmbus HID-compliant Mouse" (type: MOUSE, id 6)
[    11.722] (**) Option "AccelerationScheme" "none"
[    11.722] (**) Microsoft Vmbus HID-compliant Mouse: (accel) selected scheme none/0
[    11.722] (**) Microsoft Vmbus HID-compliant Mouse: (accel) acceleration factor: 2.000
[    11.722] (**) Microsoft Vmbus HID-compliant Mouse: (accel) acceleration threshold: 4
[    11.723] (II) input device 'Microsoft Vmbus HID-compliant Mouse', /dev/input/event1 is tagged by udev as: Mouse
[    11.723] (II) input device 'Microsoft Vmbus HID-compliant Mouse', /dev/input/event1 is a pointer caps
[    11.723] (II) config/udev: Adding input device Microsoft Vmbus HID-compliant Mouse (/dev/input/js0)
[    11.723] (II) No input driver specified, ignoring this device.
[    11.723] (II) This device may have been added with another device file.
[    11.723] (II) config/udev: Adding input device Microsoft Vmbus HID-compliant Mouse (/dev/input/mouse0)
[    11.723] (II) No input driver specified, ignoring this device.
[    11.723] (II) This device may have been added with another device file.
[    11.723] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[    11.723] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[    11.723] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[    11.723] (**) AT Translated Set 2 keyboard: always reports core events
[    11.723] (**) Option "Device" "/dev/input/event0"
[    11.723] (**) Option "_source" "server/udev"
[    11.724] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is tagged by udev as: Keyboard
[    11.724] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is a keyboard
[    11.724] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0004:00/VMBUS:00/d34b2567-b9b6-42b9-8778-0a4ec0b955bf/serio0/input/input0/event0"
[    11.724] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 7)
[    11.724] (**) Option "xkb_model" "pc105"
[    11.724] (**) Option "xkb_layout" "us"
[    11.724] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is tagged by udev as: Keyboard
[    11.724] (II) input device 'AT Translated Set 2 keyboard', /dev/input/event0 is a keyboard
Suncatcher commented 6 years ago

No thoughts? No ideas?

jsorg71 commented 6 years ago

Did you edit startwm.sh yet?

Suncatcher commented 6 years ago

Did you edit startwm.sh yet?

No, it's in default state.

jsorg71 commented 6 years ago

For mate, put this in /etc/xrdp/startwm.sh and make sure it's executable. Maybe rename it and create a new file. Also, do "which mate-session" to make sure you have it.

#!/bin/sh
mate-session
Suncatcher commented 6 years ago

For mate

I am on xfce now. I added

xfce4-session

to /etc/xrdp/startwm.sh but this had no result.

Tur8008 commented 6 years ago

I have the same problem with Ubuntu 17.10 and XRDP 0.9.1. With root everything is OK, it works fine, BUT another users, which is not superuser/ They can't login whit the same problem.

Tur8008 commented 6 years ago

!/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

xrdp multiple users configuration

mate-session

test -x /etc/X11/Xsession && exec /etc/X11/Xsession exec /bin/sh /etc/X11/Xsession

Tur8008 commented 6 years ago

XRDP log

[20171027-19:29:53] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem [20171027-19:29:53] [DEBUG] Security layer: requested 11, selected 0 [20171027-19:29:53] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:95.213.236.16 port 3389) [20171027-19:29:53] [ERROR] Listening socket is in wrong state, terminating listener [20171027-19:29:53] [INFO ] A connection received from: ::ffff:84.51.197.151 port 51821 [20171027-19:29:53] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:95.213.236.16 port 3389) [20171027-19:29:53] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389) [20171027-19:29:53] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem [20171027-19:29:53] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem [20171027-19:29:53] [DEBUG] Security layer: requested 0, selected 0 [20171027-19:29:54] [DEBUG] xrdp_000001e4_wm_login_mode_event_00000001 [20171027-19:29:54] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini [20171027-19:29:54] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file [20171027-19:30:03] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350 [20171027-19:30:04] [INFO ] xrdp_wm_log_msg: sesman connect ok [20171027-19:30:04] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait... [20171027-19:30:04] [DEBUG] return value from xrdp_mm_connect 0 [20171027-19:30:04] [INFO ] xrdp_wm_log_msg: login successful for display 10 [20171027-19:30:04] [DEBUG] xrdp_wm_log_msg: started connecting [20171027-19:30:07] [DEBUG] Closed socket 17 (AF_UNIX) [20171027-19:30:11] [DEBUG] Closed socket 17 (AF_UNIX) [20171027-19:30:15] [DEBUG] Closed socket 17 (AF_UNIX) [20171027-19:30:18] [DEBUG] Closed socket 17 (AF_UNIX) [20171027-19:30:22] [DEBUG] Closed socket 17 (AF_UNIX) [20171027-19:30:25] [DEBUG] Closed socket 17 (AF_UNIX) [20171027-19:30:29] [DEBUG] Closed socket 17 (AF_UNIX) [20171027-19:30:32] [DEBUG] Closed socket 17 (AF_UNIX) [20171027-19:30:36] [DEBUG] Closed socket 17 (AF_UNIX) [20171027-19:30:39] [DEBUG] Closed socket 17 (AF_UNIX) [20171027-19:30:43] [DEBUG] Closed socket 17 (AF_UNIX) [20171027-19:30:46] [DEBUG] Closed socket 17 (AF_UNIX) [20171027-19:30:50] [DEBUG] Closed socket 17 (AF_UNIX) [20171027-19:30:53] [DEBUG] Closed socket 17 (AF_UNIX) [20171027-19:30:57] [DEBUG] Closed socket 17 (AF_UNIX) [20171

cro commented 6 years ago

I found helpful information here:

http://c-nergy.be/blog/?p=11184

Suncatcher commented 6 years ago

I found helpful information here: http://c-nergy.be/blog/?p=11184

Doesn't work for me. All these steps are known but doesn't work on Ubuntu Gnome 17.10. What is the DE that you connected with the above blog?

cro commented 6 years ago

I got Gnome working on Ubuntu 17.10. It was in a VM running on VMWare Fusion. Occasionally I have to systemctl restart xrdp to get connected, or try more than once with Microsoft Remote Desktop. I haven't found a pattern yet (only after hard reboot, only after leaving session idle, only after sleep, etc)

Tur8008 commented 6 years ago

Thank you, but it doesn't work for me. I upgraded xrdp package to 0.9.2 version and it was worse then 0.9.1 then I install 0.9.1 package again and it works. Also I made homefolder for new user because it didn't exist. Which of two actions was the reason, I realy don't know, but it works now!

Suncatcher commented 6 years ago

I got Gnome working on Ubuntu 17.10. It was in a VM running on VMWare Fusion. Occasionally I have to systemctl restart xrdp to get connected, or try more than once with Microsoft Remote Desktop. I haven't found a pattern yet (only after hard reboot, only after leaving session idle, only after sleep, etc)

This approach didn't work for me :) Restarted multiple times and nothing. Maybe some additional magic?

alanmilinovic commented 6 years ago

I have the same issue running xfce4, any update?

Suncatcher commented 6 years ago

No updates. Try to build xrdp from sources, it may help.

alanmilinovic commented 6 years ago

That is what I have done. I am testing this on Pinebook with Armbian running under Ubuntu 16.04 LTS arm64.

alanmilinovic commented 6 years ago

This is what I followed http://ethernetworkingnotes.blogspot.de/2017/01/install-latest-xrdp-release-on-ubuntu.html

Version 0.9.1 is last working version, others I cannot build. I can paste here exact commands which I used to build it.

Suncatcher commented 6 years ago

This blog refers to c-nergy.be/blog/?p=9962 blog, which didn't help me before, so cannot suggest anything helpful. Wait for contributors, alike @metalefty.

metalefty commented 6 years ago

So what's the goal of this issue? Xfce, MATE works fine. If they doesn't work, there might be another problem. Not a WM or desktop environment issue.

Suncatcher commented 6 years ago

Yep, confirm that xfce seems the most stable for now.

metalefty commented 6 years ago

Closing.