WSL-2
Umm yes there is Linux in windows!
What is WSL?
The windows subsystem for Linux people run Linux environment, command Line tools - vim, emax etc , application directly in Windows without using a virtual machine or dual boot setup.
Distorts available:
- Ubuntu
- Debian
- Kali Linux
- Open SUSE
- Cent OS
The latest version is WSL 2 and this runs with full Linux kernel.
How to get it in your computer/ Laptop??
Follow these instructions and you will have WSL 2 in your machine is some time.
1. Check your windows version
Search for “winver” and hit enter, then a window will open showing the details of the windows you are running. Now check of the version of windows you are running is above or is 1903. If yes then please continue, if no then I am sorry to say that you can’t have WSL 2 in your machine.
2. Enable windows subsystem for Linux
Now search for power shell and run it as administrator.
Then paste this in the window:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Then hit enter , after it is done close all windows and restart your computer and follow the next steps.
3. Enable the virtual machine feature
Now we need to enable the virtual machine feature in your machine.
Open the power shell l as administrator as before and paste this in the window.
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Then hit enter and once done restart your machine again.
4. Download the Linux kernel update package
Now click on this link , it will download the update package, as we installed WSL we need to update to WSL 2.
Once downloaded run the program, don’t worry this program is made by Microsoft not me.
5. Seting WSL 2 as default
Now as before open power shell and run it as administrator, and copy and paste it his command in the window
wsl --set-default-version 2
Then hit enter , so when you download any distro (which you will in the next step)
It will automatically run in WSL 2.
6. Downloading your choice of Ditrobution
Now open up your windows store and search for Linux, WSL, distro, Linux distro, what ever and download one and launch it. Once opened it will ask for and username and password for creating a account, the username and password does not have to be the same as your windows.
Here are some distro you can get in the store:
- Ubuntu 16.04 LTS
- Ubuntu 18.04 LTS
- Ubuntu 20.04 LTS
- openSUSE Leap 15.1
- SUSE Linux Enterprise Server 12 SP5
- SUSE Linux Enterprise Server 15 SP1
- Kali Linux
- Debian GNU/Linux
- Fedora Remix for WSL
- Pengwin
- Pengwin Enterprise
- Alpine WSL
————————————————————————————————————————-
Well hope you have fun with it .