求助:如何从 CLI 启动 KDE

本人喜好装 B,所以总觉得电脑一启动就是 CLI 界面(就是那个 ctrl+alt+F1 的界面)酷酷的,所以就设置了一下。

Yast->System->Services Manager 把 default system Target 改成 Multi-User System。
这样一来开机就是黑 fufu 的 CLI 界面啦!

然而,有时想要从 CLI 界面启动 KDE。那么输入 startx,一大片报错

X.Org X Server 1.20.13
X Protocol Version 11, Revision 0
Build Operating System: openSUSE SUSE Linux
Current Operating System: Linux localhost.localdomain 5.13.8-1-default #1 SMP Thu Aug 5 08:56:22 UTC 2021 (967c6a8) x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.13.8-1-default root=UUID=1a251a46-1f82-49f2-838b-679652c18bf8 splash=silent mitigations=auto quiet
Build Date: 30 July 2021 12:00:00AM

Current version of pixman: 0.40.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: “/home/lw/.local/share/xorg/Xorg.1.log”, Time: Sat Aug 14 21:38:47 2021
(==) Using config directory: “/etc/X11/xorg.conf.d”
(==) Using system config directory “/usr/share/X11/xorg.conf.d”
(EE)
Fatal server error:
(EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at “/home/lw/.local/share/xorg/Xorg.1.log” for additional information.
(EE)
VGA Arbitration: Cannot restore default device.
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

xinit failed. /usr/bin/Xorg is not setuid, maybe that’s the reason?
If so either use a display manager (strongly recommended) or adjust /etc/permissions.local and run “chkstat --system --set” afterwards
Couldn’t get a file descriptor referring to the console.

加上 sudo startx 倒是可以成功启动,可进去就是以 root 登录好的桌面,还没法切换用户。

请问大佬们该如何以正确的姿势从 CLI 启动 KDE 呢?

我觉得报错中这条比较重要
xinit failed. /usr/bin/Xorg is not setuid, maybe that’s the reason?
请问该如何 set uid,或者怎么用其他方法解决呢?

要从 session manager 启动,而不是用startx
试试 gdm, ssdm 之类的?

本主题在最后一个回复创建后60分钟后自动锁定。不再允许添加新回复。