I have been trying to set up a RDP terminal server on precise using xrdp and have been having significant trouble getting a working configuration. When a user logs on, I need it to connect to that users existing session if it exists, otherwise starting a new session, and any started session must start LXDE. What changes to the default configuration do I need to make in order for this to work?
|
|
I had this same problem, and I just found an easy solution. I originally just installed xrdp using the standard proceedure:
After that, its all about your xrdp.ini file, which is located here:
To open and edit the xrdp's configuration file use:
by default the first xrdp session handling script looks like this:
The important line is
Thats it, I think you could get away with just changing the |
|||||||||||||||||||||
|
|
Problem is that xrdp does not always connect to the same port. In case it didn't and you forgot the port number, you could login a ssh session and find out the number by
and you will get something like the following
and then you know 5911 was the port you connected to. |
|||
|
|
|
I'd like to improve on an existing answer. The top voted answer was to edit the xrdp.ini file to change port to a fixed value in place of the '-1' wildcard to find an open port. I tried that, but got an error connecting the first time, so ended up switching back to the -1 value. Frustration quickly set in though with the issue remaining of not resuming so I looked at the ini file again. What worked for me, and was really just something I was curious about was this: Edit the /etc/xrdp/xrdp.ini Under [xrdp1] where port=-1 I noticed user name and password were set to ASK. If you set port=ask you will be given the option at the login prompt with username and password to choose a port. Rather than install additional packages I found the easiest fix to be to set the ask option, connect the FIRST session (if I don't have one running already) on port -1 at the login with username and password. To summarize: Edit the xrdp.ini file set port = ask connect from the remote machine, and at login if you have no existing session, specify port -1 to resume a session enter the default of 5910 |
|||||||||||||||||||||
|
|
I ran into this problem on a Debian machine. Used X11RDP-o-Matic to build xrdp 0.7 packages. Prior to upgrading to systemd, xrdp session reconnect worked fine. Looking at the process tree I could see that the sessions were no longer children of How do you identify a working reconnect? Run Here's what it looks like when working:
|
|||
|
|
|
on the log in screen with the xrdp box when you first connect to the remote desktop there should be a drop down box, from here choose "vnc-any" then input the ip address of the computer and the password but leave the port at what it is, this should help :) |
|||||
|
|
I hate to be the guy who just drops a link, but I followed the guide here and it worked really well. I can now log into an RDP session from Linux and Windows hosts and reconnects me to my old session if I've logged in before. This is the best guide to the install I've found. Unfortunately, the standard package install causes a lot more problems than doing it from source. The author of that link has also made an automatic tool to install and configure it, but I haven't tried it, so be careful. Hope that helps you out. |
|||||||||||||||||
|
|
This UbuntuForum thread looks useful - I havent tested this myself - however I've copied the solution given here to complete this answer. RealVNC setup1. Uninstallation of the default Ubuntu VNC server (Vino): Go to: System --> Administration --> Synaptic Package Manager Search for the "Vino" package, Mark For Removal, Apply. 2. Installation of TightVNC and XRDP: While you are using Synaptic Package Manager, seacrh for "tightvnc" package (be careful, not "xtightvnc") and Mark For Installation. Likewise, search for the "xrdp" package and Mark also For Installation. Apply. PS: if you want, you may discard any other "vnc" package that you don't need! 3. Configuration of XRDP (Optional) Open a terminal and type the three following commands:
Remove Xrdp2-Xrdp6 sections, leave only the Xrdp1 section. Your xrdp.ini should look like this:
4. Connecting Restart the system and you are ready to connect! To connect from another Ubuntu machine, use: Applications --> Internet --> Terminal Server Client, type the IP of your Ubuntu VNC machine, use RDPv5 or RDP, click Connect! To connect from a Windows-based machine, use: Start --> Run --> mstsc, type the IP of your Ubuntu VNC machine, click Connect. When connected, use your Ubuntu user account credentials (u/n and p/w) and remotely login to your desktop. |
|||||||||||||
|
