我在我的 Windows 10 设备(Surface 3,以防万一)上有一个正常运行的 Cygwin 安装,包括一个正常运行的 Xorg 窗口环境。我也刚刚开始尝试使用适用于 Linux 的 Windows 子系统。从 WSL 运行 GUI 应用程序的建议似乎是安装另一个 X 服务器。通常推荐使用 Xming,但我没有看到任何建议 Cygwin 不应该工作。
但是,简单的方法失败了:
WSL $ export DISPLAY=:0
WSL $ emacs &
Display :0 unavailable, simulating -nw
Run Code Online (Sandbox Code Playgroud)
我怀疑这可能是网络问题,因为
WSL $ telnet localhost 6000
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
WSL $ /sbin/ifconfig
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
WSL $ # there was no output at all, actually
Run Code Online (Sandbox Code Playgroud)
...但是到远程机器的 ssh 工作正常,而且很明显,自从我上次调试 …