Windows Subsystem for Linux (WSL) is a compatibility layer for running Linux binary executables (in ELF format) natively on Windows 10, Windows 11, and Windows Server 2019. (Wikipedia). To put it simple, WSL allows a Windows user to run various Linux distros in Windows Terminal.
In screenshot, I am browsing Windows 11 Forum in Microsoft Edge browser in Ubuntu Linux on Windows 11 desktop:
WSL is available in all Windows 11 editions. See the following tutorial for instructions in installing and enabling WSL:
This tutorial will show you how to install Microsoft Edge browser in Ubuntu Linux in Windows 11 WSL.
Install Edge in Ubuntu 18.04 with desktop experience
Currently, this method only works in Windows 11 WSL Ubuntu version 18.04. If you have installed WSL and Ubuntu as told in Eleven Forum tutorial, the Ubuntu version installed is 20.04 (as in July 2021). In that case, you must manually search, download and install Ubuntu 18.04 from Microsoft Store:
Install and enable Ubuntu Desktop Experience as told in this tutorial on our sister site Ten Forums:
Enter following commands, one by one, in Terminal app in Ubuntu Linux, pressing Enter after each command:
- Install WGET (Wikipedia) to WSL Ubuntu:
sudo apt install software-properties-common apt-transport-https wget
- Import Microsoft GPG key (Microsoft Docs) to WSL Ubuntu:
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
- Add and enable MS Edge repository:
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main"
- Finally, install MS Edge:
sudo apt install microsoft-edge-dev
You can now start Microsoft Edge on your Windows 11 WSL Ubuntu Desktop:
Microsoft Edge is fully working in WSL Ubuntu in Windows 11:
Install Edge in Ubuntu 18.04 or later with no desktop experience
Update Ubuntu fully with following command in Ubuntu in WSL terminal:
sudo apt-get update && sudo apt-get upgrade -y
Run all 4 commands told above in STEP 1.3 in Ubuntu is WSL terminal.
Start Microsoft Edge with following command:
Edge is now running as a GUI app on top of the WSL:
Notice that although Edge is running as a GUI app. no GUI desktop is installed.
That's it. geeks!