Unlocking Linux on Windows: A Guide to Installing Ubuntu Using WSL 2 on Windows 11

Unlocking Linux on Windows: A Guide to Installing Ubuntu Using WSL 2 on Windows 11


Have you ever wondered how WSL 2 (Windows Subsystem for Linux) lets developers use a Linux-like environment right on Windows? It’s quite intriguing! It provides a simple way to set up Laravel, PHP, Python, Node.js, Vue.js, React.js, and many more for development. Let’s explore how to get started quickly.



Step 1: Enable Virtualization in BIOS

  1. Restart your computer and enter the BIOS/UEFI settings (usually by pressing F2, Delete, or Esc during boot).
  2. Look for an option like Intel Virtualization Technology, AMD-V, or SVM Mode under the processor or advanced settings.
  3. Enable the option and save changes.
  4. Restart your system.
  5. Check if it enabled using Windows Task Manager Ctrl + Shift + Esc



Step 2: Install WSL 2 and Ubuntu on Windows 11

First, we need to check if Windows Subsystem for Linux is enabled as a feature on Windows or not, so press Start key on your keyboard to bring start menu on front and type windows features and open the program.

Install WSL 2 and Ubuntu on Windows 11

Now enable Windows Subsystem for Linux and Virtual Machine Platform and restart your machine.

Enable Windows Subsystem for Linux and Virtual Machine Platform

Open Windows Powershell as Administrator and run the following command to install WSL 2 and Ubuntu Linux OS on Windows.

wsl --install
Enter fullscreen mode

Exit fullscreen mode

If you’re still having trouble installing WSL 2 on your Windows computer, feel free to comment below. I’m here to help!



Source link
lol

By stp2y

Leave a Reply

Your email address will not be published. Required fields are marked *

No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.