可能重复:
避免 X11 从 Mac 转发到 linux
即使没有 Window Server,我也想让 Mac 程序工作。我需要它,因为从 Linux 机器登录并且我不需要 GUI(即使未使用该程序仍会创建它)。现在我收到以下错误:
<Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
couldn't allocate new Mac window