Cockpit – An Easy Way to Administer Multiple Remote Linux Servers via a Web Browser
Cockpit is a free and open source web-based system management tool where users can easily monitor and manage multiple remote Linux srvers. It is very thin and light weight utility & directly interacts with the operating system from a real Linux session and doesn’t require any difficult configuration so just install it, it is ready for use.
Cockpit allows you to monitor system resources, containers management, storage administration, network configuration, inspecting logs and giving options to adjust limits to optimize and control the resources utilization.
It does not have a predefined template and resembling the data from Linux servers which dynamically updates itself to reflect the current state of the server, within a time frame of a few seconds.
Cockpit wont requires specific username, special permission and uses default system users and their system credentials.It doesn’t add a layer of other functionalities & configuration that are not present on your systems, instead it uses system generated configuration files to interact it.
Moving between the terminal and web tool is not a big deal since its resembling the data, so if you stop the services in cockpit can be kick start from terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.
We can easily add multiple remote hosts through cockpit dashboard with single click, which helps newbies to manage the multiple servers at the same time without headache.
- Adjust system resources, CPU shares & memory limits
- Systemd service management
- Containers management
- Storage administration
- Network configuration
- Log management
- User Management
- System Service Management
How to Install Cockpit in Linux
Installing cockpit in Linux is not a big deal and pieces of cakes since its available in major Linux distribution official repository. Its support Fedora, RHEL, CentOS, Ubuntu, Debian & Arch Linux.
For Fedora users, use DNF Package Manager to install cockpit.
$ sudo dnf install cockpit $ sudo systemctl enable --now cockpit.socket $ sudo firewall-cmd --add-service=cockpit $ sudo firewall-cmd --add-service=cockpit --permanent
For CentOS users, use YUM Package Manager to install cockpit.
$ sudo dnf install cockpit $ sudo systemctl enable --now cockpit.socket $ sudo firewall-cmd --permanent --zone=public --add-service=cockpit $ sudo firewall-cmd --reload
For RHEL users, use YUM Package Manager to install cockpit.
$ sudo subscription-manager repos --enable rhel-7-server-extras-rpms $ sudo yum install cockpit $ sudo systemctl enable --now cockpit.socket $ sudo firewall-cmd --add-service=cockpit $ sudo firewall-cmd --add-service=cockpit --permanent
For Debian 8 users, use APT Package Manager or APT-GET Package Manager to install cockpit.
$ sudo sh -c "echo 'deb http://repo-cockpitproject.rhcloud.com/debian/ jessie main' >> /etc/apt/sources.list.d/cockpit.list" $ sudo apt-key adv --keyserver sks-keyservers.net --recv-keys 0D2A45C3F1BAA57C $ sudo apt-key finger F1BAA57C $ sudo apt-get update $ sudo apt-get install cockpit
For Ubuntu 16.04 users, use APT Package Manager or APT-GET Package Manager to install cockpit.
$ sudo add-apt-repository ppa:cockpit-project/cockpit $ sudo apt-get update $ sudo apt-get install cockpit
For Arch Linux users, use Yaourt Package Manager or Packer Package Manager to install cockpit.
$ yaourt -S cockpit or $ packer -S cockpit
How to Access & Use Cockpit in Linux
System Information : After logging in, you will be getting system information page where you can see hostname, operating system, domain, system date & time, hardware information. Also we can get graphs about CPU, Memory, Disk I/O & Network Traffic utilization.
How to Add Remote Hosts
We have to install Cockpit on all remote Linux servers in order to monitor. Goto >> Dashboard >> Enter the Remote Server IP >> Hit Add, which will automatically add the remote servers in cockpit by using system default login details.