Please start the X server before you start the cygwin bash window, because the xhost command in the .bashrc file requires X server to open the display
Please refer the instructions here.
Check whether you have set the environment variable DISPLAY: type the command echo $DISPLAY, you should get localhost:0
This could happen if you update cygwin after you installed xfig. Xfig installs and uses an app-defaults file /etc/X11/app-defaults/Fig, while it looks for this file from /usr/X11R6/lib/X11/app-defaults. Therefore, it creates a symbolic link app-defaults under /usr/X11R6/lib/X11 which links to ../../../.././etc/X11/app-defaults. However, when Cygwin/XFree86 installs, it creates a real directory /usr/X11R6/lib/X11/app-defaults (not a symbolic link) for Mwm. Thus xfig will fail to create the symbolic link since the directory with the same name already exists. You can run the following commands to remove the app-defaults directory while preserving its files:
cd /usr/X11R6/lib/X11 mv app-defaults/* /etc/X11/app-defaults rm -r app-defaults
ln -s ../../../.././etc/X11/app-defaults app-defaults
You need to check the error message by manually start XFree86. Open a cygwin window, and type the command startx. If you run Windows NT/2000/XP, you can set the Screen Buffer Size of the Properties of the cygwin window to a large number (say, 1000) so that you can view the output of startx. Here are some possible reasons:
Check whether your CapsLock, NumLock, or ScrollLock are turned on. They must be turned off for fvwm to function correctly. Please check the fvwm faq for more information.
There are two possible reasons of this error. (1) This file is
not in the path. (2) This file is not installed. Therefore, we need
first to look for this file in the system. Run this command to search
this file:
cd / find . -name <the name of the file you are missing> -printIf you found this file, then run "echo $PATH" to check whether the path is listed in PATH. If not, append it to the path in the .profile file.
If you cannot find this file, you need to install it. Search this file on Setup Package Search and you can find the package it belongs to. Then run cygwin setup to reinstall this package.
This may happen when you use remote desktop to connect to your Windows XP Professional or Windows 2000 server or Windows NT Server Terminal Edition. The reason is DirectDraw does not work well when the screen resolution changes. You should start XFree86 in the smallest screen resolution that you want to use, and specify XFree86 to use Windows GDI instead of DirectDraw by giving the "-engine 1" option. This option can be specified as an option when you run startx. It must be after "--". For example, if your target for starting XFree86 was:
d:\cygwin\bin\sh.exe startxYou should change it to:
d:\cygwin\bin\sh.exe startx -- -engine 1If the target was:
d:\cygwin\bin\sh.exe startx -- -emulate3buttonsYou should change it to:
d:\cygwin\bin\sh.exe startx -- -emulate3buttons -engine 1
Please do what I usually do: read the manual, ask on the comp.text.tex newsgroup, or Google it.
Please read http://www-user.tu-chemnitz.de/~goal/index.php3?jump=xfree#modmap.
If you downloaded xfig 3.2.4 between Dec.24, 2002 and Jan. 5, 2003, you were downloading a version without fig2dev. This has been fixed. Please download again now.
Your DirectDraw has problem. Please use the "-engine 1" option as described in this FAQ No.8
If you experience this problem after you updated cygwin, this problem could be caused by the xfig coming with cygwin. You could redo the step 5 of the installation page to overwrite the wrong xfig file.
You either didn't install X11 or didn't set the path correctly. startx should be in /usr/X11R6/bin in a cygwin window (or d:\cygwin\usr\X11R6\bin in a dos window). If you can find startx there, it means you didn't setup the path correctly. Otherwise, you didn't install X11 correctly. If you didn't install X11, please reinstall cygwin, and make sure you have selected the X11 package as "Install" instead of "Default".
It's possible that you didn't install xfig while installing cygwin. If installed correctly, xfig should be in /usr/X11R6/bin or d:\cygwin\X11R6\bin. Redo the step 5 of the installation page to install xfig.