不用安装虚拟机,直接在Windows上面运行Linux Bash Shell,嗯!真香!!!

简介: 不用安装虚拟机,直接在Windows上面运行Linux Bash Shell,嗯!真香!!!

每次安装虚拟机,打开虚拟机,一顿繁琐的界面操作,等待时长,让我很烦躁,对于熟悉开发工程师,在Linux上面敲击感和运行等等都要比Windows上面好很多倍,那么怎么在Windows上面直接运行Bash shell呢?下面对详细过程尽心了描述,请耐心观看。
在这里插入图片描述

1. 首先打开我们的开发者模式

1.1 直接在搜索框输入开发者,然后Enter就可以直接进入啦
在这里插入图片描述
1.2 或者按住win(键盘Ctrl和Alt中间哪个Windows图标)+x,然后选择“设置”,然后选择“更新和安全”,选择开发者选项就行啦
在这里插入图片描述在这里插入图片描述
1.3 打开开发人员模式

在这里插入图片描述

2.安装"适用于Linux的Windows子系统"

依次选择控制面板-->程序-->程序和功能,然后点击启用或关闭Windows功能
在这里插入图片描述
这时候会弹出一个Windows功能的小框框,我们将它拉到最下面,勾选适用于Linux的Windows子系统,然后进入搜索界面,之后会叫你重启电脑,重启就好了。
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

3.安装Linux系统

3.1 win+R,输入cmd进入dos界面,输入bash,提示叫我们通过访问微软商店来安装Linux分发版。复制链接进入网站下载。
在这里插入图片描述
弹出是否打开Microsoft Store,点击打开即可。
在这里插入图片描述
3.2 这里选择下载Ubuntu,可以根据自己个人喜好选择其他不同版本。
在这里插入图片描述
点击获取
在这里插入图片描述
弹出跨设备使用,选择不,谢谢
在这里插入图片描述
3.3 下载完之后,点击启动
在这里插入图片描述
启动之后弹出弹框,提示正在下载中,可能会等几分钟,等呗。。。
在这里插入图片描述
3.3 下载完之后,提示你设置Linux用户名和密码(输入两次,自己看不见),根据自己情况设置,以后记住密码就行。
在这里插入图片描述
3.4 接着重新打开dos命令行(win+R,还记得吗?),输入bash,我们会发现可以用啦。
在这里插入图片描述

备注:有时候我们安装Ubuntu系统的时候,如果报错了提示“WslRegisterDistribution failed with error: 0x8007019e”,原因是未安装Windows子系统。
解决办法:键盘输入win+x,选择Windows PowerShell(管理员),然后输入Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
在这里插入图片描述
按Enter回车,再输入Y,重启,重新打开已经安装好的子系统,等个几分钟之后,再输入账号和密码就ok啦。

相关文章
|
5月前
|
安全 Linux 生物认证
Nexpose 8.25.0 for Linux & Windows - 漏洞扫描
Nexpose 8.25.0 for Linux & Windows - 漏洞扫描
234 0
Nexpose 8.25.0 for Linux & Windows - 漏洞扫描
|
5月前
|
安全 Linux iOS开发
Binary Ninja 5.1.8104 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
Binary Ninja 5.1.8104 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
550 53
Binary Ninja 5.1.8104 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
|
5月前
|
安全 Linux 生物认证
Nexpose 8.24.0 for Linux & Windows - 漏洞扫描
Nexpose 8.24.0 for Linux & Windows - 漏洞扫描
294 17
Nexpose 8.24.0 for Linux & Windows - 漏洞扫描
|
5月前
|
安全 Linux iOS开发
Nessus Professional 10.10 Auto Installer for RHEL 10, AlmaLinux 10, Rocky Linux 10 - Nessus 自动化安装程序
Nessus Professional 10.10 Auto Installer for RHEL 10, AlmaLinux 10, Rocky Linux 10 - Nessus 自动化安装程序
377 6
Nessus Professional 10.10 Auto Installer for RHEL 10, AlmaLinux 10, Rocky Linux 10 - Nessus 自动化安装程序
|
5月前
|
安全 Ubuntu iOS开发
Nessus Professional 10.10 Auto Installer for Windows - Nessus 自动化安装程序
Nessus Professional 10.10 Auto Installer for Windows - Nessus 自动化安装程序
246 3
Nessus Professional 10.10 Auto Installer for Windows - Nessus 自动化安装程序
|
5月前
|
SQL 安全 Linux
Metasploit Pro 4.22.8-20251014 (Linux, Windows) - 专业渗透测试框架
Metasploit Pro 4.22.8-20251014 (Linux, Windows) - 专业渗透测试框架
288 1
Metasploit Pro 4.22.8-20251014 (Linux, Windows) - 专业渗透测试框架
|
5月前
|
Linux 网络安全 iOS开发
Metasploit Framework 6.4.95 (macOS, Linux, Windows) - 开源渗透测试框架
Metasploit Framework 6.4.95 (macOS, Linux, Windows) - 开源渗透测试框架
504 1
Metasploit Framework 6.4.95 (macOS, Linux, Windows) - 开源渗透测试框架
|
5月前
|
Shell Linux 网络安全
宝塔服务器面板部署安装git通过第三方应用安装收费怎么办—bash: git: command not found解决方案-优雅草卓伊凡
宝塔服务器面板部署安装git通过第三方应用安装收费怎么办—bash: git: command not found解决方案-优雅草卓伊凡
963 3
宝塔服务器面板部署安装git通过第三方应用安装收费怎么办—bash: git: command not found解决方案-优雅草卓伊凡
|
5月前
|
Linux 虚拟化 iOS开发
VMware Remote Console 13.0.1 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
VMware Remote Console 13.0.1 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
1106 0
VMware Remote Console 13.0.1 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
|
5月前
|
Linux iOS开发 计算机视觉
GIMP 3.0.6 (Linux, macOS, Windows) 发布 - 免费开源图像编辑器
GIMP 3.0.6 (Linux, macOS, Windows) 发布 - 免费开源图像编辑器
398 0

热门文章

最新文章