Skip to main content

Getting started with WSL

linux distributions on microsoft store

I recently started learning Linux operating system. I have a windows machine. I searched for what are the possible ways available to work with Linux. I ended up with more ways to install Linux and work with it. WSL is one of the simplest ways to get started with Linux on windows. So, I'll be sharing my learnings about WSL.

It's obvious that to learn Linux one should have a Linux-based machine to work with and execute commands. There are four possible ways to get started with Linux.

Possible ways to work with Linux

  • Building a Linux-based computer which is quite expensive. I myself don't prefer to build a machine when I am a Student.
  • Installing and using Linux in dual boot mode with your existing Windows using a virtual box. This is one of my preferred ways but it consumes more storage. So, this too fails.
  • And the next way is to create instances in cloud platforms like AWS, GCP, and Azure and using remotely. Also, there is no cost associated with it. Because major cloud platforms offer free credits ranging from 100 to 300 US dollars. Which is a perfect idea, isn't it? But why use this when we have a more simplest way. 
  • Here's my preferred way to use Linux by installing WSL on your existing Windows machine.
Let's talk about WSL and Linux distributions (distros)

What is WSL?

WSL is abbreviated as Windows Subsystem for Linux. When you install WSL, it will create a Linux environment in your Windows machine. So that you can install Linux-specific tools and packages. It uses the same virtualization technology used by VMware and Virtual Box. But the environment is super lightweight. Also, you can choose specific Linux distributions from the Microsoft store to install.

There are two versions available, WSL 1 and WSL 2. WSL 2 is a new version of the Windows Subsystem for Linux architecture. The primary goals of WSL 2 are to increase file system performance, as well as to add full system compatibility.

The Linux distribution sitting on top of WSL can be upgraded or downgraded at any time and if you prefer to use both WSL 1 and WSL 2 with different distributions you are permitted to do that.

Alright, let's dive into the installation part.

Installing WSL

You can install everything you need to run WSL by entering this command in Powershell. The Powershell window should be opened as an administrator.

wsl --install

After this, you need to install a distro. To see the available distros, run this command

wsl --list --online

To install a distro, run this command

wsl --install -d <DistroName>

For example, if I like to install a Debian distro, I should run this

wsl --install -d Debian

That's the installation part. After installing WSL and the distribution, you should create a username and password for your Linux distribution. 

Here's the detailed guide for that: Set up a WSL development environment

The installation part we have seen will only work if you are running Windows 10 Version 2004 and higher. For older versions of windows, you should do some extra steps to install WSL.

Here's the detailed guide for that: Manual installation steps for older versions of WSL

WSL is the easiest and recommended way to work with linux on windows. Thanks for reading!

Comments

Popular posts from this blog

Elasticsearch- II

 ELASTICSEARCH                                          In this blog we are going to learn how to use elasticsearch and kibana using python. Before getting into this, make sure that you have elasticsearch and kibana installed. To know the detailed procedure about the installation of elasticsearch and kibana, click the link below to learn the installation process from scratch. https://crescenttechnocratsclub.blogspot.com/2022/09/blog-post.html For python, let’s use VS Code . Visual Studio (VS) Code is a streamlined code editor with support for development operations like debugging, task running, and version control. Python IDLE is also fine to use but we will work with vs code in this blog. Install VS code using the following link : https://code.visualstudio.com/download Click op...

Why you need Linux Right Now!

  Introduction Linux is an open-source operating system created in 1991 by Linus Torvalds. It's an alternative to the more popular Windows and Mac operating systems, and it comes with a wide range of features that make it a great choice for everyone, from beginners to seasoned professionals. In this blog, we'll discuss what Linux is, what it can offer you, and why you should start using it today. What Is Linux? Linux is used today by millions of people worldwide, including large corporations, small businesses, government organizations, and individuals. There are many reasons why you should use Linux. Here are a few: Linux is stable and secure. It is less likely to crash or become infected with a virus than Windows. Linux is customizable. You can change the look and feel of Linux to suit your needs, and you can add or remove software to create the perfect operating system for you. Linux is free. There are no licensing fees required to use Linux, and there are many free applicati...