作为一个个人项目,我决定开始在虚拟机上构建 Linux From Scratch(System V 版本,9.1)。一切都很正常,直到通过 LightDM 进入系统的那一刻。输入用户名和密码后,屏幕上出现一条消息,提示连接被拒绝。我尝试查找有关该问题的信息,但没有任何帮助。我也尝试使用LXDM,但发生了同样的问题。
这是出现的消息: (翻译:无法与配置服务器连接 - 无法连接:连接被拒绝)
我可以通过运行 startx 和 startxfce4 进入 XFCE。但是,当我尝试输入 xfce4-session 或 xfsettingsd 命令时,屏幕上出现相同的错误:
Unable to init server: No se pudo conectar: Conexión rehusada
(翻译:无法连接:连接被拒绝)
如果需要更多信息,请告诉我。
这是 Xorg.0.log 的内容:
[ 7.858]
X.Org X Server 1.20.7
X Protocol Version 11, Revision 0
[ 7.858] Build Operating System: Linux 4.19.0-10-amd64 x86_64
[ 7.858] Current Operating System: Linux bluelinux 5.5.3 #4 SMP Thu Sep 24 01:13:21 UTC 2020 x86_64
[ 7.858] Kernel command line: BOOT_IMAGE=/vmlinuz-5.5.3-lfs-9.1 root=/dev/sda3 ro
[ 7.858] Build Date: 24 September 2020 12:54:30AM
[ 7.858]
[ 7.858] Current version of pixman: 0.38.4
[ 7.858] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 7.858] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 7.858] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Sep 24 22:13:24 2020
[ 8.022] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 8.056] (==) No Layout section. Using the first Screen section.
[ 8.056] (==) No screen section available. Using defaults.
[ 8.056] (**) |-->Screen "Default Screen Section" (0)
[ 8.056] (**) | |-->Monitor "<default monitor>"
[ 8.056] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 8.056] (==) Automatically adding devices
[ 8.056] (==) Automatically enabling devices
[ 8.056] (==) Automatically adding GPU devices
[ 8.056] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 8.197] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/misc/".
[ 8.197] Entry deleted from font path.
[ 8.197] (Run 'mkfontdir' on "/usr/share/fonts/X11/misc/").
[ 8.223] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/100dpi/".
[ 8.223] Entry deleted from font path.
[ 8.223] (Run 'mkfontdir' on "/usr/share/fonts/X11/100dpi/").
[ 8.224] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/75dpi/".
[ 8.224] Entry deleted from font path.
[ 8.224] (Run 'mkfontdir' on "/usr/share/fonts/X11/75dpi/").
[ 8.224] (==) FontPath set to:
/usr/share/fonts/X11/TTF/,
/usr/share/fonts/X11/OTF/,
/usr/share/fonts/X11/Type1/
[ 8.224] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 8.224] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 8.224] (II) Loader magic: 0x616cc0
[ 8.224] (II) Module ABI versions:
[ 8.224] X.Org ANSI C Emulation: 0.4
[ 8.224] X.Org Video Driver: 24.1
[ 8.224] X.Org XInput driver : 24.1
[ 8.224] X.Org Server Extension : 10.0
[ 8.224] (++) using VT number 7
[ 8.224] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 8.224] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 8.225] (--) PCI:*(0@0:2:0) 15ad:0405:15ad:0405 rev 0, Mem @ 0xf0000000/134217728, 0xf8000000/2097152, I/O @ 0x0000d010/16, BIOS @ 0x????????/131072
[ 8.225] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 8.225] (II) LoadModule: "glx"
[ 8.274] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 8.828] (II) Module glx: vendor="X.Org Foundation"
[ 8.828] compiled for 1.20.7, module version = 1.0.0
[ 8.828] ABI class: X.Org Server Extension, version 10.0
[ 8.828] (==) Matched vmware as autoconfigured driver 0
[ 8.828] (==) Matched modesetting as autoconfigured driver 1
[ 8.828] (==) Matched fbdev as autoconfigured driver 2
[ 8.828] (==) Matched vesa as autoconfigured driver 3
[ 8.828] (==) Assigned the driver to the xf86ConfigLayout
[ 8.828] (II) LoadModule: "vmware"
[ 8.834] (II) Loading /usr/lib/xorg/modules/drivers/vmware_drv.so
这是lightdm.log的内容:
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=0 PID=610
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.17s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.27s] DEBUG: Monitoring logind for seats
[+0.27s] DEBUG: New seat added from logind: seat0
[+0.27s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.27s] DEBUG: Seat seat0: Starting
[+0.27s] DEBUG: Seat seat0: Creating greeter session
[+0.29s] DEBUG: Seat seat0: Creating display server of type x
[+0.30s] DEBUG: posix_spawn avoided (fd close requested)
[+0.30s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.30s] DEBUG: Using VT 7
[+0.30s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.30s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.30s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+0.30s] DEBUG: XServer 0: Launching X Server
[+0.30s] DEBUG: Launching process 626: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.30s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.30s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.30s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+3.06s] DEBUG: Loading users from org.freedesktop.Accounts
[+3.08s] DEBUG: User /org/freedesktop/Accounts/User1000 added