How to Install Ubuntu

How to Install Ubuntu: A Complete Step-by-Step Guide for Beginners and Professionals Ubuntu is one of the most popular and user-friendly Linux distributions in the world. Developed by Canonical Ltd., Ubuntu is built on the Debian architecture and is renowned for its stability, security, and strong community support. Whether you're a developer, a student, a business user, or simply curious about op

Nov 6, 2025 - 09:53
Nov 6, 2025 - 09:53
 1

How to Install Ubuntu: A Complete Step-by-Step Guide for Beginners and Professionals

Ubuntu is one of the most popular and user-friendly Linux distributions in the world. Developed by Canonical Ltd., Ubuntu is built on the Debian architecture and is renowned for its stability, security, and strong community support. Whether you're a developer, a student, a business user, or simply curious about open-source operating systems, installing Ubuntu can unlock a powerful, free, and customizable computing environment.

Unlike proprietary operating systems, Ubuntu offers complete control over your software, privacy, and system performance. Its widely used in servers, desktops, cloud environments, and even embedded systems. Learning how to install Ubuntu correctly ensures you start with a clean, secure, and optimized systemlaying the foundation for everything you do on it.

This comprehensive guide walks you through every stage of installing Ubuntu, from preparing your system to post-installation configuration. We cover best practices, essential tools, real-world examples, and common troubleshooting tips. By the end of this tutorial, youll be confident installing Ubuntu on any modern hardwarewhether you're dual-booting with Windows, replacing your current OS, or setting up a virtual machine.

Step-by-Step Guide

Step 1: Understand Your System Requirements

Before downloading Ubuntu, verify that your hardware meets the minimum requirements. While Ubuntu is designed to run efficiently on modest hardware, optimal performance requires a few key specifications.

For Ubuntu Desktop (22.04 LTS or 24.04 LTS):

  • Processor: 2 GHz dual-core processor or better
  • Memory (RAM): 4 GB (8 GB recommended)
  • Storage: 25 GB of free disk space (50 GB or more recommended)
  • Display: 1024768 screen resolution
  • Internet access: Recommended for updates and third-party software

For Ubuntu Server, requirements are lighter: a 1 GHz processor, 1 GB RAM, and 2.5 GB storage are sufficient. However, production servers should have more resources depending on workload.

If youre unsure about your current systems specs, you can check them in Windows by pressing Windows + R, typing dxdiag, and hitting Enter. On macOS, click the Apple menu and select About This Mac.

Step 2: Choose the Right Ubuntu Version

Ubuntu offers several editions tailored for different use cases:

  • Ubuntu Desktop: Designed for personal computers and laptops. Includes a graphical interface (GNOME) and pre-installed applications like Firefox, LibreOffice, and Thunderbird.
  • Ubuntu Server: No graphical interface by default. Optimized for cloud, data centers, and headless operations. Ideal for running web servers, databases, and containers.
  • Ubuntu Core: A minimal, transactional version for IoT devices and embedded systems.
  • Ubuntu Flavors: Community-maintained variants with different desktop environments (Kubuntu, Xubuntu, Lubuntu, etc.) for users preferring alternative interfaces.

For most users, Ubuntu Desktop 22.04 LTS (Long-Term Support) is the best choice. LTS versions receive five years of security and maintenance updates, making them ideal for stability and long-term use. Ubuntu 24.04 LTS is the latest as of 2024 and includes newer kernel versions and hardware support.

Step 3: Download the Ubuntu ISO File

Visit the official Ubuntu website at ubuntu.com/download/desktop to download the latest LTS version.

On the download page:

  1. Select Ubuntu Desktop if youre installing on a personal computer.
  2. Click the Download button to begin downloading the .iso file. The file size is approximately 45 GB.
  3. Ensure the download completes fully. Do not interrupt it.

Verify the integrity of the downloaded file using the provided SHA256 checksum. On Windows, you can use PowerShell:

Get-FileHash -Algorithm SHA256 C:\path\to\ubuntu-24.04-desktop-amd64.iso

Compare the output with the checksum listed on the Ubuntu download page. If they match, the file is authentic and uncorrupted.

Step 4: Create a Bootable USB Drive

To install Ubuntu, you need a bootable USB drive with at least 4 GB of storage. Use a reliable tool to write the ISO image to the drive.

On Windows:

Use Rufus, a free and open-source utility:

  1. Download Rufus from rufus.ie.
  2. Insert a USB drive (backup any data on it, as it will be erased).
  3. Launch Rufus.
  4. Under Device, select your USB drive.
  5. Under Boot selection, click SELECT and choose the Ubuntu ISO file you downloaded.
  6. Ensure Partition scheme is set to GPT if your system uses UEFI (most modern systems do). For older BIOS systems, choose MBR.
  7. Click START. Rufus will warn you that all data will be erasedconfirm.
  8. Wait for the process to complete. This may take 515 minutes depending on USB speed.

On macOS:

Use the built-in Terminal:

  1. Insert the USB drive.
  2. Open Terminal (Applications ? Utilities ? Terminal).
  3. Run diskutil list to identify your USB drive (e.g., /dev/disk2).
  4. Unmount the drive: diskutil unmountDisk /dev/disk2
  5. Write the ISO: sudo dd if=/path/to/ubuntu-24.04-desktop-amd64.iso of=/dev/disk2 bs=1m
  6. Wait for completion (no progress barbe patient). When done, type diskutil eject /dev/disk2.

On Linux:

Use the dd command or BalenaEtcher:

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

Replace /dev/sdX with your USB device (e.g., /dev/sdb). Use lsblk to confirm the correct device.

Step 5: Boot from the USB Drive

Restart your computer with the USB drive inserted.

Access the boot menu:

  • Windows PCs: Press F12, Esc, or Del during startup (varies by manufacturer).
  • Mac: Hold Option (Alt) key while booting.
  • Linux systems: Usually Esc or F12.

In the boot menu, select your USB drive (it may appear as UEFI: USB Drive or similar). Press Enter to boot.

If you see the Ubuntu splash screen with a keyboard and person icon, youve successfully booted from the USB.

Step 6: Try or Install Ubuntu

After booting, youll see two options:

  • Try Ubuntu: Run Ubuntu live without making changes to your hard drive. Useful for testing hardware compatibility.
  • Install Ubuntu: Begin the installation process.

For most users, select Install Ubuntu.

Step 7: Select Language and Keyboard Layout

Choose your preferred language and keyboard layout. The installer will auto-detect your region, but verify that the layout matches your physical keyboard (e.g., US QWERTY, UK QWERTY, AZERTY).

Step 8: Connect to the Internet

If youre using Wi-Fi, select your network and enter the password. A stable connection is recommended for downloading updates and third-party software during installation.

While not mandatory, enabling Download updates while installing and Install third-party software (for graphics drivers, Wi-Fi firmware, and media codecs) is strongly advised. This ensures smoother post-installation performance.

Step 9: Choose Installation Type

This is one of the most critical steps. Youll see several options:

  • Erase disk and install Ubuntu: Deletes all data on the disk and installs Ubuntu as the only OS. Use if youre replacing Windows or starting fresh.
  • Install Ubuntu alongside Windows Boot Manager: Dual-boot setup. Ubuntu creates a separate partition alongside Windows. Recommended for beginners wanting to keep Windows.
  • Something else: Manual partitioning. For advanced users or custom setups.

For Dual-Boot (Recommended for Windows Users):

Select Install Ubuntu alongside Windows Boot Manager. The installer will automatically resize your Windows partition and allocate space for Ubuntu. You can adjust the slider to allocate disk space (e.g., 50 GB for Ubuntu, rest for Windows).

Ensure you have at least 3040 GB free on your Windows drive before proceeding.

For Manual Partitioning (Advanced):

If you choose Something else, youll see your disk layout. Follow these guidelines:

  • Create a root (/) partition with ext4 filesystem, size: 2050 GB.
  • Create a swap partition (optional): 24 GB if you have less than 8 GB RAM; otherwise, skip it (Ubuntu uses swap files by default).
  • Create a /home partition (recommended): Use remaining space with ext4. This stores your personal files and is preserved during OS upgrades.

Set the device for bootloader installation to your main drive (e.g., /dev/sda), not a partition.

Step 10: Set Up User Account

Enter your name, computer name, username, and password.

  • Choose a strong password (12+ characters, mix of letters, numbers, symbols).
  • Check Log in automatically only if this is a personal, non-shared device.
  • Check Encrypt my home folder if youre concerned about physical security (optional, adds encryption overhead).

Click Continue. The installer will now copy files and configure your system. This takes 1020 minutes depending on your hardware.

Step 11: Reboot and Remove USB

Once installation completes, youll see a Restart Now button. Click it.

When prompted, remove the USB drive. Failure to do so may cause the system to boot back into the installer.

Your system will reboot into the Ubuntu login screen. Enter your password to log in.

Step 12: First Boot and Initial Setup

After logging in, Ubuntu may prompt you to:

  • Update the system (run sudo apt update && sudo apt upgrade in terminal if not done automatically).
  • Connect to additional services like Snap Store, Ubuntu One, or printer setup.
  • Configure privacy settings (location, diagnostics, etc.).

Open the Software & Updates application from the Applications menu to:

  • Enable additional repositories (e.g., Universe, Multiverse).
  • Set download server to Main Server or a nearby mirror for faster updates.

Best Practices

Backup Your Data Before Installation

Even if youre dual-booting, installation processes can go wrong. Always back up important files to an external drive or cloud storage before proceeding. Use tools like Timeshift (for system snapshots) or rsync for file-level backups.

Use LTS Versions for Stability

Always choose the Long-Term Support (LTS) release unless you need cutting-edge features for development. LTS versions receive 5 years of security patches and are ideal for production environments, students, and professionals.

Enable Full Disk Encryption (FDE)

If your device contains sensitive data (e.g., personal documents, work files), enable full disk encryption during installation. This protects your data if the device is lost or stolen. Note: FDE may slightly impact performance and requires a strong password.

Separate /home Partition

Creating a dedicated /home partition ensures your personal files, configurations, and downloads remain intact during future Ubuntu upgrades or reinstalls. This saves hours of reconfiguration and file recovery.

Disable Fast Startup in Windows (Dual-Boot Only)

If dual-booting with Windows, disable Fast Startup to avoid filesystem corruption:

  1. Open Control Panel ? Power Options.
  2. Click Choose what the power buttons do.
  3. Click Change settings that are currently unavailable.
  4. Uncheck Turn on fast startup.
  5. Save changes.

Use Official Repositories

Avoid downloading .deb files or software from untrusted websites. Use Ubuntus Software Center, apt, or Snap packages from the Snap Store. This ensures security, automatic updates, and dependency management.

Regular System Updates

Run the following command weekly to keep your system secure:

sudo apt update && sudo apt upgrade -y

For major version upgrades (e.g., 22.04 ? 24.04), use:

sudo do-release-upgrade

Configure a Firewall

Ubuntu comes with UFW (Uncomplicated Firewall) enabled by default. Verify its status:

sudo ufw status

If inactive, enable it:

sudo ufw enable

Install Essential Tools

After installation, install commonly used tools:

  • Terminal: Already installed. Learn basic commands like ls, cd, grep, and find.
  • VS Code: sudo snap install code --classic
  • Docker: sudo apt install docker.io
  • Git: sudo apt install git
  • Flathub: Enable for access to more apps: flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Disable Unnecessary Services

Reduce boot time and resource usage by disabling services you dont need:

systemctl list-unit-files --type=service | grep enabled

Disable services like bluetooth, cups (printing), or avahi-daemon if unused:

sudo systemctl disable bluetooth

Tools and Resources

Essential Tools for Ubuntu Installation and Management

  • Rufus (Windows): Best tool for creating bootable USB drives.
  • BalenaEtcher (Cross-platform): Simple GUI for writing ISOs to USB drives on Windows, macOS, and Linux.
  • dd (Linux/macOS): Command-line utility for low-level disk imaging.
  • GNOME Disks: Built-in utility to check disk health, format drives, and create disk images.
  • Timeshift: System restore tool that creates snapshots of your system state.
  • Ubuntu Documentation: Official guides at help.ubuntu.com.
  • Ubuntu Forums: Community support at ubuntuforums.org.
  • Ask Ubuntu: Stack Exchange Q&A site for troubleshooting: askubuntu.com.

Recommended Software Post-Installation

After installing Ubuntu, install these essential applications:

  • Firefox: Default browser, but you can install Chromium via sudo apt install chromium-browser.
  • LibreOffice: Full office suite (Word, Excel, PowerPoint equivalents).
  • Thunderbird: Email client with calendar integration.
  • Nautilus: Default file manager. Install nautilus-admin for root file access.
  • VirtualBox or GNOME Boxes: For running other OSes in virtual machines.
  • Spotify: sudo snap install spotify
  • Telegram: sudo snap install telegram-desktop
  • PDFtk: For PDF manipulation: sudo apt install pdftk
  • Tree: Visual directory tree: sudo apt install tree

Hardware Compatibility Resources

Before installing, check hardware compatibility:

  • Ubuntu Certified Hardware: ubuntu.com/certified lists laptops, desktops, and servers tested with Ubuntu.
  • Linux Hardware Database: linux-hardware.org search for your laptop model to see if Wi-Fi, GPU, or touchpad work out of the box.

Community and Learning Platforms

  • YouTube Channels: The Linux Experiment, NetworkChuck, DistroTube.
  • Online Courses: Udemys Linux for Beginners, Courseras Introduction to Linux.
  • Books: The Ubuntu Manual, How Linux Works by Brian Ward.

Real Examples

Example 1: Dual-Booting Ubuntu with Windows 11 on a Dell XPS 13

A student wants to use Ubuntu for programming and Windows for gaming. Their Dell XPS 13 has a 512 GB SSD with 300 GB free space.

Steps Taken:

  1. Disabled Secure Boot temporarily in BIOS (required for some NVIDIA drivers).
  2. Shrunk the Windows partition using Disk Management to free up 150 GB.
  3. Created a bootable USB with Ubuntu 24.04 LTS using Rufus.
  4. Booted from USB and selected Install Ubuntu alongside Windows Boot Manager.
  5. Allocated 100 GB for Ubuntu and 50 GB for swap file (due to 8 GB RAM).
  6. Enabled encryption and third-party drivers.
  7. After installation, re-enabled Secure Boot and updated GRUB: sudo update-grub.
  8. Installed VS Code, Docker, and Python 3.12 via apt.

Outcome: Seamless dual-boot. Ubuntu boots in 12 seconds. Wi-Fi, touchscreen, and webcam work without drivers. The student now uses Ubuntu for coding and Windows for gaming, switching via GRUB menu.

Example 2: Installing Ubuntu Server on a Raspberry Pi 5

A hobbyist wants to run a home media server using a Raspberry Pi 5.

Steps Taken:

  1. Downloaded Ubuntu Server 24.04 LTS ARM64 image from ubuntu.com/download/raspberry-pi.
  2. Used BalenaEtcher to flash the image to a 64 GB microSD card.
  3. Created a user-data file in the boot partition to auto-configure SSH and user account (cloud-init).
  4. Inserted SD card into Pi 5, powered on, and connected via Ethernet.
  5. Logged in via SSH using the pre-configured username and password.
  6. Installed Plex Media Server using snap: sudo snap install plexmediaserver.
  7. Configured port forwarding on router and set up dynamic DNS.

Outcome: Fully functional media server accessible from any device on the network. No GUI neededeverything managed via command line. Power consumption: under 8 watts.

Example 3: Installing Ubuntu on an Older Laptop (HP Pavilion dv6)

An individual has a 10-year-old HP laptop with 4 GB RAM and an Intel Core i3. Windows 10 is slow and unresponsive.

Steps Taken:

  1. Downloaded Ubuntu 22.04 LTS (lighter than 24.04).
  2. Used Rufus to create a bootable USB.
  3. Booted from USB and chose Try Ubuntu firstconfirmed Wi-Fi and graphics worked.
  4. Selected Erase disk and install Ubuntu since the laptop was no longer used for Windows.
  5. Used the default partitioning (one root partition, no swap).
  6. Installed only essential software: Firefox, LibreOffice, VLC, and GIMP.
  7. Disabled animations in GNOME Settings ? Accessibility ? Reduce Motion.

Outcome: The laptop now boots in 20 seconds, runs smoothly, and is more responsive than it was with Windows 10. Battery life improved by 30%.

FAQs

Can I install Ubuntu without a USB drive?

Yes, but its complex. You can use tools like Wubi (deprecated), PXE boot over network, or install from within Windows using Windows Subsystem for Linux (WSL). However, WSL is not a full Ubuntu installationits a compatibility layer. For a true, standalone Ubuntu system, a USB drive is the standard and recommended method.

Will installing Ubuntu delete my files?

Only if you choose Erase disk and install Ubuntu. If you select Install alongside Windows, your Windows files remain untouched. Always back up important data before any OS installation.

Do I need antivirus on Ubuntu?

No. Linux systems are inherently more secure due to user permission models and package management. Viruses targeting Ubuntu are extremely rare. However, practice safe computing: avoid running unknown scripts, use sudo sparingly, and keep your system updated.

How long does Ubuntu installation take?

Typically 1530 minutes, depending on your hardware and internet speed. The majority of time is spent copying files and configuring services.

Can I install Ubuntu on a Mac?

Yes, but Apple hardware can have compatibility issues with Wi-Fi, trackpads, and graphics drivers. Use Ubuntu 22.04 LTS or later for better support. Refer to the Ubuntu MacBook wiki for model-specific tips.

What if Ubuntu doesnt boot after installation?

This often happens due to UEFI/BIOS misconfiguration or Secure Boot conflicts. Try:

  • Disabling Secure Boot in BIOS.
  • Reinstalling GRUB from a live USB: sudo mount /dev/sdaX /mnt ? sudo grub-install --boot-directory=/mnt/boot /dev/sda
  • Using Boot-Repair tool: sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt update && sudo apt install boot-repair && boot-repair

Can I upgrade from Ubuntu 20.04 to 24.04?

Yes. Run sudo do-release-upgrade after ensuring your system is fully updated. Make sure you have a backup. Major upgrades can take 12 hours and require a stable internet connection.

Is Ubuntu free to use commercially?

Yes. Ubuntu is free for personal, educational, and commercial use. Canonical offers paid support services for enterprises, but the OS itself remains open-source and free.

How do I know if my GPU is supported?

Most modern GPUs (Intel, AMD, NVIDIA) are supported out of the box. NVIDIA may require proprietary drivers. After installation, open Software & Updates ? Additional Drivers to see if any are available.

Whats the difference between Ubuntu and Linux?

Linux is the kernelthe core of an operating system. Ubuntu is a Linux distribution: a complete OS built around the Linux kernel, with a desktop environment, package manager, and applications. Think of Linux as the engine and Ubuntu as the entire car.

Conclusion

Installing Ubuntu is a straightforward process that opens the door to a powerful, secure, and flexible computing environment. Whether youre a beginner looking to replace Windows, a developer setting up a server, or a hobbyist exploring open-source technology, Ubuntu offers a reliable and user-friendly experience.

This guide has walked you through every critical stepfrom preparing your hardware and creating a bootable USB to configuring user settings and post-installation optimizations. By following best practices like using LTS versions, separating your /home partition, and enabling encryption, you ensure your system remains stable, secure, and efficient for years to come.

Ubuntus strength lies not just in its software, but in its vibrant global community. When you encounter challenges, youre never alone. Forums, documentation, and tutorials are abundant and freely available.

Take the next step: install Ubuntu today. Experience the freedom of open-source software. Discover a faster, more private, and customizable way to compute. And rememberevery expert was once a beginner. Your journey into the world of Linux begins with a single click.