How to Install Cockpit on CentOS 8

Install Cockpit on CentOS 8

In this article, we will have explained the necessary steps to install and configure Cockpit on CentOS 8. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Cockpit is a free and open-source web based server management software. It has a pretty web console which allows system administrators to easily perform tasks such as storage administration, network configuration and many more. On the other hand, Cockpit gets along very well with after-server applications such as Ansible. This means that the integration with the server is practically complete. In addition, the application is quite well supported by its creators and is available for the largest Linux distributions.

Install Cockpit on CentOS

Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.

Step 2. Install Cockpit on CentOS 8.

We initiate the Cockpit installation with the following command:

Next, enable and start the cockpit.socket service to connect to the system through the web console and verify the service and running the cockpit process using the following commands:

Step 3. Setting up the firewall.

If you are running a firewalld on the system, you need to open the cockpit port 9090 in the firewall:

Step 4. Accessing CentOS 8 Cockpit from Browser.

By default, Cockpit includes a self-signed SSL/TLS certificate and can be access via the browser using the address, https://ip-address:9090. By default Cockpit is configured to allow logins using username and password of any local account on the system.

Congratulation, you have learned how to install and configure Cockpit on CentOS 8. If you have any question, please leave a comment below.