Install Cockpit on Rocky Linux

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:9090 or localhost:9090. Enter your server username and password to log in.
Install Cockpit on Rocky Linux
Install Cockpit on Rocky Linux
  • After successful login, you will be taken to the dashboard.
Install Cockpit on Rocky Linux
Install Cockpit on Rocky Linux
  • Check logs by clicking on the logs tab.
Install Cockpit on Rocky Linux
Install Cockpit on Rocky Linux
  • Manage storage by clicking on the storage tab.
Install Cockpit on Rocky Linux
Install Cockpit on Rocky Linux
  • Manage updates by clicking on the software update tab.
Install Cockpit on Rocky Linux
Install Cockpit on Rocky Linux
  • You can also access the terminal from the terminal tab as shown below.
Install Cockpit on Rocky Linux
Install Cockpit on Rocky Linux
  • You have made it to the end of our article on how to install Cockpit on Rocky Linux.

Read more on Cockpit Documentation

Other Tutorials

Install Rust on FreeBSD 13

Install Apache Tomcat on Fedora 36

Monitor HAProxy Logs with ELK Stack

System administrator | Software Developer | DevOps

Leave a Comment