Cockpit is a Web-based server management tool for CentOS and RHEL systems. CentOS 8 and RHEL 8, of which Cockpit is the default server management tool, have recently been released. Its software packages are available in the default CentOS 8 and RHEL 8 repositories. Cockpit is a useful Web-based GUI tool for system administrators to monitor and manage Linux servers. It can also be used to manage servers, containers, networks and storage in virtual machines, and check system and application logs.
In this article, we will demonstrate how to install and set up Cockpit in CentOS 8 and RHEL 8.
Install and set up Cockpit on CentOS 8/RHEL 8
Log in to CentOS 8/RHEL 8, open the terminal and run the following DNF command:
[root@linuxtechi ~]# dnf install cockpit -y
Copy the code
Run the following command to enable and start the Cockpit service:
[root@linuxtechi ~]# systemctl start cockpit.socket
[root@linuxtechi ~]# systemctl enable cockpit.socket
Copy the code
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
Copy the code
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
Copy the code
Access Cockpit on CentOS 8/RHEL 8
As we can see in the output of the command above, cockpit is listening on TCP 9090 port, open Your Web browser and type the URL: https://< your-Centos8 / rhel8-system-ip >:9090.
The Cockpit of RHEL 8 is ready for release.
Use a user name with administrator privileges, or we can log in as root user password. To assign administrator privileges to any local user, run the following command:
[root@linuxtechi ~]# usermod -G wheel pkumar
Copy the code
So pkumar is my local user,
After entering the user password, select “Reuse my Password for Privileged Tasks” and then click “Log In” and we see the following page:
On the left side, you can see what can be monitored and configured by cockpit GUI,
If you want to check whether there are any Updates available in CentOS 8/RHEL 8, click “System Updates” :
To Install All Updates, click “Install All Updates” :
If you want to modify your network and add Bond interfaces and Bridges, click Networking:
As seen above, we have options to create Bond interfaces, Bridges, and VLAN tag interfaces.
Suppose we want to create a BR0 Bridge and Add enP0S3 port to it, click “Add Bridge” :
Specify the bridge name as BR0 and the port as enp0S3, and then click Apply.
On the next page, we’ll see that the bridge is active and has the same IP as the ENP0S3 interface:
If you want to check the system Logs, click ‘Logs’ and we can view the Logs according to severity:
That’s all for this article. Similarly, other features of the cockpit can be used by system administrators to monitor and manage CentOS 8 and RHEL 8 servers. If these steps help you set up Cockpit on a Linux server, please share your feedback and comments in the comments section below.
Via: www.linuxtechi.com/install-use…
By Pradeep Kumar (lujun9972
This article is originally compiled by LCTT and released in Linux China