Cockpit Installation
About Cockpit
Cockpit is a web-based graphical interface for servers, intended for everyone, especially those who are new to Linux server management.
Key Features
- User-Friendly: Designed to be simple to navigate and use, reducing the need for extensive command-line knowledge.
- Web-based Interface: Access and manage your servers through an intuitive web browser, typically on port 9090.
- Real-time Monitoring: Provides dashboards to monitor system performance (CPU, memory, disk, network), view logs, and track system health.
- System Management: Allows you to manage users and groups, configure network settings, manage storage (including partitions, LVM, RAID), and control system services (start, stop, enable, disable).
- Software Updates: Enables you to manage and apply software updates.
- Firewall Configuration: Simplifies the process of configuring and managing the system firewall.
- Virtualization Management: Can manage virtual machines (with the cockpit-machines package).
- Container Management: Supports managing Podman containers (with the cockpit-podman package).
- Remote Management: You can manage multiple Linux servers from a single Cockpit instance by adding them to the dashboard.
- Integrated Terminal: Provides a web-based terminal for direct command-line access when needed.
- Extensibility: Cockpit's functionality can be extended through add-ons and custom modules.
- Efficiency: Cockpit only runs on demand, thanks to systemd socket activation, minimizing resource consumption when not in use.
- Compatibility: It utilizes the same system tools and APIs you would use in the command line, so changes made in Cockpit are reflected in the terminal and vice versa.
Installation Steps in Debian/Ubuntu/Linux Mint
- Open a terminal on your Linux server.
- Update your package manager:
sudo apt update - Install Cockpit:
sudo apt install cockpit - Start the Cockpit service:
sudo systemctl start cockpit - Enable Cockpit to start on boot:
sudo systemctl enable cockpit - Open your web browser and navigate to:
http://your_server_ip:9090
Installation Steps in Fedora/CentOS/RHEL
- Open a terminal on your Linux server.
- Update your package manager:
sudo dnf update - Install Cockpit:
sudo dnf install cockpit - Start the Cockpit service:
sudo systemctl start cockpit - Enable Cockpit to start on boot:
sudo systemctl enable cockpit - Permanently entry in firewall:
sudo firewall-cmd --permanent --add-service=cockpit - Reload the firewall:
sudo firewall-cmd --reload - Open your web browser and navigate to:
http://your_server_ip:9090
Installation Steps in openSUSE
- Open a terminal on your Linux server.
- Update your package manager:
sudo zypper refresh - Install Cockpit:
sudo zypper install cockpit - Start the Cockpit service:
sudo systemctl start cockpit - Enable Cockpit to start on boot:
sudo systemctl enable cockpit - Permanently entry in firewall:
sudo firewall-cmd --permanent --add-service=cockpit - Reload the firewall:
sudo firewall-cmd --reload - Open your web browser and navigate to:
http://your_server_ip:9090