Skip to content

Instantly share code, notes, and snippets.

@estysdesu
Last active July 21, 2019 05:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save estysdesu/32f191d6a2fe63c9e8015deec362bde1 to your computer and use it in GitHub Desktop.
Save estysdesu/32f191d6a2fe63c9e8015deec362bde1 to your computer and use it in GitHub Desktop.
[WSL: X-Server for UI] #wsl #x #server #sh #posh
##### WINDOWS #####
$uri = 'https://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download'
curl -L $uri > Xming-setup.exe
#!/usr/bin/env sh
##### WSL #####
export DISPLAY=localhost:0.0 >> "$HOME/.bashrc"
pip3 install python3-tk # tk UI kit
pip3 uninstall matplotlib && pip3 install matplotlib --no-cache-dir # reinstall matplotlib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment