为了获得GUI,我试图在kali中运行kex --win -s,但我得到了一条错误消息:
Error: unable to connect socket: connection refused(10061)你能帮上忙吗
我尝试了以下几点:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
wsl --set-default-version 2
wsl --set-version kali-linux 2
sudo apt install -y kali-win-kex
kex --win -s启动vncserver以接受来自所有网络地址的连接:
vncserver -localhost no通过以下方式再次检查kex的状态:
kex --status它现在应该列出vnc会话。
键入以下命令以启动kali窗口:
kex --win -sl如果我运行vncserver -localhost no,就会得到以下内容:
Killing Xtigervnc process ID 29... success!tail /home/vi/.vnc/Vik.localdomain:5901.log:
Xvnc TigerVNC 1.11.0 - built 2021-03-22 21:21
Copyright (C) 1999-2020 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12010000, The X.Org Foundation
Mon May 24 18:42:53 2021
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5901
 vncext:      created VNC server for screen 0
Mon May 24 18:43:24 2021
 ComparingUpdateTracker: 0 pixels in / 0 pixels out
 ComparingUpdateTracker: (1:-nan ratio)
vncserver: /usr/bin/Xtigervnc did not start up, please look into '/home/vi/.vnc/Vik.localdomain:5901.log' to determine the reason! -1我是kali linux的新手
发布于 2021-08-30 14:41:36
给有这个问题的其他人一个提示:确保你有WSL2而不是WSL1!我花了几个小时试图弄清楚,直到我意识到我有WSL1。
注:在此参考
发布于 2021-07-26 07:54:10
https://unix.stackexchange.com/questions/651182
复制相似问题