在 Google Cloud (Debian) Compute Engine 上启动 X 服务器

2024-01-10

我在 Google 云上设置了 Debian(jessie) VM。我已经安装了 Xfce 以及所需的依赖项。现在我尝试使用命令“startx”启动 X 显示服务器,但出现以下错误

--------
Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) 
Fatal server error:
(EE) no screens found(EE) 
--------

Following messages are present in /var/log/Xorg.0.log

----------------------------------
many lines before this

[  3535.932] (WW) Falling back to old probe method for modesetting
[  3535.932] (EE) open /dev/dri/card0: No such file or directory
[  3535.932] (WW) Falling back to old probe method for fbdev
[  3535.932] (II) Loading sub module "fbdevhw"
[  3535.932] (II) LoadModule: "fbdevhw"
[  3535.932] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[  3535.932] (II) Module fbdevhw: vendor="X.Org Foundation"
[  3535.932]    compiled for 1.16.4, module version = 0.0.2
[  3535.932]    ABI class: X.Org Video Driver, version 18.0
[  3535.932] (EE) open /dev/fb0: No such file or directory
[  3535.932] (WW) Falling back to old probe method for vesa
[  3535.932] (EE) No devices detected.
[  3535.932] (EE)
--------------------------------------------------------

互联网上提出了一些解决方案,其中大多数建议更改 sshd 配置。我的 sshd_config 文件现在具有以下条目(除其他外)

-----------
X11Forwarding yes
X11UseLocalhost no
X11DisplayOffset 10
AddressFamily inet
-----------

我的本地计算机上的 X11Forwarding 也设置为 yes。

Google 云是否存在已知的限制/设置导致此问题?

感谢您的帮助和建议!


如果您打算在远程主机上运行 XFCE 并使用户界面显示在本地计算机上,则需要在本地运行 X 服务器并将远程 XFCE 连接到它。

例如,运行 Xephyr:

Xephyr :1 &
xterm -display :1

然后,在 Xephyr 内的 xterm 窗口中,ssh到远程主机并启动xfce。如果启用 X11Forwarding,您将看到 Xephyr 内的桌面负载,但速度可能会非常慢。 X11 并非设计用于在高延迟的链路上使用。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

在 Google Cloud (Debian) Compute Engine 上启动 X 服务器 的相关文章

随机推荐