🧠 Installing Linux
There are three main ways to install or use Linux on your system: 1) Dual Boot — install Linux alongside Windows. 2) Virtual Machine (VM) — run Linux inside Windows, like an app. 3) WSL (Windows Subsystem for Linux) — install Linux inside Windows without rebooting or using a VM. Each has different pros and cons depending on your goals.
Dual Boot Installation
Dual booting lets you install Linux and Windows on the same computer, but in separate sections (partitions) of your hard drive. When you start your PC, you can choose which one to boot — Windows or Linux.
Think of it like having two "houses" (Windows and Linux) on the same land (your hard drive). You decide which one to "enter" each time you start your PC.
Steps to Set Up Dual Boot:
- Backup your data → always important before partitioning.
- Create a bootable USB → Download a Linux ISO (e.g., Ubuntu) from its official site. Use Rufus (on Windows) or Etcher to burn the ISO file to a USB drive.
- Shrink your Windows partition → Open Disk Management → Right-click C: → "Shrink Volume" → give Linux space (at least 20GB).
- Boot from USB → Restart your PC → enter boot menu (F12, ESC, or depends on your laptop) → choose the USB drive.
- Install Linux → Select "Install alongside Windows." Choose the partition (the free space you made). Let installation complete.
- Reboot → You'll now get a boot menu (called GRUB) where you can select either Windows or Linux.
Pros: Full system performance (Linux runs directly on hardware). Best for developers or those who plan to use Linux heavily.
Cons: Risk of messing up partitions if done carelessly. Requires rebooting every time to switch between Windows and Linux.
Virtual Machine (VM) Installation
You install software (like VirtualBox or VMware) that lets you run Linux inside a window on Windows — like an app.
Imagine your Windows system is a hotel, and Linux is a guest staying in one of the rooms. They share the same building, but Linux runs in its own space.
Steps to Use Linux in a VM:
- Install VirtualBox (free) or VMware Workstation Player.
- Download a Linux ISO (Ubuntu recommended for beginners).
- In VirtualBox → Click New → Name it "Ubuntu" → Select Linux type. Allocate memory (2GB+ recommended). Create a virtual hard disk (20GB+).
- Start the virtual machine → attach the Linux ISO → follow on-screen installation steps.
- Once installed → you can run Linux anytime by opening VirtualBox.
Pros: Easy and safe. No changes to your real system. Can run both Windows and Linux simultaneously. Great for beginners and testers.
Cons: Slower performance (since both systems share resources). Some hardware features (like graphics) may not work perfectly.
WSL (Windows Subsystem for Linux)
WSL lets you run Linux command-line tools directly inside Windows, without a VM or dual boot. It's perfect for developers who need Linux commands but still want to stay in Windows.
Like having a "Linux portal" inside your Windows computer — you can use Linux tools without leaving Windows.
How to Install WSL:
- Open PowerShell (Admin).
- Run this command → wsl --install
- It will install Ubuntu by default → you can change it later.
- Restart your computer → when prompted.
- Open the "Ubuntu" app → from the Start Menu and set up your username and password.
Now you have a fully functional Linux terminal inside Windows!
Pros: No reboot needed. Fast and lightweight. Great for developers who work with both Windows and Linux tools.
Cons: No full desktop (terminal only, unless you install extra GUI). Doesn't give full hardware control like real Linux.
Real-Life Tip
If you're new and just want to learn commands and get comfortable, start with WSL or a Virtual Machine. Once you feel confident, move to dual boot for full Linux experience.
Real-life analogy
Think of the three installation methods like different ways to learn a new language:
🌐 Dual Boot → Moving to a country where the language is spoken. You're fully immersed but need to travel there.
📺 Virtual Machine → Watching TV shows in the new language while sitting in your own home. You can switch back to your native language anytime.
🎧 WSL → Having a translator app that lets you practice the language without leaving your home. Great for quick interactions but not full immersion.