Nextpertise a journal of interesting technical ideas . . .

Cockpit

by Brent Stewart on Saturday, May 1, 2021

If “web-based graphical interface for administering Linux” makes you think Webmin, then you need to look at Cockpit. Cockpit is a modern web-based management tool for all your Linux servers. It’s similar to webmin, but slicker.

Login

Installation in Ubuntu is a breeze. I installed this on all my linux machines and can manage all of the systems from one dashboard (again, Cockpit has to be installed on them all). Cockpit is the base install, with other packages to add functionality for storage, networking, pack manager, virtual machines, and containers. After installation, browse to https://linux_ip:9090 to find the login screen for Cockpit. Login using the same credentials you use to login to ssh.

sudo apt install cockpit cockpit-storaged cockpit-networkmanager 
cockpit-packagekit cockpit-machines cockpit-podman

Dashboard

Once logged in, the Dashboard is the information hub. By default it shows processor, memory, network, and storage graphs. From this screen you can also add additional servers to this instance of cockpit (the + button). I have setup several servers on cockpit on my server, and the graph shows all of them.

Click on the server name at the bottom of the Dashboard (or click the Host button on the side) to zoon in to instance specific information. From here you can get hardware details or drill down into different areas.

There is a software updates tab that makes it easy to keep everything up-to-date. Click the update button and watch the progress bar.

Terminal Finally, there’s built-in access to the console from the web interface. If you are managing a server and there’s something that can’t be done from the GUI, just click the terminal tab and do it from the command line.

If you have a group of devices, this is a great way to administer them from one console. The log searching in particular is one of the best implementations I’ve seen. More than that, you can quickly access the things you need in a “headless” environment such as adding accounts, confirming administrative details, or updating software.

I’ll talk about automation in the future but there’s a need for an interactive way to manage servers and this compliments ansible nicely.



References:
  https://cockpit-project.org/

Recent articles related to these tags:
linux
Share this article:   
Tweet