How To Set Up Ubuntu on Windows 10: A Complete Dual Boot Tutorial

Ever wished you could tap into the power of Linux without leaving your familiar Windows 10 environment? Well, you absolutely can, and honestly, it’s not as complicated as it sounds. Setting up Ubuntu through the Windows Subsystem for Linux (WSL) is surprisingly straightforward once you get the hang of a few steps. This setup lets you run Linux commands, tools, and even some GUI apps alongside your regular Windows programs—kind of like having a dual-boot without all the fuss or virtual machine overhead. It’s especially handy if you’re a developer, student, or just curious about Linux, but don’t want to mess around with partitions or complex installs.

How to Install Ubuntu on Windows 10

Getting Ubuntu up and running on Windows 10 mainly involves enabling WSL, installing it from the Microsoft Store, and doing some light setup. Because of course, Windows has to make it a little harder than it should be, but hey, that’s part of the fun. After this, you’ll have a Linux terminal ready to go anytime you need it, and you’ll be surprised how seamless it all feels. Once set up, you can start installing Linux software, run scripts, or explore CLI-based development tools without rebooting or messing with virtual machines.

Enable Windows Subsystem for Linux

This is the first “flip the switch” step. On some setups, it might require a quick toggle in Windows features, but on others, you might need to run a command. To do it via the GUI: go to Start > Settings > Apps > Optional Features (or just search for “Turn Windows features on or off”).Scroll down to find Windows Subsystem for Linux, check the box, then hit OK. Alternatively, you can enable it via PowerShell—open PowerShell as an admin and run:

 dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart 

This helps Windows prepare itself for Linux magic. After that, a restart is usually necessary, so don’t skip that part. This makes sure the subsystem is properly activated before moving forward. Sometimes, on newer builds, the WSL feature is already part of the system, but double-checking never hurts.

Run the installation command from PowerShell

Once the system restarts, open PowerShell as an administrator—type PowerShell in the search bar, then right-click and pick Run as administrator. To get Ubuntu on your machine, run the command:

wsl --install

This is pretty much the magic move because it installs the latest WSL 2 kernel, the default Linux distribution (Ubuntu), and configures everything behind the scenes. On some machines, this command might fail if you haven’t updated Windows recently. So, make sure your Windows 10 is staying current (update via Settings > Update & Security > Windows Update) otherwise, you might see errors. On one setup, it worked flawlessly on the first try; on another, it needed a quick reboot and re-run.

Restart again and finish setup

After the command finishes installing, which can take a few minutes depending on your internet, do a quick restart. When Windows boots back up, you should see a new terminal window pop up automatically, asking you to set a Linux username and password. Pick something memorable, but secure. Remember, when you type your password, no characters will show up—standard Linux security tech.

Once you’re in, you’ll see the Ubuntu command line, and from here, things get really interesting. You can start running apt commands like sudo apt update and sudo apt upgrade to keep everything cozy and up to date. It’s like having a tiny Linux computer inside Windows, ready to go without switching OSs.

Tips for Installing Ubuntu on Windows 10

  • Make sure your Windows 10 is fully updated before starting. Sometimes missing updates cause wsl errors or incomplete installs.
  • If you run into trouble enabling WSL, try searching specifically for your error message. The WSL community is pretty active and usually helpful.
  • Thinking about managing multiple sessions? Install Windows Terminal. It’s a game-changer for juggling PowerShell, Command Prompt, and Ubuntu tabs all in one place.
  • Once Ubuntu is installed, run sudo apt update && sudo apt upgrade regularly to get fresh software and security patches. Keeps everything running smooth.
  • Interested in other Linux flavors? The Microsoft Store offers Debian, Kali, and others. You can install those too via WSL just as easily as Ubuntu.

FAQs: About WSL and Ubuntu

What exactly is WSL?

It’s kind of weird, but WSL is Microsoft’s way of letting Windows run Linux commands and apps directly—no virtual machine needed. It’s not a full Linux OS, but it’s pretty close. Basically, it translates Linux stuff into Windows-understandable code, letting you work seamlessly across both environments. Much less resource-hungry than running a VM, too.

Will I need a powerhouse PC for this?

Not really. If your machine can handle Windows 10 comfortably, it’s more than enough for Ubuntu via WSL. It uses your existing hardware pretty efficiently, so no need to go all out for a Linux setup.

Can I run GUI Linux apps on WSL?

Yes, with WSL 2, you can run some GUI apps—though you might need an X server on Windows. It’s getting better with each update. Setup is a bit more involved but totally doable, and Microsoft is improving it all the time. So, if you want a full Linux desktop experience, it’s more achievable now than before.

Is this the same as dual-booting or a VM?

Nope. Dual-boot means restarting your PC every time you switch OSs. VMs are separate but more resource-heavy and can be slower. WSL integrates straight into Windows, letting you run Linux commands in a window without rebooting or heavy resource use—kind of like having Linux and Windows sharing the same space effortlessly.

Can I access my Windows files from Ubuntu?

Absolutely. Your Windows drives are already mounted in /mnt/c (and other drive letters), so you can work on files across both systems without copying or transferring. Super handy for cross-platform projects or quick editing.

Summary

  • Enable WSL in Windows features or via PowerShell
  • Run wsl --install from an admin PowerShell window
  • Reboot and set up your Ubuntu username/password
  • Start using Linux commands directly in Windows — easy!

Wrap-up

Getting Ubuntu on Windows 10 isn’t just a neat trick; it’s a legit way to expand what your machine can do, without all the fuss of virtual machines or dual-boot setups. Once you’re past the initial setup quirks—like making sure your Windows is up to date—things tend to run smoothly. It’s especially useful if you’re into scripting, coding, or just want to dabble with Linux tools. Sometimes, the trickiest part is just figuring out how to enable WSL correctly the first time. After that, it’s pretty much smooth sailing. Fingers crossed this helps someone save hours of frustration—because honestly, it’s pretty fun once you get it working. Happy Linuxing on Windows!