Last Updated on
Insight: Tutorial To Install Cockpit on CentOS 8
In this tutorial post, we are going to show you the easy way to install Cockpit on CentOS 8. Cockpit is a webbased server management software. It is free and open source tool.
Install Cockpit on CentOS 8
At first, you need to update the system.
sudo yum -y update CentOS-8 - AppStream 1.7 kB/s | 4.3 kB 00:02 CentOS-8 - Base 1.2 kB/s | 3.8 kB 00:03 CentOS-8 - Extras 1.4 kB/s | 1.5 kB 00:01 Extra Packages for Enterprise Linux 8 - x86_64 12 kB/s | 32 kB 00:02 Extra Packages for Enterprise Linux 8 - x86_64 86 kB/s | 1.7 MB 00:20 Dependencies resolved. Nothing to do. Complete!
In Centos 8, the Cockpit packages are included in the extras repository by default. Run the following command to intall cockpit on CentOS 8.
sudo yum install cockpit
Type “y” to start downloading and installing the required packages.
Run the following command to enable the Cockpit with the following command:
sudo systemctl enable --now cockpit.socket Created symlink /etc/systemd/system/sockets.target.wants/cockpit.socket → /usr/lib/systemd/system/cockpit.socket.
sudo systemctl start cockpit
Run the following command to make sure the firewall will not block the Cockpit.
sudo firewall-cmd --permanent --zone=public --add-service=cockpit Warning: ALREADY_ENABLED: cockpit success sudo firewall-cmd --reload success
Access the dashboard: