Introduction
Cockpit is an interactive server admin interface. It is easy to use and very lightweight. Cockpit interacts directly with the operating system from a real Linux session in a browser.
You can install Cockpit on many Linux operating systems including Debian, Fedora and RHEL.
Cockpit makes Linux discoverable, allowing sysadmins to easily perform tasks such as starting containers, storage administration, network configuration, inspecting logs and so on.
This post explains how to install Cockpit on RHEL 9.2 OS.
Please refer Installation of Red Hat Enterprise Linux 9.2 using developer account for installation of RHEL 9.2.
Installation
To install cockpit run below command
sudo dnf install cockpit -y
Enable cockpit service by running below command
sudo systemctl enable cockpit.socket --now
Configure firewall to add the cockpit service to firewalld and open port 9090 in the firewall
sudo firewall-cmd --add-service=cockpit --permanent
sudo firewall-cmd --reload
Access cockpit web interface at http://locahost:9090 using firefox browser. Enter user credentials to login to the cockpit application.
Cockpit landing page is loaded after successful login