Linux visual management tool Cockpit

Linux visual management tool Cockpit CentOS 8 has a built-in visual management tool Cockpit, which supports some common command line operations. It has a cool interface and powerful functions. It is recommended to everyone!

8 has a built-in visual management tool Cockpit, which supports some common command line operations. It has a cool interface and powerful functions. It is recommended to everyone!

Linux Visual Management Tool-1

Cockpit Overview

Cockpit is a web-based visual management tool built into CentOS 8. It provides interface support for some common command line management operations, such as user management, firewall management, server resource monitoring, etc. It is very easy to use and is known as a Linux management tool that everyone can use.

Below is the management interface of Cockpit, which looks pretty cool!

Linux Visual Management Tool-1

CentOS 8 Installation

 If you want to experience the latest version of Cockpit, you need to install CentOS 8. Let’s briefly talk about the installation of CentOS 8.

The installation of CentOS 8 is basically the same as CentOS 7. Here we install the latest version 8.5.2111. For detailed installation, please refer to the virtual machine installation and use of Linux. Just read this article! , mirror download address:https://vault.centos.org/8.5.2111/isos/x86_64/

Linux Visual Management Tools-2

 Using CentOS 8When you use the command to install software, you often encounter the problem of being unable to download. You can solve this problem by switching to the Alibaba Cloud mirror source. Here, we use the Centos-vault-8.5.2111.repo warehouse configuration;

# First back up the original BaseOS configuration mv /etc/yum.repos.d/CentOS-Linux-BaseOS.repo /etc/yum.repos.d/CentOS-Linux-BaseOS.repo.bak # Then download the new configuration sudo wget -O /etc/yum.repos.d/CentOS-Linux-BaseOS.repo http://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo

The yum repository configuration file is in the /etc/yum.repos.d directory, and then modify CentOS-Linux-.repo file, just copy the appstream part in CentOS-Linux-BaseOS;

[appstream] name=CentOS-8.5.2111 - AppStream - mirrors.aliyun.com baseurl=http://mirrors.aliyun.com/centos-vault/8.5.2111/AppStream/$basearch/os/ http://mirrors.aliyuncs.com/centos-vault/8.5.2111/AppStream/$basearch/os/ http://mirrors.cloud.aliyuncs.com/centos-vault/8.5.2111/AppStream/$basearch/os/ gpgcheck=0 gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official

Run the following command to clear the cache and take effect;

sudo yum clean all sudo yum makecache

 

Next, I queried the installation package information and tested it, and found that it can be used normally.

Linux Visual Management Tools-3

Cockpit installation and startup

 The following describes the installation and startup of Cockpit, which is very simple.

CentOS 8 has Cockpit installed by default, just start the service;

# Configure cockpit service to start automatically at boot systemctl enable --now cockpit.socket # Start cockpit service systemctl start cockpit

If you want to use Cockpit on CentOS 7, you need to install it yourself and open the corresponding service;

# install yum install cockpit # open service firewall-cmd --permanent --zone=public --add-service=cockpit

 

After the installation is complete, you can access Cockpit through a browser and log in using a Linux user (such as the root user). The access address is: http://192.168.3.106:9090/

Linux Visual Management Tools-4

Cockpit Usage

 Previously, we often used the command line to manage Linux servers. With Cockpit, we can happily use the graphical interface. Let's experience the functions of Cockpit.

View the basic information of the server through the overview, including CPU memory usage, system information, server configuration, etc.;

Linux Visual Management Tools-5

Click to use to view more detailed monitoring information of CPU, memory, disk, network, etc. It is basically an interface version of the top command;

Linux Visual Management Tools-6

Through storage, you can view more detailed file system information, manage volume groups and mount NFS;

Linux Visual Management Tools-7

The firewall and network monitoring information can be viewed through the network, and the firewall can be turned on and off;

Linux Visual Management Tools-8

Click on the firewall to view the open service ports. You can open the ports directly by adding services. Are you still using the firewalld command?

Linux Visual Management Tools-9

Container management with Podman can be done likeDownload the image and create a running container as usual;

Linux Visual Management Tools-10

For example, we can useThe image creates an nginx container and runs it on port 80.

Linux Visual Management Tools-11

At this point, you can access the Nginx homepage by directly accessing port 80 of the server;

Linux Visual Management Tools-12

Users in Linux can be easily managed through accounts, and the useradd command is no longer needed;

Linux Visual Management Tools-13

In addition, Cockpit will also remind us when the server software needs to be updated, and the update operation can be performed through software update;

Linux Visual Management Tools-14

You can download some server applications through the application function. Currently, only a few can be installed. I hope there will be more options in the future.

Linux Visual Management Tools-15

If the above functions do not meet your needs, Cockpit also provides command line functions, which can be used by opening a terminal;

Linux Visual Management Tools-16

Cockpit also provides SELinux management functions, which can control its opening and closing.

Linux Visual Management Tools-17

Summarize

As the official built-in visual management tool of CentOS 8, Cockpit does cover many commonly used server management functions, with a cool interface and easy to use! Friends who have upgraded to CentOS 8 may wish to try it!

score

Leave a Reply

Your email address will not be published. Required fields are marked *