Score:2

How to install a desktop GUI on WSL2?

kg flag

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:

  1. https://tecadmin.net/how-to-install-xrdp-on-ubuntu-22-04/
  2. https://ubunlog.com/how-to-install-ubuntu-with-graphical-interface-in-windows-thanks-to-wsl2-or-better-even-kali-linux/
  3. https://gist.github.com/Ta180m/e1471413f62e3ed94e72001d42e77e22 I also tried this one without using ubuntu-desktop or ubuntu-desktop-minimal but xfce4 and gnome.

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:

Display=0 error image example

Is there a way to make it work?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.