- https://askubuntu.com/questions/1162808/run-ubuntu-desktop-on-wsl-ubuntu-18-04-lts
- https://twitter.com/gus33000/status/1188517307867381761
- Install VcXsrv in Windows 10
- Install WSL Windows component from control panel
- Install Ubuntu from Microsoft Store
sudo apt-get upgrade
sudo apt-get install ubuntu-desktopsudo service dbus start
sudo service x11-common startgnome-shell --x11 -r
It looks like you’re encountering an issue with GNOME Shell where the DISPLAY environment variable isn’t set. This is a common problem when trying to run graphical applications without a proper display environment.
Here are a few steps you can try to resolve this:
Set the DISPLAY variable: You can manually set the DISPLAY variable to the appropriate value. For example:
export DISPLAY=:0Check your environment: Ensure that your session is running in an environment where a display server (like X11 or Wayland) is properly configured.
Use the correct flags: If you’re running GNOME Shell in a nested or headless mode, you might need to use specific flags.
Verify dependencies: Make sure all necessary dependencies and libraries for GNOME Shell and Mutter are installed and up to date.
Restart the session: Sometimes, simply restarting your session or the display manager can resolve these issues.
If these steps don’t resolve the issue, providing more details about your setup and the exact commands you’re running could help in diagnosing the problem further.