為什麼 Cygwin 中的 XWin 伺服器打不開?

為什麼 Cygwin 中的 XWin 伺服器打不開?

已安裝cygwins X Server 能夠在 Windows 10 上進行 X 轉發,如下所述這裡。現在安裝完成並且沒有任何問題,但是當我嘗試啟動 XWin 伺服器時,如上所述官方網站視窗很快打開,但立即再次關閉。我嘗試使用該命令C:\cygwin64\bin\run.exe --quote /usr/bin/bash.exe -l -c "cd; exec /usr/bin/startxwin"而不是使用快捷方式,但發生了同樣的事情。視窗會短暫打開,但控制台中沒有輸出。啟動 cygwin 終端機並執行/usr/bin/startxwin返回:

xinit: unable to run server "/usr/bin/XWin": No such file or directory
Use the -- option, or make sure that /usr/bin is in your path and
that "/usr/bin/XWin" is a program or a link to the right type of server
for your display.  Possible server names include:

XWin        X Server for the Cygwin environment on Microsoft Windows
Xvfb        Virtual frame buffer
Xfake       kdrive-based virtual frame buffer
Xnest       X server nested in a window on another X server
Xephyr      kdrive-based nested X server
Xvnc        X server accessed over VNC's RFB protocol
Xdmx        Distributed Multi-head X server

xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

我只發現這個問題https://github.com/babun/babun/issues/222,但它談到了一些我什至沒有的 .babun 資料夾,所以看起來這不適用於我的問題。安裝不同的 X 軟體包時,XWin 不是應該已經安裝了嗎?我怎麼才能得到它?

答案1

當我第一次運行它時,我的防毒軟體將文件移至另一個位置。我添加了一個例外並暫時禁用了防毒軟體,但是當我第二次運行它時該文件已經存在了。我恢復了它,現在它可以工作了。添加例外不會自動恢復文件超出了我的範圍...

相關內容