How to install and use Cockpit on CentOS 8/RHEL 8

How to install and use Cockpit on CentOS 8/RHEL 8

Cockpit is a web-based server management tool available for CentOS and RHEL systems. In the recently released CentOS 8 and RHEL 8, cockpit is the default server management tool. Its packages are available in the default CentOS 8 and RHEL 8 repositories. Cockpit is a useful web-based GUI tool that allows system administrators to monitor and manage Linux servers. It can also be used to manage network and storage in servers, containers, virtual machines, and check system and application logs.

In this article, we will demonstrate how to install and setup Cockpit in CentOS 8 and RHEL 8.

Install and Setup Cockpit on CentOS 8 / RHEL 8

Log in to your CentOS 8 / RHEL 8, open the terminal and execute the following dnf command:

[root@linuxtechi ~]# dnf install cockpit -y

Run the following command to enable and start the cockpit service:

[root@linuxtechi ~]# systemctl start cockpit.socket
[root@linuxtechi ~]# systemctl enable cockpit.socket

Allow the Cockpit port in the system firewall using the following command:

[root@linuxtechi ~]# firewall-cmd --permanent --add-service=cockpit
[root@linuxtechi ~]# firewall-cmd --reload

To verify that the cockpit service is up and running, execute the following command:

[root@linuxtechi ~]# systemctl status cockpit.socket
[root@linuxtechi ~]# ss -tunlp | grep cockpit
[root@linuxtechi ~]# ps auxf|grep cockpit
cockpit-status-centos8-rhel8
cockpit-status-centos8-rhel8

Access Cockpit on CentOS 8 / RHEL 8

As we can see in the output of the above command, cockpit is listening on tcp port 9090, open your web browser and type the url: https://<Your-CentOS8/RHEL8-System-IP>:9090.

Cockpit login page in RHEL 8:

Use a username with administrator privileges or we can also log in using the root user's password. If you want to assign administrator privileges to any local user, execute the following command:

[root@linuxtechi ~]# usermod -G wheel pkumar

Here pkumar is my local user,

After entering the user password, select "Reuse my password for privileged tasks" and click "Log In", and then we see the following page:

On the left sidebar, we can see what can be monitored and configured through the cockpit GUI,

Assuming you want to check if there are any updates available in CentOS 8/RHEL 8, click on System Updates:

To install all updates, click Install All Updates:

If you want to modify the network and add a Bond interface and a bridge, click Networking:

As you can see above, we have the option to create a Bond interface, a Bridge, and a VLAN Tag interface.

Assuming we want to create a br0 bridge and add the enp0s3 port to it, click Add Bridge:

Specify the bridge name as br0 and the port as enp0s3, then click Apply.

On the next page we can see that the bridge is active and has been given the same IP as the enp0s3 interface:

If you want to check the system logs, click on “Logs” and we can view the logs according to severity:

Summarize

The above is the method I introduced to you to install and use Cockpit on CentOS 8/RHEL 8. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • How to bind dual network cards in Centos7/RHEL7
  • How to set up SSH password-free login on CentOS / RHEL
  • How to reset the root password of RHEL7/CentOS7 system
  • Steps to set up firewall whitelist in Linux (RHEL 6 and CentOS 7)
  • Example of implementing nginx self-starting script under centos/rhel

<<:  Code analysis of synchronous and asynchronous setState issues in React

>>:  Solve the pitfall of storing boolean type values ​​in localstorage

Recommend

JavaScript realizes the effect of mobile modal box

This article example shares the specific code of ...

Some notes on installing fastdfs image in docker

1. Prepare the Docker environment 2. Search for f...

Uncommon but useful tags in Xhtml

Xhtml has many tags that are not commonly used but...

How to clear the timer elegantly in Vue

Table of contents Preface optimization Derivative...

Using css-loader to implement css module in vue-cli

【Foreword】 Both Vue and React's CSS modular s...

Linux common basic commands and usage

This article uses examples to illustrate common b...

Introduction to the use of select optgroup tag in html

Occasionally, I need to group select contents. In ...

Implementation of Grid common layout

No gaps on both sides, gaps between each column w...

MySQL 8.0 Window Function Introduction and Summary

Preface Before MySQL 8.0, it was quite painful to...

Nginx server https configuration method example

Linux: Linux version 3.10.0-123.9.3.el7.x86_64 Ng...

Button is stretched on both sides in IE

When you write buttons (input, button), you will f...

Interpreting MySQL client and server protocols

Table of contents MySQL Client/Server Protocol If...

How to modify the IP restriction conditions of MySQL account

Preface Recently, I encountered a requirement at ...