Version 4 vs 5
Version 4 vs 5
Edits
Edits
- Edit by keithzg, Version 5
- Sep 7 2022 6:15 PM
- ·Document expressly using WSL 1; fix listing command
- Edit by keithzg, Version 4
- Apr 25 2022 11:00 AM
« Previous Change | Next Change » |
Edit Older Version 4... | Edit Older Version 5... |
Content Changes
Content Changes
== Setup ==
1. In an Admin PowerShell session, run `dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart`
2. If you want to use hardware virtualization stuff then also run `dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart` but honestly I've never yet once done this, especially since I'm often using Windows in a VM already and nesting gets . . . tricky.
3. Now (maybe after a restart) you should have the `wsl` command available to you. Get a list of distros with `wsl --online --list`
4. Install your distro of choice with `wsl --install -d distroname`
== Official docs (not always up to date) ==
* https://docs.microsoft.com/en-us/windows/wsl/install
* https://docs.microsoft.com/en-us/windows/wsl/install-manual
* https://docs.microsoft.com/en-us/windows/wsl/install-on-server
== Issues ==
Using something like `rsync` on the filesystem outside of WSL (ex. something on `/mnt/c`, where the `C:\` drive is automounted by default) will throw errors because the user doesn't have permissions to change some file properties. See https://github.com/microsoft/WSL/issues/3187#issuecomment-388904048, the lazy solution however is to just use `sudo` in those instances.
== Setup ==
1. In an Admin PowerShell session, run `dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart`
2. If you want to use hardware virtualization stuff then also run `dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart` but honestly I've never yet once done this, especially since I'm often using Windows in a VM already and nesting gets . . . tricky. Conversely, to expressly use WSL 1 instead and not have to worry about this, `wsl --set-default-version 1`.
3. Now (maybe after a restart) you should have the `wsl` command available to you. Get a list of distros with `wsl --list --online`
4. Install your distro of choice with `wsl --install -d distroname`
== Official docs (not always up to date) ==
* https://docs.microsoft.com/en-us/windows/wsl/install
* https://docs.microsoft.com/en-us/windows/wsl/install-manual
* https://docs.microsoft.com/en-us/windows/wsl/install-on-server
== Issues ==
Using something like `rsync` on the filesystem outside of WSL (ex. something on `/mnt/c`, where the `C:\` drive is automounted by default) will throw errors because the user doesn't have permissions to change some file properties. See https://github.com/microsoft/WSL/issues/3187#issuecomment-388904048, the lazy solution however is to just use `sudo` in those instances.
== Setup ==
1. In an Admin PowerShell session, run `dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart`
2. If you want to use hardware virtualization stuff then also run `dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart` but honestly I've never yet once done this, especially since I'm often using Windows in a VM already and nesting gets . . . tricky. Conversely, to expressly use WSL 1 instead and not have to worry about this, `wsl --set-default-version 1`.
3. Now (maybe after a restart) you should have the `wsl` command available to you. Get a list of distros with `wsl --online --list`--list --online`
4. Install your distro of choice with `wsl --install -d distroname`
== Official docs (not always up to date) ==
* https://docs.microsoft.com/en-us/windows/wsl/install
* https://docs.microsoft.com/en-us/windows/wsl/install-manual
* https://docs.microsoft.com/en-us/windows/wsl/install-on-server
== Issues ==
Using something like `rsync` on the filesystem outside of WSL (ex. something on `/mnt/c`, where the `C:\` drive is automounted by default) will throw errors because the user doesn't have permissions to change some file properties. See https://github.com/microsoft/WSL/issues/3187#issuecomment-388904048, the lazy solution however is to just use `sudo` in those instances.