0x01 准备工作
需要安装:Git Bash ,Python 3
https://git-scm.com/download/win
Git Bash
https://www.python.org/downloads/windows/
Python 3
Windows 10 操作系统
首先需要安装Git bash和Python 3,其实Git bash 并不是必须的,安装Git bash是为了Git clone方便,不用下载Zip包。
Python 3是必须要安装的。
0x02 安装Kali Linux子系统
首先使用管理员权限打开一个Powershell。
然后输入
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
执行完后会提示,是否重启系统,默认是重启,我们直接回车重启即可。
重启完后,打开一个CMD执行
lxrun /install
直接输入y即可继续安装。
然后会提示我们输入系统用户名,我们随意填写,我写的root。
然后打开Git Bash 下载WSL-Distribution-Switcher
git clone https://github.com/RoliSoft/WSL-Distribution-Switcher.git
或者是去下载Zip包。
然后CD到WSL-Distribution-Switcher目录
cd WSL-Distribution-Switcher
执行
python