How to Install Ubuntu 24.04 WSL on Windows 10 and 11
Introduction
This guide shows you step-by-step how to install Ubuntu 24.04 LTS using WSL (Windows Subsystem for Linux) on Windows 10 or Windows 11. It's a great solution to run Linux without dual boot or virtual machines.
Requirements
- Windows 10 (version 2004 or later) or Windows 11
- Internet connection
- Administrator access
1. Enable WSL
Open PowerShell as administrator and run this command:
wsl --install
This command enables the necessary features, installs the WSL platform, and downloads Ubuntu (usually the latest stable version).
2. Install Ubuntu 24.04 Manually (if needed)
If you want to install Ubuntu 24.04
specifically, you can do it manually:
wsl --install -d Ubuntu-24.04
Or if WSL is already installed:
wsl --list --online
wsl --install -d Ubuntu-24.04
3. First Launch and Setup
After installation, open Ubuntu from the Start Menu. The first time you launch it, you'll be asked to create a new Linux username and password.
4. Update the System
Inside Ubuntu, update the system with this command:
sudo apt update && sudo apt upgrade -y
5. (Optional) Set WSL 2 as Default
To be sure you are using WSL 2 (faster and better), run this command:
wsl --set-default-version 2
Conclusion
Now you have Ubuntu 24.04 running on Windows! You can use Linux tools directly in your Windows environment — perfect for developers, sysadmins, and tech enthusiasts.
Comments
Post a Comment