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 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:
- Visit ubuntu.com/download/desktop
- Click Download Ubuntu 24.04 LTS
- 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)
- Download Rufus — it's free and portable
- Insert your USB drive
- Open Rufus and configure:
- Click START and wait for it to complete
On macOS (using balenaEtcher)
- Download balenaEtcher
- Open it and select:
- 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
- Insert the bootable USB into the target computer
- Restart the computer
- Enter the BIOS/UEFI menu:
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
- In the boot menu, select your USB drive
- 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.
- Click Install Ubuntu
- Select your language and click Continue
- 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.
- Select Install Ubuntu alongside Windows
- Use the slider to allocate disk space between Windows and Ubuntu
- Recommended: Give Ubuntu at least 50 GB
- Click Install Now
Option C: Something Else (Manual Partitioning)
Best for: Advanced users who want full control.
Recommended partition layout:
| Partition | Mount Point | Size | Type |
|---|---|---|---|
| EFI System | /boot/efi | 512 MB | FAT32 |
| Root | / | 50+ GB | ext4 |
| Swap | swap | Equal to RAM (up to 8 GB) | linux-swap |
| Home | /home | Remaining space | ext4 |
- Set mount points and sizes as shown above
- Select the boot loader device (usually the main disk, e.g.,
/dev/sda) - Click Install Now
Step 6: Configure Your System
While files are being copied, Ubuntu will ask you to set up:
- Time zone: Click your location on the map
- User account:
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
- Open Settings → Appearance
- Choose between Light and Dark mode
- Adjust dock position and icon size
- Set your wallpaper
Set Up Backups
- Open Déjà Dup Backups (pre-installed)
- Choose backup location (external drive or cloud)
- 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-grubfrom 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! 🐧
