How to Install Ubuntu

How to Install Ubuntu Ubuntu is one of the most popular and widely used Linux distributions in the world, trusted by developers, enterprises, educators, and home users alike. Known for its stability, security, and user-friendly interface, Ubuntu offers a powerful alternative to proprietary operating systems like Windows and macOS. Whether you're looking to revitalize an old computer, build a devel

Nov 10, 2025 - 11:19
Nov 10, 2025 - 11:19
 0

How to Install Ubuntu

Ubuntu is one of the most popular and widely used Linux distributions in the world, trusted by developers, enterprises, educators, and home users alike. Known for its stability, security, and user-friendly interface, Ubuntu offers a powerful alternative to proprietary operating systems like Windows and macOS. Whether you're looking to revitalize an old computer, build a development environment, or simply explore open-source software, installing Ubuntu is a transformative step toward greater control, privacy, and performance.

This guide provides a comprehensive, step-by-step walkthrough on how to install Ubuntu on a variety of hardware configurations. From preparing your installation media to configuring your system post-installation, we cover every critical phase in detail. Youll also learn best practices to avoid common pitfalls, discover essential tools to enhance your experience, and see real-world examples of Ubuntu deployments. By the end of this tutorial, youll have the confidence and knowledge to install Ubuntu successfullyno prior Linux experience required.

Step-by-Step Guide

Step 1: Choose the Right Ubuntu Version

Before beginning the installation, its essential to select the correct Ubuntu edition for your needs. Ubuntu offers several variants, each tailored for specific use cases:

  • Ubuntu Desktop Ideal for personal computers, laptops, and general use. Features the GNOME desktop environment and includes a full suite of productivity applications.
  • Ubuntu Server Designed for servers, cloud environments, and headless systems. No graphical interface by default, optimized for performance and remote management.
  • Ubuntu Studio Tailored for multimedia creators, with pre-installed audio, video, and graphics tools.
  • Kubuntu, Xubuntu, Lubuntu Community editions using different desktop environments (KDE, XFCE, LXQt) for lighter resource usage or aesthetic preferences.

For most users, especially those new to Linux, Ubuntu Desktop is the recommended choice. Ensure you download the latest Long-Term Support (LTS) version, such as Ubuntu 22.04 LTS or Ubuntu 24.04 LTS, which receive five years of security updates and maintenance.

Step 2: Check System Requirements

Ubuntu is designed to run efficiently on a wide range of hardware, but meeting minimum requirements ensures a smooth installation and optimal performance:

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

If you're installing on older hardware, consider lightweight alternatives like Xubuntu or Lubuntu. For virtual machines or cloud deployments, ensure your hypervisor (e.g., VirtualBox, VMware, Hyper-V) supports 64-bit operating systems and has virtualization extensions (Intel VT-x or AMD-V) enabled in the BIOS/UEFI.

Step 3: Download the Ubuntu ISO File

Visit the official Ubuntu website at ubuntu.com/download/desktop to download the latest LTS version. Avoid third-party sites or mirrors that may host modified or compromised versions.

Once on the page, click the Download button to begin downloading the .iso file. The file size is typically between 35 GB, depending on the version. Use a reliable internet connection and verify the download using the provided SHA256 checksum:

  • On Windows: Use PowerShell with the command Get-FileHash -Algorithm SHA256 <path-to-iso>
  • On macOS: Use Terminal with shasum -a 256 <path-to-iso>
  • On Linux: Use sha256sum <path-to-iso>

Compare the output with the checksum listed on the Ubuntu download page. A mismatch indicates a corrupted downloadre-download the file immediately.

Step 4: Create a Bootable USB Drive

To install Ubuntu, youll need a bootable USB drive with at least 4 GB of storage. Heres how to create one on different operating systems:

On Windows:

Use the official Rufus tool (https://rufus.ie), a free, open-source utility trusted by millions:

  1. Insert a USB drive into your computer.
  2. Launch Rufus.
  3. Under Device, select your USB drive.
  4. Click SELECT next to Boot selection and choose the Ubuntu ISO file you downloaded.
  5. Ensure Partition scheme is set to GPT for UEFI systems or MBR for older BIOS systems.
  6. Set File system to FAT32.
  7. Click START. Rufus will warn you that all data on the USB will be erasedconfirm to proceed.
  8. Wait for the process to complete. This may take 515 minutes depending on your USB speed.

On macOS:

Use the built-in Terminal application:

  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 with: diskutil unmountDisk /dev/disk2 (replace disk2 with your device).
  5. Convert the ISO to a .img file: hdiutil convert -format UDRW -o ~/Downloads/ubuntu.img ~/Downloads/ubuntu-24.04-desktop-amd64.iso
  6. Write the image to the USB: sudo dd if=~/Downloads/ubuntu.img.dmg of=/dev/disk2 bs=1m
  7. Wait for completion (may take 1020 minutes). When done, eject the drive with diskutil eject /dev/disk2.

On Linux:

Use the built-in Startup Disk Creator or the command line:

  1. Insert the USB drive.
  2. Open Startup Disk Creator from your applications menu.
  3. Select the Ubuntu ISO and your USB drive.
  4. Click Make Startup Disk.

Alternatively, use the terminal:

sudo dd if=/path/to/ubuntu.iso of=/dev/sdX bs=4M status=progress oflag=sync

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

Step 5: Boot from the USB Drive

Restart your computer with the USB drive inserted. You must change the boot order to prioritize the USB device:

  • As your computer powers on, press the appropriate key to enter the BIOS/UEFI setup (commonly F2, F12, DEL, or ESCcheck your manufacturers documentation).
  • Navigate to the Boot or Boot Order menu.
  • Move the USB drive to the top of the boot sequence.
  • Save changes and exit (usually F10).

Your computer should now boot into the Ubuntu live environment. Youll see the Ubuntu logo with options to Try Ubuntu or Install Ubuntu.

Step 6: Try Ubuntu (Optional but Recommended)

Before installing, select Try Ubuntu to test hardware compatibility. This runs Ubuntu entirely from RAM without modifying your hard drive.

Check the following:

  • Wi-Fi connectivity
  • Sound output
  • Touchpad and mouse functionality
  • Display resolution and dual-monitor support
  • Camera and microphone (if applicable)

If everything works, proceed with installation. If hardware isnt recognized, you may need to install proprietary drivers later or consider a different kernel version.

Step 7: Begin the Installation Process

Click the Install Ubuntu icon on the desktop. The installer is intuitive and guides you through the following steps:

Language Selection

Choose your preferred language. This setting affects the system interface and regional settings.

Keyboard Layout

Select your keyboard layout. The installer may auto-detect based on your location. Confirm the layout by typing a few characters in the test box.

Updates and Third-Party Software

Youll be prompted to select:

  • Download updates while installing Ubuntu Recommended for the latest security patches.
  • Install third-party software Enables proprietary drivers for graphics cards, Wi-Fi adapters, and multimedia codecs (e.g., MP3, DVD playback).

Check both boxes unless you have specific reasons to avoid them.

Installation Type

This is the most critical step. Youll see several options:

  • Erase disk and install Ubuntu Wipes the entire disk and installs Ubuntu as the sole OS. Ideal for new users or systems dedicated to Linux.
  • Install Ubuntu alongside another OS Creates a dual-boot setup with Windows or macOS. The installer automatically partitions the drive.
  • Something else Manual partitioning for advanced users. Allows full control over mount points, file systems, and swap space.

For beginners, select Erase disk and install Ubuntu if youre replacing an existing OS. For dual-booting, choose Install Ubuntu alongside Windows Boot Manager.

Partitioning (Advanced Users Only)

If you select Something else, youll see a partition table. Heres a recommended layout for a standard desktop installation:

  • / (root) 2030 GB, ext4 file system. This is where the OS and applications are installed.
  • /home Remaining space, ext4. This stores your personal files, documents, and settings. Separating /home allows you to reinstall Ubuntu without losing data.
  • swap 24 GB, swap area. Useful for hibernation and memory management. On systems with 8+ GB RAM, swap is optional but still recommended.
  • /boot/efi 512 MB, FAT32. Required for UEFI systems. Only create this if youre installing on a UEFI machine with existing Windows.

Click Install Now after confirming your partitions. The installer will warn you about data lossensure youve backed up critical files.

Step 8: Set Up User Account

Provide the following details:

  • Your name (used as the display name)
  • Computer name (default: ubuntu)
  • Username (used for login and home directory)
  • Password (required for login and sudo privileges)
  • Option to Log in automatically Disable this for security on shared or public machines.

Click Continue. The installer will now copy files and configure your system. This step typically takes 1020 minutes.

Step 9: Complete Installation and Reboot

Once installation is complete, youll see a Installation Complete message. Click Restart Now.

Remove the USB drive when prompted. Your computer will reboot into the newly installed Ubuntu system.

Step 10: First Boot and Initial Setup

Upon first login, youll see the Ubuntu desktop. The system may prompt you to:

  • Connect to Wi-Fi (if not already connected during installation)
  • Set up screen lock and privacy settings
  • Join the Ubuntu community (optional)
  • Install updates (recommended)

Open the Software & Updates application from the application menu to ensure all repositories are enabled, including Proprietary drivers for devices and Community-maintained free and open-source software (universe).

Run a system update immediately:

sudo apt update && sudo apt upgrade -y

Reboot again if a new kernel was installed.

Best Practices

Backup Your Data Before Installation

Regardless of the installation method, always back up critical files from your existing system. Even install alongside options carry a small risk of data loss due to partitioning errors or power failures. Use an external drive, cloud storage, or network share to store documents, photos, and other important data.

Use a Stable LTS Release

Ubuntu releases a new version every six months, but only Long-Term Support (LTS) versions receive five years of security patches. For production systems, servers, or machines you rely on daily, always choose an LTS release (e.g., 22.04, 24.04). Non-LTS versions are suitable for testing or short-term projects.

Enable Full Disk Encryption (FDE)

During installation, check the box labeled Encrypt the new Ubuntu installation for security. This uses LUKS (Linux Unified Key Setup) to encrypt your entire root partition. While it adds a slight performance overhead and requires entering a passphrase at boot, it protects your data if the device is lost or stolen.

Separate /home from Root

Creating a dedicated /home partition during installation allows you to reinstall Ubuntu without losing personal files, configurations, and application settings. This is invaluable for long-term users who frequently upgrade or troubleshoot their systems.

Disable Fast Startup in Windows (Dual Boot)

If youre dual-booting with Windows, disable Fast Startup in Windows Power Options. This feature puts Windows into a hibernation state instead of a full shutdown, which can cause filesystem corruption when accessing NTFS partitions from Ubuntu.

Use a Wired Connection During Installation

While Wi-Fi is supported, a wired Ethernet connection ensures a stable download of updates and drivers during installation. Wireless drivers may not be available until after the OS is installed, especially for Broadcom or Intel Wi-Fi chips.

Avoid Installing Unnecessary Software

Ubuntu comes with a clean, minimal set of applications. Avoid installing bloated third-party software from untrusted sources. Use the official Ubuntu Software Center or APT repositories to install applications. For example, install VLC with:

sudo apt install vlc

Not from a .deb file downloaded from random websites.

Regularly Update Your System

Ubuntus security model relies on timely updates. Set up automatic updates via Software & Updates ? Updates tab, or use a cron job to run:

sudo apt update && sudo apt upgrade -y

Weekly or daily, depending on your usage.

Use a Non-Root User Account

Never log in as root. Ubuntu creates a standard user account with sudo privileges. Use sudo only when necessary for administrative tasks. This minimizes the risk of accidental system damage or malware infection.

Tools and Resources

Essential Tools for Ubuntu Users

After installation, consider installing these tools to enhance productivity and system management:

  • GNOME Extensions Customize your desktop with themes, applets, and productivity tools via extensions.gnome.org.
  • Timeshift System snapshot tool that creates restore points for your OS (like Windows System Restore). Install via: sudo apt install timeshift.
  • Timeshift System snapshot tool that creates restore points for your OS (like Windows System Restore). Install via: sudo apt install timeshift.
  • Stacer System optimizer and monitor for cleaning cache, managing startup apps, and viewing resource usage. Install via: sudo apt install stacer.
  • Postman API testing tool for developers.
  • Visual Studio Code Lightweight, powerful code editor with rich extensions. Download from code.visualstudio.com.
  • Docker Containerization platform for developers. Install with: sudo apt install docker.io and add your user to the docker group: sudo usermod -aG docker $USER.

Official Documentation and Community Support

Ubuntu has one of the most comprehensive and accessible documentation ecosystems in the Linux world:

  • Ubuntu Help help.ubuntu.com Official user guides, installation manuals, and troubleshooting.
  • Ubuntu Community Forums askubuntu.com Q&A site where millions of questions have been answered by experienced users.
  • Ubuntu Discourse discourse.ubuntu.com For discussions on development, policy, and future releases.
  • Ubuntu Wiki wiki.ubuntu.com Technical documentation for advanced users and system administrators.

Terminal Essentials

Mastering the command line is key to unlocking Ubuntus full potential. Learn these essential commands:

  • ls List directory contents
  • cd Change directory
  • pwd Print working directory
  • sudo Execute command as superuser
  • apt update Refresh package list
  • apt upgrade Install available updates
  • apt install <package> Install software
  • apt remove <package> Uninstall software
  • systemctl status <service> Check service status
  • journalctl -xe View system logs

Virtualization for Safe Testing

Before installing Ubuntu on physical hardware, test it in a virtual machine:

  • VirtualBox Free, cross-platform virtualization tool from Oracle.
  • VMware Workstation Player Free for personal use, excellent performance.
  • Hyper-V Built into Windows 10 Pro and Windows 11 Pro.

Virtual machines allow you to experiment with Ubuntu without affecting your primary OS. You can also take snapshots and revert to clean states instantly.

Real Examples

Example 1: Installing Ubuntu on an Old Laptop

John, a college student, had a 2013 Dell Inspiron with 4 GB RAM and a 128 GB SSD running Windows 7. The system was slow and insecure. He followed this process:

  • Downloaded Ubuntu 22.04 LTS ISO.
  • Used Rufus to create a bootable USB.
  • Booted from USB and selected Erase disk and install Ubuntu.
  • Enabled encryption and set a strong password.
  • After installation, ran sudo apt update && sudo apt upgrade.
  • Installed Firefox, LibreOffice, and VLC.

Result: The laptop now boots in under 15 seconds, runs smoothly, and supports modern web apps. John uses it daily for research, writing, and streaming.

Example 2: Dual Booting Ubuntu with Windows 11

Sarah, a graphic designer, wanted to use Linux for coding and video editing but needed Windows for Adobe Creative Cloud. She:

  • Shrunk her Windows partition to 200 GB using Disk Management.
  • Created a 50 GB unallocated space for Ubuntu.
  • Disabled Fast Startup in Windows.
  • Installed Ubuntu 24.04 LTS using Install Ubuntu alongside Windows Boot Manager.
  • Selected Encrypt the installation for security.

After rebooting, she saw the GRUB bootloader with options for Ubuntu and Windows. She could switch between both systems seamlessly. She later installed Kdenlive and Blender via Snap and used WSL2 for occasional Windows-only tools.

Example 3: Ubuntu Server for a Home Media Center

David wanted to turn an old PC into a media server using Plex. He:

  • Downloaded Ubuntu Server 22.04 LTS.
  • Installed it on a 1 TB HDD with a 50 GB root partition and 950 GB for /srv/media.
  • Disabled the GUI to save resources.
  • Installed Docker and ran the official Plex container:
docker run -d \

--name=plex \

--restart=always \

-p 32400:32400/tcp \

-p 3005:3005/tcp \

-p 8324:8324/tcp \

-p 32469:32469/tcp \

-p 1900:1900/udp \

-p 32410:32410/udp \

-p 32412:32412/udp \

-p 32413:32413/udp \

-p 32414:32414/udp \

-v /srv/media:/data \

-v /srv/plex:/config \

plexinc/pms-docker

He accessed the Plex web interface from any device on his network. The server runs 24/7 with minimal power consumption and zero maintenance.

FAQs

Can I install Ubuntu without a USB drive?

Yes, but its not recommended for beginners. You can use tools like UNetbootin to install from within Windows, or use WSL (Windows Subsystem for Linux) to run Ubuntu alongside Windows. However, these methods dont provide a full native installation. For a true Ubuntu experience, a USB drive is the standard and safest method.

Will installing Ubuntu delete my files?

If you choose Erase disk and install Ubuntu, all data on that disk will be permanently deleted. If you choose Install alongside Windows, your Windows files remain intact. Always back up important data before proceeding.

How much disk space does Ubuntu need?

Ubuntu requires a minimum of 25 GB for the base system. However, we recommend at least 50100 GB to accommodate applications, updates, and personal files. For servers or media workstations, 250 GB or more is ideal.

Do I need antivirus on Ubuntu?

Linux-based systems like Ubuntu are inherently more secure than Windows due to user permissions, package management, and lower malware targeting. While antivirus software exists (e.g., ClamAV), its rarely necessary for personal use. Focus on keeping your system updated and avoiding untrusted software sources.

Can I run Windows programs on Ubuntu?

Some Windows programs can run using Wine (a compatibility layer) or PlayOnLinux. However, compatibility varies. For critical applications, use native Linux alternatives (e.g., LibreOffice instead of Microsoft Office, GIMP instead of Photoshop) or dual-boot with Windows.

What if my Wi-Fi doesnt work after installation?

Many Wi-Fi adapters require proprietary drivers. Open Software & Updates ? Additional Drivers tab. Ubuntu will scan and suggest available drivers. Select the recommended one and click Apply Changes. Reboot afterward.

Is Ubuntu free to use?

Yes. Ubuntu is completely free to download, use, and share. It is developed by Canonical and the global open-source community. There are no licenses, subscriptions, or hidden fees.

How do I update Ubuntu?

Open the terminal and run:

sudo apt update && sudo apt upgrade -y

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

sudo do-release-upgrade

Ensure your system is fully updated before initiating a release upgrade.

Can I install Ubuntu on a Mac?

Yes, but it requires additional steps. Apples hardware (especially M1/M2 chips) uses ARM architecture, which is not officially supported by standard Ubuntu. Use Ubuntu Server for ARM or specialized distributions like Ubuntu for Raspberry Pi. For Intel-based Macs, Ubuntu installs like a standard PC with minor driver adjustments.

How do I uninstall Ubuntu and return to Windows?

If you dual-booted:

  • Boot into Windows.
  • Open Disk Management.
  • Delete the Ubuntu partitions (ext4, swap, EFI if created).
  • Extend your Windows partition to reclaim space.
  • Use a Windows recovery disk or command prompt to repair the bootloader: bootrec /fixmbr and bootrec /fixboot.

If you replaced Windows entirely, youll need to reinstall Windows from a recovery USB or restore partition.

Conclusion

Installing Ubuntu is a straightforward, empowering process that opens the door to a secure, flexible, and highly customizable computing experience. Whether youre upgrading an aging machine, building a development environment, or exploring open-source technology, Ubuntu delivers performance and reliability without compromise.

This guide has walked you through every phasefrom selecting the right version and preparing your installation media to configuring your system for long-term use. Youve learned best practices to avoid common pitfalls, explored essential tools to enhance productivity, and seen real-world examples of Ubuntu in action.

Remember: the key to success lies in preparation, patience, and curiosity. Dont be afraid to experiment. Ubuntu is designed to be forgivingmistakes can be undone, and learning is built into the process.

As you continue your journey with Ubuntu, youll discover a vibrant community, a wealth of free software, and a philosophy centered on openness and collaboration. Welcome to the world of Linuxyour system, your rules.