在Google Cloud(Debian)Compute Engine上启动X服务器 [英] Start X server on Google Cloud (Debian) Compute Engine

查看:165
本文介绍了在Google Cloud(Debian)Compute Engine上启动X服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have set up a Debian(jessie) VM on Google cloud. I have installed Xfce with needed dependencies. Now I am trying to start the X display server with command 'startx' But I get following error

--------
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)
--------------------------------------------------------

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

There are a few solutions proposed on the internet and most of them suggest sshd config changes. My sshd_config file now has following entries(amongst others)

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

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

X11Forwarding is set to yes on my local machine as well.

是否存在已知的限制/设置造成这种情况的Google云?

Is there is a known limitation/setting of Google cloud that is causing this?

感谢您的帮助和建议!

推荐答案

如果您对使用远程运行的XFCE不感兴趣,并且只希望使用X服务器进行测试自动化,请使用Xvfb代替x.org。不需要安装视频硬件。

If you're not interested in using the remotely running XFCE and you only want an X server for test automation, use Xvfb instead x.org. It does not require video hardware to be installed.

在远程主机上:

xvfb :1 &
export DISPLAY=:1
startxfce4 &

这篇关于在Google Cloud(Debian)Compute Engine上启动X服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆