Want to install Install the Windows Subsystem for Linux on Windows 11. Read this article to find out the easiest method to do so. By running a single command you will be able to install Ubuntu on your Windows PC/Laptop.
Microsoft is slowly integrating other OS functionality to Windows to make it more useful. Recently in Windows 11, Microsoft introduced Windows Subsystem for Android to run Android Apps in Windows. You can even install Play Store as well through WSA. But, you need WSL to install it. Windows Subsystem for Linux (WSL) is a compatibility layer for running Linux binary executables natively on Windows 11 and Windows 10. In simple words, with WSL, you can run Linux GUI Apps in Windows. So now you don’t need to dual boot in order to run or test Linux apps. It’s quite good for developers.
A year back, Microsoft announced WSL 2, which brings real Linux kernel, through a subset of Hyper-V features. There are two ways to install a Linux bash shell in Windows. You can either manually enable WSL and install the Linux distro.
Or, you can install Windows Subsystem for Linux using the command. Using the command to install WSL is the easiest way, so let’s get started with it.
It is optional to update Windows Subsystem for Linux. But, I will suggest you update. Sometimes, Microsoft releases an important update, like a kernel update. It is necessary to update from time to time, in order to work Linux bash shell work flawlessly.
Open Windows Terminal/PowerShell window and do type the following command.
This command will check and download updates automatically.
After updating WSL, do type the following command to shutdown all running Linux distro
Now restart Windows PC to apply WSL updates.
Install Linux GUI Apps on Windows 11
Yes, you can run certain Linux GUI Apps in Windows 11 through Commands.
First, we will run a command to install all components required to install Linux GUI Apps.
Click on the Start button and open a Linux distro that you’ve installed. I am opening Ubuntu here.
Once the Ubuntu bash shell gets open, run this command to install the required components.
sudo apt-get update
Ubuntu will now ask for the UNIX password that you have entered during installation. Type password and press enter.
Now wait for all updates to get installed.
Now we are going to type a command to install the gedit text editor.
sudo apt-get install gedit -y
-y command will suppress many prompts here.
The process will now take time. Once installation gets complete. You just have to type the application name to open it.
Type gedit and press enter to run gedit text editor. Alternatively, you can search for Text Editor (Ubuntu) in Windows search.
That’s it, now you can run Linux GUI Apps on Windows by running commands. Ok, so this was the method to install Windows Subsystem for Linux on Windows and install WSL updates.