On this article we will discuss how to install the latest version of Cockpit, a web-based graphical interface server management tools on CentOS 8 operating system.
Cockpit is a free and open-source web-based server management tools. By using Cockpit, Linux users or System Administrators can perform number of system tasks on the server, such like : system monitoring, administering storage, usage networks monitoring, logs inspection, services management, managing containers and so on. Cockpit uses APIs that already exist on the system. It doesn’t reinvent subsystems or add a layer of its own tooling. By default, Cockpit uses our own system’s normal user logins and privileges. Network-wide logins are also supported through single-sign-on and other authentication techniques. On this article we will show you how to install Cockpit on Centos 8 Operating system.
Cockpit Installation on CentOS 8
On this article we will use Cockpit software version 238.2, while the last version is 248.2 has been available on Cockpit official website which was released on 7 July 2021. Before Cockpit installation process begins, there are several prerequisites that must be met, namely:
- A CentOS 8 Server with sufficient disk space
- An account with sudo or root access to run privileged commands.
- CentOS utility for installing new package/software (such as : dnf, yum).
The installation process will be consist of several stages as explained below.
- Updating CentOS sytem
- Install Cockpit
- Enable Cockpit system service
- Testing Cockpit
1. Updating CentOS 8 System
At the first stage, we will update our CentOS 8 system. By updating the system, we will have our server with all the latest stable releases from CentOS Repository. This task can be done by submitting command line :
sudo dnf -y update.
[ramans@otodiginet ~]$ sudo dnf -y update [sudo] password for ramans: CentOS Linux 8 - AppStream 3.3 kB/s | 4.3 kB 00:01 CentOS Linux 8 - AppStream 1.5 MB/s | 8.2 MB 00:05 CentOS Linux 8 - BaseOS 4.7 kB/s | 3.9 kB 00:00 CentOS Linux 8 - BaseOS 843 kB/s | 4.5 MB 00:05 CentOS Linux 8 - Extras 2.4 kB/s | 1.5 kB 00:00 MariaDB Server 1.9 kB/s | 3.4 kB 00:01 MariaDB MaxScale 1.2 kB/s | 2.5 kB 00:02 MariaDB MaxScale 1.6 kB/s | 7.1 kB 00:04 MariaDB Tools 1.9 kB/s | 2.9 kB 00:01 Dependencies resolved. ======================================================================================================================== Package Arch Version Repository Size ======================================================================================================================== Installing: kernel x86_64 4.18.0-305.10.2.el8_4 baseos 5.9 M kernel-core x86_64 4.18.0-305.10.2.el8_4 baseos 36 M kernel-devel x86_64 4.18.0-305.10.2.el8_4 baseos 18 M kernel-modules x86_64 4.18.0-305.10.2.el8_4 baseos 28 M Upgrading:
2. Install Cockpit Package
After our CentOS system has been updated to the new last stable repositories, then we will install Cockpit software by executing command line :
sudo dnf install cockpit.
ramans@otodiginet ~]$ sudo dnf install cockpit Last metadata expiration check: 1:00:23 ago on Wed 28 Jul 2021 12:25:56 AM PDT. Dependencies resolved. ======================================================================================================================== Package Architecture Version Repository Size ======================================================================================================================== Installing: cockpit x86_64 238.2-1.el8 baseos 76 k Installing dependencies: clevis x86_64 15-1.el8 appstream 57 k cockpit-bridge x86_64 238.2-1.el8 baseos 535 k cockpit-system noarch 238.2-1.el8 baseos 3.4 M cockpit-ws x86_64 238.2-1.el8 baseos 1.3 M jose x86_64 10-2.el8 appstream 58 k
3. Enable Cockpit system service
After Cockpit installation was completed done, then we will enable and start its service to be available and running on the system. For this purpose, we will hit the command line :
sudo systemctl enable --now cockpit.socket and
sudo systemctl start cockpit then we verify its service by submitting command line :
sudo systemctl status cockpit, as shown below.
[ramans@otodiginet ~]$ sudo systemctl enable --now cockpit.socket Created symlink /etc/systemd/system/sockets.target.wants/cockpit.socket → /usr/lib/systemd/system/cockpit.socket. [ramans@otodiginet ~]$ sudo systemctl status cockpit ● cockpit.service - Cockpit Web Service Loaded: loaded (/usr/lib/systemd/system/cockpit.service; static; vendor preset: disabled) Active: inactive (dead) Docs: man:cockpit-ws(8) [ramans@otodiginet ~]$ sudo systemctl start cockpit [ramans@otodiginet ~]$ sudo systemctl status cockpit ● cockpit.service - Cockpit Web Service Loaded: loaded (/usr/lib/systemd/system/cockpit.service; static; vendor preset: disabled) Active: active (running) since Wed 2021-07-28 00:52:28 PDT; 4s ago Docs: man:cockpit-ws(8) Process: 87132 ExecStartPre=/usr/sbin/remotectl certificate --ensure --user=root --group=cockpit-ws --selinux-type=et> Main PID: 87138 (cockpit-tls) Tasks: 1 (limit: 23535) Memory: 940.0K CGroup: /system.slice/cockpit.service └─87138 /usr/libexec/cockpit-tls Jul 28 00:52:24 otodiginet systemd: Starting Cockpit Web Service... Jul 28 00:52:28 otodiginet systemd: Started Cockpit Web Service. lines 1-13/13 (END)...skipping...
4. Testing Cockpit Application Tools
At this point, we will test Cockpit application tools by using web browser and supplying system user and its password to login to the application. The default URL of Cockpt is :
https://[hosted_ip_address]:9090/. On my article we will user url :
We can also add some additional features to be managed on our server. For this purpose we can easily add it to our Cockpit application, as shown below.
So far, on this article we have shown you how to install Cockpit, a server management tools on CentOS 8 operating sytem. I hope this article can be useful for those who need it.