xxxxxxxxxx
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.
xxxxxxxxxx
# Install Ubuntu WSL without Windows Store
https://stackoverflow.com/a/64872285
xxxxxxxxxx
Adding a windows installed application to WSL path so we can run from Ubuntu wsl:
Install app on Windows.
Find the applications path to the folder where the executable file (app.exe) is located
copy the path.
on WSL, go to the root folder where .bashrc is located
nano .bashrc
scroll to the end of file and add the path & alias using the format below
export PATH="$PATH:/mnt/c/Program Files/Amazon/AWSCLIV2"
alias aws='aws.exe'
save
apply changes by run source command below
source ~/.bashrc
Now, you should be able to run the application from anywhere in the WSL terminal
xxxxxxxxxx
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
xxxxxxxxxx
The Windows Subsystem for Linux (WSL) lets developers install a Linux
distribution (such as Ubuntu, OpenSUSE, Kali, Debian, Arch Linux, etc) and
use Linux applications, utilities, and Bash command-line tools directly
on Windows, unmodified, without the overhead of a traditional virtual machine or
dualboot setup.