How to Install Cockpit on Rocky Linux 8 or Alma Linux 8

Cockpit logo

Cockpit is a web-based server administration tool sponsored by Red Hat and by using this tool you can easily manage the server in a graphical way.

From Fedora 21 and RHEL 8 onwards Cockpit loaded with default.

This tutorial will be helpful for beginners to install cockpit on Rocky Linux 8 / Alma Linux 8.

Related:  How To Install Wireshark 3.4.2 on Ubuntu / LinuxMint

Cockpit features

  • Graphical and Interface designers in the project
  • Supports multiple servers from a single dashboard and is free to use.
  • Cockpit will work along with other management tools
  • Cockpit uses a systemd socket and memory consumption will not be there if it is not in use.
  • Cockpit doesn’t store the data of servers anywhere.

Install Cockpit on Alma Linux 8 / Rocky Linux 8

Step 1: Update the system

sudo dnf update

Step 2: Execute the below command to install in Rocky Linux 8 / Alma Linux 8

sudo dnf install cockpit cockpit-pcp

Step 3: Enable the socket

sudo systemctl enable cockpit.socket

Step 4: Verify the status of Cockpit

sudo systemctl status cockpit.socket

cockpit process status


Step 5 ( Optional): Open firewall ports if required

Check the firewall is running or not, if not running skip this step, else execute the below command.

sudo firewall-cmd –add-service=cockpit –permanent && sudo firewall-cmd –reload

Access Cockpit Console

To access the Cockpit console, use the below URL in your web browser.


Replace ComputerIP with actual ServerIP, after a successful connection to Cockpit you will be able to see the login screen.

Cockpit console

After providing the credentials, you will be able to see the server information and other details from the Cockpit dashboard

Cockpit dashboard


From this tutorial, you have learned how to install and configure Cockpit in Rocky Linux 8 / AlmaLinux 8.

Do let us know your comments and feedback in the comments section below.

Leave a Reply

Secured By miniOrange