From 85cb125693c5ab54770140b5bdc4b0bc9a37e212 Mon Sep 17 00:00:00 2001 From: gcarron <gcarron@grandlyon.com> Date: Thu, 11 Mar 2021 15:14:27 +0100 Subject: [PATCH] Update WSL section + add link to easycozy --- docs/ecolyo/application/deploy.md | 2 + .../getting_started/setup_your_environment.md | 56 +++++++++---------- 2 files changed, 30 insertions(+), 28 deletions(-) diff --git a/docs/ecolyo/application/deploy.md b/docs/ecolyo/application/deploy.md index ee0f732..e401871 100644 --- a/docs/ecolyo/application/deploy.md +++ b/docs/ecolyo/application/deploy.md @@ -87,3 +87,5 @@ In order to update your app, you can execute the script depending on the branch ``` Now you can access your updated version of Ecolyo with the following URl, enjoy : `ecolyo.instance-name.cozy.self-data.alpha.grandlyon.com` + +For more informations you can check for [Easy Cozy scripts](../../../easycozy/scripts/) diff --git a/docs/ecolyo/getting_started/setup_your_environment.md b/docs/ecolyo/getting_started/setup_your_environment.md index 4716e09..7f056eb 100644 --- a/docs/ecolyo/getting_started/setup_your_environment.md +++ b/docs/ecolyo/getting_started/setup_your_environment.md @@ -102,6 +102,34 @@ dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux This command will install WSL on your computer. After this, you'll need to **reboot**. +### Upgrade to WSL 2 + +If you're on WSL 1 and want to upgrade to WSL 2, here is the process : + +Open an elevated powershell and paste the following command : + +``` +dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart +``` + +Then, enable the Virtual Machine Platform optional feature. + +``` +dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart +``` + +Now restart your computer to apply these features. Once it's done, open an elevated powershell again and set the default wsl version to 2 + +``` +wsl --set-default-version 2 +``` + +You might see this message after running the command above: + +> :bulb: WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel. + +If you do, please follow the link [https://aka.ms/wsl2kernel](https://aka.ms/wsl2kernel) and install the MSI from that page on Microsoft's documentation to install a Linux kernel on your machine for WSL 2 to use. Once you have the kernel installed, please run the wsl --set-default-version 2 command again and it should complete successfully without showing the message. + ### Install your Linux distribution After reboot, open the microsoft store and install the distribution of your choice (for example : Ubuntu 20.04 LTS). Once it's done, open it and after a few minutes you'll be prompted for the creation of a user account. @@ -171,31 +199,3 @@ source ~/.bashrc ``` Now you should be at least in version ^1.22 and ready to go on. - -### Upgrade to WSL 2 - -If you're on WSL 1 and want to upgrade to WSL 2, here is the process : - -Open an elevated powershell and paste the following command : - -``` -dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart -``` - -Then, enable the Virtual Machine Platform optional feature. - -``` -dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart -``` - -Now restart your computer to apply these features. Once it's done, open an elevated powershell again and set the default wsl version to 2 - -``` -wsl --set-default-version 2 -``` - -You might see this message after running the command above: - -> :bulb: WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel. - -If you do, please follow the link [https://aka.ms/wsl2kernel](https://aka.ms/wsl2kernel) and install the MSI from that page on Microsoft's documentation to install a Linux kernel on your machine for WSL 2 to use. Once you have the kernel installed, please run the wsl --set-default-version 2 command again and it should complete successfully without showing the message. -- GitLab