Ubuntu 24.04 DevOps Setup Guide: Essential Tools & Configurations
Setting up a new development environment can be like assembling a high-performance race car — every component matters. For DevOps engineers, a properly configured Ubuntu 24.04 system is the foundation for efficient infrastructure management, automation, and CI/CD pipelines. This guide walks you through installing and configuring the must-have tools for a fully functional DevOps workstation.
1. Update & Prepare Your System
Before adding any tools, make sure your system is fully up-to-date and ready for installations.
sudo apt update && sudo apt upgrade -y
sudo apt install -y curl wget gnupg lsb-release ca-certificates software-properties-common unzip
This ensures you have the latest security patches and essential utilities.
2. Install Git for Version Control
Git is the backbone of collaborative development.
sudo apt install -y git
git config --global user.name "Your Name"
git config --global user.email "your_email@example.com"
Check installation:
git --version
3. Set Up Docker for Container Management
Docker is critical for running and deploying containerized applications.
- Install dependencies:
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
- Add Docker’s official repository and install:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io
- Run Docker without
sudo:
sudo usermod -aG docker ${USER}
newgrp docker
Verify:
docker --version
4. Install Docker Compose
For orchestrating multi-container environments:
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
5. Install Ansible for Automation
Ansible automates configuration and deployment tasks:
sudo apt update && sudo apt install -y ansible
ansible --version
6. Deploy Kubernetes (kubectl & Minikube)
Kubernetes is essential for container orchestration. Minikube provides a local test environment.
Install kubectl:
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
kubectl version --client
Install Minikube:
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
minikube version
7. Add Supporting Tools
Enhance your workflow with these utilities:
sudo apt install -y jq httpie
AWS CLI:
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
aws --version
Terraform:
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list > /dev/null
sudo apt update && sudo apt install -y terraform
terraform --version
8. Install Visual Studio Code
VS Code offers rich DevOps extensions.
-
Download from code.visualstudio.com
-
Recommended extensions:
- Docker
- Kubernetes
- GitLens
- Remote - WSL
- Ansible
- Live Share
9. Secure Your Environment
- VPN: Use a client like Pritunl for secure connections.
- Password Manager: Bitwarden or KeePass for safe credential storage.
10. Database Management
Install DBeaver Community to manage SQL and NoSQL databases efficiently.
✅ Conclusion
Your Ubuntu 24.04 environment is now fully equipped for DevOps work — from code versioning with Git to container orchestration with Kubernetes, infrastructure automation with Ansible, and cloud operations via AWS CLI and Terraform.
With these tools in place, you’re ready to build, deploy, and manage modern infrastructure like a pro.
🚀 Explore more guides on our blog 👉 blog.1it.pro
📧 Contact us: admin@1it.pro for expert IT guidance.
🌐 Explore more: Visit 1it.pro for top-tier IT solutions.