From 44ac20e057aa1dea6f7dd4be9f3b8c912a94189d Mon Sep 17 00:00:00 2001 From: arsenkhy <77200251+arsenkhy@users.noreply.github.com> Date: Fri, 22 Jul 2022 03:35:11 +0600 Subject: [PATCH 1/6] Update installation guide in WSL.md - Removed long installation guide - Included new shorter guide to install WSL --- docs/WSL.md | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/docs/WSL.md b/docs/WSL.md index 2b7e3cc83..1a70429b5 100644 --- a/docs/WSL.md +++ b/docs/WSL.md @@ -21,31 +21,16 @@ 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 [winget via the appxbundle](https://github.com/microsoft/winget-cli/releases). -Then, in PowerShell as Administrator: - -``` -dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart -dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart -``` - -Restart your machine, then again in PowerShell: +Optionally, restart your machine and in PowerShell as Administrator type: ``` -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 +wsl --install ``` -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 From 20778377481606f23b072810a909fda7b27cfc57 Mon Sep 17 00:00:00 2001 From: arsenkhy <77200251+arsenkhy@users.noreply.github.com> Date: Sat, 23 Jul 2022 04:54:34 +0600 Subject: [PATCH 2/6] Update WSL.md with given suggestions - More clear language --- docs/WSL.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/WSL.md b/docs/WSL.md index 1a70429b5..25b2a7d81 100644 --- a/docs/WSL.md +++ b/docs/WSL.md @@ -24,8 +24,9 @@ Requirements: Windows 10 version 2004 or higher To use the commandline setup, please first install [winget via the appxbundle](https://github.com/microsoft/winget-cli/releases). -Optionally, restart your machine and in PowerShell as Administrator type: +Optionally, restart your machine +In PowerShell as Administrator type: ``` wsl --install ``` @@ -43,7 +44,11 @@ $> wsl --list -v * Ubuntu-20.04 Running 2 ``` -Note the "2" in Version column. +Note the "2" in 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 or starting the window using the terminal. ## Install git and Anaconda From 6c81307bd9881b2dbefd8db1f1fd9a00eb9ce5f2 Mon Sep 17 00:00:00 2001 From: Anton Schwaighofer Date: Sat, 23 Jul 2022 23:17:52 +0100 Subject: [PATCH 3/6] Update docs/WSL.md --- docs/WSL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/WSL.md b/docs/WSL.md index 25b2a7d81..3153fc525 100644 --- a/docs/WSL.md +++ b/docs/WSL.md @@ -24,7 +24,7 @@ Requirements: Windows 10 version 2004 or higher To use the commandline setup, please first install [winget via the appxbundle](https://github.com/microsoft/winget-cli/releases). -Optionally, restart your machine +Optionally, restart your machine. In PowerShell as Administrator type: ``` From c438702fa21b39555049d8f4186c8059344d0c2d Mon Sep 17 00:00:00 2001 From: Anton Schwaighofer Date: Sat, 23 Jul 2022 23:18:01 +0100 Subject: [PATCH 4/6] Update docs/WSL.md --- docs/WSL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/WSL.md b/docs/WSL.md index 3153fc525..75bd56ba1 100644 --- a/docs/WSL.md +++ b/docs/WSL.md @@ -48,7 +48,7 @@ Note the "2" in 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 or starting the window using the terminal. +Then, you can start the Ubuntu either directly from the Start menu, or via the WindowsTerminal app. ## Install git and Anaconda From b2d31d8ea7f84332e80269e883dceeba1911bd9e Mon Sep 17 00:00:00 2001 From: Anton Schwaighofer Date: Sat, 23 Jul 2022 23:18:07 +0100 Subject: [PATCH 5/6] Update docs/WSL.md --- docs/WSL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/WSL.md b/docs/WSL.md index 75bd56ba1..66d5773ab 100644 --- a/docs/WSL.md +++ b/docs/WSL.md @@ -44,7 +44,7 @@ $> 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. From b6b8fe41fb7c812a30c3ff061f789ccba31ae0a4 Mon Sep 17 00:00:00 2001 From: arsenkhy <77200251+arsenkhy@users.noreply.github.com> Date: Tue, 26 Jul 2022 05:41:45 +0600 Subject: [PATCH 6/6] Trim trailing whitespace in WSL.md - Trimmed trailing whitespace to pass the CI checks --- docs/WSL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/WSL.md b/docs/WSL.md index 66d5773ab..17a76167e 100644 --- a/docs/WSL.md +++ b/docs/WSL.md @@ -44,7 +44,7 @@ $> wsl --list -v * Ubuntu-20.04 Running 2 ``` -Note the "2" in the "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.