情况是这样的,我有2个VPS。都想要安装图形化界面比如GNOME,XFCE等。
但是发现最基本的Xorg都启动不起来
startx
root@baidu:/home/meteor# startx X.Org X Server 1.11.3 Release Date: 2011-12-16 X Protocol Version 11, Revision 0 Build Operating System: Linux 2.6.42-37-generic x86_64 Ubuntu Current Operating System: Linux baidu.com 3.2.0-24-virtual #39-Ubuntu SMP Mon May 21 18:44:18 UTC 2012 x86_64 Kernel command line: root=/dev/xvda1 console=hvc0 ro Build Date: 27 February 2013 02:07:42AM xorg-server 2:1.11.4-0ubuntu10.12 (For technical support please see http://www.ubuntu.com/support) Current version of pixman: 0.24.4 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: Tue Mar 12 06:24:43 2013 (==) Using system config directory "/usr/share/X11/xorg.conf.d" Fatal server error: no screens found Please consult the The X.Org Foundation support at http://wiki.x.org for help. Please also check the log file at "/var/log/Xorg.0.log" for additional information. ddxSigGiveUp: Closing log Server terminated with error (1). Closing log file. xinit: giving up xinit: unable to connect to X server: No such file or directory xinit: server error
startxfce4
root@baidu:/home/meteor# startxfce4 /usr/bin/startxfce4: Starting X server X.Org X Server 1.11.3 Release Date: 2011-12-16 X Protocol Version 11, Revision 0 Build Operating System: Linux 2.6.42-37-generic x86_64 Ubuntu Current Operating System: Linux baidu.com 3.2.0-24-virtual #39-Ubuntu SMP Mon May 21 18:44:18 UTC 2012 x86_64 Kernel command line: root=/dev/xvda1 console=hvc0 ro Build Date: 27 February 2013 02:07:42AM xorg-server 2:1.11.4-0ubuntu10.12 (For technical support please see http://www.ubuntu.com/support) Current version of pixman: 0.24.4 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: Tue Mar 12 06:27:06 2013 (==) Using system config directory "/usr/share/X11/xorg.conf.d" Fatal server error: no screens found Please consult the The X.Org Foundation support at http://wiki.x.org for help. Please also check the log file at "/var/log/Xorg.0.log" for additional information. ddxSigGiveUp: Closing log Server terminated with error (1). Closing log file. xinit: giving up xinit: unable to connect to X server: No such file or directory xinit: server error
错误的提示主要是找不到显示器或者显卡。
Fatal server error:
no screens found
不知道有没有人知道怎么解决?
cat了一下结果
root@baidu:/etc/X11# cat /var/log/Xorg.0.log [ 1376.573] X.Org X Server 1.11.3 Release Date: 2011-12-16 [ 1376.573] X Protocol Version 11, Revision 0 [ 1376.573] Build Operating System: Linux 2.6.42-37-generic x86_64 Ubuntu [ 1376.573] Current Operating System: Linux baidu.com 3.2.0-24-virtual #39-Ubuntu SMP Mon May 21 18:44:18 UTC 2012 x86_64 [ 1376.573] Kernel command line: root=/dev/xvda1 console=hvc0 ro [ 1376.573] Build Date: 27 February 2013 02:07:42AM [ 1376.574] xorg-server 2:1.11.4-0ubuntu10.12 (For technical support please see http://www.ubuntu.com/support) [ 1376.574] Current version of pixman: 0.24.4 [ 1376.574] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 1376.574] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 1376.574] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Mar 15 06:45:44 2013 [ 1376.574] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [ 1376.575] (==) No Layout section. Using the first Screen section. [ 1376.575] (==) No screen section available. Using defaults. [ 1376.575] (**) |-->Screen "Default Screen Section" (0) [ 1376.575] (**) | |-->Monitor "<default monitor>" [ 1376.575] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 1376.575] (==) Automatically adding devices [ 1376.575] (==) Automatically enabling devices [ 1376.575] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist. [ 1376.575] Entry deleted from font path. [ 1376.575] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist. [ 1376.575] Entry deleted from font path. [ 1376.575] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist. [ 1376.575] Entry deleted from font path. [ 1376.575] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist. [ 1376.575] Entry deleted from font path. [ 1376.575] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist. [ 1376.575] Entry deleted from font path. [ 1376.575] (WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist. [ 1376.575] Entry deleted from font path. [ 1376.575] (==) FontPath set to: /usr/share/fonts/X11/misc, /usr/share/fonts/X11/Type1, built-ins [ 1376.575] (==) ModulePath set to "/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules" [ 1376.575] (II) The server relies on udev to provide the list of input devices. If no devices become available, reconfigure udev or disable AutoAddDevices. [ 1376.575] (II) Loader magic: 0x7f951f08cb00 [ 1376.575] (II) Module ABI versions: [ 1376.575] X.Org ANSI C Emulation: 0.4 [ 1376.575] X.Org Video Driver: 11.0 [ 1376.575] X.Org XInput driver : 16.0 [ 1376.575] X.Org Server Extension : 6.0 [ 1376.575] (II) Open ACPI successful (/var/run/acpid.socket) [ 1376.575] (II) LoadModule: "extmod" [ 1376.576] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so [ 1376.576] (II) Module extmod: vendor="X.Org Foundation" [ 1376.576] compiled for 1.11.3, module version = 1.0.0 [ 1376.576] Module class: X.Org Server Extension [ 1376.576] ABI class: X.Org Server Extension, version 6.0 [ 1376.576] (II) Loading extension MIT-SCREEN-SAVER [ 1376.576] (II) Loading extension XFree86-VidModeExtension [ 1376.576] (II) Loading extension XFree86-DGA [ 1376.576] (II) Loading extension DPMS [ 1376.576] (II) Loading extension XVideo [ 1376.576] (II) Loading extension XVideo-MotionCompensation [ 1376.576] (II) Loading extension X-Resource [ 1376.576] (II) LoadModule: "dbe" [ 1376.577] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so [ 1376.577] (II) Module dbe: vendor="X.Org Foundation" [ 1376.577] compiled for 1.11.3, module version = 1.0.0 [ 1376.577] Module class: X.Org Server Extension [ 1376.577] ABI class: X.Org Server Extension, version 6.0 [ 1376.577] (II) Loading extension DOUBLE-BUFFER [ 1376.577] (II) LoadModule: "glx" [ 1376.577] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so [ 1376.577] (II) Module glx: vendor="X.Org Foundation" [ 1376.578] compiled for 1.11.3, module version = 1.0.0 [ 1376.578] ABI class: X.Org Server Extension, version 6.0 [ 1376.578] (==) AIGLX enabled [ 1376.578] (II) Loading extension GLX [ 1376.578] (II) LoadModule: "record" [ 1376.578] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so [ 1376.578] (II) Module record: vendor="X.Org Foundation" [ 1376.578] compiled for 1.11.3, module version = 1.13.0 [ 1376.578] Module class: X.Org Server Extension [ 1376.578] ABI class: X.Org Server Extension, version 6.0 [ 1376.578] (II) Loading extension RECORD [ 1376.578] (II) LoadModule: "dri" [ 1376.578] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so [ 1376.579] (II) Module dri: vendor="X.Org Foundation" [ 1376.579] compiled for 1.11.3, module version = 1.0.0 [ 1376.579] ABI class: X.Org Server Extension, version 6.0 [ 1376.579] (II) Loading extension XFree86-DRI [ 1376.579] (II) LoadModule: "dri2" [ 1376.579] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so [ 1376.579] (II) Module dri2: vendor="X.Org Foundation" [ 1376.579] compiled for 1.11.3, module version = 1.2.0 [ 1376.579] ABI class: X.Org Server Extension, version 6.0 [ 1376.579] (II) Loading extension DRI2 [ 1376.579] (==) Matched vesa as autoconfigured driver 0 [ 1376.579] (==) Matched fbdev as autoconfigured driver 1 [ 1376.579] (==) Assigned the driver to the xf86ConfigLayout [ 1376.579] (II) LoadModule: "vesa" [ 1376.580] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so [ 1376.580] (II) Module vesa: vendor="X.Org Foundation" [ 1376.580] compiled for 1.11.3, module version = 2.3.0 [ 1376.580] Module class: X.Org Video Driver [ 1376.580] ABI class: X.Org Video Driver, version 11.0 [ 1376.580] (II) LoadModule: "fbdev" [ 1376.580] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so [ 1376.580] (II) Module fbdev: vendor="X.Org Foundation" [ 1376.580] compiled for 1.11.3, module version = 0.4.2 [ 1376.580] ABI class: X.Org Video Driver, version 11.0 [ 1376.580] (II) VESA: driver for VESA chipsets: vesa [ 1376.580] (II) FBDEV: driver for framebuffer: fbdev [ 1376.581] (--) using VT number 8 [ 1376.581] (WW) Falling back to old probe method for vesa [ 1376.581] (WW) Falling back to old probe method for fbdev [ 1376.581] (II) Loading sub module "fbdevhw" [ 1376.581] (II) LoadModule: "fbdevhw" [ 1376.581] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so [ 1376.581] (II) Module fbdevhw: vendor="X.Org Foundation" [ 1376.581] compiled for 1.11.3, module version = 0.0.2 [ 1376.581] ABI class: X.Org Video Driver, version 11.0 [ 1376.581] (EE) open /dev/fb0: No such file or directory [ 1376.581] (EE) No devices detected. [ 1376.581] (==) Matched vesa as autoconfigured driver 0 [ 1376.581] (==) Matched fbdev as autoconfigured driver 1 [ 1376.581] (==) Assigned the driver to the xf86ConfigLayout [ 1376.581] (II) LoadModule: "vesa" [ 1376.582] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so [ 1376.582] (II) Module vesa: vendor="X.Org Foundation" [ 1376.582] compiled for 1.11.3, module version = 2.3.0 [ 1376.582] Module class: X.Org Video Driver [ 1376.582] ABI class: X.Org Video Driver, version 11.0 [ 1376.582] (II) UnloadModule: "vesa" [ 1376.582] (II) Unloading vesa [ 1376.582] (II) Failed to load module "vesa" (already loaded, 32661) [ 1376.582] (II) LoadModule: "fbdev" [ 1376.582] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so [ 1376.582] (II) Module fbdev: vendor="X.Org Foundation" [ 1376.582] compiled for 1.11.3, module version = 0.4.2 [ 1376.582] ABI class: X.Org Video Driver, version 11.0 [ 1376.582] (II) UnloadModule: "fbdev" [ 1376.582] (II) Unloading fbdev [ 1376.582] (II) Failed to load module "fbdev" (already loaded, 32661) [ 1376.582] (II) VESA: driver for VESA chipsets: vesa [ 1376.582] (II) FBDEV: driver for framebuffer: fbdev [ 1376.582] (++) using VT number 8 [ 1376.582] (WW) xf86OpenConsole: setpgid failed: Operation not permitted [ 1376.582] (WW) xf86OpenConsole: setsid failed: Operation not permitted [ 1376.582] (WW) Falling back to old probe method for vesa [ 1376.582] (WW) Falling back to old probe method for fbdev [ 1376.582] (II) Loading sub module "fbdevhw" [ 1376.582] (II) LoadModule: "fbdevhw" [ 1376.583] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so [ 1376.583] (II) Module fbdevhw: vendor="X.Org Foundation" [ 1376.583] compiled for 1.11.3, module version = 0.0.2 [ 1376.583] ABI class: X.Org Video Driver, version 11.0 [ 1376.583] (EE) open /dev/fb0: No such file or directory [ 1376.583] (EE) No devices detected. [ 1376.583] Fatal server error: [ 1376.583] no screens found [ 1376.583] Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 1376.583] Please also check the log file at "/var/log/Xorg.0.log" for additional information. [ 1376.583]2013年3月31日
我看了下,好像是Xen虚拟机的问题。
最好是用Red Hat系列的CentOS,而不要用Debian系列。
http://sysadmin.circularvale.com/serv...
试验了下来,用centOS也不行。
现在不知道怎么办了。
装个vncserver,然后在$HOME/.vnc/xstartup里面加入gnome-session什么的启动命令,通过vnc client连上去。