Commands Used in This Video
Step 1: Update Ubuntu packages
sudo apt update
Step 2: Install Java 21 and Fontconfig
sudo apt install fontconfig openjdk-21-jre -y
Verify Java
java -version
Step 3: Download the Jenkins GPG Key
sudo wget -O /etc/apt/keyrings/jenkins-keyring.asc \
https://pkg.jenkins.io/debian-stable/jenki...
Step 4: Add Jenkins Repository
echo "deb [signed-by=/etc/apt/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian-stable binary/" | sudo tee /etc/apt/sources.list.d/jenkins.list (**note - use greater than symbol here) /dev/null
Step 5: Update Package List
sudo apt update
Step 6: Install Jenkins
sudo apt install jenkins -y
Step 7: Start Jenkins
sudo systemctl start jenkins
Step 8: Enable Jenkins at Boot
sudo systemctl enable jenkins
Step 9: Check Jenkins Status
sudo systemctl status jenkins
🚀 Learn how to install Jenkins on Ubuntu from scratch!
In this tutorial, you'll install the latest version of Jenkins using the Ubuntu terminal and understand every command along the way.
📚 What You'll Learn
Install Java (Required for Jenkins)
Add the official Jenkins repository
Import the Jenkins GPG key
Install Jenkins
Start and enable the Jenkins service
Allow Jenkins through the firewall
Access Jenkins in your browser
Unlock Jenkins
Install recommended plugins
Create the first admin user
🛠 Requirements
Ubuntu 22.04 / 24.04
Internet Connection
Terminal Access
sudo privileges
Perfect for:
DevOps Beginners
Cloud Computing Students
Java Developers
Linux Users
College Projects
CI/CD Learning
👍 Like | 💬 Comment | 🔔 Subscribe for more DevOps tutorials.