Ubuntu-Installation in Windows (WSL)

CryptonodeHindi
3 min readNov 2, 2024

--

WSL:WSL stands for Windows Subsystem for Linux, a feature of Microsoft Windows that allows users to run a Linux environment on their Windows machine

Installing Ubuntu on Windows via WSL (Windows Subsystem for Linux) allows you to run a full Linux environment alongside Windows. This setup is beneficial because it enables you to use Linux command-line tools, run scripts, and manage nodes directly from your Windows PC. After installation, you can easily execute any command-line interface (CLI) node, including running custom scripts to automate tasks. This integration enhances your development workflow by providing flexibility and access to powerful Linux utilities.

To install Ubuntu on your Windows system, please follow the steps below.

Step 1: Enable WSL
Open PowerShell as Administrator:

Right-click the Start button and select “Windows Terminal (Admin)” or “Windows PowerShell (Admin).”

Step 2: WSL Install
To install WSL with the default settings, enter:

wsl --install

Step 3: It will ask for the “USENAME” and “PASSWORD”.

Step4: that's all It is installed successfully.

Step5: Whenever you execute any scripts, make sure you are logged in as a SUDO user.
To log in as a SUDO user, use:

sudo su

Step6: To confirm that you are a root user (SUDO user), run the following command:

whoami

Accessing WSL
You can open your Linux environment anytime by searching for the distribution in the Start menu by typing: wsl

That's all. you have setup the ubuntu in your windows.

If you have encountered the “Error code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG” then follow the below step.

Step-1: Uninstall Ubuntu from your windows:

Open Settings on Windows.
Go to Apps > Apps & features.
Scroll down to find your WSL distribution (Ubuntu).
Click on the Ubuntu and select Uninstall.

Step-2: Restart your system.
Open PowerShell as Administrator:
Right-click the Start button and select “Windows Terminal (Admin)” or “Windows PowerShell (Admin).” Run the below command. One by one.

wsl --list --verbose
wsl --set-default-version 2
wsl --unregister Ubuntu

Step3: Installed it manually from this link : https://github.com/microsoft/WSL/releases/download/2.3.24/wsl.2.3.24.0.x64.msi

Once it installed then restart your system once again. After that.

Open PowerShell as Administrator:
Right-click the Start button and select “Windows Terminal (Admin)” or “Windows PowerShell (Admin).” Run the below command. One by one.

wsl --set-default-version 2

Once it is done, then follow the WSL installation step.

To install WSL with the default settings, enter:

wsl --install

❤️Thank You for Reading!

I appreciate you taking the time to read this article. If you found it helpful, feel free to give it a clap and share it with others who might benefit from it.

For more insightful content on Crypto node, don’t forget to follow me on Medium and connect with me on my social media channels:

--

--

CryptonodeHindi
CryptonodeHindi

Written by CryptonodeHindi

Welcome to Crypto Node Hindi! Your go-to destination for everything related to crypto nodes, blockchain technology, and decentralized networks — all in Hindi!

No responses yet