funwithlinux guide

Installing Linux: A Step-by-Step Tutorial

Linux, the open-source operating system (OS) loved by developers, enthusiasts, and everyday users alike, offers unparalleled flexibility, security, and customization. Whether you’re looking to breathe new life into an old laptop, dual-boot alongside Windows, or dive into the world of open-source software, installing Linux is a rewarding journey. This tutorial will guide you through the entire process—from choosing a Linux distribution to post-installation setup—with clear, beginner-friendly steps. By the end, you’ll have a fully functional Linux system ready to use!

Table of Contents

  1. Before You Begin: Preparation
  2. Booting from the Linux USB
  3. The Live Environment: Testing Before Installing
  4. Installing Linux: Step-by-Step
  5. Post-Installation: First Boot & Setup
  6. Troubleshooting Common Issues
  7. Conclusion
  8. References

Before You Begin: Preparation

Installing Linux is straightforward, but a little prep work ensures a smooth experience. Let’s start with the essentials.

System Requirements

Linux is lightweight, but check these minimums for a comfortable experience:

  • RAM: 2GB (4GB+ recommended for modern desktops).
  • Storage: 20GB+ free space (more if dual-booting or storing large files).
  • Processor: Any 64-bit CPU (most modern computers support this; older 32-bit systems may need specific distros like Lubuntu).
  • Bootable USB Drive: 4GB+ capacity (8GB+ recommended for larger ISOs).

Choosing a Linux Distribution

Linux “distributions” (distros) are pre-packaged OSes tailored for different needs. For beginners, these are the best picks:

DistroBest ForKey Features
UbuntuBeginners, general useUser-friendly, large community, extensive software support.
Linux MintWindows/macOS switchersFamiliar interface, pre-installed media codecs.
FedoraTech enthusiasts, latest softwareCutting-edge, Red Hat-based, focus on innovation.
Pop!_OSGamers, developersOptimized for gaming, built-in NVIDIA support.

Download your chosen distro’s ISO file from its official website (e.g., Ubuntu, Linux Mint).

Back Up Your Data

Critical Step: Installing Linux can overwrite data if misconfigured. Back up files to an external drive, cloud storage (Google Drive, Dropbox), or a USB stick.

Create a Bootable USB Drive

To install Linux, you’ll need a bootable USB. Use one of these tools:

Option 1: BalenaEtcher (Cross-Platform)

The easiest choice for Windows, macOS, or Linux:

  1. Download BalenaEtcher.
  2. Launch Etcher, click “Flash from file,” and select your downloaded ISO.
  3. Insert your USB drive, select it in Etcher, and click “Flash!” (This erases the USB—back up its data first!)

Option 2: Rufus (Windows Only)

Great for advanced users:

  1. Download Rufus.
  2. Select your USB drive, choose the Linux ISO, and click “Start.” Use default settings unless you need UEFI/legacy boot options.

Option 3: dd Command (Linux/macOS Terminal)

For terminal lovers:

  1. Identify your USB drive (e.g., /dev/sdb on Linux or /dev/disk2 on macOS; double-check to avoid overwriting your hard drive!).
  2. Run:
    sudo dd if=/path/to/your/linux.iso of=/dev/sdX bs=4M status=progress && sync  
    Replace /path/to/your/linux.iso with the ISO location and /dev/sdX with your USB drive (e.g., /dev/sdb).

Booting from the Linux USB

With your bootable USB ready, it’s time to start the installation.

Accessing BIOS/UEFI Settings

To boot from the USB, you’ll need to adjust your computer’s boot order in the BIOS/UEFI (firmware that controls startup).

  1. Restart your computer.
  2. While booting, press the BIOS key (varies by manufacturer):
    • Dell/Lenovo: F2 or F12
    • HP: F10 or Esc
    • ASUS: Del or F2
    • Mac: Hold Option (⌥) during startup.

Selecting the Boot Device

In the BIOS/UEFI:

  • Disable “Secure Boot” (some distros require this; it’s a Windows security feature that may block Linux).
  • Navigate to the “Boot Order” menu.
  • Move your USB drive to the top of the list.
  • Save changes and exit (usually F10).

Your computer will now boot from the USB into the Linux “live environment.”

The Live Environment: Testing Before Installing

Most Linux ISOs boot into a “live session”—a fully functional OS running from the USB. This lets you:

  • Test hardware compatibility (Wi-Fi, touchpad, graphics).
  • Explore the desktop environment (GNOME, KDE, Cinnamon, etc.).
  • Install software temporarily to see if it works.

Pro Tip: If something doesn’t work (e.g., no Wi-Fi), research fixes before installing—live sessions mimic the installed OS.

Installing Linux: Step-by-Step

Launching the Installer

In the live environment, look for an “Install [Distro]” icon (usually on the desktop or taskbar). Double-click it to start.

Installation Type: Erase Disk, Dual-Boot, or Manual Partitioning

This is the most critical step—choose how to allocate storage:

Option 1: Erase Disk (Simple)

  • Best For: New computers or replacing Windows/macOS entirely.
  • What It Does: Wipes the entire drive and installs Linux.
  • Warning: All data on the drive will be lost!

Option 2: Dual-Boot (Linux + Windows/macOS)

  • Best For: Keeping your existing OS and adding Linux.
  • What It Does: Splits your drive into two partitions, letting you choose which OS to boot at startup.

Option 3: Manual Partitioning (Advanced)

  • Best For: Power users (e.g., creating separate partitions for root, home, or encrypting data).

Dual-Boot Setup (Optional)

If dual-booting with Windows:

  1. Resize Your Windows Partition:
    • The installer may offer a “Install alongside Windows” option. Click it, then drag the slider to allocate space for Linux (e.g., 50GB).
    • If not, use Windows Disk Management first to shrink the Windows partition:
      • Press Win + X → “Disk Management.”
      • Right-click your Windows partition → “Shrink Volume.”
      • Allocate free space (e.g., 50GB) and click “Shrink.”

Manual Partitioning (Advanced)

For control over partitions, select “Something else” (Ubuntu) or “Manual partitioning” (Fedora). Create these partitions:

PartitionMount PointSizePurpose
Root (/)/20GB+OS files, applications.
SwapswapEqual to RAM (or 4GB+)Acts as “overflow” for RAM (hibernation support).
Home (/home)/homeRemaining spaceStores user files (documents, photos, etc.).

Steps:

  1. Select the free space on your drive → Click “+” to create a new partition.
  2. For Root: Size = 20GB, Type = “Primary,” Mount Point = /, File System = ext4.
  3. For Swap: Size = 4GB, Type = “Logical,” Use as = “swap area.”
  4. For Home: Size = Remaining space, Mount Point = /home, File System = ext4.
  5. Click “Install Now” to confirm.

Configuring Timezone, Keyboard, and User Account

After partitioning:

  1. Timezone: Select your region (e.g., “New York” or “London”).
  2. Keyboard Layout: Choose your keyboard type (e.g., “English (US)”).
  3. User Account:
    • Enter your name, username, and password.
    • Check “Automatic login” if you want to skip the password prompt on boot (optional).
    • Some distros let you encrypt your home folder for security (recommended!).

Post-Installation: First Boot & Setup

Rebooting and First Login

  1. When the installer finishes, click “Restart Now.”
  2. Remove the USB drive when prompted.
  3. On first boot, you may see the GRUB menu (dual-boot users): Select “Ubuntu” (or your distro) to start Linux.

Updating the System

Linux updates frequently—install them first for security and bug fixes:

  • Ubuntu/Debian: Open a terminal (Ctrl + Alt + T) and run:
    sudo apt update && sudo apt upgrade -y  
  • Fedora/RHEL:
    sudo dnf update -y  
  • Arch/Manjaro:
    sudo pacman -Syu  

Installing Drivers

Most hardware works out of the box, but proprietary drivers (e.g., NVIDIA graphics) may need manual setup:

  • Ubuntu: Go to “Software & Updates” → “Additional Drivers” → Select the recommended driver → “Apply Changes.”
  • Fedora: Use sudo dnf install akmod-nvidia for NVIDIA (requires RPM Fusion repos).

Setting Up Software

Linux offers tons of software via:

  • App Stores: Ubuntu Software, Mint Software Manager, or GNOME Software.
  • Terminal: Use package managers (e.g., apt install firefox for browsers).
  • Flatpak/Snap: For universal apps (e.g., flatpak install flathub com.spotify.Client).

Troubleshooting Common Issues

Boot Problems

  • GRUB Menu Missing: Use a live USB to repair GRUB with tools like boot-repair (Ubuntu: sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt install boot-repair).
  • Stuck on Black Screen: Disable “Secure Boot” in BIOS or add nomodeset to the boot command (press e in GRUB, find linux line, add nomodeset at the end, then press F10 to boot).

Dual-Boot Not Showing Up

  • Ensure Windows fast startup is disabled: Go to “Control Panel → Power Options → Choose what the power buttons do” → Uncheck “Turn on fast startup.”

Driver Issues

  • For Wi-Fi/Bluetooth: Check your hardware model (e.g., lspci in terminal) and search for Linux drivers (e.g., “Broadcom BCM43142 Linux driver”).

Conclusion

Congratulations! You’ve installed Linux. The journey doesn’t end here—explore desktop customization, learn the terminal, or dive into development tools. Linux thrives on community, so don’t hesitate to ask for help on forums like Ask Ubuntu or Reddit’s r/linux.

References