Ubuntu Installation and Setup

Absolutely. Here’s a beginner-friendly Ubuntu download, installation, and initial setup tutorial for a Windows PC.

1. What you need

Before starting, prepare:

  • A Windows PC/laptop
  • 8 GB or larger USB drive — it will be erased
  • Internet connection
  • At least 25 GB free disk space for Ubuntu
  • Backup of important files

If you want to keep Windows and install Ubuntu alongside it, you should ideally have 50–100 GB of unallocated/free space.


2. Download Ubuntu

For a normal desktop/laptop, download Ubuntu Desktop 26.04 LTS if it is the current LTS release.

Ubuntu Desktop official download page

Choose the 64-bit PC (AMD64) version unless you specifically have an ARM-based computer.

The download will be an .iso file, typically several GB in size.


3. Create a bootable Ubuntu USB

You need software that writes the ISO to your USB.

A simple choice is Rufus.

Rufus official website

Steps

  1. Insert your USB drive.
  2. Open Rufus.
  3. Under Device, select your USB.
  4. Under Boot selection, choose the Ubuntu .iso file.
  5. Use:
    • Partition scheme: GPT
    • Target system: UEFI
  6. Click Start.
  7. If Rufus asks about ISO/Image mode, choose ISO Image mode.
  8. Wait for it to finish.

⚠️ Everything on the USB will be erased.


4. Boot your computer from the USB

Restart your PC with the Ubuntu USB plugged in.

As the computer starts, repeatedly press the boot-menu key.

Common keys are:

ManufacturerBoot key
DellF12
HPEsc or F9
LenovoF12
ASUSF8 or Esc
AcerF12
MSIF11
GigabyteF12

Select your USB drive.

You should see the Ubuntu startup screen.

Choose:

Try or Install Ubuntu


5. Start the Ubuntu installer

Ubuntu will load the desktop.

You can test Ubuntu first without installing it.

When you’re ready, double-click:

Install Ubuntu

The installer will guide you through several steps.


6. Choose your keyboard

Select your keyboard layout.

For most users:

English (US)

Then click Continue.

You can test the keyboard in the text box provided.


7. Connect to the Internet

Connect using:

  • Wi-Fi, or
  • Ethernet

Internet access is recommended because Ubuntu can download updates during installation.


8. Choose installation type

This is one of the most important steps.

You’ll typically see options such as:

Option A — Erase disk and install Ubuntu

Choose this if you want Ubuntu only.

⚠️ This will remove Windows and everything else on the selected disk.


Option B — Install Ubuntu alongside Windows

Choose this if you want:

Windows + Ubuntu

This creates a dual-boot system.

When you start your computer, you’ll be able to choose which operating system to use.


Option C — Manual partitioning

Choose this if you already understand Linux partitions such as:

/
swap
/home
EFI

For your first Ubuntu installation, I recommend not using manual partitioning unless you specifically need it.


9. Create your Ubuntu user

You’ll be asked for information such as:

Your name:
Computer name:
Username:
Password:

For example:

Your name: Devesh
Computer name: ubuntu-pc
Username: devesh
Password: ********

Your username will be used in the terminal.

For example:

/home/devesh

10. Finish the installation

Ubuntu will copy the files to your hard drive.

This can take several minutes.

When it finishes:

Restart Now

Remove the USB when Ubuntu tells you to.

Your computer should now boot into Ubuntu.


11. First thing to do after installation

Open Terminal.

The shortcut is:

Ctrl + Alt + T

Run:

sudo apt update

Then:

sudo apt upgrade -y

These commands update Ubuntu’s package information and install available updates.


12. Install useful development tools

Since you’re also working with Java/Maven, you can set up your development environment immediately.

Install Git, Java, Maven and common build tools:

sudo apt install git curl wget unzip build-essential maven -y

Check Java:

java -version

Check Maven:

mvn -version

Check Git:

git --version

13. Install Java

For modern Java development, you can install OpenJDK.

For example:

sudo apt install openjdk-21-jdk -y

Then:

java -version

You should see something similar to:

openjdk version "21..."

Check the compiler:

javac -version

14. Test your Ubuntu installation

Create a test directory:

mkdir ~/projects
cd ~/projects

Create a file:

nano hello.sh

Put:

#!/bin/bash

echo "Hello Ubuntu!"

Save with:

Ctrl + O
Enter
Ctrl + X

Make it executable:

chmod +x hello.sh

Run it:

./hello.sh

You should get:

Hello Ubuntu!

15. Useful Ubuntu commands

Start learning these commands:

pwd

Shows your current directory.

ls

Lists files.

cd folder

Changes directory.

mkdir test

Creates a directory.

touch file.txt

Creates a file.

cp file.txt backup.txt

Copies a file.

mv file.txt newfile.txt

Moves/renames a file.

rm file.txt

Deletes a file.

sudo apt update

Updates package information.

sudo apt install package-name

Installs software.

clear

Clears the terminal.


Recommended setup for your Java development

Since your previous topic was Java + Maven, I’d suggest this sequence after Ubuntu is installed:

Ubuntu
  │
  ├── Git
  │
  ├── Java JDK 21
  │
  ├── Maven
  │
  ├── VS Code / IntelliJ IDEA
  │
  └── GitHub

Then create your first Maven project:

mvn archetype:generate

or, preferably, create a clean Maven project with a pom.xml, src/main/java, and src/test/java structure and run your first Hello World application.

If you’re installing Ubuntu alongside Windows, pay particular attention to the disk-partitioning and Secure Boot steps—that’s where beginners are most likely to accidentally erase Windows.

Leave a Reply

Your email address will not be published. Required fields are marked *