Friday, May 17, 2024
15
rated 0 times [  15] [ 0]  / answers: 1 / hits: 40349  / 3 Years ago, mon, may 3, 2021, 7:45:34

I'm trying to get the Remote Desktop feature working on Ubuntu (Desktop) 22.04, but I can't seem to connect to my Ubuntu desktop from a Windows (10) PC. I'm using these instructions:



I've enabled Remote Desktop in the (Ubuntu) Sharing Settings, however when I run the Remote Desktop client (i.e. the standard mstsc.exe client) on Windows and connect to the IP address of the Ubuntu server, I get this login dialog:


XRDP Login


The Session dropdown has 4 options:



  • Xorg

  • Xvnc

  • vnc-any

  • neutrinordp-any


Selecting Xorg and some login credentials causes the window to close. If I leave the credentials blank I get an Ok dialog with this message:


Connecting to sesman ip 127.0.0.1 port 3350
sesman connect ok
sending login info to session manager, please wait...
login failed for display 0

If I click Ok the it takes me back to the login dialog.


If I select Xvnc and some credentials then I get a blank green screen.


I get similar behaviour if I disable Remote Desktop in the Sharing settings.


I tried the same thing with a second Ubuntu 22.04 host and get the same thing.


More From » remote-desktop

 Answers
6

You have to be logged out of your account on ubuntu desktop. Else RDP on windows will keep quitting.


You need to Export follwing enviorment variables


export GNOME_SHELL_SESSION_MODE=ubuntu
export XDG_CURRENT_DESKTOP=ubuntu:GNOME

Either do sudo nano .xsessionrc or sudo nano /etc/xrdp/startwm.sh and place the above two lines at the very start and reboot your pc.


[#618] Tuesday, May 4, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jokaned

Total Points: 315
Total Questions: 116
Total Answers: 119

Location: Somalia
Member since Mon, Feb 27, 2023
1 Year ago
jokaned questions
Fri, Oct 21, 22, 17:17, 2 Years ago
Sun, Jul 31, 22, 15:06, 2 Years ago
Mon, Aug 9, 21, 07:46, 3 Years ago
Sat, Jul 23, 22, 23:20, 2 Years ago
Sat, Aug 28, 21, 10:09, 3 Years ago
;