Using Cockpit for my home's Linux server management



Cockpit is a service for Linux that provides a web-based interface for managing and monitoring hosts. It can be deployed in any size organization, even a small office, and it's a great way for home users to maintain the family IT infrastructure. I use it to manage and monitor all of the computers in my house—including Raspberry Pi.

Cockpit is a free and open source software project released under the LGPL v2.1+. It is sponsored by Red Hat and included in Red Hat Enterprise Linux as the RHEL Web Console.

Install Cockpit

Cockpit is included in most major distributions. You can install it with the standard package management commands :

$ apt install cockpit

Configuring the Cockpit listening ip and port

Change default TCP on port 9090 to a different one by using the systemctl edit cockpit.socket command :

$ systemctl edit cockpit.socket

This will open the /etc/systemd/system/cockpit.socket.d/override.conf file. Modify the content of override.conf or add a new content in the following format:

[Socket]
ListenStream=
ListenStream=IP ADDRESS:PORT_NUMBER

Run the following commands for changes to take effect:

sudo systemctl daemon-reload
sudo systemctl restart cockpit.socket

ADDONS

The Cockpit Web Console is extendable. The Cockpit team and others have built applications that are easy to install.

I use :


Publié le : 26-09-2023 - 15:45