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

Cockpit is a web-based server management tool that can be used for CentOS and RHEL systems. Recently released CentOS 8 and RHEL 8, in which 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 through which system administrators can monitor and manage Linux servers. It can also be used to manage networks and storage in servers, containers, and virtual machines, as well as to 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 your CentOS 8/RHEL 8, open a 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

Use the following command to allow the Cockpit port in the system firewall:

[ 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 the tcp 9090 port, open your web browser and enter the url: https://<Your-CentOS8/RHEL8-System-IP> :9090.

Cockpit login page in RHEL 8:

Use a username with administrator rights, or we can log in with the password of the root user. If you want to assign administrator rights 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 then click "Log In", then we see the following page:

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

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

To install all updates, click "Install All Updates":

If you want to modify the network and add Bond interfaces and bridges, click "Networking":

As you can see above, we have options to create Bond interfaces, bridges, and VLAN tagged interfaces.

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

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

On the next page, we will see that the bridge is active and has obtained the same IP as the enp0s3 interface:

If you want to check the system log, click "Logs", we can view the log according to the severity:

to sum up

The above is the method of installing and using Cockpit on CentOS 8/RHEL 8 introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message. The editor will reply to you in time. Thank you very much for your support to the ZaLou.Cn website!
If you think this article is helpful to you, welcome to reprint, please indicate the source, thank you!

Recommended Posts

How to install and use Cockpit on CentOS 8/RHEL 8
How to install and use Docker on CentOS 7
How to install and use Composer on CentOS 8
How to install and use Curl on CentOS 8
How to install and use Docker on Ubuntu 20.04
How to install and configure VNC on CentOS 8
How to install and use Curl on Ubuntu 18.04
How to install and use Composer on Ubuntu 18.04
How to install and use Wine on Ubuntu 18.04
How to install and configure Redis on CentOS 8
How to install Node.js and npm on CentOS 8
How to install and use Composer on Ubuntu 20.04
How to install and use BaasBox on Ubuntu 14.04
How to install and use PostgreSQL on Ubuntu 16.04
How to install jdk1.8.0_151 and mysql5.6.38 on centos7.2.1511
How to install and configure phpMyAdmin on CentOS 6
How to install and configure Owncloud on CentOS 8
How to install Docker CE on RHEL 8 / CentOS 8
How to install and uninstall tomcat on centos
How to install and use Docker on Ubuntu 16.04
How to install and configure Redmine on CentOS 8
How to install jdk1.8 on centOS7
How to install MySQL on CentOS 8
How to install Memcached on CentOS 8
How to install R on CentOS 8
How to install FFmpeg on CentOS 8
How to install Virtualbox on CentOS 8
How to install TensorFlow on CentOS 8
How to install TeamViewer on CentOS 8
How to install Perl 5 on CentOS
How to install Git on CentOS 8
How to install Gradle on CentOS 8
How to install Elasticsearch on CentOS 8
How to install Jenkins on CentOS 8
How to install Java on CentOS 8
How to install Go on CentOS 8
How to install and use MySQL Workbench on Ubuntu 18.04
How to install GCC on CentOS 8
How to install Yarn on CentOS 8
How to install Asterisk on CentOS 7
How to install Jenkins on CentOS 8
How to install Python 3.8 on CentOS 8
How to install Tomcat 9 on CentOS 8
How to install Webmin on CentOS 8
How to install Ruby on CentOS 8
How to install Skype on CentOS 8
How to install htop on CentOS 8
How to install Python on CentOS 8
How to install Elasticsearch on CentOS 8
How to install Postgresql on CentOS 8
How to install Wordpress on Centos
How to install htop on CentOS 8
How to install TeamViewer on CentOS 8
How to install MariaDB on CentOS 8
How to install MongoDB on CentOS 7
How to install Odoo 13 on CentOS 8
How to install Apache on CentOS 8
How to install OpenCV on CentOS 8
How to install PHP on CentOS 8
How to install MongoDB on CentOS 8
How to install and configure Postfix mail server on CentOS8