Installing Linux
Set up a real Linux environment with WSL, VirtualBox, or VMware β ready for every hands-on lab in this course.
Youβve completed the introduction β now itβs time to get a real Linux environment running. From here on, almost every lesson includes practical exercises, and youβll be working in a real Linux shell just like professional DevOps Engineers.
π― Learning Objectives
By the end of this lesson you will:
- Understand the different ways to install Linux
- Choose the best installation method for your machine
- Install Ubuntu Linux
- Open your first Linux terminal
- Verify that Linux is working correctly
Which Installation Method Should You Choose?
There are three popular ways to run Linux. For most people learning DevOps on Windows, WSL is the fastest path.
| Method | Best for | Ease | Recommended |
|---|---|---|---|
| WSL (Windows Subsystem for Linux) | Windows 10/11 users, beginners, developers | Very easy | βββββ |
| VirtualBox | Practicing sysadmin, full Linux desktop, snapshots | Easy | βββββ |
| VMware Workstation | Advanced users, enterprise, higher performance | Moderate | ββββ |
π‘ Which Distro?
Throughout this course we use Ubuntu 24.04 LTS β beginner friendly, superbly documented, backed by a huge community, and the distribution youβll most often meet in the cloud.
Hardware Requirements
| Minimum | Recommended | |
|---|---|---|
| RAM | 8 GB | 16 GB |
| CPU | Dual Core | Quad Core |
| Storage | 40 GB free | SSD |
| Network | β | Stable internet |
Option 1 β Install Ubuntu with WSL (Recommended)
Step 1 β Open PowerShell as Administrator. Search for PowerShell, right-click, and choose Run as Administrator.
Step 2 β Run the installer:
wsl --installWindows will automatically enable WSL, download Ubuntu, configure Linux, and restart if necessary.
Step 3 β Restart your computer.
Step 4 β Open Ubuntu and create your username and password when prompted. Choose something youβll remember (e.g. username student).
Step 5 β Done. Linux is now installed and ready.
Option 2 β Install Ubuntu with VirtualBox
- Download VirtualBox from virtualbox.org.
- Download the Ubuntu 24.04 LTS ISO from ubuntu.com/download/desktop.
- Create a new VM β Name:
Ubuntu DevOps Lab, Memory:4096 MB+, Processors:2+, Disk:30 GBdynamically allocated. - Attach the Ubuntu ISO and start the VM.
- Follow the installer: Install Ubuntu β Normal Installation β Erase disk (only inside the VM) β Continue.
Verify Your Installation
Open your terminal and run these commands. If Linux responds, your environment works.
π§ͺ Hands-on: Your First Lab
Verify Your Linux Installation
Run each of these commands and confirm you get output:
whoamiβ your current userpwdβ your current directorydateβ the system date/timeuname -aβ kernel and system infolsβ list your home directory
π‘ Screenshot Challenge πΈ
Take screenshots of your terminal running whoami, pwd, and uname -a. Real screenshots of your own environment make far better portfolio evidence than stock images.
Troubleshooting
β Common Install Problems
wsl is not recognizedβ make sure youβre in PowerShell as Administrator, and update Windows if needed.- Ubuntu wonβt open β restart Windows, then run
wsl --update. - Command not found β check your spelling. Linux commands are case-sensitive.
π§ Knowledge Check
Which installation method is recommended for most Windows users?
Which Linux distribution do we use throughout this course?
πΌ Interview Preparation
What is WSL and why is it useful for DevOps engineers on Windows?
Summary
In this lesson you learned:
- The three main ways to install Linux (WSL, VirtualBox, VMware)
- Why Ubuntu 24.04 LTS is our distribution of choice
- How to install and verify your Linux environment
Your Linux environment is now ready for the rest of the course.