How do I install Ubuntu on Windows 11?
So, you're a Windows 11 user and you've heard about the wonders of Ubuntu, the popular Linux distribution? You might be curious about how to get it running on your current machine. Don't worry, it's a lot more straightforward than you might think! There are a few excellent ways to install Ubuntu alongside Windows 11, and this guide will walk you through the most common and user-friendly methods.
Method 1: Using the Windows Subsystem for Linux (WSL)
This is by far the easiest and most integrated method. WSL allows you to run a Linux environment directly within Windows, without needing to dual-boot or use a virtual machine in the traditional sense. It's perfect for developers, students, or anyone who wants to experiment with Linux command-line tools.
Step 1: Enable WSL
First, you need to enable the WSL feature in Windows 11. Open the Start Menu, type "Turn Windows features on or off," and select it from the results.
In the "Windows Features" window, scroll down and check the boxes for:
- Windows Subsystem for Linux
- Virtual Machine Platform
Click OK. Windows will install the necessary files, and you'll be prompted to restart your computer. Go ahead and restart.
Step 2: Install Ubuntu from the Microsoft Store
Once your computer has restarted, open the Microsoft Store (search for it in the Start Menu).
In the Microsoft Store's search bar, type "Ubuntu" and hit Enter.
You'll see several Ubuntu versions. The most common and recommended is typically just labeled "Ubuntu." Click on it.
Click the Get or Install button. The download and installation process will begin.
Step 3: Launch and Set Up Ubuntu
After the installation is complete, you can launch Ubuntu from the Start Menu. The first time you open it, it will take a few minutes to set up. You'll be prompted to create a username and password for your Linux environment. Make sure to remember these, as you'll need them to run commands.
Congratulations! You now have Ubuntu running on your Windows 11 machine using WSL. You can open a terminal window and start using Linux commands.
Method 2: Dual Booting Ubuntu with Windows 11
Dual booting means installing Ubuntu on a separate partition of your hard drive, allowing you to choose between Windows 11 and Ubuntu when you start your computer. This method gives you the full, uncompromised Ubuntu experience, but it's a bit more involved and carries a slightly higher risk if not done carefully.
Step 1: Back Up Your Data!
This is the most important step. Before you make any changes to your disk partitions, back up all your important files to an external drive or cloud storage. Mistakes can happen, and you don't want to lose your precious data.
Step 2: Download the Ubuntu ISO
Go to the official Ubuntu website (ubuntu.com) and download the latest LTS (Long-Term Support) version of Ubuntu Desktop. It will be an ISO file.
Step 3: Create a Bootable Ubuntu USB Drive
You'll need a USB flash drive (at least 8GB is recommended). Download a tool like Rufus (rufus.ie) or Balena Etcher (balena.io/etcher) to create a bootable USB drive from the Ubuntu ISO file you downloaded. Follow the instructions provided by the tool.
Step 4: Prepare Disk Space for Ubuntu
You need to shrink your Windows partition to create unallocated space for Ubuntu. This is done through Disk Management in Windows.
Right-click on the Start button and select Disk Management.
Find your main Windows partition (usually C:). Right-click on it and select Shrink Volume.
Windows will query for available shrink space. Enter the amount of space you want to allocate to Ubuntu in MB (e.g., 50000 MB for 50GB). Click Shrink. You'll see a new "Unallocated" space on your disk.
Step 5: Boot from the USB Drive and Install Ubuntu
Restart your computer. You'll need to enter your computer's BIOS or UEFI settings to change the boot order so that it boots from your USB drive. The key to press during startup varies by manufacturer (common keys include F2, F10, F12, Del, or Esc). Look for instructions on your screen or in your computer's manual.
Once booted from the USB, you'll see the Ubuntu installer. Select "Install Ubuntu."
Follow the on-screen prompts. When you reach the "Installation type" screen, choose "Install Ubuntu alongside Windows Boot Manager" if available and you're comfortable with the installer partitioning automatically. However, for more control, it's often recommended to choose "Something else."
If you choose "Something else," you'll see your disk partitions. Select the "free space" (your unallocated space). You'll need to create at least two partitions:
- Root partition (
/): This is where Ubuntu's system files will reside. Format it as ext4 and allocate most of your free space. - Swap area: This acts as virtual RAM. A good rule of thumb is to make it equal to your RAM size, or at least 4GB.
- (Optional) Home partition (
/home): You can create a separate partition for your personal files. This makes reinstalling Ubuntu easier in the future without losing your data.
Make sure to select the correct "device for boot loader installation." It should be the main hard drive where Windows is installed (usually something like `/dev/sda`).
Proceed with the installation. You'll be asked to set your location, keyboard layout, create a user account, and set a password.
Once the installation is complete, you'll be prompted to restart your computer. Remove the USB drive, and you should be greeted with a boot menu (GRUB) where you can choose to boot into either Ubuntu or Windows 11.
Method 3: Using a Virtual Machine
A virtual machine (VM) allows you to run an operating system (like Ubuntu) *inside* your existing operating system (Windows 11). This is a safe and easy way to try out Ubuntu without modifying your main Windows installation at all. Popular VM software includes VirtualBox (free) and VMware Workstation Player (free for personal use).
Step 1: Download and Install Virtualization Software
Download and install either VirtualBox or VMware Workstation Player from their respective websites.
Step 2: Download the Ubuntu ISO
As with the dual-boot method, download the latest LTS version of Ubuntu Desktop as an ISO file from ubuntu.com.
Step 3: Create a New Virtual Machine
Open your chosen virtualization software.
Click on "New" or "Create a New Virtual Machine."
You'll be guided through a wizard. You'll need to:
- Specify the operating system type (Linux) and version (Ubuntu 64-bit).
- Allocate RAM (memory) for the VM. At least 4GB is recommended for a smooth experience.
- Create a virtual hard disk. Choose to "create a virtual hard disk now" and select its size (at least 25GB is recommended).
Step 4: Install Ubuntu in the Virtual Machine
Once the VM is created, you'll need to "insert" the Ubuntu ISO file into its virtual CD/DVD drive. In the VM settings, look for storage or CD/DVD options and select your downloaded Ubuntu ISO file.
Start the virtual machine. It will boot from the ISO, and you'll see the Ubuntu installer. Follow the on-screen prompts, similar to the dual-boot installation, but when asked about installation type, simply choose "Erase disk and install Ubuntu" (this only affects the virtual hard disk, not your Windows installation).
Create your username and password for Ubuntu. Once installed, you can start Ubuntu within a window on your Windows 11 desktop!
Frequently Asked Questions (FAQ)
How do I switch between Ubuntu and Windows 11 after dual booting?
When you start your computer after dual booting, you'll see a boot menu, often called GRUB. Use the arrow keys on your keyboard to select either Ubuntu or Windows 11 and then press Enter to boot into your chosen operating system.
Why is WSL considered easier than dual booting?
WSL integrates Linux directly into Windows 11. You don't need to reboot to switch between operating systems, and you can access your Windows files from within Ubuntu. It's less complex and carries less risk of data loss.
What are the benefits of using a virtual machine for Ubuntu?
Virtual machines are excellent for testing or learning. They provide a completely isolated environment, so you can't accidentally damage your main Windows installation. You can run Ubuntu and Windows 11 simultaneously, making it easy to copy and paste between them (after installing VM guest additions).
Can I run graphical Ubuntu applications with WSL?
Yes, with WSL 2, you can now run graphical Linux applications (GUIs) directly on Windows 11, thanks to the WSLg feature. This greatly expands the usability of WSL for everyday tasks.
Is Ubuntu free to install and use?
Yes, Ubuntu is an open-source operating system and is completely free to download, install, and use. There are no licensing fees involved.

