在Google Cloud(Debian)计算引擎

时间:2016-02-22 20:09:46

标签: debian google-cloud-platform

我在Google云上建立了一个Debian(jessie)虚拟机。我已经安装了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云端的已知限制/设置?

感谢您的帮助和建议!

1 个答案:

答案 0 :(得分:2)

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

例如,运行Xephyr:

Xephyr :1 &
xterm -display :1

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