Are you a Windows user curious about trying Ubuntu without removing your current operating system? Good news! You can easily install Ubuntu on Windows using Windows Subsystem for Linux (WSL) - no need to dual-boot or use a virtual machine.
In this blog post, Iβll guide you step by step to install Ubuntu on Windows in the easiest way possible. Letβs get started!
β What Youβll Need
- A Windows 10 or Windows 11 computer
- Internet connection
- Some basic patience π
π‘ What is WSL?
WSL (Windows Subsystem for Linux) is a feature in Windows that lets you run a real Linux terminal right inside your Windows machine. You can use Linux commands, install tools, and even run code - just like on a real Ubuntu machine.
π Step-by-Step Guide to Install Ubuntu on Windows
πΉ Step 1οΈβ£: Enable WSL on Your Windows
- Click on the Start Menu and search for βTurn Windows features on or offβ.
- Open the result. A new window will appear with a list of Windows features.
- Scroll down and check the following two boxes:
- β Windows Subsystem for Linux
- β Virtual Machine Platform
- Click OK. Windows will apply the changes and may ask you to restart your computer.
- After restarting, WSL will be enabled on your system.
π Note: These features are required to run Ubuntu using WSL 2.
πΉ Step 2οΈβ£: Install Ubuntu
Now that WSL is enabled, itβs time to install Ubuntu on your Windows system.
- Open the Start Menu, search for "Command Prompt" or "PowerShell".
- Right-click and choose "Run as administrator".
- Enter the following command to install Ubuntu:
wsl --install -d Ubuntu
Now Hit Enter . The system will start downloading and installing Ubuntu.
Once completed, restart your computer if prompted.
π Note: The -d Ubuntu part tells WSL to install the default Ubuntu distribution.
πΉ Step 3οΈβ£: Launch Ubuntu
π Method 1: From Command Prompt (CMD)
- Once Ubuntu is installed, you can easily launch it from the command line.
- Type the following command and press Enter:
wsl -d Ubuntu
- It will ask you to create a new username and password for Ubuntu. Set username and password.
π Congrats! You now have Ubuntu running on your Windows machine.π
π Method 2: From Start Menu
- Press the Windows key.
- Search for "Ubuntu" in the start menu.
- Click the Ubuntu App to launch the terminal.
π Note: The first time you launch Ubuntu, it may take a few seconds to set up. Youβll be prompted to create a username and password.
π οΈ Optional: Install Ubuntu from Microsoft Store (If Needed)
If the wsl --install -d ubuntu
command didnβt work or you want to install a specific version of Ubuntu manually, follow these steps:
- Open the Microsoft Store from the Start Menu.
- In the search bar, type "Ubuntu".
-
Youβll see different versions like:
- Ubuntu 20.04 LTS
- Ubuntu 22.04 LTS
- Ubuntu Preview
Click on the version you prefer.
Press the "Get" button to download and install Ubuntu.
Once the installation is complete, open Ubuntu from the Start Menu.
π§ͺ Try Some Ubuntu Commands
Now that Ubuntu is installed, open the terminal and try running these basic commands:
ls
pwd
sudo apt update
These commands help you:
ls: List files in the current directory.
pwd: Show your current directory path.
sudo apt update: Update the package list in Ubuntu.
You can now use Ubuntu for coding, installing Linux tools, or just learning more about the Linux environment!
πΊ Watch the Video Tutorial
Prefer watching instead of reading? Check out my step-by-step YouTube tutorial on how to install Ubuntu on Windows using WSL:
π§© Final Thoughts
Installing Ubuntu on Windows using WSL is the safest and easiest way to explore Linux. You don't need to modify your system or create new partitions.
Whether you're a developer, student, or just curious, this method is perfect for getting started with Linux right from Windows.
π FAQs
β Q: Is Ubuntu on Windows the same as a full Ubuntu system?
A: Almost! Itβs a full Linux environment, but it runs inside Windows. You can perform most tasks just like on a native Linux system.
β Q: Can I uninstall it later?
A: Yes! Just go to βApps & Featuresβ in your Windows settings, search for Ubuntu, and click Uninstall.
π’ If you found this guide helpful, feel free to share it with your friends β€οΈ or leave a comment below! π¬
Written with β€οΈ by Subha Mondal
π¨βπ» Full Stack Developer | Linux Enthusiast | Tech Blogger
π¬ Stay tuned for more guides at devsubha
π Connect with me on LinkedIn
π Thanks for reading! Hope this guide made your Ubuntu journey a little easier. Happy exploring!
Top comments (0)