Home AlmaLinux How to Install and Use Cockpit in AlmaLinux

How to Install and Use Cockpit in AlmaLinux

Server management is prioritized on the checklist of almost all web server administrators. The Cockpit has made server management easier to execute because of the flexibility it brings to the table.

This Linux-supported software application lets you monitor and manage the status of your Linux-based servers remotely and on a web-based interface. Through Cockpit web server software, a web admin can comfortably start or stop server-based running services, and check on the server load, and system performance.

Once you successfully install Cockpit and gain access to its web dashboard interface, you will be able to monitor and assess key information related to your server’s health and other critical system statistics like running processes, network consumption, disk utilization, disk space, CPU & Memory usage, and active users.

This article is going to take us through the installation and basic usage of Cockpit on AlmaLinux. Make sure you have root user access or Sudoer user privileges on the AlmaLinux you are using.

Installing Cockpit Server Management in AlmaLinux

It is important for your AlmaLinux to be up-to-date for it not to encounter any performance issues.

$ sudo dnf update

We also need the EPEL repository enabled. Since AlmaLinux is an RHEL-based Linux distribution, the EPEL repository makes it possible to install RHEL-supported extra software packages.

$ sudo dnf install epel-release  

Once the EPEL repository is installed and enabled, retrieving Cockpit from AlmaLinux’s extra repo should be straightforward. If you upgraded to the latest AlmaLinux OS version, Cockpit should already be installed on your system.

$ sudo dnf install cockpit
Install Cockpit in AlmaLinux
Install Cockpit in AlmaLinux

If your system did not have Cockpit pre-installed, the installation of this package together with its associated dependencies should take a minute or two to successfully complete.

To start the Cockpit service, use the following command:

$ sudo systemctl start cockpit

To enable Cockpit, so that it keeps executing even after a successful system reboot, execute the following command.

$ sudo systemctl enable --now cockpit.socket

Afterward, check on its status to be sure it is up and running.

$ sudo systemctl status cockpit.service
Check Cockpit Status
Check Cockpit Status

Basic Usage of Cockpit Server Management Tool

Now that we are certain Cockpit is running on our AlmaLinux system, it’s time to put it to the test. The default HTTP port for Cockpit is 9090, which you need to open in Firewall.

$ sudo firewall-cmd --permanent --zone=public --add-service=cockpit
$ sudo firewall-cmd --reload

Next, determine the IP address of the server using the ifconfig command.

$ ifconfig
Find Linux Server IP Address
Find Linux Server IP Address

Based on the above screen capture, I will access my server via Cockpit in the following manner:

http://192.168.138.197:9090 

For first-time Cockpit usage, you will run into the following web interface.

Potential Security Risk
Potential Security Risk

Click on the Advanced tab and Accept the Risk and Continue tab…

Accept Security Risk
Accept Security Risk

You will be redirected to a Cockpit Login page of your server. Use the necessary credentials to log in.

Cockpit Login Page
Cockpit Login Page

Click Turn on the administrator access tab and enter the needed root user credentials.

Cockpit Admin Access
Cockpit Admin Access

From here, you can seamlessly and remotely manage your server through Cockpit’s dynamic functionalities ranging from system logs to system Terminal.

Access Terminal from Cockpit
Access Terminal from Cockpit

Cockpit makes server administration and management easy. You only need access to a functional web browser and root user credentials to your AlmaLinux server.

Ravi Saive
I am an Experienced GNU/Linux expert and a full-stack software developer with over a decade in the field of Linux and Open Source technologies. Founder of TecMint.com, LinuxShellTips.com, and Fossmint.com. Over 150+ million people visited my websites.

Each tutorial at UbuntuMint is created by a team of experienced writers so that it meets our high-quality standards.

Was this article helpful? Please add a comment to show your appreciation and support.

2 thoughts on “How to Install and Use Cockpit in AlmaLinux”

Got something to say? Join the discussion.

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published or shared. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.