无法使用 x2go 在 CentOS 7 上 运行 VS Code

Could not run VS Code on CentOS 7 with x2go

我已经在 CentOS 7 上安装了最新版本的 VS Code。 但是,当我尝试 运行 VS Code 时,它​​加载了一段时间试图打开,但随后什么也没有发生,没有错误,什么也没有。 我尝试通过 rpm 包和压缩文件安装,但在这两种情况下得到的结果相同。

我正在使用 x2go 连接到我的 CentOS 7。

将以下行添加到文件 /etc/x2go/x2goagent.options:

X2GO_NXAGENT_DEFAULT_OPTIONS+=" -extension BIG-REQUESTS"

然后重启服务器再试。

我遇到了同样的问题并添加了 --verbose 标志以获取更多信息(见下文)。谷歌搜索 "gl_surface_glx.cc" 错误将我带到 https://github.com/atom/atom/issues/4360,其中包含上述解决方法。 VS Code 现在可以在带有 X2GO 的 CentOS7 上为我工作。

如果没有此解决方法,则会出现以下错误(使用 --verbose 标志):

$ code --user-data-dir=/home/user1646217 --verbose [19526:0719/091952.335817:WARNING:audio_manager.cc(317)] Multiple instances of AudioManager detected [19526:0719/091952.335923:WARNING:audio_manager.cc(278)] Multiple instances of AudioManager detected [19549:0719/091952.363736:ERROR:gl_surface_glx.cc(411)] GLX 1.3 or later is required. [19549:0719/091952.363836:ERROR:gl_initializer_x11.cc(130)] GLSurfaceGLX::InitializeOneOff failed. [19549:0719/091952.366430:ERROR:gpu_child_thread.cc(327)] Exiting GPU process due to errors during initialization