適用於 Linux 的 Windows 子系統 (WSL) 可讓開發人員安裝 Linux 散發套件(例如 Ubuntu、OpenSUSE、Kali、Debian、Arch Linux 等),並直接在 Windows 上使用 Linux 應用程式、公用程式和 Bash 命令列工具,完全未經修改,而且不需要傳統虛擬機器或 dualboot 設定的額外負荷。
Install Windows Subsystem for Linux with the command, wsl --install. Use a Bash terminal on your Windows machine run by your preferred Linux distribution - Ubuntu, Debian, SUSE, Kali, Fedora, Pengwin, Alpine, and more are available.
首先在win10或win11下安装wsl,选择wsl1或者wsl2都可以,wsl2的性能更高一些,wsl1的跨系统文件操作速度更快一些,我这里因为有一些工程在win文件系统下,所以选择了wsl1,发行版使用最新的Ubuntu 22.04.01 LTS。这里我没有选用vm虚拟机安装ubuntu开发的原因是虚拟机下的文件交互不够方便,特别是git和文件对比,有时在...
Option 1: Installation of Linux x86 CUDA Toolkit using WSL-Ubuntu Package - Recommended The CUDA WSL-Ubuntu local installer does not contain the NVIDIA Linux GPU driver, so by following the steps on the CUDAdownload page for WSL-Ubuntu, you will be able to get just the CUDA toolkit installe...
To switch Ubuntu to WSL2, enter: wsl --set-version Ubuntu 2 Similarly, to switch back to WSL1, enter: wsl --set-version Ubuntu 1 Set a Default Linux Distribution One Linux distribution must be set as the default when you have more than one installed. This will be used when wsl is ...
To switch Ubuntu to WSL2, enter: wsl --set-version Ubuntu 2 Similarly, to switch back to WSL1, enter: wsl --set-version Ubuntu 1 Set a Default Linux Distribution One Linux distribution must be set as the default when you have more than one installed. This will be used when wsl is ...
Option 1: Installation of Linux x86 CUDA Toolkit using WSL-Ubuntu Package – Recommended The CUDA WSL-Ubuntu local installer does not contain the NVIDIA Linux GPU driver, so by following the steps below, you will be able to get just the CUDA toolkit installed on WSL. wget https://develope...
Install Windows Subsystem for Linux with the command, wsl --install. Use a Bash terminal on your Windows machine run by your preferred Linux distribution - Ubuntu, Debian, SUSE, Kali, Fedora, Pengwin, Alpine, and more are available.
Install Windows Subsystem for Linux with the command, wsl --install. Use a Bash terminal on your Windows machine run by your preferred Linux distribution - Ubuntu, Debian, SUSE, Kali, Fedora, Pengwin, Alpine, and more are available.
VS Code should now be running within your WSL file system. In the bottom left of your VS Code window, you should see a box which display the Linux distribution you are using (Ubuntu 20.04 / Ubuntu 18.04). VS Code now has access to your WSL file system, and the files in your current...