In this post, we will see how to install Cockpit on an EC2 instance. First, we will try to understand what Cockpit is.
The term "cockpit" refers to a web-based graphical interface for managing and monitoring systems, particularly in Linux/Unix servers, cloud environments, and containerized applications.
**
What is Cockpit in Computing?**
Cockpit is an interactive admin tool that allows users to:
- Monitor system performance (CPU, memory, disk usage).
- Manage services, users, and storage.
- Configure networking and firewall settings.
- Administer virtual machines (KVM) and containers (Podman/Docker).
- View logs and troubleshoot issues.
Key Features of Cockpit (Linux Tool)
- Web-Based Interface: Accessible via a browser (no need for SSH or command line).
- Real-Time Monitoring: Graphs and dashboards for system metrics.
- Multi-Server Management : Control multiple machines from one interface.
- Extensible with Plugins : Supports Kubernetes, storage (LVM), and more.
- Lightweight: Runs as a service (cockpit-ws) without heavy resource usage. so let's start.
**
First step: create your EC2 instance
**
First, you need to create an EC2 instance by choosing Redhat as the AMI and connect to it via SSH.
(For those who may have forgotten, here is a post about it
**
Second step: Configure your EC2 instance
**
After the first step, run the following commands:
- sudo su
- yum install cockpit -y
- systemctl start cockpit
- system enable cockpit
- passwd root ( to set your password)
So go back to your EC2 instance and modify your security group like this:
- type: custom TCP
- port range: 9090
- source: anywhere IPv4
Then save.
**
Third step: See your work
**
Now go to your browser. On your search bar, type:
https://IP:9090 ( IP represents the Public IPv4 address)
Click on advanced, depending on your language.
Now, just enter your username, your password and validate.
As you can see by yourself, it's not so complicate
Top comments (0)