Hi, I installed Debian Server (Jessie) and proceeded to install XRDP for remote access to the Server from the instructions posted from https://scarygliders.net/x11rdp-o-matic-information/
Once completed, the service did not start and, upon verification, I discovered an error, which was corrected from instructions found here: http://c-nergy.be/blog/?p=8316 . The error related to Environment from the XRDP.Service and XRDP-sessman.service from /lib/systemd/system. I Rebooted the Server and upon completion, I tried to connect to it from my Windows 10 PC and was able to connect briefly with a black screen. The connection lasted less than one minute and closed. I logged on to the Server locally and ran sudo systemctl status xrdp -l from root. The report is listed below. Would you please let me know how to correct this issue? ----------------------------------------------------- root@DB01:/home/js# sudo systemctl status xrdp -l ● xrdp.service - LSB: Start xrdp and sesman daemons Loaded: loaded (/etc/init.d/xrdp) Active: active (running) since Fri 2016-12-09 14:58:12 EST; 30min ago Process: 487 ExecStart=/etc/init.d/xrdp start (code=exited, status=0/SUCCESS) CGroup: /system.slice/xrdp.service ├─ 547 /usr/sbin/xrdp ├─ 549 /usr/sbin/xrdp-sesman ├─1893 /usr/sbin/xrdp-sessvc 1895 1894 ├─1895 X11rdp :10 -geometry 800x600 -depth 24 -bs -ac -nolisten tcp -uds └─1926 xrdp-chansrv Dec 09 15:27:07 DB01 XRDP-sesman[549]: (549)(140124678715136)[INFO ] ++ reconnected session: username js, display :10.0, session_pid 1893, ip 127.0.0.1:33007 - socket: 8 Dec 09 15:27:07 DB01 XRDP-sesman[549]: (549)(140124678715136)[INFO ] An established connection closed to endpoint: 127.0.0.1:53825 - socket: 8 Dec 09 15:27:07 DB01 XRDP[2031]: (2031)(140038328985344)[INFO ] lib_mod_log_peer: xrdp_pid=2031 connected to X11rdp_pid=1895 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=127.0.0.1 client_port=33007 Dec 09 15:27:07 DB01 XRDP[2031]: (2031)(140038328985344)[DEBUG] xrdp_mm_connect_chansrv: chansrvconnect successful Dec 09 15:27:07 DB01 XRDP[2031]: (2031)(140038328985344)[INFO ] An established connection closed to endpoint: 127.0.0.1:3350 - socket: 11 Dec 09 15:27:19 DB01 XRDP[2031]: (2031)(140038328985344)[INFO ] An established connection closed to endpoint: 127.0.0.1:33007 - socket: 8 Dec 09 15:27:19 DB01 XRDP[2031]: (2031)(140038328985344)[DEBUG] xrdp_mm_module_cleanup Dec 09 15:27:19 DB01 XRDP[2031]: (2031)(140038328985344)[INFO ] An established connection closed to endpoint: 109.112.47.46:12148 - socket: 12 Dec 09 15:27:19 DB01 XRDP[2031]: (2031)(140038328985344)[INFO ] An established connection closed to endpoint: 109.112.47.46:12148 - socket: 13 Dec 09 15:27:19 DB01 XRDP[2031]: (2031)(140038328985344)[ERROR] Listening socket is in wrong state we terminate listener ------------------------------------------------------- Johnny Sandaire Photography ---------------------------------------------------------- Dr. Johnny Sandaire DCS, PMP http://www.webzest.com h <http://www.JohnnySandaire.com>ttp://www.johnnysandaire.com