Installation Process
Updating the installed packages to the most recent versions and updating the system’s package list are always wise first steps.
Step 1: Enter the following commands into an open terminal
sudo apt update
sudo apt upgrade
Step 2: Installing Cockpit is easy because it’s accessible from the official Ubuntu 22.04 repositories. Installing it with the apt package management is possible:
sudo apt install cockpit
The system will ask you to confirm the installation by typing ‘Y’ and pressing Enter after executing this command. Cockpit and its dependencies will be downloaded and installed by the package management.
Step 3: After installing Cockpit, you must activate and set up the service so that it launches automatically when the computer boots up. Make use of following commands.
sudo systemctl start cockpit
systemctl status cockpit
To ensures that Cockpit will continue to function even after a system reboot.
Step 4: By default, Cockpit utilises port 9090. Open your web browser and type the following URL to access the web interface.
https://(Your server IP Address):9090
Note: Put your Ubuntu 22.04 server’s real IP address in the URL. Because the connection is using a self-signed certificate, your browser will issue a security warning. By receiving the certificate, you can move forward.
Step 5: The Cockpit login screen will be shown to you. The same login credentials you use to access your server can also be used to log in. Users are authenticated by Cockpit using the system accounts.
How to install Cockpit on Ubuntu 22.04 for better server
A reliable and efficient server architecture depends on server administration. To make managing your Ubuntu 22.04 server easier, you can use Cockpit, a straightforward web-based interface that provides an intuitive dashboard for system operations and server administration. In this article, we’ll learn about installing Cockpit on your Ubuntu 22.04 server.