我已经安装了以下软件包:
ii tigervnc-common 1.10.1+dfsg-1 amd64 Virtual network computing; Common software needed >
ii tigervnc-standalone-server 1.10.1+dfsg-1 amd64 Standalone virtual network computing server
ii tigervnc-viewer 1.10.1+dfsg-1 amd64 Virtual network computing client for X
ii tigervnc-xorg-extension 1.10.1+dfsg-1 amd64 Virtual network computing X server extension
我已运行vncserver并配置了密码,没有添加其他配置。
(这是使用一个已经工作的VNC会话)无sudo命令:
root@kali:~# vncserver -localhost
New 'kali.'"'':2 (root)' desktop at :2 on machine kali.'"''
Starting applications specified in /etc/X11/Xvnc-session
Log file is /root/.vnc/kali.'"'':2.log
Use xtigervncviewer -SecurityTypes VncAuth -passwd /root/.vnc/passwd :2 to connect to the VNC server.
vncserver: Failed command '/etc/X11/Xvnc-session': 256!
=================== tail -15 /root/.vnc/kali.'"'':2.log ===================
Xvnc TigerVNC 1.10.0 - built Dec 30 2019 14:38:21
Copyright (C) 1999-2019 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12006000, The X.Org Foundation
Sun Jan 12 18:52:25 2020
vncext: VNC extension running!
vncext: Listening for VNC connections on local interface(s), port 5902
vncext: created VNC server for screen 0
X connection to :2 broken (explicit kill or server shutdown).
ComparingUpdateTracker: 0 pixels in / 0 pixels out
ComparingUpdateTracker: (1:-nan ratio)
Killing Xtigervnc process ID 4108... which seems to be deadlocked. Using SIGKILL!
===========================================================================
Starting applications specified in /etc/X11/Xvnc-session has failed.
Maybe try something simple first, e.g.,
tigervncserver -xstartup /usr/bin/xterm
在使用sudo时,如果这个命令可以正常运行:
root@kali:~# sudo vncserver -localhost
New 'kali.'"'':2 (root)' desktop at :2 on machine kali.'"''
Starting applications specified in /etc/X11/Xvnc-session
Log file is /root/.vnc/kali.'"'':2.log
Use xtigervncviewer -SecurityTypes VncAuth -passwd /root/.vnc/passwd :2 to connect to the VNC server.
我是两者的超级管理员,所以我想了解为什么sudo会有影响。