我已经安装了以下pkgs:
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为何与众不同
我想出差旅行的人不想让任何人来帮助您,因为他们删除了我的回复。如果您无法自由交换信息,像stackoverflow这样的东西有什么意义?删除我的stackoverflow帐户,难怪我没有用过它...