Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

DOC: Update installation guide in /docs/WSL.md #769

Merged
merged 7 commits into from
Aug 1, 2022
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 9 additions & 19 deletions docs/WSL.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,17 @@ here: https://channel9.msdn.com/Shows/Tabs-vs-Spaces/GPU-Accelerated-Machine-Lea

Requirements: Windows 10 version 2004 or higher

The instructions are [here](https://docs.microsoft.com/en-us/windows/wsl/install-win10), but summarized in
copy/paste-able form below. When installing via the UI, pick Ubuntu version 20.04 LTS as your distribution.

To use the commandline setup, please first install
arsenkhy marked this conversation as resolved.
Show resolved Hide resolved
[winget via the appxbundle](https://github.com/microsoft/winget-cli/releases).

Then, in PowerShell as Administrator:
Optionally, restart your machine.

In PowerShell as Administrator type:
```
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --install
```

Restart your machine, then again in PowerShell:

```
wsl --set-default-version 2
winget install ubuntu --version 20.04
wsl --list --verbose
wsl --set-version Ubuntu-20.04 2
wsl --set-default-version 2
winget install Microsoft.WindowsTerminal
```

Remember to restart your machine if you were doing a fresh installation of WSL 2 before trying further steps.
Then, restart your machine one more time.

Since it is possible to choose the version of WSL that a particular distribution is running, once you have WSL2
installed, ensure that your distribution is running on top of WSL2 by executing
Expand All @@ -58,7 +44,11 @@ $> wsl --list -v
* Ubuntu-20.04 Running 2
```

Note the "2" in Version column.
Note the "2" in the "Version" column.

The instructions are [here](https://docs.microsoft.com/en-us/windows/wsl/install), but summarized in copy/paste-able form above. Optionally, you can install via the UI, pick Ubuntu version 20.04 LTS as your distribution.

Then, you can start the Ubuntu either directly from the Start menu, or via the WindowsTerminal app.

## Install git and Anaconda

Expand Down