Cockpit is a free, open-source, and web-based server management tool that simplifies server administration tasks. It provides a user-friendly interface for managing servers, making it easier for system administrators to monitor and control their servers from a single dashboard.
Key Features:
- System Monitoring: Real-time monitoring of system performance, resource usage, and logs.
- User Management: Manage user accounts, permissions, and access controls.
- Storage Management: Configure and manage storage devices, file systems, and networks.
- Network Configuration: Manage network settings, including interfaces, routes, and firewalls.
- Package Management: Install, update, and manage software packages.
- Security: Configure security settings, including firewalls, SELinux, and access controls.
Benefits:
- Easy to use: Intuitive web-based interface reduces the learning curve for system administrators.
- Centralized management: Manage multiple servers from a single dashboard.
- Real-time monitoring: Quickly identify and resolve system issues.
- Flexible: Extensive plugin architecture allows for customization and extension.
Common Use Cases:
- Managing servers in data centers or cloud environments
- Monitoring and troubleshooting system performance issues
- Automating routine system administration tasks
- Providing a user-friendly interface for non-technical users to manage servers
Installation
1) Run this command:
sudo apt update
sudo apt install cockpit
Default port is 9090.
2) If you need to change the default port, check these steps:
On servers with systemd Cockpit starts on demand via socket activation. To change its port and/or address you should place the following content in the /etc/systemd/system/cockpit.socket.d/listen.conf file. Create the file and directories in that path which not already exist. The ListenStream option specifies the desired address and TCP port.
mkdir -p /etc/systemd/system/cockpit.socket.d
sudo touch /etc/systemd/system/cockpit.socket.d/listen.conf
sudo vim /etc/systemd/system/cockpit.socket.d/listen.conf
[Socket]
ListenStream=
ListenStream=9099
sudo systemctl daemon-reload
sudo systemctl restart cockpit.socket
Now it should be available at Port 9099.
Useful links