How to Install Cockpit on Ubuntu 18.04

Prerequisites

Install Cockpit on Ubuntu 18.04

sudo apt update
sudo apt -y install cockpit
sudo systemctl start cockpit.socket
sudo systemctl enable cockpit.socket

Working with Cockpit

https://ip-address:9090

The Logs Section

The Storage Section

The Network Section

The Accounts and Services Sections

1. Cockpit Configuration File — cockpit.conf

WebService

[WebService]
Origins = https://somedomain1.com
https://somedomain2.com:9090
[WebService]
ProtocolHeader = X-Forwarded-Proto

Log

OAuth

2. Cockpit Web Service — cockpit-ws

Transport Security

$ sudo remotectl certificate
CERT_FILE=/etc/pki/tls/certs/$(hostname).pem
KEY_FILE=/etc/pki/tls/private/$(hostname).key
getcert request -f ${CERT_FILE} -k ${KEY_FILE} -D $(hostname --fqdn) –
C "sed -n w/etc/cockpit/ws-certs.d/50-from-certmonger.cert
${CERT_FILE} ${KEY_FILE}"

Timeout

Options

Environment

3. Remote Access Configuration — remotectl

Commands

Options

4. Cockpit Host Bridge — cockpit-bridge

Options

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store