Using XRDP without local VNC server

19,678

This bug report has the same symptoms as described in the question. Seems xserver-xorg-legacy package is the culprit. So to make it work, it boils down to the following two commands:

apt-get purge xserver-xorg-legacy
apt-get install xrdp

The required services are started automatically after install. No need to reboot. Connecting and authenticating should automatically show the desktop.

I do not know though what the consequences are of removing xserver-xorg-legacy. In the bug report it is mentioned to remove if not needed.

Share:
19,678

Related videos on Youtube

Davor Josipovic
Author by

Davor Josipovic

Updated on September 18, 2022

Comments

  • Davor Josipovic
    Davor Josipovic over 1 year

    According to xrdp docs it should be possible to connect remotely without using a local VNC server:

    xrdp can connect to a locally created X.org session with the xorgxrdp drivers [my emphasis], to a VNC X11 server, and forward to another RDP server.

    I can connect with RDP from Windows:

    enter image description here

    Then I select Xorg session and supply username and password. After some timeout an error pops up about an unknown connection problem.

    enter image description here

    This is tail /var/log/xrdp.log and tail /var/log/xrdp-sesman.log output:

    [DEBUG] Closed socket 17 (AF_UNIX)  
    ...  
    [DEBUG] Closed socket 17 (AF_UNIX) 
    [DEBUG] xrdp_wm_log_msg: some problem  
    [DEBUG] xrdp_mm_module_cleanup  
    [DEBUG] Closed socket 16 (AF_INET6 ::1 port 38094)
    

    enter image description here

    dmesg doesn't show any problems nor references to Xorg or similar. ps -A | grep rdp shows xrdp and xrdp-sesman processes running. Tried connecting with Windows 7 to Debian: same problem. xrdp.ini and sasman.ini:

    In sesman.ini the AlwaysGroupCheck=false. The startwm.sh:

    startwm.sh

    Any ideas? Running on a virtualized minimal, clean Debian 9.1 installation. Only only lxde-core and xrdp installed with apt-get. (No errors during installation.) xorgxrdp drivers installed (since they depend on xrdp).

  • Davor Josipovic
    Davor Josipovic over 5 years
    Welcome to StackExchange. Your referenced questions doesn't contain the quoted text. Can you explain why dpkg-reconfigure xserver-xorg-legacy is needed?