win 10手动/不使用app store安装linux子系统

编程知识 更新时间:2023-04-22 04:05:06

在线安装:

Windows 10系统直接安装WSL2-Ubuntu18.04 - 知乎

安装 WSL | Microsoft Docs

ubuntu WSL无法联网问题解决:

设置/etc/resolv.conf配置nameser 8.8.8.8

GPU acceleration in WSL | Microsoft Docs

CUDA on WSL :: CUDA Toolkit Documentation

20200601:

安装wsl 2.0:

安装 WSL | Microsoft Docs

旧版 WSL 的手动安装步骤 | Microsoft Docs

需要安装 更新 WSL 2 Linux 内核旧版 WSL 的手动安装步骤 | Microsoft Docs

这里会下载个文件wsl_update_x64.msi

遇到的一个错误的解决:

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x800701bc
Error: 0x800701bc WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel

右键单击wsl_update_x64.msi选择卸载,卸载之前安装的版本后重装解决了。

WSL2.0 安装docker

2020系统综合实践1 WSL 2的安装和基本使用 - zaqny - 博客园

-----------------------------------------------------------------------------

从app store搜索下载linux子系统需要登录,并且下载极其缓慢。不适用app store的安装方法,网上给出的方法实在太复杂。但微软官方其实就提供了极其简单的方法:

Manually download Windows Subsystem for Linux distro packages

Manual installation steps for older versions of WSL | Microsoft Docs

之前可能需要在启用或关闭Windows功能(复制这句话搜索即可)里面勾选适用于Linux的Windows子系统。

Downloading distros

If the Microsoft Store app is not available, you can download and manually install Linux distros by clicking these links:

  • Ubuntu 18.04
  • Ubuntu 18.04 ARM
  • Ubuntu 16.04
  • Debian GNU/Linux
  • Kali Linux
  • OpenSUSE Leap 42
  • SUSE Linux Enterprise Server 12
  • Fedora Remix for WSL

This will cause the <distro>.appx packages to download to a folder of your choosing. Follow the installation instructions to install your downloaded distro(s).

Installing your distro

If you're using Windows 10 you can install your distro with PowerShell. Simply navigate to folder containing the distro downloaded from above, and in that directory run the following command where app_name is the name of your distro .appx file.

PowershellCopy

Add-AppxPackage .\app_name.appx
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

If you are using Windows server you can find the install instructions on the Windows Server documentation page.

Once your distro is installed please refer to the Intilization Steps page to initialize your new distro.

设置子系统默认登录用户

Windows SubSystem for Linux(WSL)设置默认和设置默认登陆用户 - 余生以学 - 博客园

win10 linux子系统设置默认用户_iJiabao-巨鹿网络的博客-CSDN博客_wsl 设置默认用户

Windows访问WSL2子系统的文件夹:

在文件资源管理器输入

\\wsl$

wsl设置root账户

powershell执行命令(根据版本选择不同选项):

ubuntu config --default-user root # default ubuntu
ubuntu1804 config --default-user root
ubuntu2004 config --default-user root

wsl2可以正常使用nvprof的配套版本:

516.59-desktop-win10-win11-64bit-international-dch-whql.exe

cuda_11.6.1_510.47.03_linux.run

更多推荐

win 10手动/不使用app store安装linux子系统

本文发布于:2023-04-16 22:58:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/ad955b9ad73b8b0ee6b369c701aa21ff.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:子系统   win   app   linux   store

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 81862文章数
  • 4841阅读数
  • 0评论数