Meet Cockpit, a powerful server administration tool through your browser.

listen tutorial


Cockpit is an interactive server administration interface. It’s easy to use and very light. Cockpit interacts directly with the operating system from a real Linux session in a browser. It can be installed on many Linux operating systems including Debian, Fedora and RHEL.

Cockpit allows system administrators to easily perform tasks like starting containers, virtualization, storage administration, network configuration, inspecting logs, and so on.

Distribution used in this tutorial:
Debian 11 (Bullseye) 64-bit minimal installation
How to improve productivity on your Debian after installation (Recommended)

Enabling Backports repository

I will use the repository backports to get the latest Cockpit packages (has more features)

Cockpit Installation

We will install the cockpit with some basic “extensions”.

Cockpit is run using port 9090, to check if the table is open run:

Open in your browser http://HOST:9090/

Enter your operating system username and password. All users will log in, systems like Ubuntu you can login with your common user and ask for permissions, but in this case as it is a debian I will login directly with root.


One of the things I don’t like is that during the installation of the cockpit we get a free gift from an exim4 e-mail service, as I have no less interest in having it running I will deactivate it.

Managing Virtual Machines


How about uploading VMs without a system like VMware, Proxmox, Xen, Virtualbox, among others?
libvirt-dbus to enumerate machines, get status update notifications and operations like start/stop/delete
virt-install e virt-xml to create and modify machine definitions; both are part of the project virt-manager
Install packages:

The images (disks) of the VMs are in /var/lib/libvirt/images

Managing Containers


Ativa no Cockpit interface para containers Podman which is a cross-platform, command-line, Open-Source tool that allows you to create and manage container images directly.

One of Podman’s biggest differences is that it doesn’t need a service (daemon-less) running in the background to work, and it’s completely Free and Open-Source. It is a friendly alternative for those who are already used to Docker, since it is based on the Docker CLI, having compatibility with Docker images and also supporting Dockerfile’s and being possible to even run docker-compose.yml with podman-compose.

install the package cockpit-subman

For security I recommend you apply a firewall with nftables (already installed in Debain 11) protecting port 9090 only for your local network.

Liked? If you want to support the blog and make a donation to the cafe, I will be very happy for your recognition!

If you can’t donate, you can leave your thanks in the comments, I’ll also be happy to know that I helped. If you have any questions, please leave them too. If you prefer to get in touch click here.

Hug!

Sources:
https://cockpit-project.org/
https://github.com/cockpit-project/cockpithttps://github.com/cockpit-project/cockpit-machines
https://github.com/cockpit-project/cockpit-podman



Dicas,Linux,Tutoriais,Bullseye,centos,cockpit,containers,debian 11,docker,fedora,libvirt,libvirt-bin,podman,redhat,virtualbox,virtualização,

#Meet #Cockpit #powerful #server #administration #tool #browser

Leave a Comment

Your email address will not be published. Required fields are marked *