Posts

Showing posts from December, 2021

[ Windows 10 ] How to Upgrade the WSL Version from 1 to 2 for the Distribution package installed

Image
  In my previous post we have discussed steps for setting up WSL in windows 10 machine with Ubuntu Package. If we have not specified the WSL version that we require before installing the distribution package most likely WSL version will be 1. The problem with WSL version 1 is that it does not come with entire Linux package and there is no container support on its own that means that for running docker daemon process we have to depend on Docker Desktop which is installed in the host machine. Know Which Version of WSL Is Installed Lets now see how we can check the wsl distribution package version which is installed with the help of below command:  wsl -l -v This has to be entered in the PowerShell in the admin mode. you are seeing the version field as 2 because i have already migrated from version 1 to version 2. For migrating the installed distribution package from version 1 to 2 there are some prerequisite packages that needs to be installed. WSL2 Linux Kernel Updat...

How to use Linux in Windows 10 with the help of WSL(Windows Subsystem for Linux)

Image
  Linux is one of the popular Operating Systems for developing applications, However most of us have Systems/Laptops running in Windows. Microsoft came up with a way to use Linux shell in Windows 10 with the help of Windows Subsystem for Linux. Its similar to a virtual machine but its very light weight. It can be used for some testing or development activities but not for production. Now we are going to see a step by step approach towards Setting up Windows Subsystem for Linux in Windows 10. Steps To Setup WSL In Windows 10 Step 1: Press on Windows Button and Search for "Turn Windows Features On/Off" as shown in the figure below. Step 2: Launch the Dialog for Windows Features and Enable Windows Subsystem for Linux as shown in the figure below: Step 3: Click on Ok after selecting the option and Reboot the Machine Step 4: Once the machine boots up now we can install the distribution package that needs to be run in WSL, For that go to Microsoft Store and Select the Ubuntu Packag...