Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 2
    Or check lsof -p <PID of your local X server> where you should be able to find the /some/thing/Xn file, the n being your DISPLAY number. Commented Nov 29, 2012 at 14:58
  • Thanks, this was quite helpful. Somehow my /tmp/.X11-unix/X0 file was removed, although there was still an X server running. A quick reboot seems to have resolved the problem. Possibly caused by some updates I did a while back. Commented Nov 29, 2012 at 15:00
  • 10
    Changing the DISPLAY variable from ":0.0" to "localhost:0.0" seems to have done the trick for me, at least connecting from Cygwin to Linux. Commented Aug 4, 2015 at 23:28
  • FWIW, I had to run startxwin (after apt-cyg install xinit) from the cygwin host because I'm connecting local Windows to remote unix Commented Sep 6, 2016 at 22:47