2023-08-17 08:00:01
This blog will offer an optimal solution to install the latest and specific version of Ubuntu in its Windows using WSL .
What is WSL?
WSL (acronym for ” Windows Subsystem for Linux “) is a characteristic of Microsoft Windows which allows the user to run the Linux distribution alongside Windows using a compatibility layer. It was released in 2016, however the current version is WSL 2 which supports many Linux distributions, including Ubuntu , Debian y Fedora .
WSL is a beneficial feature for developers, as it eliminates the need for additional hardware, virtualization, or dual-boot setups to manage Linux file systems or to access the Linux command line and tools.
Con WSL one can seamlessly switch between workflows de Windows y Linux allowing them to take advantage of Linux-specific tools while enjoying the features of Windows as your primary operating system.
Let’s start the installation process Ubuntu in Windows using WSL 2 .
Enable Windows Subsystem for Linux on Windows
to enable WSL press the “Windows Logo + S” keys and search for ” Turn Windows features on or off “, then click the “Open” option.
Activate Windows features
The Windows Features dialog will open. Here, locate the option ” Windows Subsystem for Linux ” and select the associated checkbox. Finally, click on the button “ Accept ”:
Enable Windows Subsystem for Linux
Now restart your Windows to enable WSL .
install Ubuntu on Windows via WSL
The installation process de Ubuntu in Windows through WSL it is quite simple.
To install the latest version of Ubuntu using WSL just run ” Windows PowerShell ” as an administrator:
Windows PowerShell
Then type the command given below to automatically install and configure WSL along with the default version of Ubuntu :
$ wsl –instalar
This command takes care of everything, including enabling the required features of Windows installing the kernel update package de WSL Linux and the configuration of Ubuntu .
Install Ubuntu on Windows
Once the installation process is complete, reboot your system Windows To access a free . After the reboot, the process of installing and running Ubuntu it will start automatically and consume some time, so wait for it to finish:
Launching Ubuntu on Windows
The next step is to provide the username for Ubuntu ( 22.04 ) and also set your password. After that, you will be able to run the Ubuntu commands:
Configuring Ubuntu on Windows
Let’s try this by running the apt update command:
$ sudo apt update
Upgrade Ubuntu on Windows
It is visible that his Ubuntu you have started the local repository cache update process.
Install a specific version of Ubuntu on Windows via WSL
However, if you want to install a specific older version of Ubuntu in Windows . Then go to Microsoft Store after following the above steps or just enable the Windows subsystem for Linux as shown in the section ” enable WSL ” of this blog:
Microsoft Store
In the Microsoft store, search for the desired version of Ubuntu . For example, let’s search for ” Ubuntu 18.04 ”:
Find Ubuntu in the Microsoft Store
Then click on the button ” Obtain ” and wait for the installation process to finish:
Install Ubuntu via the Windows Store
once installed Ubuntu , click the button ” Open “:
Open Ubuntu en Windows
Ubuntu 18.04 it will start successfully, now set your username and password:
Start Ubuntu en Windows
You can even check the version of Ubuntu installed by running the command mentioned below:
$ lsb_release -a
Check Ubuntu on Windows
Now close terminal to shutdown Ubuntu .
You can search Ubuntu to see and open your Ubuntu already installed since start menu .
Find Ubuntu on Windows
Conclusion
WSL ( Windows Subsystem for Linux ) is a function offered by Microsoft which allows the user to run a distribution Linux along with Windows 10 . It is compatible with many Linux distributions, including Ubuntu , Fedora y Debian .
This guide provided a solution to install the latest/specific version of Ubuntu in Windows through WSL .
#install #Ubuntu #Windows #WSL