In this article, we will have explained the necessary steps to install Cockpit on Rocky Linux 8. Before continuing with this tutorial, make sure you are logged in as a user with
sudo privileges. All the commands in this tutorial should be run as a non-root user.
The cockpit is a powerful web-based administrative interface that allows to manage and monitor Linux servers spread across the network. You easily manage and control their GUI or CLI Linux server systems remotely using a browser. Among other things, admins can take a look at the
systemd journal, check the load or start and stop services. It has a responsive design thus we can also use it conveniently on tablets and smartphones.
Install Cockpit on Rocky Linux 8
Step 1. First, before you start installing any package on your Rocky Linux server, we always recommend making sure that all system packages are updated.
sudo dnf update sudo dnf upgrade
Step 2. Install Cockpit on the Rocky Linux system.
The cockpit is included in the Rocky Linux default repositories. So the installation process is just to install the package using
dnf the command:
sudo dnf install cockpit
With Cockpit installed, we need to start and enable the
cockpit.socket service to connect the system through the web console:
sudo systemctl start cockpit.socket sudo systemctl enable --now cockpit.socket
Step 3. Configure Firewall.
We need to allow external connections to port 9090 through the firewall:
sudo firewall-cmd --permanent --zone=public --add-service=cockpit sudo firewall-cmd --reload
Step 4. Accessing Cockpit from Browser.
To access the Cockpit web interface, go to
https://your-ip-address:9090 on your favorite web browser. If you are seeing an SSL error, then click on the Advanced button and Continue unsafe.
After accessing the web interface, you will see a login page. You can log in to Cockpit using the username and password of any local account of your Cockpit server.
That’s all you need to do to install Cockpit on Rocky Linux 8. I hope you find this quick tip helpful. For further reading on Cockpit server management, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.