Simplified Ubuntu Management with Cockpit: The Complete Guide
Discover how to turn managing your Ubuntu server from a complex operation to an intuitive and accessible task, thanks to Cockpit. This guide will show you how to install, configure, and make the most of this powerful web interface.
What Cockpit is and why it will revolutionize the management of your Ubuntu server
If you manage an Ubuntu server, you know how challenging and, at times, hostile it can be to interact solely through the command line. Although the CLI (Command-Line Interface) is a powerful and flexible tool, it is not always the most straightforward way to get an overview of system status or to perform routine operations. This is where Cockpit comes in.
Cockpit is a lightweight, easy-to-use web-based server administration interface sponsored by Red Hat. It allows you to monitor and manage your Linux servers through a simple web browser. Whether you are a Linux neophyte or a seasoned system administrator, Cockpit provides you with a visual control panel to simplify the management of your Ubuntu server, but without limiting terminal access and use, which always remains just a click away.
In this article, we will explore how managing Ubuntu with Cockpit can become not only simpler, but also more efficient and secure.
Keeping an Ubuntu server secure, high-performance, and reliable demands time and specialized expertise. It's a professional's job, not a part-time task.
Hand off the technical complexity to our Linux expert team. We optimize and maintain your infrastructure, so you can focus on your business
Installing Cockpit on Ubuntu: First Steps
One of the great advantages of Cockpit is its ease of installation. It is available directly in the official Ubuntu repositories, making the process quick and painless.
Update your system:Before any new installation, it is always a good practice to make sure that all packages are up to date.
sudo apt update && sudo apt upgrade -yInstall Cockpit: With a single command, you can install the main Cockpit package.
sudo apt install cockpitEnable and start the service: Once installed, the Cockpit service must be started and enabled to start automatically each time the system is started.
sudo systemctl enable --now cockpit.socketConfigure the Firewall (if necessary): If you are using a firewall such as UFW, you will need to allow traffic on Cockpit's default port (TCP 9090).
sudo ufw allow 9090
Once you have completed these steps, you can log in to Cockpit by opening your browser and navigating to https://[ADDRESS_IP_DEL_TUO_SERVER]:9090. You'll be able to log in using the same credentials as an existing user on your Ubuntu server.
Cockpit's Key Features for Effective Management
Cockpit offers a wide range of tools for managing your Ubuntu server, all accessible from a single intuitive dashboard.
- System Overview: View real-time server health, CPU, memory, disk and network utilization.
- Log Management: Inspect system logs easily, with the ability to filter by date, service or severity.
- Storage Management: Monitor disks and partitions, format new drives and manage logical volumes (LVM).
- Network Configuration: Manage network interfaces, create bonds, bridges and VLANs directly from the GUI.
- User Account Management: Create, edit or delete user accounts and manage their privileges.
- Services Management: Start, stop, restart and manage system services (systemd) with just a few clicks.
- Integrated Terminal: Need the command line? No problem. Cockpit includes a full web terminal.
- Container Management (Podman/Docker):With the add-on module
cockpit-podmanorcockpit-docker, you can manage your containers visually. - Software Updates: Check for updates and install them directly from the dashboard.
Why Choose Cockpit? Advantages for the System Administrator
Adopting Cockpit for management of Ubuntu server brings with it several concrete benefits:
- Simplicity and Intuitiveness:It makes complex operations accessible even to those without deep command-line knowledge.
- Lightweight: Cockpit does not consume resources when not in use. The daemon is activated only when a user connects to the web interface.
- Non-Invasive: It does not change the system configuration in proprietary ways. Changes made through Cockpit are equivalent to those made from the terminal and vice versa.
- Extendability: Thanks to a system of plugins, you can add features, such as virtual machine management (
cockpit-machines) or file sharing like SAMBA and NFS. - Multi-Server: You can add multiple servers to your Cockpit dashboard and switch between them easily, centralizing management.
- Security:Uses standard Linux authentication (PAM) and supports two-factor authentication, ensuring secure access.
As you've seen, Cockpit is excellent for diagnostics. But managing a critical server isn't just "checking"—it's anticipating.
We can help. Delegate the complexity. Our team of senior Linux sysadmins can take over your infrastructure today, ensuring rock-solid reliability and security.
Frequently Asked Questions (FAQs) about Managing Ubuntu with Cockpit
Is Cockpit free?
Yes, Cockpit is open source software and completely free.
Can I use Cockpit and the command line at the same time?
Absolutely yes. Cockpit does not interfere with terminal management. Any changes made on one side will be immediately visible on the other.
Is Cockpit secure?
Cockpit uses existing system APIs and standard Linux authentication. To increase security, it is critical to follow best practices such as using complex passwords, configuring a firewall, and enabling HTTPS.
Cockpit replaces other tools such as Webmin or cPanel?
Cockpit is more of a server administration interface than a hosting control panel. It is lighter and less complex than tools such as cPanel or Plesk, and focuses on direct management of the operating system.
What versions of Ubuntu are supported?
Cockpit is available in the repositories of the latest LTS (Long Term Support) versions of Ubuntu Server and Desktop, such as 20.04, 22.04 and later.
External Resources and Useful Links
To delve deeper into the topic and discover the full potential of Cockpit, here is a selection of useful links:
- Cockpit Official Documentation: The official Cockpit guide, including Ubuntu installation.
- Introduction to Cockpit: An excellent introductory article (in English) covering the basics of the tool.
- Getting Started with Red Hat's Cockpit: Insights from the project's main sponsor, with focus on integration with the Red Hat ecosystem, but with universally valid concepts.