Linux··7 min read

How to Install Ubuntu: A Complete Step-by-Step Guide

A complete beginner-friendly guide to installing Ubuntu 24.04 LTS on your computer. From downloading the ISO to post-install setup, everything you need to get started with Linux.

Ram

Ubuntu installation guide with terminal and desktop screenshot
Share

Ubuntu is one of the most popular Linux distributions, known for its ease of use, strong community support, and regular updates. Whether you're switching from Windows, setting up a development environment, or exploring open source, this guide walks you through every step of installing Ubuntu 24.04 LTS.

Prerequisites

Before you begin, make sure you have the following:

  • A computer with at least 4 GB RAM and 25 GB free disk space
  • A USB flash drive (8 GB or larger)
  • A stable internet connection (recommended but not required)
  • A backup of your important data (just in case)

Step 1: Download Ubuntu ISO

Head to the official Ubuntu website and download the latest LTS release:

  1. Visit ubuntu.com/download/desktop
  2. Click Download Ubuntu 24.04 LTS
  3. Wait for the ISO file (~5 GB) to finish downloading

Tip: LTS stands for Long Term Support — you'll get security updates for 5 years.

Step 2: Create a Bootable USB Drive

You need to flash the Ubuntu ISO onto a USB drive. Here's how to do it on different operating systems:

On Windows (using Rufus)

  1. Download Rufus — it's free and portable
  2. Insert your USB drive
  3. Open Rufus and configure:
- Device: Select your USB drive - Boot selection: Click "SELECT" and choose the Ubuntu ISO - Partition scheme: GPT (for UEFI) or MBR (for legacy BIOS) - File system: FAT32
  1. Click START and wait for it to complete

On macOS (using balenaEtcher)

  1. Download balenaEtcher
  2. Open it and select:
- Flash from file: Choose the Ubuntu ISO - Select target: Choose your USB drive
  1. Click Flash!

On Linux (using dd)

# Find your USB device (be very careful with this!)
lsblk

Flash the ISO (replace /dev/sdX with your USB device)

sudo dd if=ubuntu-24.04-desktop-amd64.iso of=/dev/sdX bs=4M status=progress sudo sync

Warning: Double-check the device name with lsblk. Using the wrong device will overwrite your data.

Step 3: Boot from USB

  1. Insert the bootable USB into the target computer
  2. Restart the computer
  3. Enter the BIOS/UEFI menu:
- Dell: Press F12 at startup - HP: Press F9 or Esc - Lenovo: Press F12 or Fn + F12 - ASUS: Press F2 or Del - Other: Check your manufacturer's documentation
  1. In the boot menu, select your USB drive
  2. Ubuntu will load into the live environment

Step 4: Start the Installation

Once Ubuntu boots from the USB, you'll see the desktop with an option to Install Ubuntu.

  1. Click Install Ubuntu
  2. Select your language and click Continue
  3. Choose your keyboard layout

Connectivity & Updates

  • Connect to Wi-Fi if available
  • Check Download updates while installing Ubuntu for the latest packages
  • Optionally check Install third-party software for graphics drivers, Wi-Fi firmware, and media codecs

Step 5: Choose Installation Type

This is the most important step. You have several options:

Option A: Erase Disk and Install Ubuntu (Fresh Install)

Best for: Dedicated Linux machines or replacing an existing OS.

  • Select Erase disk and install Ubuntu
  • This will wipe the entire disk and install Ubuntu as the only OS
  • Click Install Now

Option B: Install Ubuntu Alongside Windows (Dual Boot)

Best for: Keeping Windows while also having Ubuntu.

  1. Select Install Ubuntu alongside Windows
  2. Use the slider to allocate disk space between Windows and Ubuntu
  3. Recommended: Give Ubuntu at least 50 GB
  4. Click Install Now

Option C: Something Else (Manual Partitioning)

Best for: Advanced users who want full control.

Recommended partition layout:

PartitionMount PointSizeType
EFI System/boot/efi512 MBFAT32
Root/50+ GBext4
SwapswapEqual to RAM (up to 8 GB)linux-swap
Home/homeRemaining spaceext4
1. Select your disk and create partitions using the + button
  1. Set mount points and sizes as shown above
  2. Select the boot loader device (usually the main disk, e.g., /dev/sda)
  3. Click Install Now

Step 6: Configure Your System

While files are being copied, Ubuntu will ask you to set up:

  1. Time zone: Click your location on the map
  2. User account:
- Your name - Computer name (hostname) - Username - Password (use a strong one!) - Choose whether to log in automatically or require a password

Step 7: Complete Installation

  • Wait for the installation to finish (usually 10-20 minutes)
  • When prompted, click Restart Now
  • Remove the USB drive when asked
  • Your computer will reboot into Ubuntu (or the GRUB boot menu if dual booting)

Post-Installation Setup

After your first boot, here are essential things to do:

Update Your System

Open a terminal (Ctrl + Alt + T) and run:

sudo apt update && sudo apt upgrade -y

Install Essential Software

# Development tools
sudo apt install -y build-essential git curl wget

Popular applications

sudo snap install code --classic # VS Code sudo snap install brave # Brave Browser sudo apt install -y vlc # VLC Media Player sudo apt install -y gimp # Image Editor

Install Graphics Drivers

For NVIDIA graphics cards:

# Check available drivers
ubuntu-drivers devices

Install recommended driver

sudo ubuntu-drivers autoinstall

Reboot

sudo reboot

Enable Firewall

sudo ufw enable
sudo ufw status

Configure Appearance

  1. Open SettingsAppearance
  2. Choose between Light and Dark mode
  3. Adjust dock position and icon size
  4. Set your wallpaper

Set Up Backups

  1. Open Déjà Dup Backups (pre-installed)
  2. Choose backup location (external drive or cloud)
  3. Set up automatic backup schedule

Troubleshooting Common Issues

Boot Issues

  • Computer boots into Windows directly: Enter BIOS and change boot order to prioritize Ubuntu/GRUB
  • GRUB not showing: Run sudo update-grub from a live USB

Wi-Fi Not Working

# Check if your Wi-Fi adapter is detected
lspci | grep -i network

Install additional drivers if needed

sudo apt install -y linux-firmware sudo reboot

Screen Resolution Problems

# For NVIDIA cards
sudo apt install nvidia-driver-535
sudo reboot

For general display issues

xrandr --output HDMI-1 --mode 1920x1080

No Sound

# Restart PulseAudio
pulseaudio --kill && pulseaudio --start

Install ALSA utilities

sudo apt install -y alsa-utils alsamixer # Check if anything is muted

Frequently Asked Questions

Can I install Ubuntu without removing Windows?

Yes! Choose the "Install alongside Windows" option during installation. This sets up dual boot automatically with a GRUB menu that lets you pick which OS to boot into each time.

How much disk space does Ubuntu need?

Minimum 25 GB, but 50–100 GB is recommended for comfortable use with applications, development tools, and personal files.

Is Ubuntu free?

Yes, Ubuntu is completely free and open source. You can download, install, and use it without any cost. There are no hidden fees or subscriptions.

Can I try Ubuntu without installing it?

Absolutely! Boot from the USB and select "Try Ubuntu" to test it in a live environment. Nothing on your disk will be changed — it runs entirely from the USB.

Which Ubuntu version should I choose — LTS or regular?

For most users, LTS (Long Term Support) is recommended. It gets security updates for 5 years and is more stable. Regular releases only get 9 months of support and are better suited for users who want the latest features.

Can I go back to Windows after installing Ubuntu?

If you set up dual boot, you can always boot back into Windows from the GRUB menu. If you replaced Windows entirely, you'd need to reinstall it from a Windows installation USB.

Conclusion

You've successfully installed Ubuntu on your computer! Ubuntu is a powerful, secure, and free operating system that works great for everyday use, development, and learning Linux. Explore the Software Center for more applications, and don't hesitate to check out the Ubuntu community forums if you need help.

Welcome to the world of Linux! 🐧

Share

Stay Updated

Get the latest articles delivered straight to your inbox. No spam, ever.