Skip to content

Instantly share code, notes, and snippets.

@jakebrinkmann
Last active April 16, 2020 07:31
Show Gist options
  • Save jakebrinkmann/0ad48c010eafa722d6be5bbd248f0cc6 to your computer and use it in GitHub Desktop.
Save jakebrinkmann/0ad48c010eafa722d6be5bbd248f0cc6 to your computer and use it in GitHub Desktop.
Get x11 forwarding setup in windows (I'm using git-bash) (should be similar for cygwin) (do not use putty)
  • Install Xming: http://sourceforge.net/projects/xming/
  • Set your path variable: export PATH=$PATH:/c/Users/myself/AppData/Local/Xming/
  • [always?]: Run XLaunch and select the display setting you want to use
  • Export DISPLAY variable: export DISPLAY=localhost:0
  • ssh with the x11 forwarding enabled: ssh -XY me@myhost
  • Try it out: nautilus
@kamilnovo
Copy link

Thank you. I was trying with localhost:10.0 and it didn't work. localhost:0 did the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment