1️⃣ Prerequisites ⇒

Before starting, ensure you have:

AWS account with an Ubuntu EC2 instance created

SSH client like Putty to access the instance

Root or sudo access


2️⃣ Setting Up Ubuntu Environment ⇒

🔹 Step 1: Access the Instance

Login to your AWS EC2 instance using Putty or a terminal:

login as: ubuntu

🔹 Step 2: Update System Packages

Ensure your system has the latest package updates:

sudo apt-get update

3️⃣ Install Java (Jenkins Dependency) ⇒

🔹 Step 3: Check Available Java Versions

sudo apt-cache search openjdk

🔹 Step 4: Install OpenJDK 8