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

PLASMONICS - A Vision of future

Surface plasmon resonance (SPR) - related science and technology have recently spawned a brand new branch of research referred to as "Plasmonics" Plasmonics, also known as nanoplasmonics, is the creation, detection, and manipulation of signals at optical frequencies at nanoscale scale metal-dielectric interactions. Following the trend of miniaturizing optical devices, plasmonics finds applications in sensing, imaging, optical communications, and bio-photonics. Surface Plasmon Resonance in Bioanalysis For almost a decade, plasmonic imaging has been used to analyze single-cell activity. Although this approach is still in its early stages, its label-free and real-time benefits have piqued curiosity, and it has already been applied to extracellular and intracellular activities. However, as a freshly developed approach, plasmonic imaging has significant flaws that must be addressed before it can be widely used. First, plasmonic imaging’s imaging capacity needs to be improved. The ...

Wget Command

  What is Wget?                     Wget is a simple Linux/Unix command-line utility for downloading the contents, and files from the web. Wget will download the resource from the URL which is specified in the command. With the help of wget, we can download files using HTTP, and HTTPS. We can also download multiple files, resume downloads, recursive downloads, downloads in the background, and different options in the wget command. In this article, let’s see how to install and, use this command with examples. Installing Wget The wget is pre-installed on most of the Linux distros. To verify whether the package is installed, open your terminal type wget  and press enter. You will get a result of   wget: missing URL . If the wget package is not installed it will print wget command not found. Installation on Ubuntu and Debian                sudo apt install ...

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...