Cockpit is a lightweight, web-based server monitoring and management tool that provides real-time stats, logs, and easy access to manage system services. With Cockpit, you can monitor system performance, view and analyze logs, start/stop services, and more, all from a user-friendly dashboard.
Step 1: Access Your AnonVM Server
- Log in to your AnonVM VPS through SSH:
your-vps-ip
with the IP address of your server.
Replace
Step 2: Install Cockpit
Cockpit is available in the default repositories of most Linux distributions, making it easy to install.
-
For Debian/Ubuntu-based systems: Update your package list and install Cockpit:
-
For CentOS/RHEL systems: On RHEL/CentOS 8 and later, Cockpit comes pre-installed. If not, enable the EPEL repository and install it:
-
For Fedora systems: Cockpit is available by default, so you can install it directly:
Step 3: Start and Enable Cockpit
-
Enable the Cockpit service to start automatically on boot:
-
Verify that Cockpit is running:
If the service is active, you’re ready to access the web interface.
Step 4: Configure Firewall Rules
To access Cockpit's web interface, ensure that port 9090 is open on your server.
-
For UFW (Ubuntu):
-
For Firewalld (CentOS/RHEL):
Step 5: Access the Cockpit Web Interface
- Open a web browser and go to:
- Log in with your server credentials (root or any sudo-enabled user).
Step 6: Explore Cockpit Features
Once logged in, you can start monitoring and managing your server. Key features include:
- System Overview: Monitor CPU, memory, and disk usage in real-time.
- Logs: View and analyze system logs directly from the dashboard.
- Networking: Monitor network interfaces, bandwidth usage, and open ports.
- Storage: Manage disks, partitions, and mounted file systems.
- Services: Start, stop, and restart services, making it easy to manage daemons.
- Terminal: Access a web-based terminal to execute commands directly on your server.
Step 7: Optional Plugins and Extensions
Cockpit supports several plugins for enhanced functionality, including:
- Cockpit Dashboard: For multi-server monitoring.
- Cockpit PackageKit: For package updates and installation management.
- Cockpit NetworkManager: For detailed network configuration.
To install plugins, use your package manager, for example:
Conclusion
Cockpit provides an intuitive, powerful interface for managing and monitoring your AnonVM server. With real-time metrics and easy-to-use controls, it simplifies server maintenance and enhances productivity, especially when managing multiple servers or services remotely.