在运行Debian的VM上安装X服务器有相当大的困难。基本上,我只是希望能够SSH到盒使用X11转发。
通过apt打包系统安装xserver之后,(apt-get install xorg xserver-xorg)我无法实际运行服务器:
$ sudo startx
X.Org X Server 1.12.4
Release Date: 2012-08-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.11-2-amd64 x86_64 Debian
Current Operating System: Linux dev 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64
Kernel command line: root=UUID=a6d65598-f93e-498a-a494-5fd5bcdb1aef ro console=hvc0 quiet -- quiet console=hvc0
Build Date: 17 December 2013 07:37:58PM
xorg-server 2:1.12.4-6+deb7u2 (Julien Cristau <jcristau@debian.org>)
Current version of pixman: 0.26.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Nov 10 23:19:43 2014
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Fatal server error:
no screens found谷歌搜索了一下,似乎大家一致认为这可能与视频驱动程序有关。
这似乎是通过检查日志来验证的,正如上面的错误消息所建议的那样。日志的相关部分如下:
[788459.523] (II) Module vesa: vendor="X.Org Foundation"
[788459.523] compiled for 1.12.1, module version = 2.3.1
[788459.523] Module class: X.Org Video Driver
[788459.523] ABI class: X.Org Video Driver, version 12.0
[788459.523] (II) LoadModule: "fbdev"
[788459.524] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[788459.524] (II) Module fbdev: vendor="X.Org Foundation"
[788459.524] compiled for 1.12.1, module version = 0.4.2
[788459.524] ABI class: X.Org Video Driver, version 12.0
[788459.524] (II) VESA: driver for VESA chipsets: vesa
[788459.524] (II) FBDEV: driver for framebuffer: fbdev
[788459.524] (--) using VT number 7
[788459.524] (WW) Falling back to old probe method for vesa
[788459.524] (WW) Falling back to old probe method for fbdev
[788459.524] (II) Loading sub module "fbdevhw"
[788459.524] (II) LoadModule: "fbdevhw"
[788459.524] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[788459.524] (II) Module fbdevhw: vendor="X.Org Foundation"
[788459.524] compiled for 1.12.4, module version = 0.0.2
[788459.524] ABI class: X.Org Video Driver, version 12.1
[788459.524] (EE) open /dev/fb0: No such file or directory
[788459.524] (EE) No devices detected.因此,在寻找驱动程序时,startx试图打开设备/dev/fb0 (不确定这是什么--框架缓冲区?),失败,并中止。
显然,我可能需要编辑/etc/X11/xorg.conf中的视频驱动程序设置。但是,我的系统没有/etc/X11/xorg.conf,也没有一个xorg.conf文件。所以我基本上已经到了死胡同。
有什么建议/建议/解决方案?
发布于 2014-11-11 05:24:51
为此您不需要X服务器:X服务器保留在本地计算机(实际上有屏幕的计算机-嘿,错误消息说明了这一点);运行应用程序的系统只需要X*库。
实际上,设置安全连接非常简单,如:
ssh -X默认情况下,所有ssh连接都可以打开,方法是将ForwardX11放在~/.ssh/config中匹配的主机条目中(参见ssh_配置(5))。
这都取决于X11Forwarding in /etc/ssh/sshd_config (参见sshd_配置(5)),它在vanilla中禁用,但在许多发行版中默认启用。
发布于 2014-11-11 04:46:51
你不需要一个X服务器。你需要X服务器在你隧道到的机器上运行。你甚至不需要隧道任何东西,除非你在NAT或一些棘手的防火墙后面:
export DISPLAY=<IP of machine where you are sitting at:0.0和桌面上: xhost +
这也将提供像样的诊断。
https://serverfault.com/questions/643414
复制相似问题