我正在尝试在我的 Arch Linux 虚拟机上安装和配置 Xorg。我可以启动 X 服务器,但是当我尝试使用该命令startx
生成配置文件时,它失败了。这是我到目前为止所做的步骤:/etc/X11/xorg.conf
Xorg :0 -configure
pacman
通过软件包安装了 Guest Additionsvirtualbox-guest-utils
(virtualbox-guest-modules-arch
我使用的是标准 Linux 内核,我还安装了标头linux-headers
),如上所述这里;创建了
/etc/modules-load.d/virtualbox.conf
包含三行的文件vboxguest vboxsf vboxvideo
并启用
vboxservice.service
;安装了软件包
mesa
并xf86-video-vesa
;已安装
xorg-server
,xorg-server-utils
并且xorg-apps
;安装
openbox
并xterm
设置~/.xintrc
如下:xterm & exec openbox
重新启动。
该startx
命令有效,但是当我尝试生成文件时xorg.conf
它失败了。这里是Xorg.0.log
文件:
[ 1460.360]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[ 1460.362] X Protocol Version 11, Revision 0
[ 1460.365] Build Operating System: Linux 4.5.4-1-ARCH x86_64
[ 1460.367] Current Operating System: Linux ArchLinux 4.7.2-1-ARCH #1 SMP PREEMPT Sat Aug 20 23:02:56 CEST 2016 x86_64
[ 1460.368] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=/dev/mapper/VolGroupArch-root rw quiet
[ 1460.369] Build Date: 19 July 2016 05:54:24PM
[ 1460.370]
[ 1460.371] Current version of pixman: 0.34.0
[ 1460.373] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 1460.373] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 1460.378] (==) Log file: "/home/luigi/.local/share/xorg/Xorg.0.log", Time: Fri Sep 2 20:00:40 2016
[ 1460.378] (II) Loader magic: 0x821d40
[ 1460.378] (II) Module ABI versions:
[ 1460.378] X.Org ANSI C Emulation: 0.4
[ 1460.378] X.Org Video Driver: 20.0
[ 1460.378] X.Org XInput driver : 22.1
[ 1460.378] X.Org Server Extension : 9.0
[ 1460.383] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[ 1460.384] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 1460.385] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 8 paused 0
[ 1460.388] (--) PCI:*(0:0:2:0) 80ee:beef:0000:0000 rev 0, Mem @ 0xe0000000/67108864, BIOS @ 0x????????/131072
[ 1460.389] List of video drivers:
[ 1460.389] vesa
[ 1460.389] modesetting
[ 1460.389] (II) LoadModule: "vesa"
[ 1460.389] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 1460.389] (II) Module vesa: vendor="X.Org Foundation"
[ 1460.389] compiled for 1.18.0, module version = 2.3.4
[ 1460.389] Module class: X.Org Video Driver
[ 1460.389] ABI class: X.Org Video Driver, version 20.0
[ 1460.389] (II) LoadModule: "modesetting"
[ 1460.389] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 1460.389] (II) Module modesetting: vendor="X.Org Foundation"
[ 1460.389] compiled for 1.18.4, module version = 1.18.4
[ 1460.389] Module class: X.Org Video Driver
[ 1460.389] ABI class: X.Org Video Driver, version 20.0
[ 1460.389] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[ 1460.389] (II) VESA: driver for VESA chipsets: vesa
[ 1460.389] (II) modeset(G0): using drv /dev/dri/card0
[ 1460.389] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 1460.389] (++) Using config file: "/home/luigi/xorg.conf.new"
[ 1460.389] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 1460.390] (==) ServerLayout "X.org Configured"
[ 1460.390] (**) |-->Screen "Screen0" (0)
[ 1460.390] (**) | |-->Monitor "Monitor0"
[ 1460.390] (**) | |-->Device "Card0"
[ 1460.390] (**) |-->Input Device "Mouse0"
[ 1460.390] (**) |-->Input Device "Keyboard0"
[ 1460.390] (==) Automatically adding devices
[ 1460.390] (==) Automatically enabling devices
[ 1460.390] (==) Automatically adding GPU devices
[ 1460.390] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 1460.390] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 1460.390] Entry deleted from font path.
[ 1460.390] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 1460.390] Entry deleted from font path.
[ 1460.390] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[ 1460.390] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[ 1460.390] Entry deleted from font path.
[ 1460.390] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[ 1460.390] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 1460.390] Entry deleted from font path.
[ 1460.390] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 1460.390] Entry deleted from font path.
[ 1460.390] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[ 1460.390] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[ 1460.390] Entry deleted from font path.
[ 1460.390] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[ 1460.390] (**) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/TTF/,
/usr/share/fonts/OTF/,
/usr/share/fonts/misc/,
/usr/share/fonts/TTF/,
/usr/share/fonts/OTF/
[ 1460.390] (**) ModulePath set to "/usr/lib/xorg/modules"
[ 1460.390] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 1460.390] (WW) Disabling Mouse0
[ 1460.390] (WW) Disabling Keyboard0
[ 1460.390] (WW) Falling back to old probe method for vesa
[ 1460.390] Number of created screens does not match number of detected devices.
Configuration failed.
我是 Arch 的初学者,我知道我错过了一些愚蠢的东西。感谢您的帮助建议。