我使用的是 Fedora Server 37 iso,因此没有预安装 DM/DE。
- 安装 wayland、lightdm 和 lightdm-gtk-greeter。
- 编辑 lightdm 的配置以使用 lightdm-gtk-greeter
- (第 102 行)更改
greeter-session=example-gtk-gnome
为greeter-session=lightdm-gtk-greeter
- (第 107 行)更改
user-session=default
为user-session=qtile
- (第 102 行)更改
- 尝试启动graphical.target,但失败了。
来自
sudo tail -n100 /var/log/lightdm/lightdm.log
,这是相关部分的一大块。它尝试启动一个 xserver,即使我没有安装它并且想使用 wayland。我也找不到告诉它使用 wayland 的配置选项。我错过了吗,还是有其他方法可以做到这一点?[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager [+0.00s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ [+0.00s] DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3) [+0.00s] DEBUG: Monitoring logind for seats [+0.00s] DEBUG: New seat added from logind: seat0 [+0.00s] DEBUG: Seat seat0: Loading properties from config section Seat:* [+0.00s] DEBUG: Seat seat0 has property CanMultiSession=no [+0.00s] DEBUG: Seat seat0: Starting [+0.00s] DEBUG: Seat seat0: Creating greeter session [+0.00s] DEBUG: Seat seat0: Creating display server of type x [+0.00s] DEBUG: Using VT 1 [+0.00s] DEBUG: Seat seat0: Starting local X display on VT 1 [+0.00s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log [+0.00s] DEBUG: XServer 0: Can't launch X server X -core -noreset, not found in path [+0.00s] DEBUG: XServer 0: X server stopped [+0.00s] DEBUG: Releasing VT 1 [+0.00s] DEBUG: Seat seat0: Display server stopped [+0.00s] DEBUG: Seat seat0: Can't create display server for greeter [+0.00s] DEBUG: Seat seat0: Session stopped [+0.00s] DEBUG: Seat seat0: Stopping display server, no sessions require it [+0.00s] DEBUG: Seat seat0: Stopping [+0.00s] DEBUG: Seat seat0: Stopped [+0.00s] DEBUG: Failed to start seat: seat0
编辑:这个github问题是某人的日志比我走得更远。你看,上面是我的日志Seat seat0: Creating display server of type x
,但他们的是type wayland
。这是我想弄清楚的主要问题。然而后来在他们的日志中,他们/etc/lightdm/Xsession ...
也仍然打电话。有没有办法安装 x11 的一小部分才能工作,或者我是否需要整个 x 服务器包以及 wayland 才能运行 LightDM?