A newbie here. I spent a couple weeks trying to use a desktop GUI on WSL using xfce4
and xrdp
. I already tried a couple ways, following some tutorials to make it work, had no success though. So I don't know what I'm doing wrong. Here are the tutorials I tried:
- https://tecadmin.net/how-to-install-xrdp-on-ubuntu-22-04/
- https://ubunlog.com/how-to-install-ubuntu-with-graphical-interface-in-windows-thanks-to-wsl2-or-better-even-kali-linux/
- https://gist.github.com/Ta180m/e1471413f62e3ed94e72001d42e77e22 I also tried this one without using
ubuntu-desktop
orubuntu-desktop-minimal
butxfce4
andgnome
.
For tutorials 1 and 2, the remote desktop app on Windows can't connect, and when it does, this happens: the login screen appears, after login the connection is aborted closing the screen instance, or shows me an alert with "return" Display=0, or the screen turns black.
There are other tutorials for that last issue. I tried them and nothing happened.
Display=0 error image example:
Is there a way to make it work?