How to Setup Cockpit on Fedora Server

The Cockpit is a robust and feature-rich web-based Graphical User Interface (GUI) software that is purpose-built for managing and monitoring servers. Developed as an open-source software, it offers system administrators a user-friendly way to perform essential system tasks, including configuring networking settings, managing storage, monitoring system logs, and more.

a) Installing The Cockpit

Install the Cockpit.
sudo dnf install cockpit
Optional: you can find its add-ons by searching.
sudo dnf search cockpit

b) Enabling Autostart

To tell systemd to start the cockpit socket automatically at boot, you have to enable it.
sudo systemctl enable cockpit.socket

c) Starting

Start the cockpit socket now.
sudo systemctl start cockpit.socket
The Cockpit server will start listening on port 9090 by default.

d) Letting FirewallD to Know

You may have to add the cockpit service to the FirewallD‘s allow list if you want to access it from another device.
sudo firewall-cmd --add-service=cockpit --permanent
Then reload the FirewallD.
sudo firewall-cmd --reload

e) Login

Browse https://localhost:9090/ or https://your\_ip\_address:9090/ from any (local) web browser and login with your user credentials.


Documentations


See also: https://bitscoper.live/how-to-solve-cockpit-ostree-unavailability-error-on-fedora-server/

Abdullah As-Sadeed
Abdullah As-Sadeed

Prefers coding from scratch. Loves the Linux kernel.

Leave a Reply