Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

wsl windows

1) Run PowerShell as administrator
2) Paste this command:
  Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
3) Restart your PC
4) Run PowerShell as administrator again
5) Paste these two commands:
  dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
  dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
6) Restart your PC Again
7) Download the Linux Kernel Update Package from
  https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
8) Then, run powershell as administrator again and paste this command:
  wsl --set-default-version 2
9) Install a distro of your choice from the Microsoft Store (Example Ubuntu, Kali Linux)

OR:

Run this command: wsl --install
NOTE: To Run this command given above, you must be running 
Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11.
Also, running this command installs Ubuntu by default.
Comment

PREVIOUS NEXT
Code Example
Shell :: windows features windows subsystem for linux not 
Shell :: install kde partition manager 
Shell :: bash else if 
Shell :: install docker compose ubuntu 
Shell :: pip install osgeo 
Shell :: github add directory to repository 
Shell :: get path composer 
Shell :: linux rename files add prefix 
Shell :: linux strip foldder name from path 
Shell :: installing scoop for windows 
Shell :: npm install without dev dependencies 
Shell :: chmod 400 in powershell 
Shell :: git merge example 
Shell :: get first line of output bash 
Shell :: bash regex match 
Shell :: firebase hosting 
Shell :: command not found: shopify 
Shell :: install cherrypy 
Shell :: conda install pandas 
Shell :: linux change date and then change files ctime 
Shell :: raspberry pi connect to wifi via terminal 
Shell :: install mongo ubuntu 20.04 
Shell :: batteryreport win10 
Shell :: git push and pull not asking password 
Shell :: wsl2 settings 
Shell :: ldap query powershell 
Shell :: uninstall npm package 
Shell :: winget powertoys 
Shell :: install anbox terminal 
Shell :: how to remove blank lines in bash 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =