How must I set the DISPLAY variable in order to be able to open x-windows applications?

Brett Serkez techie@serkez.net
Wed Jan 25 13:20:00 GMT 2006


> I have just installed cygwin/X and got the error message "Can't open
> display:" when starting e.g. xterm, xfig, ddd, i.e. an x-window
> application.
>
> I tried to set DISPLAY=localhost:0.0 or DISPLAY="IP-Address":0.0 with
> export DISPLAY, but the error message remained.
>
> How must I set the DISPLAY variable in order to be able to open x-
> windows applications?

You must start the X server, I usually setup a short-cut to:

C:\cygwin\usr\X11R6\bin\startxwin.bat

and even put that short-cut into my start folder on system systems.
Running that .bat file will not only start the X server, but also give
you your first xterm.  :-)

Brett
----------------------------------------------------------------
Brett C. Serkez, Techie


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/



More information about the Cygwin-xfree mailing list