You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



How do I get Xrdp working?

Author (Read 13097 times)

0 Members and 6 Guests are viewing this topic.

Re: How do I get Xrdp working?
« Reply #5 on: October 02, 2018, 03:55:01 PM »
 

JonMikelV

  • New to Forums
  • *
  • 24
    Posts
  • Reputation: 2
  • Linux Lite Member
    • View Profile

  • CPU: Dell

  • MEMORY: 256mb

  • VIDEO CARD: Dell

  • Kernel: 5.x
Well I don't know what I was doing wrong - first I was getting windows with:

Here's what ultimately worked for me:
  • Use "Install/Remove Software" (aka Synaptic Package Manager) to find and install xrdp.  (Don't forget to click the Apply button!)
  • Start the service by running the following in a terminal window: sudo service xrdp restart
  • Allow incoming connections through the firewall (via "sudo ufw allow 3389/tcp" in terminal or Settings -> Firewall Configuration -> Simple (tab), Set... Name: Xrdp, Protocol: TCP, Port: 3389, click "+ Add" then "Close")
  • Know your IP address (this can be found via "ifconfig" in the terminal or right-clicking on the network icon near the clock and selecting "Connection Information")
  • From your Windows box run Remote Desktop Connection (aka mstsc.exe)
  • If you get a "Login to <your machine>" window select, Enter Session: Xorg, <username>, <password>, and click "OK" (if you don't get that window, review previous steps)
  • If you get connected, you're done! If your RDP window unceremoniously closes, make sure you're not logged in (connected is OK, but "switch users" is NOT) to your Linux session somewhere else and try connecting again.
  • Reboot your Linux box and make sure you can still connect (in other words, test that xrdp is running as a boot service)
Notes:
  • You can only be logged in from one place at a time.  If you close your remote connection without logging out, then you will not be able to log in any *other* way until you log out or reboot.
  • If you want to change the default port away from 3389, change  "port" in /etc/xrdp/xrdp.ini (via "sudo nano /etc/xrdp/xrdp.ini" or text editor as administrator), restart the service (see step 2), and update your firewall to the new port.  (Or to be safe, add the new port to a new firewall rule then remove the old rule after new port tests are complete.)
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
 

Re: How do I get Xrdp working?
« Reply #4 on: September 25, 2018, 10:05:41 AM »
 

JonMikelV

  • New to Forums
  • *
  • 24
    Posts
  • Reputation: 2
  • Linux Lite Member
    • View Profile

  • CPU: Dell

  • MEMORY: 256mb

  • VIDEO CARD: Dell

  • Kernel: 5.x
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.
 

Re: How do I get Xrdp working?
« Reply #3 on: September 20, 2018, 05:26:52 PM »
 

JonMikelV

  • New to Forums
  • *
  • 24
    Posts
  • Reputation: 2
  • Linux Lite Member
    • View Profile

  • CPU: Dell

  • MEMORY: 256mb

  • VIDEO CARD: Dell

  • Kernel: 5.x
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.  :-)
 

Re: How do I get Xrdp working?
« Reply #2 on: September 19, 2018, 06:23:11 PM »
 

trinidad

  • Platinum Level Poster
  • **********
  • 1463
    Posts
  • Reputation: 212
  • Linux Lite Member
    • View Profile
    • dbts-analytics.com

  • CPU: i7 4 cores 8 threads

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD graphics

  • Kernel: 5.x
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
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

How do I get Xrdp working?
« Reply #1 on: September 19, 2018, 06:00:41 PM »
 

JonMikelV

  • New to Forums
  • *
  • 24
    Posts
  • Reputation: 2
  • Linux Lite Member
    • View Profile

  • CPU: Dell

  • MEMORY: 256mb

  • VIDEO CARD: Dell

  • Kernel: 5.x
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.
« Last Edit: October 02, 2018, 03:55:51 PM by JonMikelV »
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section