Linux Lite Forums

Software - Support => Installing Software => Topic started by: JonMikelV on September 19, 2018, 06:00:41 PM

Title: How do I get Xrdp working?
Post by: JonMikelV on September 19, 2018, 06:00:41 PM
I'm trying to use RDP to connect from a Windows machine to my LL 4.0 box.
I  installed Xrdp, confirmed the port in the /etc/xrdp/xrdp.ini file, opened the port in the firewall, and started the service with "sudo service xrdp restart".
When connecting from my Windows machine I get an xrdp "Just connecting" window (so I know I'm getting to the box) where I select Session: "X11rdp", enter my username and password, and click OK.
Then it sits at a teal screen for a while (~4 min) then gives me a message showing:connecting to sesman ip 127.0.0.1 port 3350sesman connect oksending login info to session manager, please wait...login successful for display 10started connectingconnection problem, giving upsome problem
Checking the xrdp.log file I see a bunch of closed socket messges.
Any suggestions on what I'm missing?
Thanks.
Title: Re: How do I get Xrdp working?
Post by: trinidad on September 19, 2018, 06:23:11 PM
You cannot be already logged into the Linux machine when you attempt to connect from Windows. You need a session prompt on the Linux machine to start xrdp without being logged in (like safe mode), or you need to configure systemd to start xrdp before you login, like you have to do with SSH remote login from Windows to Linux  Just a guess, as I never use xrdp, but it's usually the problem.

TC
Title: Re: How do I get Xrdp working?
Post by: JonMikelV on September 20, 2018, 05:26:52 PM
Thanks for the suggestion but I tried locking, logging out, and rebooting (and not logging back in locally) and none of them worked.

Though I did at least verify the xrdp daemon was starting after reboot.  :-)
Title: Re: How do I get Xrdp working?
Post by: JonMikelV on September 25, 2018, 10:05:41 AM
It just occurred to me that I'm running this particular LL as a VM in unRAID which includes a built in VNC connection option so I'm wondering if that is somehow getting in the way of what should apparently be a relatively simple xrdp setup.

Note that while I find the VNC connection adequate for home use I feel xrpd is better performing on lower bandwidth internet connections.
Title: Re: How do I get Xrdp working?
Post by: JonMikelV on October 02, 2018, 03:55:01 PM
Well I don't know what I was doing wrong - first I was getting windows with:

Here's what ultimately worked for me:
Notes:
For SEO purposes, here are some of the errors I ran into when testing various stuff:With session xrdp I was getting windows with:
Quote
connecting to sesman ip 127.0.0.1 port 3350
sesman connect ok
sending login info to session manager, please wait...
login successful for display 10
started connecting
connection problem, giving up
some problem
With session x11vnc I was getting windows with:
Quote
connecting to sesman ip 127.0.0.1 port 3350
sesman connect oksending login info to session manager, please wait...
login successful for display 10
VNC started connecting
VNC connecting to 127.0.0.1 5910
VNC error - problem connecting 
some problem