Skip to content

Instantly share code, notes, and snippets.

@jrunestone
Last active March 12, 2021 21:49
Show Gist options
  • Save jrunestone/1ce52953aabf383cf8a62aff873a14d7 to your computer and use it in GitHub Desktop.
Save jrunestone/1ce52953aabf383cf8a62aff873a14d7 to your computer and use it in GitHub Desktop.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment