Good. Since you’re on **Windows**, the first thing a DevOps engineer must do is **create a Linux environment**. Almost **every production server runs Linux**, so DevOps work is done there — not in native Windows. We will set up your machine exactly like a real DevOps workstation. --- # Step 1 — Install WSL2 (Linux inside Windows) WSL = **Windows Subsystem for Linux**. It allows you to run **Ubuntu Linux directly inside Windows**. Open **PowerShell as Administrator** and run: ```bash id="u7e7os" wsl --install ``` This command will: 1. Enable WSL 2. Install Ubuntu 3. Set WSL2 as default 4. Download Linux kernel After installation **restart your PC**. --- # Step 2 — Launch Ubuntu After reboot: Open **Ubuntu** from the start menu. The first time it runs it will ask you to create: ``` id="msqa6l" username password ``` Example: ``` id="v0c5sp" username: logboi password: ******** ``` You now officially have a **Linux machine running inside Windows**. --- # Step 3 — Update the Linux System Run this: ```bash id="qg212b" sudo apt update && sudo apt upgrade -y ``` Explanation: | Command | Meaning | |---|---| | sudo | run as administrator | | apt update | update package list | | apt upgrade | upgrade installed packages | --- # Step 4 — Install Essential DevOps Tools Install basic tools: ```bash id="vwxtrv" sudo apt install -y curl wget git unzip build-essential ``` Check installation: ```bash id="qhkmjs" git --version curl --version ``` --- # Step 5 — Install Node (Important for Your Projects) Since you build apps (NextJS, etc), install Node. ```bash id="kjhu3j" curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - sudo apt install -y nodejs ``` Check: ```bash id="v7pmgn" node -v npm -v ``` --- # Step 6 — Install Docker (DevOps Core Tool) Docker is **non-negotiable** in DevOps. Install it: ```bash id="ort6yy" sudo apt install docker.io -y ``` Enable docker: ```bash id="jxlard" sudo systemctl enable docker ``` Start docker: ```bash id="10bqiq" sudo systemctl start docker ``` Check: ```bash id="lrsu1u" docker --version ``` Test docker: ```bash id="ynchhx" docker run hello-world ``` You should see: ``` id="qf3b80" Hello from Docker! ``` --- # Step 7 — Fix Docker Permission (Important) Without this, you must type `sudo` every time. Run: ```bash id="mzxfj9" sudo usermod -aG docker $USER ``` Then restart WSL: ```bash id="sv14tt" exit ``` Reopen Ubuntu. Test: ```bash id="b116l0" docker run hello-world ``` --- # Your DevOps Environment is Now Ready You now have: ``` id="ak1ul0" Windows ↓ WSL2 ↓ Ubuntu Linux ↓ Docker ↓ Git ↓ Node ``` This is the **standard DevOps development stack**. --- # Your First DevOps Exercise Inside Ubuntu run these commands: ```bash id="vgbr8q" mkdir devops-lab cd devops-lab touch test.txt echo "DevOps journey begins" > test.txt cat test.txt ``` If everything works you should see: ``` id="mgjgn6" DevOps journey begins ``` --- # Next Lesson (Real DevOps Work) In the next step I will teach you something **very powerful**. You will learn: ### SSH + Remote Servers We will: ``` id="jwtt05" Create a cloud server SSH into it Deploy an application Expose it to the internet Add SSL ``` You will literally deploy your **first production server like a real DevOps engineer**. --- Before we continue tell me: 1️⃣ Did **WSL install successfully?** 2️⃣ Did **docker run hello-world work?** After that we move to the **first real DevOps deployment**.