This article will go through how to install Cockpit on Rocky Linux. Cockpit is a web-based interactive server administration user interface that allows you to run a live Linux session. It is a lightweight, straightforward, and powerful GNU/Linux server remote manager.
How to Install Cockpit on Rocky Linux
- Update your system packages using the command below.
sudo dnf update
- Then install Cockpit using the following command.
sudo dnf install cockpit
- Next, enable Cockpit to run on system boot.
sudo systemctl enable cockpit.socket
- Run the command below to start Cockpit.
sudo systemctl start cockpit.socket
- Confirm Cockpit is running by checking its status.
sudo systemctl status cockpit.socket
Sample output
● cockpit.socket - Cockpit Web Service Socket
Loaded: loaded (/usr/lib/systemd/system/cockpit.socket; enabled; vendor preset: disabled)
Active: active (listening) since Mon 2022-09-05 21:56:44 EAT; 16s ago
Until: Mon 2022-09-05 21:56:44 EAT; 16s ago
Triggers: ● cockpit.service
Docs: man:cockpit-ws(8)
Listen: [::]:9090 (Stream)
Process: 104404 ExecStartPost=/usr/share/cockpit/motd/update-motd localhost (code=exited, status=0/SUCCESS)
Process: 104411 ExecStartPost=/bin/ln -snf active.motd /run/cockpit/motd (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 23272)
Memory: 172.0K
CPU: 33ms
CGroup: /system.slice/cockpit.socket
Sep 05 21:56:44 localhost.localdomain systemd[1]: Starting Cockpit Web Service Socket...
Sep 05 21:56:44 localhost.localdomain systemd[1]: Listening on Cockpit Web Service Socket.
- Allow Cockpit on your system firewall using the command below.
sudo firewall-cmd --permanent --zone=public --add-service=cockpit
- Reload your firewall to apply changes.
sudo firewall-cmd --reload
Access Cockpit Web UI on Rocky Linux
- Fire up your web browser and enter server IP followed by port 9090 e.g.
server-IP:9090orlocalhost:9090. Enter your server username and password to log in.

- After successful login, you will be taken to the dashboard.

- Check logs by clicking on the logs tab.

- Manage storage by clicking on the storage tab.

- Manage updates by clicking on the software update tab.

- You can also access the terminal from the terminal tab as shown below.

- You have made it to the end of our article on how to install Cockpit on Rocky Linux.
Read more on Cockpit Documentation