如果我运行sudo systemctl tigervncserver@:2
,服务器会出现分段错误:
Xvnc TigerVNC 1.12.0 - built 2022-03-25 17:06
Copyright (C) 1999-2021 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12101003, X.Org
Fri Jul 14 19:45:34 2023
vncext: VNC extension running!
vncext: Listening for VNC connections on local interface(s), port 5902
vncext: created VNC server for screen 0
[mi] mieq: warning: overriding existing handler (nil) with 0x56355e466400 for event 2
[mi] mieq: warning: overriding existing handler (nil) with 0x56355e466400 for event 3
3NI3X0 New Xtigervnc server 'myserver:2 (user2)' on port 5902 for display :2.
3NI3X0 Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/user2/.vnc/passwd :2 to connect to the VNC server.
Segmentation fault (core dumped)
X connection to :2 broken (explicit kill or server shutdown).
该服务使用ExecStart=/usr/libexec/tigervncsession-start %i
,所以如果我运行/usr/libexec/tigervncsession-start :2
它,它应该表现得类似,对吗?
但那种情况下并没有发生故障,运行正常,这使得诊断变得困难。
答案1
该问题与用户在控制台上登录有关。似乎存在某种排他性。用户可以在不运行 VNC 服务器的情况下在控制台上登录,或者通过 VNC 登录而无需在控制台上登录。