Virtualization Install Microsoft Edge in Windows 11 WSL Ubuntu


Edge_and_WSL_banner.png

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:

Edge in W11 WSL Ubuntu.jpg


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.


Contents

  • Option One: Install Edge in Ubuntu 18.04 with desktop experience
  • Option Two: Install Edge in Ubuntu 18.04 or later with no desktop experience




Option One

Install Edge in Ubuntu 18.04 with desktop experience


1.1 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:

Ubuntu 18.04.jpg


1.2 Install and enable Ubuntu Desktop Experience as told in this tutorial on our sister site Ten Forums:


1.3 Enter following commands, one by one, in Terminal app in Ubuntu Linux, pressing Enter after each command:
  1. Install WGET (Wikipedia) to WSL Ubuntu:
    • sudo apt install software-properties-common apt-transport-https wget
  2. Import Microsoft GPG key (Microsoft Docs) to WSL Ubuntu:
    • wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
  3. Add and enable MS Edge repository:
    • sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main"
  4. Finally, install MS Edge:
    • sudo apt install microsoft-edge-dev
Numbers in following two screenshots refer to respective list item numbers above:

Install Edge 1.jpg


Install Edge 2.jpg


1.4 You can now start Microsoft Edge on your Windows 11 WSL Ubuntu Desktop:

WSL Launch Edge 1.jpg


1.5 Microsoft Edge is fully working in WSL Ubuntu in Windows 11:

MS Edge in Ubuntu desktop in W11 WSL.jpg





Option Two

Install Edge in Ubuntu 18.04 or later with no desktop experience


2.1 Update Ubuntu fully with following command in Ubuntu in WSL terminal:

sudo apt-get update && sudo apt-get upgrade -y

2.2 Run all 4 commands told above in STEP 1.3 in Ubuntu is WSL terminal.

2.3 Start Microsoft Edge with following command:

microsoft-edge

2.4 Edge is now running as a GUI app on top of the WSL:

Edge as App with GUI in W11 WSL.jpg


2.5 Notice that although Edge is running as a GUI app. no GUI desktop is installed.

That's it. geeks!

Kari
 

Attachments

  • 1625435996483.png
    1625435996483.png
    187.3 KB · Views: 155
  • Linux.png
    Linux.png
    8.2 KB · Views: 135
Last edited by a moderator:
Hi there
OT I know but for those who want to run EDGE natively on Linux hosts it installs too --- purely for info

cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7
Back
Top Bottom