Cockpit on Ubuntu 24.04apt install cockpit -ysystemctl enable cockpit.socketsystemctl start cockpitsystemctl status cockpitapt-get install podman cockpit-podman -y systemctl enable --now podman # vi /etc/cockpit/disallowed-users
Ensure that root login is enabled for Cockpit. Check /etc/cockpit/cockpit.conf and remove disallowed-users = root
# systemctl status cockpitsudo ufw allow 9090/tcpsudo ufw allow 80/tcpsudo ufw allow 443/tcpsudo ufw reloadSecure Cockpit with Trusted SSL Certificates
sudo apt install snapd -ysudo snap install certbot --classicGenerate a new Let's Encrypt SSL certificate using your mail.worldcm.net Cockpit domain. Replace mail.worldcm.net with your actual domain and admin@worldcm.net with your active email address.certbot --standalone certonly -d mail.worldcm.net -m admin@worldcm.net --agree-tos***Verify that Certbot auto-renews the SSL certificate before expiry.sudo certbot renew --dry-runsudo cat /etc/letsencrypt/live/mail.worldcm.net/fullchain.pem /etc/letsencrypt/live/mail.worldcm.net/privkey.pem > worldcm.certsudo mv cockpit.cert /etc/cockpit/ws-certs.d/sudo systemctl restart cockpit.sockethttps://mail.worldcm.net:9090LLL