I tried setting up a digitalocean droplet ubuntu with remote desktop
using these commands
sudo adduser bob
sudo apt update (was quick)
sudo apt install -y xubuntu-desktop (takes about 7min)
sudo apt install -y xrdp (within 30sec )
Then in Windows I open up mstsc.exe and enter the IP, and I get a Ubuntu login GUI come up. If I enter the correct user/pass then it exits!
That’s with Ubuntu24
If I do it on Ubuntu22 then a screen says “oops”.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Heya,
There are two possibilities
On Ubuntu 24.04 or 22.04, XRDP doesn’t play nicely out of the box with GNOME or even Xfce unless properly configured.
You get disconnected after login because XRDP tries to launch a session that crashes or closes immediately.
Set Xfce as the default session for XRDP. For the
bob
user, create (or modify) the file:Allow the
bob
user to use XRDP’s session. Sometimes you need to add them to thessl-cert
group:Also, allow the XRDP port, by default it’s 3389 in your firewall, please.
You can try and changing the port to something else as I’ve seen people having issues in the past with this.
Heya @userdo
If
xubuntu-desktop
is causing issues, try usinglxqt
ormate
, which are lighter and often more compatible with XRDP:Then set the session:
Then restart xrdp:
Hope that this helps!