How to Install Cockpit Web Console in CentOS 8

In this article, we will help you to install Cockpit Web Console in CentOS 8 server to manage and monitor your local system, as well as Linux servers situated in your network environment. You will also learn how to add remote Linux hosts to Cockpit and monitor them in the CentOS 8 web console.

Read Also: How to Install Cockpit Web Console in RHEL 8

The Cockpit is a web console with an easy to use web-based interface that enables you to carry out administrative tasks on your servers. Also being a web console, it means you can also access it through a mobile device as well.

The Cockpit Web Console
The Cockpit Web Console

The Cockpit web console enables you a wide range of administration tasks, including:

  • Managing services
  • Managing user accounts
  • Managing and monitoring system services
  • Configuring network interfaces and firewall
  • Reviewing system logs
  • Managing virtual machines
  • Creating diagnostic reports
  • Setting kernel dump configuration
  • Configuring SELinux
  • Updating software
  • Managing system subscriptions

The Cockpit web console utilizes the same system APIs as you would in a terminal, and tasks performed in a terminal are quickly reflected in the web console. In addition, you can configure the settings directly in the web console or through the terminal.

Installing Cockpit Web Console in CentOS 8

1. With CentOS 8 minimal install, the cockpit is not installed by default and you can install it on your system by using the command below, which will install the cockpit with its required dependencies.

# yum install cockpit
Install Cockpit Web Console in CentOS 8
Install Cockpit Web Console in CentOS 8

2. 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.

# systemctl start cockpit.socket
# systemctl enable --now cockpit.socket
# systemctl status cockpit.socket
# ps auxf|grep cockpit
Start and Verify Cockpit Web Console in CentOS 8
Start and Verify Cockpit Web Console in CentOS 8

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

# firewall-cmd --add-service=cockpit --permanent
# firewall-cmd --reload
Open Cockpit Web Console Port on Firewall
Open Cockpit Web Console Port on Firewall

Logging in to the Cockpit Web Console in CentOS 8

The following instructions show the first login to the Cockpit web console using a local system user account credentials. As Cockpit uses a certain PAM stack authentication found at /etc/pam.d/cockpit, which enables you to log in with the user name and password of any local account on the system.

4. Open the Cockpit web console in your web browser at the following URL’s:

Locally: https://localhost:9090
Remotely with the server’s hostname: https://example.com:9090
Remotely with the server’s IP address: https://192.168.0.10:9090

If you are using a self-signed certificate, you will get a warning on the browser, simply verify the certificate and accept the security exception to proceed further with the login.

Cockpit SSL Certificate Warning
Cockpit SSL Certificate Warning

The console calls a certificate from the /etc/cockpit/ws-certs.d directory and uses the .cert extension file. To avoid having to prompt security warnings, install a certificate signed by a certificate authority (CA).

5. In the web console login screen, enter your system user name and password.

Cockpit Web Console Login
Cockpit Web Console Login

If a user account has sudo privileges, this makes it possible to perform administrative tasks such as installing software, configuring system or configuring SELinux in the web console.

6. After successful authentication, the Cockpit web console interface opens.

Running Cockpit Web Console in CentOS 8
Running Cockpit Web Console in CentOS 8

That’s it for now. The cockpit is an easy to use web console that allows you to perform administrative tasks on CentOS 8 server. To learn more about web console, read how to configure system settings in the web console.

Hey TecMint readers,

Exciting news! Every month, our top blog commenters will have the chance to win fantastic rewards, like free Linux eBooks such as RHCE, RHCSA, LFCS, Learn Linux, and Awk, each worth $20!

Learn more about the contest and stand a chance to win by sharing your thoughts below!

Anusha Saive
Anusha worked for many years in the IT industry as a Project Manager, and also a senior writer and editor at Tecmint. She is a huge fan of Linux and is passionate about writing Linux and technology-related stuff.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

2 Comments

Leave a Reply
  1. Hi, I have some trouble with the web console terminal If I scroll more than 100000 lines it just stops. So I should reset the terminal…

    Is there any other way to keep scrolling lines in the terminal?
    I need this functionality for my SW demonstration…

    If somebody knows how to do it. Please tell me the way to set up..

    Reply
  2. I’m not receiving email messages from the cockpit after installing and configuring. It performs the auto-updates but no emails.

    Reply

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.