This content originally appeared on DEV Community and was authored by Brayan Diaz C
Software developers often prefer a Unix-based system as their primary development environment. However, if you're using Windows and want access to a Unix environment without resorting to a virtual machine or dual booting, WSL (Windows Subsystem for Linux) is your solution.
What is WSL? 🤔
WSL is a compatibility layer that allows you to run Linux binary executables natively on Windows 10 and Windows 11. This means you can use Linux directly on Windows without needing to switch operating systems or boot up a virtual machine.
What can you do with WSL? 💡
WSL allows you to run a wide variety of Linux applications on Windows, from command-line tools like Git, Node.js, Python, to desktop and web applications like Visual Studio Code, Atom, WordPress, and Django.
WSL Versions 🔄
There are two versions of WSL:
- WSL 1 - Uses a virtual machine to run Linux applications but is compatible with more Linux versions.
- WSL 2 - Uses a real Linux kernel, making it faster than WSL 1. However, it is only compatible with certain Linux versions.
Windows Versions Compatible with WSL 🖥️
WSL is compatible with Windows 10 (version 2004 or later) and Windows 11. To check your Windows version, open Windows Settings, click on "System," and then "About." On the "About" page, you can see the version of Windows you have installed.
1. Installing WSL 💾
To install WSL, follow these steps:
- Open the Microsoft Store on Windows and search for "WSL." Click on the first result and then "Install".
- Restart your computer after installation.
2. Installing Linux on WSL 🐧
To install a Linux kernel on WSL, perform the following steps:
- Open the Microsoft Store on Windows and search for your preferred Linux distribution, for example, "Ubuntu." Click on the first result and then "Install".
- Restart your computer after installation.
3. Configuring Linux on WSL ⚙️
To configure Linux on WSL, open the Linux application you installed and follow the on-screen instructions. You will be prompted to enter a username and password.
4. Installing Applications 📦
Now that you have WSL and Linux installed, you can install Linux applications on Windows. To do this, open the Linux application and run the following commands to update the package index and install the desired application:
sudo apt update
sudo apt install application_name
For example, to install Git, you would run sudo apt install git
.
With WSL, software developers who use Windows as their primary operating system can enjoy the benefits of running Linux applications without the need for virtual machines or separate partitions. WSL provides the flexibility and ease of use necessary to carry out development tasks and run Linux applications efficiently within the Windows environment.
You can see this article in Spanish at the following link
Instala WSL desde Microsoft Store
This content originally appeared on DEV Community and was authored by Brayan Diaz C
Brayan Diaz C | Sciencx (2024-08-09T01:42:59+00:00) Install WSL from the Microsoft Store. Retrieved from https://www.scien.cx/2024/08/09/install-wsl-from-the-microsoft-store/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.