Ubuntu 22.04 Environment Setup
Installing Ubuntu 22.04 on WSL in Windows
Prerequisites:
-
Windows 10 (Version 2004 or higher) or Windows 11.
-
Administrative privileges on your Windows machine.
-
Internet connection.
Step 1: Enable WSL Feature
To enable WSL Feature, user can go to the Windows Features and enable the Windows Subsystem for Linux and click OK. The system will automatically install the necessary item and computer will be restart.
Step 2: Install Ubuntu 22.04
To Install Ubuntu 22.04, go to Microsoft Store and search Ubuntu 22.04 LTS Version. Click Install to download and install Ubuntu 22.04.
Step 3: Set Up Ubuntu 22.04
-
After installation, click Launch from the Microsoft Store or search for "Ubuntu 22.04" in the Start menu.
-
Wait for the installation to complete in the terminal window.
-
Create a Username and Password:
-
When prompted, enter a username and password for your Ubuntu installation. This will be your default user for WSL.
-
Step 4: Update Ubuntu
To update your Ubuntu 22.04, run this following code in the terminal:
sudo apt update && sudo apt upgrade -y
To Reboot WSL (if needed), open Powershell and run this line:
wsl --shutdown
wsl
Step 5: Set WSL 2 as Default (Optional)
1st check the WSL version by running this line to the terminal:
wsl --list --verbose
If Ubuntu 22.04 is running on WSL 1, upgrade it to WSL 2 by executing the below line:
wsl --set-version Ubuntu-22.04 2
That's it! You now have Ubuntu 22.04 running on WSL in Windows. Enjoy using Linux tools and commands directly on your Windows machine! Let us (Sektor Kewangan) know if you need further assistance.
No Comments