Cockpit on Rocky Linux 9

Cockpit is a lightweight, web-based interface that allows system administrators to manage servers via a browser. On Rocky Linux 9, it provides an accessible and efficient way to monitor, configure, and troubleshoot the system without requiring command-line expertise. It’s particularly well-suited for managing single nodes or small server fleets.


Key Features

FeatureDescription
Web DashboardOffers a real-time graphical overview of system performance and status
Service ManagementControl systemd services (start, stop, enable, disable)
Resource MonitoringLive charts for CPU, memory, network, and disk usage
Log AccessIntegrated access to journald system logs
User ManagementAdd, delete, or modify local users and groups
Terminal AccessBuilt-in shell access from the browser
Network ConfigurationManage interfaces, firewall settings, and network services
Package UpdatesReview and install available system updates graphically
Storage ManagementManage disks, partitions, RAID, and LVM volumes
Modular ArchitectureEasily extendable with packages such as cockpit-podman or cockpit-storaged

Benefits of Using Cockpit on Rocky Linux 9

  • Preinstalled and enabled by default: Cockpit is included in Rocky Linux 9 minimal and server editions, making setup quick.
  • Secure Access: Uses HTTPS and Linux PAM authentication; supports SELinux policies.
  • Live Sync with CLI: Cockpit reflects real-time changes done via terminal.
  • Minimal Resource Footprint: Suitable even for resource-constrained environments.
  • Multi-Server Management: Connect and administer other servers from the same Cockpit interface.

Default Access

  • Cockpit listens on port 9090
  • Access URL: https://your-server-ip:9090
  • Log in with an existing system user account with administrative privileges

Real-World Use Cases

  • DevOps Teams: Monitor and manage development or test servers easily
  • Small Businesses: Handle infrastructure with minimal sysadmin expertise
  • Home Labs: Convenient for homelab enthusiasts managing VMs or containers
  • Remote Admin: Use Cockpit as a frontend to your headless Rocky Linux 9 server

Comparison with Other Server Management Tools

ToolWeb InterfaceResource UsageScope
CockpitYesLowGeneral system and network management
WebminYesMediumVery broad, including email and DNS setup
SSH TerminalNoMinimalMost flexible, requires expertise
Ansible AWXYesHighConfiguration automation and orchestration

Create a VPS Instance on Shape.Host

Start by provisioning a Rocky Linux 9 VPS:

Go to https://shape.host and log in.

Click “Create”, then select “Instance”.

Shape.host Resources dashboard with Create > Instance highlighted.

Set:

Location: Choose your preferred region.

Shape.host instance form with the data center location selector highlighted.

OS: Select Rocky Linux 9 (64-bit)

Resources: Minimum 1 CPU, 1 GB RAM, 10 GB SSD

Shape.host instance form with the operating system image selector highlighted.

Click “Create Instance” and wait for deployment.

Shape.host instance form with the Create Instance button highlighted.

Note the IP address of your server for SSH access and web UI access.

Shape.host Resources dashboard with the server IP address highlighted.

Connect via SSH:

ssh root@your-server-ip

On Windows, use PuTTY.


Step 1: Update System Packages

dnf update

🔹 Refreshes your system’s package list and installs the latest available updates.

Terminal showing DNF/YUM package management commands and output.

Step 2: Install Cockpit

dnf install cockpit

🔹 Installs the core Cockpit package which provides the web interface and service framework.

Terminal showing DNF/YUM package management commands and output.

Step 3: Enable and Start Cockpit

systemctl enable --now cockpit.socket

🔹 Enables the Cockpit service to start at boot and activates it immediately.


Step 4: Verify Cockpit is Running

systemctl status cockpit.socket

🔹 Confirms that Cockpit is active and listening on port 9090.

Terminal showing systemd service management commands or output.

Step 5: Enable and Start the Firewall

systemctl unmask firewalld

🔹 Unmasks the firewall service if it was previously disabled or masked.

systemctl enable --now firewalld

🔹 Enables and starts the firewall service immediately.


Step 6: Configure Firewall for Cockpit

firewall-cmd --permanent --add-service=cockpit

🔹 Allows predefined Cockpit service access (port 9090) through the firewall.

firewall-cmd --permanent --add-port=9090/tcp

🔹 Explicitly opens port 9090 just in case the cockpit service definition is unavailable.

firewall-cmd --reload

🔹 Applies all new firewall rules.

Terminal showing systemd service management commands or output.

Step 7: Create a Cockpit Admin User

adduser adminuser

🔹 Creates a new user named adminuser.

passwd adminuser

🔹 Sets a secure password for the new user.

usermod -aG wheel adminuser

🔹 Adds the user to the wheel group, granting them administrative (sudo) privileges required for Cockpit tasks.

Terminal showing Linux user account management commands.

Step 8: Install Cockpit Modules (Optional)

dnf install cockpit-storaged cockpit-networkmanager cockpit-packagekit

🔹 Adds Cockpit extensions for managing:

  • Storage (disks, partitions, LVM)
  • Networking (interfaces, bridges, bonds)
  • Package updates (via GUI)

These enhance the default Cockpit dashboard with more tools.

Terminal showing PM2 application process management output.

Step 9: Access the Cockpit Web Interface

Open your browser and visit:

https://YOUR_SERVER_IP:9090

Log in with the adminuser credentials.

Cockpit sign-in form.

You’ll be redirected to a secure dashboard where you can manage services, monitor resources, update packages, and more.

Cockpit server overview with health, resource usage and system information.

Running Cockpit on Shape.Host Linux SSD VPS gives you:

Fast provisioning
SSD performance and full root access
Scalable plans for any workload
Support for Rocky Linux 9, Ubuntu, Debian, and more

Start managing your infrastructure smarter — deploy on Shape.Host today.