Introduction
In modern Linux server management, a light and powerful web interface makes the difference. Cockpit offers precisely that: a browser-based console that allows to monitor, configure and diagnose systems without the need for heavy customers or complex configurations. Its design focuses on simplicity and accessibility, which makes it ideal for both novice managers and operations teams seeking to speed up their daily tasks.
What is Cockpit?
Cockpit is an open source project led by Red Hat that provides a graphical management interface developed with HTML5 and JavaScript. It runs as a service in the host and exposes a web application that communicates with the system via APis RESTful. Thanks to its modular architecture, plugins can be added to expand its capabilities, such as container management, virtual machines or storage.
Installation in popular distributions
In Fedora, RHEL and CentOS Stream the package is available in the official repositories:
sudo dnf install cockpit
In RHEL 7 and CentOS 7 yum is used:
sudo yum install cockpit
In Debian and Ubuntu:
sudo apt update && sudo apt install cockpit
In openSUSE:
sudo zypper install cockpit
After installation, enable and start the socket:
sudo systemctl enable --now cockpit.socket
The interface is heard at port 9090 and accessed byhttps://tu-servidor:9090.
First steps and access to the panel
When opening the URL, the browser will warn about a self-signed certificate; in test environments risk can be accepted, while in production it is recommended to install a valid certificate (for example, with Let's Encrypt). The home screen requests credentials from a user with sudo privileges or from the root itself. After authentication, the main panel shows a real-time summary of the use of CPU, memory, disk and network traffic.
The side bar organizes the functions in modules: Registration, Storage, Networks, Accounts, Services, Virtual Machines, Containers and Updates. Each module presents information cards and quick action buttons for common tasks.
Resource monitoring
One of the most appreciated features of Cockpit is its detailed monitoring capacity. In the sectionRegistrationThe journal logs are displayed with filters by level and unit systemd. The tabResourcesdisplays interactive CPU graphics, memory, disk I / O and network traffic, updated every few seconds, allowing instant detection of bottle necks.
It also includes a view ofProcesseswhere tasks that consume excessive resources and a kernel failure diagnosis tool can be completed.
Management of services and units systemd
Cockpit is directly integrated with systemd, the default init manager in most modern distributions. From the moduleServicesYou can start, stop, restart and enable units with one click. Each service shows its current status (active, inactive, failed) and its description, which simplifies the location of problems.
For those who prefer the terminal, Cockpit incorporates a web console based onttydthat allows you to run commands directly on the server without abandoning the interface.
Container and virtual machine management
Thanks to the pluginscockpit-dockerandcockpit-machines, Cockpit becomes a management center for virtualization environments. In the sectionContainersDocker or Podman images can be deployed, stopped and removed, logs inspected and volumes and networks managed.
In the area ofVirtual machinesVMs based on libvirt / KVM are created and configured, CPU parameters, memory and storage are adjusted, and the console is accessed by VNC or SPICE directly from the browser.
Security and advanced configuration
Cockpit facilitates SSH account and key management. In the moduleAccountsYou can create, modify or remove users, change passwords and manage public keys for access without password. It also integrates withfirewalldto define area rules and ports in a graphic way.
For production environments, it is advisable to place Cockpit behind an inverse proxy (Nginx or Apache) and use valid TLS certificates. It is also possible to restrict root access and limit authentication to specific users through the directive.AllowUsersin the configuration filecockpit.socket.
Finally, the plugincockpit-storagedallows to manage snapshots and rollbacks of file systems such as Btrfs or LVM, facilitating the safe application of updates.
Integration with other tools and automation
Cockpit does not work in isolation; it can be complemented by orchestration solutions such as Ansible, Puppet or Chef to automate configuration and deployment tasks. Through its REST API, it is possible to create scripts that activate or deactivate services, adjust resources or deploy containers without manual intervention. In addition, Cockpit events can be sent to centralized registration systems such as ELK or Grafana Loki via webhooks, allowing performance metrics to be correlated with application logs.
This interoperability makes Cockpit a central node in DevOps environments, where visibility and rapid reaction capacity are essential to maintain the availability and performance of services.
Managers can program recurring tasks using the programmed task module, which allows you to run commands or scripts at intervals directly defined from the web interface.
Conclusion
Cockpit has been consolidated as a versatile and friendly tool for Linux server management. Your web-based approach eliminates the need for heavy customers and allows you to access the system from any device with a browser. Whether you run a single home server or a cloud machine farm, Cockpit offers the visibility and control necessary to keep the infrastructure healthy, safe and up-to-date.
If you have not yet tried it, we invite you to install it in your next Linux project and discover how a well-designed interface can transform your way of working.


