https://learn.microsoft.com/zh-cn/windows/wsl/use-custom-distro 通过github开源包直接导入 参考地址: https://www.how2shout.com/how-to/install-centos-on-windows-10-subsystem-for-linux.html 下载CentOS 镜像包 以下是 Github 上的一个开源项目,提供适用于 Linux 的 Windows 子系统的 CentOS 的下载。
wsl--install<Distro>//安装指定Linux版本 wsl--set-default<DistributionName>//设置默认 Linux 发行版 通过wsl运行Linux wsl--distribution<DistributionName>--user<UserName>//运行特定的 Linux 发行版 可能的报错 无法运行Linux 安装完后,运行Linux,一般出现error 0x80370114。 需要在Windows中, “设置”->“应用...
sudo apt-get remove XXX sudo apt-get update 环境配置一般的话,用apt install 安装 g++,然后用vscode写代码,用Linux工具编译。编译时需要的硬件驱动,是在物理机(Windows)下安装。vscode配置WSL插件在vscode下载官方的WSL插件。现在已经改名叫WSL了。连接方法1...
sudo apt-get remove XXX sudo apt-get update 环境配置一般的话,用apt install 安装 g++,然后用vscode写代码,用Linux工具编译。编译时需要的硬件驱动,是在物理机(Windows)下安装。vscode配置WSL插件在vscode下载官方的WSL插件。现在已经改名叫WSL了。连接方法1...
/opt/distrod/bin/distrod enable --start-on-windows-boot wsl --shutdown wsl systemctl status | cat 参考 https://learn.microsoft.com/zh-cn/windows/wsl/use-custom-distro 通过github开源包直接导入 参考地址: https://www.how2shout.com/how-to/install-centos-on-windows-10-subsystem-for-linux....
In a Windows Powershell terminal (not the Ubuntu terminal), enter wsl –list to view your Linux distributions, then export one by name to a backup .tar file — such as D:\backup\ubuntu.tar: mkdir D:\backup wsl --export Ubuntu D:\backup\ubuntu.tar Unregister that distro to remove it...
/opt/distrod/bin/distrod enable --start-on-windows-boot wsl --shutdown wsl systemctl status | cat 参考 https://learn.microsoft.com/zh-cn/windows/wsl/use-custom-distro 通过github开源包直接导入 参考地址: https://www.how2shout.com/how-to/install-centos-on-windows-10-subsystem-for-linux....
sed -i '/\[user\]/a default = username' /etc/wsl.conf Shutdown and restart the distro (this step is important). (or) Execute the command below in a windows cmd terminal from the directory where Mint.exe is installed. >Mint.exe config --default-user <username> ...
wsl --set-version Ubuntu 2 #升级到WSL2,其中 Ubuntu 是已经安装的Linux名称,命令格式:wsl --set-version <Distro> <Version> image.png 启用WSL后,通过 \wsl$ 可以访问WSL文件 image.png WSL2 与docker 集成 最初的WSL是在Windows之上模拟Linux内核,但是Windows和Linux之间存在如此基本的差异,以至于某些事情不...
如果您想连接到远程WSL,您可能应该将其设置为运行自己的sshd,而不是依赖于托管Windows来进行隧道操作。