Cockpit in Linux and How to Install and Enable it

















Linux Cockpit is a web-based interface that provides graphical administrative access for a system. It's a user-friendly web-based console.
Single Cockpit system can be used to manage multiple servers as well.

Install the cockpit and cockpit-dashboard packages:

$ sudo yum install cockpit cockpit-dashboard

The cockpit-dashboard package provides the "Dashboard" tab in the interface. This package is optional, but is assumed to be installed in this guide.

Allow external connections to port 9090 through the firewall:

#  firewall-cmd --add-port=9090/tcp
#  firewall-cmd --permanent --add-port=9090/tcp

Enable and start the cockpit.socket service:

$ sudo systemctl enable cockpit.socket
$ sudo systemctl start cockpit.socket

Cockpit is now installed and running.


Open cockpit interface

Open a web browser and enter the server’s IP address with port 9090 in the address bar. If the web browser is on the Cockpit server, open https://localhost:9090 or https://hostname:9090





If you like please follow and comment