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

Example of implementing text wrapping in html (mixed text and images in html)

1. Text around the image If we use the normal one...

Users need to know why

When I was in the securities company, because the ...

Summary of methods for inserting videos into HTML pages

Now if you want to use the video tag in a page, y...

How to enable remote access permissions in MYSQL

1. Log in to MySQL database mysql -u root -p View...

How to show or hide common icons on the desktop in Windows Server 2012

Windows Server 2012 and Windows Server 2008 diffe...

Image scrolling effect made with CSS3

Achieve resultsImplementation Code html <base ...

How to configure nginx to limit the access frequency of the same IP

1. Add the following code to http{} in nginx.conf...

Implementation methods of common CSS3 animations

1. What is CSS Animations is a proposed module fo...

A brief talk about calculated properties and property listening in Vue

Table of contents 1. Computed properties Syntax: ...

How to obtain a permanent free SSL certificate from Let's Encrypt in Docker

1. Cause The official cerbot is too annoying. It ...

10 reasons why Linux is becoming more and more popular

Linux has been loved by more and more users. Why ...

jQuery implements time selector

This article example shares the specific code of ...

View MySQL installation information under Linux server

View the installation information of mysql: #ps -...

Detailed example of using useState in react

useState useState adds some internal state to a c...

HTML table tag tutorial (11): horizontal alignment attribute ALIGN

In the horizontal direction, you can set the alig...