Skip to main content

Ubuntu Installation

Introduction

Ubuntu is one of the most popular Linux distributions, known for its user-friendly interface and strong community support. It's an excellent choice for beginners looking to explore the Linux ecosystem. This guide will walk you through the process of installing Ubuntu on your computer, whether you're installing it as your primary operating system or setting it up alongside Windows or macOS in a dual-boot configuration.

Prerequisites

Before you begin the installation process, you'll need:

  • A computer with at least:
    • 2 GHz dual-core processor
    • 4 GB RAM (system memory)
    • 25 GB of free hard drive space
  • An internet connection (recommended, but not required)
  • A USB flash drive with at least 4 GB of storage
  • Basic knowledge of your computer's BIOS/UEFI settings

Installation Methods

There are several ways to install Ubuntu:

  1. Clean Installation: Replacing your current operating system with Ubuntu
  2. Dual Boot: Installing Ubuntu alongside your existing operating system
  3. Virtual Machine: Running Ubuntu inside your current operating system
  4. Windows Subsystem for Linux (WSL): Running Ubuntu directly within Windows

This guide will focus primarily on methods 1 and 2, as they provide the most complete Ubuntu experience.

Step 1: Download Ubuntu

First, you'll need to download the Ubuntu ISO file:

  1. Visit the official Ubuntu website at ubuntu.com/download/desktop
  2. Choose the latest LTS (Long-Term Support) version for the most stable experience
  3. Click the "Download" button

Step 2: Create a Bootable USB Drive

You'll need to create a bootable USB drive with your Ubuntu ISO file. Here's how:

For Windows Users

  1. Download and install Rufus or balenaEtcher
  2. Insert your USB drive
  3. Open Rufus or balenaEtcher
  4. Select your Ubuntu ISO file
  5. Select your USB drive
  6. Click "Start" or "Flash"

Here's an example of using Rufus:

1. Launch Rufus
2. Under "Device", select your USB drive
3. Under "Boot selection", click "SELECT" and choose your Ubuntu ISO
4. Leave other settings as default
5. Click "START"
6. If prompted about ISO mode, select "Write in ISO Image mode"
7. Click "OK" to confirm that all data on the drive will be destroyed

For macOS Users

  1. Download and install balenaEtcher
  2. Insert your USB drive
  3. Open balenaEtcher
  4. Select your Ubuntu ISO file
  5. Select your USB drive
  6. Click "Flash"

For Linux Users

You can use the dd command:

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

Replace /dev/sdX with your USB drive identifier (use lsblk to find it).

Step 3: Boot from the USB Drive

  1. Insert the bootable USB drive into your computer
  2. Restart your computer
  3. Access the boot menu by pressing a specific key during startup (often F12, F2, F10, or Esc, depending on your computer manufacturer)
  4. Select your USB drive from the boot menu

If your computer boots directly into your existing operating system, you'll need to:

  1. Restart your computer
  2. Enter BIOS/UEFI settings (usually by pressing Del, F2, or F10 during startup)
  3. Navigate to the boot order section
  4. Move USB drive to the top of the boot order
  5. Save changes and exit

Step 4: Start the Installation

Once you've booted from the USB drive, you'll see the Ubuntu welcome screen:

  1. Select "Try or Install Ubuntu"
  2. Wait for the live environment to load
  3. You can either "Try Ubuntu" to explore the OS without installing, or click "Install Ubuntu" to begin installation

Step 5: Installation Setup

Follow these steps to set up your installation:

  1. Select Language: Choose your preferred language and click "Continue"

  2. Keyboard Layout: Select your keyboard layout and click "Continue"

  3. Updates and Software: You'll see these options:

    • Normal installation (recommended)
    • Minimal installation
    • Download updates while installing
    • Install third-party software for graphics and Wi-Fi hardware

    For beginners, select "Normal installation" and check both boxes for updates and third-party software, then click "Continue"

  4. Installation Type: Choose how you want to install Ubuntu:

    • Erase disk and install Ubuntu: This will delete everything on your hard drive and install only Ubuntu (clean installation)
    • Install Ubuntu alongside [existing OS]: This will set up a dual-boot system
    • Something else: For advanced users who want to manually partition their disk

    For a clean installation, select "Erase disk and install Ubuntu" For dual-boot, select "Install Ubuntu alongside [existing OS]"

  5. If you chose dual-boot: You'll see a slider that allows you to allocate space between your existing OS and Ubuntu. Adjust as needed and click "Install Now"

  6. Confirm Changes: Review the changes that will be made to your disk and click "Continue" to confirm

Step 6: Set Up Your User Account

  1. Select your location to set the time zone

  2. Create your user account:

    • Enter your name
    • Choose a computer name
    • Select a username
    • Create a strong password
    • Choose whether to require the password to log in (recommended)
  3. Click "Continue"

Step 7: Installation Process

The installation will now begin. This typically takes 10-20 minutes, depending on your computer's speed and the options you selected.

You'll see a slideshow introducing you to various Ubuntu features while the installation progresses.

Step 8: Restart Your Computer

Once the installation is complete, you'll see a prompt to restart your computer:

  1. Click "Restart Now"
  2. Remove the USB drive when prompted
  3. Press Enter to reboot

Step 9: First Login

After your computer restarts:

  1. If you've installed Ubuntu as the only operating system, you'll see the Ubuntu login screen
  2. If you've set up dual-boot, you'll see the GRUB menu where you can choose between Ubuntu and your other operating system
  3. Enter your password to log in to Ubuntu

Post-Installation Steps

Once you've logged in, here are some recommended next steps:

Update Your System

Open Terminal with Ctrl+Alt+T and run:

bash
sudo apt update
sudo apt upgrade

Install Additional Software

You can install software using the Ubuntu Software Center or via Terminal:

bash
sudo apt install package-name

For example, to install the GIMP image editor:

bash
sudo apt install gimp

Customize Your Desktop

Ubuntu comes with the GNOME desktop environment, which you can customize:

  1. Click on the "Activities" button in the top-left corner
  2. Search for "Settings"
  3. Explore different categories to customize your experience

Troubleshooting Common Issues

Boot Issues

If you can't boot into Ubuntu after installation:

  1. Restart your computer
  2. Access the GRUB menu (if it doesn't appear, hold Shift during startup)
  3. Select "Advanced options for Ubuntu"
  4. Try booting with an older kernel or recovery mode

Graphics Driver Issues

If you experience display problems:

bash
sudo ubuntu-drivers autoinstall

Network Issues

For Wi-Fi problems:

bash
sudo lshw -C network

Look for your network adapter and check if a driver is installed.

Understanding the Ubuntu File System

Ubuntu uses a different file system structure than Windows:

/ (root)
├── /home/username (your personal files)
├── /etc (system configuration)
├── /usr (user programs)
├── /var (variable data)
├── /boot (boot files)
└── /media (mounted devices)

Your personal files are stored in /home/username. This is similar to C:\Users\username in Windows.

Working with the Terminal

The Terminal is a powerful tool in Ubuntu. Here are some basic commands:

bash
# Navigate directories
cd /path/to/directory

# List files
ls

# Create directory
mkdir new-directory

# Copy files
cp file.txt /path/to/destination

# Move/rename files
mv file.txt new-name.txt

# Remove files
rm file.txt

# View file content
cat file.txt

# Edit file
nano file.txt

Ubuntu Release Cycle

Ubuntu has two types of releases:

  1. LTS (Long-Term Support): Released every two years with 5 years of support
  2. Interim Releases: Released every six months with 9 months of support

For beginners, LTS releases are recommended for their stability and long support period.

Summary

Congratulations! You've successfully installed Ubuntu on your computer. This is your first step into the world of Linux. Ubuntu provides a user-friendly interface while still offering the power and flexibility that Linux is known for.

As you become more comfortable with Ubuntu, you can explore more advanced topics like server administration, programming, or system customization.

Additional Resources

Exercises

  1. Update your system using the Terminal commands
  2. Install three applications you find useful via Ubuntu Software Center
  3. Explore the file system using the File Explorer and Terminal
  4. Customize your desktop background and theme
  5. Create a simple bash script that prints "Hello, Ubuntu!" to the Terminal


If you spot any mistakes on this website, please let me know at [email protected]. I’d greatly appreciate your feedback! :)