Files
portfolio/labs/linux/setup/docs/cockpit.md
T
Mateusz Suski 4e739c5c99
lint / shell-yaml-ansible (push) Failing after 16s
Add Linux fresh setup toolkit
2026-06-06 00:23:11 +00:00

1.1 KiB

Cockpit

Purpose

The Cockpit profile installs browser-based host administration modules for system state, storage, networking, packages, virtual machines, metrics, and support reports. It enables the socket-activated service.

Installation and validation

sudo ./install.sh --cockpit
systemctl status cockpit.socket
ss -ltnp | grep ':9090'

Connect to https://HOSTNAME:9090. A browser warning is expected when the default host certificate is not trusted.

cockpit-files is installed when available and skipped with a warning otherwise.

Access and firewall

The Cockpit profile does not change UFW. Explicit toolkit UFW enablement allows TCP 9090, but upstream firewalls and network ACLs remain external concerns. Use normal Linux accounts and review which users may administer the host.

Troubleshooting and rollback

journalctl -u cockpit.socket -u cockpit.service
systemctl restart cockpit.socket
apt-cache policy cockpit cockpit-machines cockpit-files

To disable remote access without removing packages:

sudo systemctl disable --now cockpit.socket