0
点赞
收藏
分享

微信扫一扫

kali /mac 成功的反弹shell语句

AbrahamW 2024-04-26 阅读 9

W11安装WSL2 ubuntu 攻略

最近换了新电脑重新安装一遍wsl2,记录一下方便以后使用。

打开控制面板,选择程序 —— 启用或关闭Windows功能,勾选 适用于Linux的Windows子系统还有虚拟机平台选项,修改后需要重启
在这里插入图片描述
wsl2版本

 wsl --set-default-version 2
 wsl --update

在微软商店中搜索ubuntu,安装ubuntu20.04
安装完报错:

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x800701bc
Error: 0x800701bc WSL 2 ?????????????????? https://aka.ms/wsl2kernel

Press any key to continue...

[已退出进程,代码为 1 (0x00000001)]
现在可以使用Ctrl+D关闭此终端,或按 Enter 重新启动。
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x800701bc
Error: 0x800701bc WSL 2 ?????????????????? https://aka.ms/wsl2kernel

Press any key to continue...

[已退出进程,代码为 1 (0x00000001)]
现在可以使用Ctrl+D关闭此终端,或按 Enter 重新启动

在命令行 / powershell中运行如下代码

wsl --set-default-version 2
wsl --update
wsl --version

安装成功:

Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: wz
New password:
Retype new password:
passwd: password updated successfully
操作成功完成。

此后可以进行终端美化(参照本专栏的文章)。

举报

相关推荐

0 条评论