Ubuntu, a remarkably versatile and user-friendly Linux distribution, has become a cornerstone for developers, system administrators, and tech enthusiasts alike. Its open-source nature, robust security features, and extensive software repository make it an attractive choice for a wide range of applications, from desktop computing to powerful server environments. This guide will walk you through the process of installing Ubuntu, ensuring a smooth and successful setup.
Preparing for Installation
Before embarking on the installation journey, several preparatory steps are crucial to guarantee a seamless experience. These steps ensure that your system is ready, your data is secure, and you have all the necessary components.

Choosing Your Ubuntu Version
Canonical, the company behind Ubuntu, releases new versions regularly, with Long-Term Support (LTS) releases offering five years of free security and maintenance updates, making them ideal for most users seeking stability. For those who prefer the very latest features and are comfortable with more frequent upgrades, interim releases are available. Decide which version best suits your needs, considering the trade-off between stability and cutting-edge features. LTS versions are generally recommended for production environments and users who prioritize reliability.
System Requirements
While Ubuntu is known for its relatively modest hardware requirements, especially compared to some proprietary operating systems, it’s wise to check the official documentation for the specific version you intend to install. Generally, for a desktop installation, you’ll need:
- Processor: A dual-core processor or better.
- RAM: At least 4GB of RAM is recommended for a smooth desktop experience.
- Storage: A minimum of 25GB of free hard-disk space. More is always better, especially if you plan to install many applications or store large files.
- Display: A display capable of at least 1024×768 resolution.
- Internet Connection: While not strictly mandatory for a basic installation, an internet connection is highly recommended for downloading updates and additional software during and after the installation process.
Backing Up Your Data
This is arguably the most critical step. Installing an operating system, especially on a system that already contains data, carries inherent risks. A misstep during partitioning or formatting can lead to data loss. Therefore, it is imperative to back up all your important files, documents, photos, and any other data you cannot afford to lose. Utilize external hard drives, cloud storage services, or network-attached storage (NAS) devices to create a comprehensive backup.
Creating Installation Media
To install Ubuntu, you will need bootable installation media. The most common methods involve using a USB flash drive or a DVD.
Downloading the Ubuntu ISO Image
The first step is to download the appropriate Ubuntu ISO (International Organization for Standardization) image file. Visit the official Ubuntu website (ubuntu.com) and navigate to the Downloads section. Select the desired version (e.g., Ubuntu Desktop LTS). The download size can vary, but expect it to be a few gigabytes.
Creating a Bootable USB Drive
Once you have the ISO image, you need to write it to a USB flash drive (at least 8GB is recommended) in a way that makes it bootable. Several free tools can help with this process:
- Rufus (Windows): A popular and straightforward utility for creating bootable USB drives. Simply select your USB drive, browse to the Ubuntu ISO file, and click “Start.”
- Etcher (Windows, macOS, Linux): A beautifully designed and easy-to-use application that works across multiple operating systems. It provides a graphical interface to select your ISO, your USB drive, and flash it.
- Startup Disk Creator (Ubuntu/Linux): If you are already running a Linux distribution, this built-in tool makes creating a bootable USB incredibly simple.
Creating a Bootable DVD (Less Common)
If you prefer to use a DVD, you will need a DVD burner and blank DVDs. Most operating systems have built-in software or offer free utilities to “burn” an ISO image to a DVD. Ensure you select the option to burn the image file directly, not just copy the file onto the disc.
Understanding Partitioning
During the installation, you will be asked to partition your hard drive. This involves dividing your storage space into different sections (partitions) for the operating system, user files, and other data. Understanding basic partitioning concepts will help you make informed decisions.
- Automatic Partitioning: For beginners, Ubuntu offers automatic partitioning options, such as “Erase disk and install Ubuntu.” This will format your entire hard drive and install Ubuntu, which is suitable if you are dedicating the entire drive to Ubuntu or have already backed up your data.
- Manual Partitioning (Advanced): For users who want more control, the “Something else” option allows manual partitioning. Key partitions to consider include:
- Root Partition (
/): Where the operating system files are installed. - Swap Partition: Used as virtual RAM when your physical RAM is full. The recommended size is often equal to your RAM, but it can be smaller if you have ample RAM or larger if you use hibernation.
- Home Partition (
/home): This is where your personal files and user settings are stored. Separating/homefrom the root partition allows you to reinstall or upgrade Ubuntu without losing your personal data.
- Root Partition (
The Installation Process
With your installation media ready and your system prepared, it’s time to begin the Ubuntu installation.
Booting from Installation Media
- Insert Media: Insert your bootable USB drive or DVD into your computer.
- Restart Your Computer: Restart your computer.
- Access Boot Menu/BIOS/UEFI: As your computer boots, you’ll need to access the boot menu or your system’s BIOS/UEFI settings to tell it to boot from your USB drive or DVD instead of your hard drive. The key to press varies by manufacturer but is often one of
F2,F10,F12,Del, orEsc. Look for a message on the screen during startup, such as “Press F12 for Boot Menu” or “Press DEL to enter Setup.” - Select Boot Device: In the boot menu or BIOS/UEFI, select your USB drive or DVD drive as the primary boot device.
- Save and Exit: Save your changes in the BIOS/UEFI and exit. Your computer should now boot from the installation media.
Ubuntu Welcome Screen
You will be greeted by the Ubuntu welcome screen. Here, you’ll have two primary options:

- Try Ubuntu: This option allows you to run Ubuntu directly from the USB drive or DVD without making any changes to your hard drive. It’s an excellent way to test compatibility with your hardware and explore the Ubuntu desktop environment before committing to an installation.
- Install Ubuntu: This option initiates the installation process.
Select “Install Ubuntu” to proceed.
Keyboard Layout and Updates
The installer will guide you through a series of steps:
- Welcome: This screen presents the “Try Ubuntu” and “Install Ubuntu” options again.
- Keyboard Layout: Choose the keyboard layout that matches your physical keyboard (e.g., English (US)). You can test your selection in the provided text box.
- Updates and Other Software: This is an important configuration screen.
- Normal installation: Installs a web browser, utilities, office software, games, and media players.
- Minimal installation: Installs a web browser and basic utilities.
- Download updates while installing Ubuntu: Highly recommended if you have an internet connection. This ensures you start with the latest software versions and security patches.
- Install third-party software for graphics and Wi-Fi hardware and additional media formats: This option is also highly recommended as it installs proprietary drivers and codecs that are often necessary for optimal performance of graphics cards, Wi-Fi adapters, and for playing various media files.
Installation Type (Partitioning)
This is where you decide how Ubuntu will be installed on your hard drive.
- Erase disk and install Ubuntu: This is the simplest option. It will wipe the entire hard drive and install Ubuntu. Ensure you have backed up all your data before choosing this option.
- Install Ubuntu alongside [Existing OS]: If you have another operating system (like Windows) installed, this option will attempt to resize its partition and create space for Ubuntu. This is a convenient way to set up a dual-boot system.
- Something else: This option provides full control over partitioning. You will manually create, delete, and resize partitions. This is for advanced users who want to customize their disk layout, such as creating separate
/homepartitions or specifying custom partition sizes.
Manual Partitioning Guide (If “Something else” is chosen)
- Identify Free Space: Locate the free space on your drive where you want to install Ubuntu.
- Create Root Partition (
/):- Select the free space.
- Click the “+” button to create a new partition.
- Size: At least 20-30 GB, depending on your software needs.
- Type: Primary.
- Location: Beginning of this space.
- Use as: Ext4 journaling file system.
- Mount point:
/(This designates it as the root partition).
- Create Swap Partition (Optional but Recommended):
- Select remaining free space.
- Click “+”.
- Size: Typically equal to your RAM size (e.g., 4GB for 4GB RAM). If you have a lot of RAM (16GB+), you might opt for less swap.
- Type: Primary.
- Location: Beginning of this space.
- Use as: swap area.
- Create Home Partition (
/home) (Recommended):- Select remaining free space.
- Click “+”.
- Size: Allocate the remaining space here.
- Type: Primary.
- Location: Beginning of this space.
- Use as: Ext4 journaling file system.
- Mount point:
/home.
- Device for boot loader installation: This should typically be your main hard drive (e.g.,
/dev/sdaor/dev/nvme0n1).
After configuring your partitions, click “Install Now.” You will receive a warning about the changes that will be made to your disk. Confirm to proceed.
Location, User Creation, and Installation
- Where are you? Select your geographical location to set the correct time zone.
- Who are you? Create your user account.
- Your name: Your full name.
- Your computer’s name: A hostname for your computer on the network (e.g.,
my-ubuntu-pc). - Pick a username: A short, lowercase name for your login (e.g.,
john). - Choose a password: A strong password for your account.
- Confirm your password: Re-enter your password.
- Log in automatically or Require my password to log in: For security, it’s generally recommended to require a password.
- Installation Progress: The installer will now copy files and configure your system. This process can take anywhere from 15 minutes to over an hour, depending on your hardware speed and whether you chose to download updates during installation.
Installation Complete
Once the installation is finished, you will see a message prompting you to restart your computer.
- Restart: Click “Restart Now.”
- Remove Installation Media: The installer will likely prompt you to remove the installation media (USB drive or DVD) and press Enter. Do this to prevent your computer from booting from the media again.
Post-Installation Steps
After your computer restarts into your new Ubuntu installation, there are a few essential steps to perform to ensure your system is fully up-to-date and optimized.
First Boot and Login
You will be presented with the Ubuntu login screen. Enter your password to log in to your new desktop environment.
Update Your System
Even if you chose to download updates during installation, it’s always a good practice to run a full system update immediately after the first boot.
- Open Terminal: Search for “Terminal” in the application menu or press
Ctrl+Alt+T. - Run Update Commands:
bash
sudo apt update
sudo apt upgrade
sudo(superuser do) grants administrative privileges to the command.apt updaterefreshes the list of available packages from the repositories.apt upgradeinstalls the latest versions of all currently installed packages.
You will be prompted for your password. Type it in (you won’t see characters appear) and press Enter.
Install Additional Drivers
If you installed third-party software during installation, most necessary drivers should already be in place. However, for graphics cards (especially NVIDIA or AMD) or certain Wi-Fi adapters, it’s sometimes beneficial to install proprietary drivers for better performance and compatibility.
- Open “Software & Updates”: Search for it in the application menu.
- Navigate to “Additional Drivers”: Go to the “Additional Drivers” tab.
- Select Drivers: The system will scan for available proprietary drivers. Select the recommended driver for your hardware and click “Apply Changes.” You may need to restart your computer after installing these drivers.

Explore and Customize
Now that Ubuntu is installed and updated, you can begin exploring its features and customizing it to your preferences.
- Software Center: Ubuntu’s Software Center is your gateway to thousands of free and paid applications. You can easily search for and install software for productivity, entertainment, development, and more.
- Settings: The Settings application allows you to configure your desktop appearance, network connections, power management, sound, and various other system aspects.
- Theming and Customization: You can change wallpapers, themes, icons, and adjust panel layouts to personalize your Ubuntu experience.
By following these steps, you will have successfully installed Ubuntu and are ready to enjoy the power and flexibility of this leading Linux distribution.
