How to Run WSL on Windows 10: A Step-by-Step Guide for Beginners

How to Run WSL on Windows 10

Running Windows Subsystem for Linux (WSL) on Windows 10 allows users to use Linux-based tools and applications directly on their Windows system. This setup is perfect for developers or anyone wanting to leverage both operating systems simultaneously. Here’s a quick guide to get you started: enable the WSL feature, install your preferred Linux distribution from the Microsoft Store, and then launch it. Follow these steps to seamlessly integrate Linux into your Windows environment.

Step by Step Tutorial on How to Run WSL on Windows 10

This guide will walk you through setting up WSL on your Windows 10 machine, enabling you to use Linux utilities and applications directly on Windows.

Step 1: Enable WSL Feature

Open PowerShell as an administrator and run the command: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart.

This command enables the WSL feature on your Windows 10 system. Make sure to open PowerShell with administrative privileges, or the command won’t execute correctly.

Step 2: Restart Your Computer

Restart your computer to apply the changes made by the previous step.

Rebooting your system is crucial for enabling WSL properly. Without a restart, the changes won’t take effect and you won’t be able to proceed with the installation.

Step 3: Install Your Preferred Linux Distribution

Go to the Microsoft Store, search for your preferred Linux distribution (like Ubuntu), and click "Install."

The Microsoft Store offers various Linux distributions. Choose the one that fits your needs best. Installation is straightforward—just like installing any other app from the Store.

Step 4: Launch Your Linux Distribution

After installation, go to the Start menu, find your Linux distribution, and launch it.

When you launch the distribution for the first time, it will take a few moments to set up. You’ll need to create a new user account and set a password.

Step 5: Update and Upgrade Your Linux Distribution

Open your Linux terminal and run the command: sudo apt update && sudo apt upgrade.

Updating and upgrading ensures you have the latest software and security patches. This step is similar to updating any operating system and is crucial for optimal performance and security.

Step 6: Start Using Linux on Windows

You can now use Linux commands, tools, and applications directly from your Windows environment.

With WSL, you’re ready to run Linux-based scripts, develop applications, or even manage servers—all from within Windows. Explore the possibilities and enjoy the combined power of both operating systems.

After completing these steps, your Linux distribution is fully set up and ready to use on your Windows 10 system. You’ll be able to run Linux commands and applications as if you were using a native Linux machine.

Tips for Running WSL on Windows 10

  • Ensure your Windows 10 is up to date to avoid compatibility issues with WSL.
  • Use WSL 2 for better performance; it uses a real Linux kernel.
  • Install Windows Terminal from the Microsoft Store for a better command-line experience.
  • Regularly update your Linux distribution to keep it secure and efficient.
  • Customize your terminal experience with different themes and profiles for a more personalized setup.

Frequently Asked Questions

Do I need to enable virtualization in BIOS?

Yes, enabling virtualization in BIOS may be necessary to use WSL 2, as it relies on Hyper-V.

Can I run graphical Linux applications with WSL?

With WSL 2, you can run graphical Linux applications, but additional setup for an X server is required.

Is there a performance difference between WSL 1 and WSL 2?

Yes, WSL 2 offers better performance and full system call compatibility as it runs a full Linux kernel.

Can I install multiple Linux distributions?

Absolutely, you can install and run multiple Linux distributions side-by-side on WSL.

Is WSL suitable for production use?

WSL is primarily designed for development and testing environments. For production use, a native Linux deployment is recommended.

Summary

  1. Step 1: Enable WSL feature.
  2. Step 2: Restart your computer.
  3. Step 3: Install your preferred Linux distribution.
  4. Step 4: Launch your Linux distribution.
  5. Step 5: Update and upgrade your Linux distribution.
  6. Step 6: Start using Linux on Windows.

Conclusion

Running WSL on Windows 10 bridges the gap between Windows and Linux, allowing you to enjoy the best of both worlds. Whether you’re a developer, a student, or just someone curious about Linux, WSL provides a seamless experience. After completing the steps outlined above, you’ll be empowered to run Linux tools and applications directly from your Windows environment.

If you found this guide helpful, why not dive deeper? Explore advanced configurations or even contribute to the WSL community. The world of open-source software is vast and full of opportunities. So go ahead, mix and match, and make the most out of your computing experience.

By following this guide on how to run WSL on Windows 10, you’ve taken the first step toward a more versatile and powerful computing environment. Happy coding!

Get Our Free Newsletter

How-to guides and tech deals

You may opt out at any time.
Read our Privacy Policy