$/usr/bin/xterm: Xt error: Can't open display: :0.0
很奇怪,后来从http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-cannot-open-display 看到这么一句:
Some products that have been reported to cause problems: Aventail Connect Zonealarm PC Firewall from ZonelabNote: These products may not cause problems in all configurations. However, the Cygwin/X project has neither the time, ability, nor resources to help you correctly configure your third-party software.
吓得我赶紧把360那俩货关了,结果还是不行,看来是冤枉他们了,让后又360so,找到这么一句:
Cygwin doesn't automatically start an X server. You need to install the packages xorg-server and xinit, and run startxwin.
阿西吧,原来是用命令:
export DISPLAY=:0.0startxwin & #后面加上&就可以了继续在cygwin里面输入命令了,不出意外的话应该可以了,而且托盘会有xming的图标,可以从那退出