Cockpit: The modern web interface for managing your Linux server

Introduction

In modern Linux server administration, having a lightweight and powerful web interface makes the difference. Cockpit offers exactly that: a browser-based console that allows you to monitor, configure, and diagnose systems without needing heavy clients or complex configurations. Its design focuses on simplicity and accessibility, making it ideal for both novice administrators and operations teams looking to streamline their daily tasks.

What is Cockpit?

Cockpit is an open-source project led by Red Hat that provides a graphical administration interface developed with HTML5 and JavaScript. It runs as a service on the host and exposes a web application that communicates with the system via RESTful APIs. Thanks to its modular architecture, plugins can be added to extend its capabilities, such as container, virtual machine, or storage management.

Installation on Popular Distributions

In Fedora, RHEL, and CentOS Stream the package is available in the official repositories:

  • sudo dnf install cockpit

On RHEL 7 and CentOS 7 use yum:

  • sudo yum install cockpit

On Debian and Ubuntu:

  • sudo apt update && sudo apt install cockpit

On openSUSE:

  • sudo zypper install cockpit

After installation, enable and start the socket:

  • sudo systemctl enable --now cockpit.socket

The interface listens on port 9090 and is accessed via https://your-server:9090.

First Steps and Accessing the Panel

When opening the URL, the browser will warn about a self-signed certificate; in test environments you can accept the risk, while in production it is recommended to install a valid certificate (for example, with Let’s Encrypt). The login screen prompts for credentials of a user with sudo privileges or root itself. After authenticating, the main panel shows a real-time summary of CPU, memory, disk, and network traffic usage.
The sidebar organizes functions into modules: Logs, Storage, Networking, Accounts, Services, Virtual Machines, Containers, and Updates. Each module presents informational cards and quick-action buttons for common tasks.

Resource Monitoring

One of Cockpit’s most appreciated features is its detailed monitoring capability. In the Logs section you can view the journal logs with filters by level and systemd unit. The Resources tab shows interactive graphs of CPU, memory, disk I/O, and network traffic, updated every few seconds, allowing you to spot bottlenecks instantly.
It also includes a Processes view where you can terminate tasks consuming excessive resources and a kernel fault diagnostic tool.

Service and systemd Unit Management

Cockpit integrates directly with systemd, the default init manager on most modern distributions. From the Services module you can start, stop, restart, and enable units with a single click. Each service shows its current state (active, inactive, failed) and description, simplifying troubleshooting.
For those who prefer the terminal, Cockpit includes a web-based console based on ttyd that lets you run commands directly on the server without leaving the interface.

Container and Virtual Machine Management

Thanks to the cockpit-docker and cockpit-machines plugins, Cockpit becomes a management hub for virtualization environments. In the Containers section you can deploy, stop, and remove Docker or Podman images, inspect logs, and manage volumes and networks.
In the Virtual Machines area you can create and configure VMs based

This post is also available in ESPAÑOL.

Leave a Reply

Your email address will not be published. Required fields are marked *

Esta obra está bajo una Licencia Creative Commons Atribución 4.0 Internacional para Francesc Roig francesc@vivaldi.net .