In this article, we will have explained the necessary steps to install Cockpit on Ubuntu 22.04. 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.
A cockpit is a web-based tool that provides a graphical interface for server administration. Thanks to its web-based management, keeping track of what’s going on with your server is easier than ever. The cockpit also makes it easier for users that don’t have much experience with servers to better manage their systems without having to learn to use the command line.
- Operating System with Ubuntu 22.04
- 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 Ubuntu 22.04 LTS
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 sudo apt install software-properties-common apt-transport-https wget
Step 2. Install Cockpit on Ubuntu Linux.
Installing Cockpit on your Ubuntu 22.04 Jammy Jellyfish system is straightforward, you can install Cockpit using the following command:
sudo apt install cockpit
Once Cockpit installation is complete, start its service using the following
sudo systemctl enable --now cockpit.socket sudo systemctl status cockpit.socket
Step 3. Set Up Firewall.
Run following ‘
ufw’ command to allow cockpit port in OS firewall:
sudo ufw allow 9090/tcp
Step 4. Access Cockpit Web UI.
Now access your Ubuntu/Debian system via the Cockpit web interface via the address
http://your-ip-address:9090. You should see the Cockpit login page:
That’s all you need to do to install Cockpit on Ubuntu 22.04 LTS Jammy Jellyfish. I hope you find this quick tip helpful. For further reading on the install Cockpit server management, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.