• 20 May, 2023
The following article provides instructions on how to Install Cockpit on Alma Linux 9, Rocky Linux 9, and Fedora 38
Cockpit is an interactive server administration interface. It provides a web-based GUI to administer and monitor your Linux servers. In this guide, we’ll walk you through the process of installing Cockpit on three popular Linux distributions: Alma Linux 9, Rocky Linux 9, and Fedora 38.
Before you begin, make sure you have:
Note: While it’s possible to install Cockpit as a non-root user, some features may not work correctly unless they’re run with root privileges.
First, it’s a good practice to start by updating your system. Open a terminal window and enter the following command:
sudo dnf update -y
On Alma Linux 9 and Rocky Linux 9, Cockpit is available in the AppStream repository. Install it using the following command:
sudo dnf install cockpit -y
On Fedora 38, Cockpit comes pre-installed. If it’s not present on your system for any reason, you can install it using the same command as above.
After installation, you need to start the Cockpit service and enable it to start at boot time. Use these commands:
sudo systemctl start cockpit sudo systemctl enable cockpit
If you’re running a firewall on your system, you need to allow Cockpit through. Cockpit operates on port 9090. Here’s how you can open this port with
sudo firewall-cmd --add-service=cockpit sudo firewall-cmd --add-service=cockpit --permanent
Finally, you can access Cockpit via your web browser. Simply navigate to
https://<Your-Server-IP>:9090. If you’re installing on a local machine, you can use
Remember to replace
<Your-Server-IP> with your actual server IP address.
Congratulations! You’ve installed Cockpit on your Linux server. You can now run your system adminstration tasks from a web-based GUI, making server management simpler and more intuitive.
Cockpit is a powerful tool, capable of managing multiple servers from a single interface. It’s a great addition to any system administrator’s toolkit. Enjoy exploring its many features!
Disclaimer: This guide assumes you’re working in a safe environment and you’re aware of the implications of opening ports in your firewall. Always ensure your server is secure and only accessible to trusted networks.