Skip to content

Instantly share code, notes, and snippets.

@markuszeller
Last active October 7, 2019 19:15
Show Gist options
  • Save markuszeller/8fcd945fe17223bb8bc25d6e20f49039 to your computer and use it in GitHub Desktop.
Save markuszeller/8fcd945fe17223bb8bc25d6e20f49039 to your computer and use it in GitHub Desktop.
Run (unix) desktop apps from WSL (Ubuntu bash)

WSL Desktop Apps

You can run Apps that require a desktop or a display manager in wsl.exe the Linux Sub System under Windows.

To approach this:

  • install a x11 server like xming
  • run the display server (under Windows)
  • set the environment variable export DISPLAY=localhost:0.0 or better place in ~/.bashrc.
  • I recommend adding sudo apt install gitk gedit (This will install many packages)
  • run the app you like, for example gitk or gedit

The Ubuntu Desktop seems to be to heavy for mingx, so a light desktop version will work well.

  • install sudo apt install xfce4
  • run startxfce4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment