In this article, we will have explained the necessary steps to install and set up Cockpit on Debian 10. 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.
The cockpit is a free, open-source, server administration tool that allows you to easily monitor and administer Linux servers via a web browser. This software has a simple, web-based interface for managing the administrative tasks of a Linux-based server through a web browser. The cockpit gives you a real-time report of the CPU, RAM, and disk utilization of your system. Using this application, you can perform server tasks management remotely, such as creating user accounts, configuring the network, managing services, monitoring the system, managing the firewall, configuring OpenVPN, and more. Cockpit supports the Openshift cluster and Kubernetes.
- Operating System with Debian 11
- Server IPv4 Address with Superuser Privileges (Root Access)
- Gnome Terminal for Linux Desktop
- PuTTy SSH client for Windows or macOS
- Powershell for Windows 10/11
- Familiar with APT Commands
Install Cockpit on Debian 10
Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.
sudo apt update sudo apt upgrade
Step 2. Install Cockpit on Debian system.
By default, Cockpit is available in the Debian 10 default repository. You can install it by simply running the following command below:
sudo apt install cockpit
Once the Cockpit packages have been installed on your system, start the Cockpit service and enable it to start at system reboot with the following command:
sudo systemctl enable cockpit sudo systemctl start cockpit
Step 3. Configure firewall for Cockpit.
If the firewall is enabled and running on your system, you need to open the cockpit port 9090 in the firewall:
sudo ufw allow 9090/tcp sudo ufw allow 80
Step 4. Accessing Cockpit Web Interface
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. You will be redirected to the Cockpit web interface as shown below:
That’s all you need to do to install the Cockpit on Debian 10 (Buster). I hope you find this quick tip helpful. For further reading on Cockpit open-source remote management software, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.