7.2 Installing and Enabling Cockpit
Cockpit is generally not installed on Fedora 31 by default, but can be set up and enabled in a few simple steps. The first step is to install the Cockpit package as follows:
# dnf install cockpit
Next, the Cockpit socket service needs to be enabled:
# systemctl enable --now cockpit.socket
Finally, the necessary ports need to be opened on the firewall to allow remote browser connections to reach Cockpit:
# firewall-cmd --add-service=cockpit --permanent
# firewall-cmd --reload