Install Cockpit on CentOS 8 Linux
The Cockpit web interface is installed on CentOS 8 by default, but it is not activated. Before you can use it, ensure it is installed and service started.
sudo dnf -y install cockpit
Once Cockpit has been installed on CentOS 8, start and enable the service.
sudo systemctl enable --now cockpit.socket
If you have activated firewalld service, allow Cockpit port to be accessed from machines within the network.
sudo firewall-cmd --add-service=cockpit --permanent sudo firewall-cmd --reload
Access Cockpit Web Console on CentOS 8 Linux
The Cockpit web console can be accessed on the URL [https://(serverip or hostname):9090/].
The login screen should be displayed as shown above. Login with a local admin user added during installation or root user account. The system overview page should show up next.
Use the left panel to choose a configuration option to do on your CentOS 8 server. The example below will enable automatic updates on CentOS 8 system.
This is done on Software Updates > Automatic Updates
The “ON” button should turn blue, indicating the system will be updated automatically.
Using Cockpit Terminal
There’s an embedded terminal in Cockpit which gives you flexibility to jump between a terminal and the web interface at any time.