使用管理员权限打开PowerShell,输入以下命令: wsl --set-version kali-linux 2 安装Win-Kex工具包 Win-Kex工具包是Kali提供的在Windows上运行的图形化工具包,可以一键式傻瓜化在WSL中跑图形界面。 在Kali命令行中输入命令安装: sudo apt update && sudo apt install kali-win-kex 安装完成后就可以启动图像界面了...
WSL2 优化 压缩 随着使用时间的延长,WSL2占用的硬盘空间会越来越多,这个时候就需要对其文件进行压缩。方法如下 wsl--shutdowndiskpart# open window Diskpartselectvdiskfile="C:\Users\Ci\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\LocalState\ext4.vhdx"# select vdisk file...
WSL2可能会引起内存占用问题。可以打开$home/.wslconfig文件,进行内存相关设置,如限制WSL2实例的最大内存使用量,以优化内存使用。通过以上步骤,您可以在WSL2下搭建一个包含GUI且经过空间优化的Kali Linux环境。
或使用管理员身份在命令行输入相关命令。接着,从Windows应用商店搜索WSL,选择并安装Kali Linux发行版。为确保使用最新版本,执行升级操作。安装Kali Linux发行版后,通过命令安装必要的工具集。为了提升用户体验,可以安装官方推荐的GUI——Win-KeX。安装完成后,使用指定命令启动Win-KeX,并利用其无缝模式。
WSL Access to the Kali toolset through the WSL framework Userland actions only Not Kali customized kernel No direct access to hardware Windows Subsystem for Linux (WSL) is included out of the box with modern Windows. Use Kali (and Win-KeX) without installing additional software. ...
由于之前在kali虚拟机内我默认使用root用户进行操作,避免频繁输入sudo,故在kali wsl里面也希望使用root操作,同时也可以避免因权限而带来的操作问题。 按Ctrl+D退出登录,并打开Windows命令行或者PowerShell,输入命令 kali config --default-user root WSL 子系统是基于 LxssManager 服务运行的,在更改过默认用户后,我们需...
WSL Access to the Kali toolset through the WSL framework Userland actions only Not Kali customized kernel No direct access to hardware Windows Subsystem for Linux (WSL) is included out of the box with modern Windows. Use Kali (and Win-KeX) without installing additional software. ...
Getting Kali Linux Installed on WSL 本贴最后更新于 1790 天前,其中的信息可能已经事过境迁 开启win10 支持 WSL Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux 启动kali 后,设置 root 密码 sudo -i update kali apt-get update apt-get dist-upgrade ...
To Install Win-Kex or to get GUI, you need to pass a couple of commands, First, update and upgrade the repository Open the terminal and type wsl
As we know, with WSL 1 & WSL 2, we can run Linux like Kali, Ubuntu, and other available, on Windows 10. However, there would not be any graphical version to use on Linux running on the Windows subsystem for Linux. Once I tried and installed successfully, a GUI over KALI WSL, but...