dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_arm64.msi
ou (si ARM64)
wsl --install
wsl -l --online
wsl --list --online
ou
wsl --install Ubuntu
wsl --install Debian
wsl --install <distribution>
Exemples :
wsl -l
wsl --list
ou
wsl --distribution <distribution>
wsl
ou
wsl -d <distribution>
wsl -d Ubuntu
exemple :
sudo apt install zsh git
sudo apt update
sudo apt upgrade
mettre à jour les paquets
(ici pour Debian-based : Debian, Ubuntu...)
installer zsh et git
curl https://get.volta.sh | bash
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
L’interface de VSCode tournera dans Windows
Tout le reste sera exécuté sur Linux
(les commandes, les extensions et le terminal)
Lancer VSCode dans WSL
par le shell
par l’icône en bas à gauche de VSCode (avec les chevrons)
par la palette de commande
Maj Ctrl p