Cygwin + /usr/bin/xterm: Xt 错误: 无法打开显示: :0

Cygwin + /usr/bin/xterm: Xt 错误: 无法打开显示: :0

我正在尝试使用 Cygwin 在我的 Windows PC 上运行 xcrysden。如果我尝试使用以下命令启动 x 服务器:startx

一个黑色窗口瞬间打开,我可以在命令行中读取以下信息:

Welcome to the XWin X Server

Vendor: The Cygwin/X Project

Release: 1.19.2.0
OS: CYGWIN_NT-6.1 HAL9000 2.8.0(0.309/5/3) 2017-04-01 20:47 x86_64

OS: Windows 7 Service Pack 1 [Windows NT 6.1 build 7601] (Win64)

Package: version 1.19.2-1 built 2017-03-09

XWin was started with the following command line:

/usr/bin/X :0 -auth /home/admin/.serverauth.4688

(II) xorg.conf is not supported

(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information

LoadPreferences: /home/admin/.XWinrc not found

LoadPreferences: Loading /etc/X11/system.XWinrc

LoadPreferences: Done parsing the configuration file...

winDetectSupportedEngines - RemoteSession: no

winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL

winDetectSupportedEngines - Returning, supported engines 00000005

winSetEngine - Using Shadow DirectDraw NonLocking

winScreenInit - Using Windows display depth of 32 bits per pixel

winWindowProc - WM_SIZE - new client area w: 1904 h: 1012

winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff

MIT-SHM extension disabled due to lack of kernel support

XFree86-Bigfont extension local-client optimization disabled due to lack of shar                                                                                                                                                                                               ed memory support in the kernel

(EE) AIGLX: No native OpenGL in modes with a root window

(II) IGLX: enabled GLX_MESA_copy_sub_buffer

(II) IGLX: Loaded and initialized swrast

(II) GLX: Initialized DRISWRAST GL provider for screen 0

winPointerWarpCursor - Discarding first warp: 952 506

(--) 16 mouse buttons found

(--) Setting autorepeat to delay=500, rate=31

(--) Windows keyboard layout: "00000407" (00000407) "German", type 4

(--) Found matching XKB configuration "German (Germany)"

(--) Model = "pc105" Layout = "de" Variant = "none" Options = "none"

Rules = "base" Model = "pc105" Layout = "de" Variant = "none" Options = "none"

winProcEstablishConnection - winInitClipboard returned.

winClipboardThreadProc - DISPLAY=:0.0

OS maintains clipboard viewer chain: yes

winClipboardProc - XOpenDisplay () returned and successfully opened the display.

xinit: connection to X server lost

waiting for X server to shut down winClipboardProc - winClipboardFlushWindowsMes
                                                                                                                                                                                               sageQueue trapped WM_QUIT message, exiting main loop.

winClipboardProc - XDestroyWindow succeeded.

winDeinitMultiWindowWM - Noting shutdown in progress

(II) Server terminated successfully (0). Closing log file.

之后我收到以下错误:

/usr/bin/xterm: Xt error: Can't open display: :0

如果我xwin在命令行中输入,则会打开一个黑色窗口并保持打开状态,直到我手动将其关闭。

我真的只是想运行一些没有 Windows 版本的应用程序。不幸的是,我在这个网站和其他来源上找到的看似类似问题的解决方案并没有真正告诉我太多信息,因为我对 Linux 的经验有限,而且对 cygwin 没有经验。

相关内容