In this article, we will have explained the necessary steps to install and configure Cockpit on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with
sudo privileges. All the commands in this tutorial should be run as a non-root user.
Cockpit is an open-source application based on a web interface that allows you to control, monitor, and manage the operation of a Linux server. Among its main features are its ease of installation and its bright design that makes it very simple to use.
Install Cockpit on Ubuntu 20.04
Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.
sudo apt update sudo apt upgrade
Step 2. Install Cockpit on Ubuntu.
The cockpit is available on Ubuntu’s official repositories. The installation is as simple as running a one-liner set of commands:
sudo apt install cockpit
Then, start the service and finally, check the service status:
sudo systemctl start cockpit sudo systemctl status cockpit
Step 3. Setting up the firewall.
If you are running a firewalld on the system, you need to open the cockpit port 9090 in the firewall:
sudo ufw allow 9090/tcp
Step 4. Accessing Cockpit from Browser.
By default, Cockpit includes a self-signed SSL/TLS certificate and can be accessed via the browser using the address,
https://your-ip-address:9090. By default, Cockpit is configured to allow logins using the username and password of any local account on the system.
That’s all you need to do to install Cockpit on Ubuntu 20.04 LTS Focal Fossa. I hope you find this quick tip helpful. Don’t forget to share your valuable queries/suggestions in the below comment box & also drop your worthwhile feedback.