In this tutorial, we will show you how to install Cockpit on Debian 10. For those of you who didn’t know, a Cockpit is a free software that delivers a web-based interface for your system admin to do tasks, such as launching containers, storage management, network setup, inspecting logs, and so forth. The Cockpit web console utilizes the same system APIs as you would in a terminal, and tasks performed in a terminal are quickly reflected in the web console. In addition, you can configure the settings directly in the web console or through the terminal.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘
sudo‘ to the commands to get root privileges. I will show you through the step by step installation Cockpit on a Debian 10 (Buster) server.
Install Cockpit on Debian 10 Buster
Step 1. Before we install any software, it’s important to make sure your system is up to date by running these following
apt commands in the terminal:
The cockpit service is included in the Debian repositories by default, run the following command to install Cockpit:
Once the Cockpit is installed, start the Cockpit service and enable it to start at system reboot with the following command:
If you have a running UFW firewall service, allow port 9090:
After installing Cockpit, you can access you access the console by visiting your domain or IP on port 9090 which Cockpit uses. Example
http://server-ip-address:9090 and complete the required steps to finish the installation. We’ll be asked to enter the login details in order to enter into the dashboard. Here, the username and password are the same as that of the login details we use to login to our Linux server.
Congratulations! You have successfully installed the Cockpit. Thanks for using this tutorial for installing Cockpit on Debian 10 Buster system. For additional help or useful information, we recommend you to check the official Cockpit website.