-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xrdp stuck on login, after password is entered, unblocked if I unlock from the ubuntu rdp server #1795
Comments
Hi @chandde The unlock functionality in GNOME is different from other desktops - it needs gdm to be running. Have you got a graphical login on your VM console in Hyper-V? If not, enable it with You can make the change permanent with Can you try that and report back? |
Hi! @matt335672 |
That's great news. Can we close this one then? |
oh It only worked to moment when screensaver start |
I don't quite understand you. Are you saying when the screensaver starts you're unable to unlock the screen? Can you post a series of events where you see the problem happening? Thanks. |
I've also had the problem. |
Here are the limitations with GNOME 3 as I understand them at the moment:-
Try that and let us know how it goes. I can then update the wiki about this. |
sorry for replying so late! |
Having multiple sessions running for the same user will break modern GNOME 3, that's for sure. I'm not that familiar with the The disadvantage of setting I can give you some other solutions, but bear-in-mind they are relatively complicated. I've listed them below, and you can make up your own mind about that. The version of XRDP you have (0.9.12) doesn't support resizing on connect with VNC sessions. So if you start a VNC session from one client and then reconnect from a different client at a different resolution, you will get another session. This can be fixed in one of the following ways:-
Let me know if you'd like any more information on any of these. |
I'm happy with the setting fork=false for only one person at a time will be able to connect to the box using xrdp so far |
I'm still having issues getting xrdp to open correctly. I can remote from Windows 10 to my Ubuntu 20.04 box, but then it connects to a screen with the time and a prompt to Click or press a key to unlock. And when I do, it prompts me for my password, but then does nothing after I hit enter. |
I am trying to log in from a Mac using Microsoft Remote Desktop and have Ubuntu 20.04. running on a Proxmox 7.1 server (on old hardware). The problem is that I cannot login after entering my password sometimes. EDIT: Also, the dock is not shown. Applying your suggestions resulted in the system going into the shutdown process and hanging there after I entered Stopping the VM and then rebooting and then trying to log in results in a hang after typing in the password. When I logout from the VNC session that proxmox provides it asks me if it is okay to log out while another user is logged in. I had made changes to the config to enable multi user but now reverted them. I also tried the install using the widely known xrdp script some guy provided. I am happy to set up a new VM and test it if you think it should work. |
The A hang after typing the password can be down to any number of things, and is nothing to do with the graphical login. You may not have For the missing dock, see #1915. |
Not sure if I used the word "console" in the right sense. I meant the proxmox console which is a noVNC connection to QEMU (I think. I am not an expert, this is just what it says). Already had I did not yet find the reason for the hang in the issues. This is why I will post two screenshots of the logs of At 20:23 I am entering the password via the graphical console/display of proxmox, which results in both connections to resolve and show the Ubuntu desktop (I made it possible to be logged in with two connections). Also, the RDP session is very slow. Thanks for the link to the missing dock issue, which I was able to resolve. Apparently, This is my
This is my
session manager:
Just for information, I am running High Sierra on an old iMac. But my RDP connections work very well to other machines. |
I can't see any problems with those log files. The xrdp.log shows the connection happening immediately. The request comes in at 20:23:59, and the actual connect is done by 20:24:00 So it's more likely your actual session is hanging for some reason. With modern Linux systems using |
Thank you very much! Yes, when I deactivate the display in the console of proxmox RDP works. I did test this before but had issues with it. Now I cannot reproduce them. I can shutdown and restart and suspend and put in my password after suspension and it it works. But when I shutdown or suspend I have to put in my password to actually shutdown. I don't have to do this over the proxmox console. Do you also happen to have a resolution for this? |
The password is related to a program called Because xrdp is a remote session it doesn't have privilege to do many things you can do from the console by default. For example, rebooting a system is fine if it's your own personal system, but not fine at all if you are sharing a server with ten other people. You can configure the system not to ask for a password. The first thing to do is identify the policy kit action, and the second is to create a .pkla file to allow the action to succeed. To find the action, the simplest thing is to cancel the password prompt and then look in
The policy kit action
For RDP, Creation of a pkla file is left to you - it's a good way to learn about polkit. #1568 has some useful information in it. |
Hi, if I got it right, it's impossible to work simultaneously with one user on different graphical sessions, e.g., server direct screen and RDP sessions. Actually, it works perfectly before the first screen lock, but after, you can't type a password (just no reaction after pressing Enter). I resolved this by turning off autologin mode at the main Ubuntu machine, so after rebooting it is not autologged and I'm able to use my user session through RDP even after screen lock. I hope it will help someone. If anybody knows how to use one user in different graphical sessions, I would appreciate the advices. |
I added this to the FAQ recently:- It's a particular problem for GNOME, as the lock screen is implemented by GDM. |
At my company, we had an issue with screen lock being, sometimes not responsive to keyboard events upon xrdp login. I figured, that one can unlock from command line via loginctl like:
where X is an integer. cX is a session associated with the user running the above command. |
I'm running Ubuntu 20.04.1. LTS on Hyper-V, also has Xrdp 0.9.12 installed and running on this VM. Here's how I can reproduce this issue,
a. type in username and password on xorg dialog
b. type in password on ubuntu lock screen
This happens a lot on multiple VMs, for some reason, the remote unlock is linked to the local unlock. Any idea how I can fix this? is it known?
The text was updated successfully, but these errors were encountered: