- Before You Install
- Method 1: Virtual Machine (Recommended for Beginners)
- Method 2: WSL (Windows Subsystem for Linux)
- Method 3: Dual Boot
- Method 4: Live USB (Try Without Installing)
- Method 5: Cloud Instance
- Post-Installation Setup
- Practice Exercises
| Component | Minimum | Recommended |
|---|---|---|
| CPU | 2 GHz dual-core | 4+ cores |
| RAM | 4 GB | 8 GB+ |
| Storage | 25 GB | 50 GB+ |
| Display | 1024Γ768 | 1920Γ1080 |
| Distro | Download Link | Notes |
|---|---|---|
| Ubuntu | ubuntu.com/download | LTS = Long Term Support (5 years) |
| Fedora | fedoraproject.org | Latest desktop tech |
| Linux Mint | linuxmint.com | Great for Windows users |
π‘ Tip: Always verify your download with the provided SHA256 checksum to ensure integrity.
# Verify ISO integrity (on Linux/Mac)
sha256sum ubuntu-24.04-desktop-amd64.iso
# On Windows PowerShell
Get-FileHash .\ubuntu-24.04-desktop-amd64.iso -Algorithm SHA256A Virtual Machine (VM) runs Linux inside your current OS β no risk to your existing system.
Step 1: Install VirtualBox
- Download from virtualbox.org
- Install with default settings
Step 2: Create a New VM
- Click "New"
- Name:
Ubuntu - Type:
Linux, Version:Ubuntu (64-bit) - RAM:
4096 MB(4 GB minimum) - Create a virtual hard disk:
VDI,Dynamically allocated,50 GB
Step 3: Configure the VM
Settings β System β Processor β 2+ CPUs
Settings β Display β Video Memory β 128 MB
Settings β Storage β Controller: IDE β Choose your ISO file
Step 4: Install Linux
- Start the VM
- Select "Install Ubuntu"
- Follow the graphical installer
- Choose "Erase disk and install" (this only erases the virtual disk!)
- Set your username, password, and timezone
- Reboot when prompted
Step 5: Install Guest Additions (for better performance)
# After booting into your new Linux install
sudo apt update
sudo apt install virtualbox-guest-utils virtualbox-guest-x11
sudo rebootπ Pro Tip: Enable Shared Clipboard and Drag & Drop in VM Settings β General β Advanced.
- Download from vmware.com
- Steps are similar to VirtualBox
- VMware often has better performance out of the box
WSL lets you run Linux directly on Windows 10/11 β no VM needed. Perfect for developers.
# Open PowerShell as Administrator and run:
wsl --install
# This installs WSL 2 with Ubuntu by default
# Restart your computer when prompted# Ubuntu will launch automatically
# Set your username and password when prompted
# To install a different distro:
wsl --list --online # See available distros
wsl --install -d Debian # Install Debian
wsl --install -d Fedora # Install Fedorawsl --list --verbose # List installed distros
wsl --set-default Ubuntu # Set default distro
wsl --shutdown # Shut down all WSL instances
wsl --update # Update WSL kernel# From WSL, access Windows files:
cd /mnt/c/Users/YourName/Desktop
# From Windows, access WSL files:
# Open File Explorer and navigate to: \\wsl$\Ubuntu\home\username
β οΈ Warning: Do NOT edit WSL Linux files from Windows using Windows tools β it can corrupt them. Usecode .to open VS Code with WSL support.
Run Linux alongside Windows on the same machine. You choose which to boot at startup.
- Back up all important data
- At least 50 GB of free disk space
- A USB drive (8 GB+)
- Disable Secure Boot in BIOS (sometimes needed)
- Disable Fast Startup in Windows
Using Rufus (Windows):
- Download Rufus
- Insert USB drive
- Select your Linux ISO
- Partition scheme: GPT (for UEFI) or MBR (for Legacy BIOS)
- Click Start
Using Etcher (Cross-platform):
- Download balenaEtcher
- Select ISO β Select USB β Flash!
Windows: Disk Management β Right-click C: β Shrink Volume β Enter 50000 MB (50 GB)
- Restart your computer
- Press boot menu key during startup:
- Dell/Lenovo:
F12 - HP:
F9 - ASUS:
F8orEsc - Acer:
F12
- Dell/Lenovo:
- Select your USB drive
- Choose "Install alongside Windows" (the installer will auto-detect)
- Allocate space (50 GB minimum recommended)
- The installer will set up GRUB bootloader automatically
- On reboot, you'll see a menu to choose Windows or Linux
π‘οΈ Important: Always install Linux AFTER Windows. Linux's GRUB bootloader will detect Windows, but Windows' bootloader won't detect Linux.
Boot from USB to try Linux without changing anything on your hard drive.
- Create a bootable USB (same as dual boot Step 1)
- Boot from USB
- Choose "Try Ubuntu" instead of "Install"
- Explore! Changes are lost when you shut down.
π‘ Use Case: Great for testing hardware compatibility, recovering data from a broken system, or just exploring.
Run Linux on a remote server β no local installation needed.
| Provider | Free Offer |
|---|---|
| AWS | 750 hours/month of t2.micro for 12 months |
| Google Cloud | e2-micro instance always free |
| Oracle Cloud | 2 AMD instances always free |
| DigitalOcean | $200 credit for 60 days (with GitHub Student Pack) |
# After creating an AWS account and launching an EC2 instance:
ssh -i "your-key.pem" ubuntu@your-instance-ip
# You now have a full Linux terminal!Once you have Linux running, do these first:
# Debian/Ubuntu
sudo apt update && sudo apt upgrade -y
# Fedora
sudo dnf update -y
# Arch
sudo pacman -Syu# Ubuntu/Debian
sudo apt install -y curl wget git vim htop net-tools build-essential
# Fedora
sudo dnf install -y curl wget git vim htop net-tools gcc make# Check current timezone
timedatectl
# List available timezones
timedatectl list-timezones
# Set timezone
sudo timedatectl set-timezone Asia/Dhakaecho "Hello, Linux!" > ~/my-first-file.txt
cat ~/my-first-file.txt
# Output: Hello, Linux!π Congratulations! You now have a working Linux system!
- Install Linux using any method above (VM is recommended for beginners)
- Update your system using the appropriate package manager
- Install
htopand run it:htop - Check your kernel version:
uname -r - Check your disk space:
df -h - Create a file:
echo "I'm learning Linux!" > ~/hello.txt
β Previous: Introduction Β· π Home Β· Next: Terminal Basics β