Files
.infineon/_-Review/cockpit.md
2024-11-25 23:41:54 -07:00

1.7 KiB

assigned, created, progress, tags, type, updated
assigned created progress tags type updated
2024-07-26T23:21:44.132Z 0
Hosts
note 2024-11-13T01:47:38.000Z

Cockpit

apt-cache rdepends cockpit
apt install cockpit -y
passwd phares
apt-get install cockpit cockpit-podman -y
systemctl enable --now cockpit.socket

Cockpit SSL

systemctl restart cockpit.service
systemctl restart cockpit.socket
nano /etc/cockpit/cockpit.conf

conf 1731356299846 = 638669530998460000 = Mon Nov 11 2024 13:18:19 GMT-0700 (Mountain Standard Time) [WebService] Origins = https://cockpit.affirm.duckdns.org wss://cockpit.affirm.duckdns.org ProtocolHeader = X-Forwarded-Proto


```bash 1731358497471 = 638669552974710000 = Mon Nov 11 2024 13:54:57 GMT-0700 (Mountain Standard Time)
mv /etc/cockpit/ws-certs.d/0-self-signed.cert /etc/cockpit/ws-certs.d/0-self-signed.cert.old
cp /root/.acme.sh/wild-affirm/affirm.duckdns.org.cer /etc/cockpit/ws-certs.d/0-self-signed.cert
mv /etc/cockpit/ws-certs.d/0-self-signed.key /etc/cockpit/ws-certs.d/0-self-signed.key.old
cp /root/.acme.sh/wild-affirm/affirm.duckdns.org.key /etc/cockpit/ws-certs.d/0-self-signed.key
chmod 774 -R /etc/cockpit/ws-certs.d
systemctl stop cockpit.socket
systemctl stop cockpit
journalctl --rotate
journalctl --vacuum-time=1s
journalctl -u cockpit
systemctl start cockpit.socket
systemctl start cockpit