Skip to content

Instantly share code, notes, and snippets.

View jrunestone's full-sized avatar

Johan Runsten jrunestone

  • Toxic
  • Jönköping, Sweden
  • 23:37 (UTC +01:00)
View GitHub Profile
Combination of:
https://gist.github.com/Ta180m/e1471413f62e3ed94e72001d42e77e22
https://askubuntu.com/questions/1252007/opening-ubuntu-20-04-desktop-on-wsl2
(Use the script in the last link in your .bashrc to automatically setup and start both VcXsrv+gnome correctly).
Then:
Allow VcXsrv in Windows firewall (otherwise you will get a black screen)
Now you can put this on a Windows second desktop, and switch between Windows and Ubuntu! : - D
If you want to switch seamlessly between virtual desktops without ubuntu being minimized, replace -fullscreen with -nodecoration in the .bashrc script.