我正在嘗試使用 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 沒有經驗。