Log into your Ubuntu Server instance and issue the command:
sudo apt-get install cockpit -y
Once the installation completes, start and enable Cockpit with:
sudo systemctl enable --now cockpit.socket
Now that Cockpit is installed and running, you can log in. However, depending on how your system is set up, you’ll want to make sure the user you log into Cockpit with has sudo privileges. For that, you would issue the command:
sudo usermod -aG sudo USER
Where USER
is the name of the user in question.
Open a web browser and point it to https://SERVER:9090
. You should be greeted by the login screen (Figure A).
Figure A