How to Install CockPit on Ubuntu 20.04

Table of Contents

How to Install CockPit on Ubuntu 20.04





Through the Cockpit, system administrators are able to manage their systems through a web browser. The Cockpit allows you to manage system resources, create and remove users, start and stop programs, restart, and shut down the system. Furthermore, it allows you to administer virtual boxes from the Cockpit through a web browser. Okay, let’s start.








For Ubuntu systems to be registered on the VPSie platform, A VPSie account needs to be created if it hasn’t been created already. Throughout this tutorial, a CentOS instance will be used.







Connect by SSH with the credentials we emailed you once you create your Ubunru instance. Run the following commands to update your system.


# apt-get update && apt-get upgrade -y



Do a reboot,



# sudo reboot






Step 2: Install Cockpit





It’s a straightforward install. Run the following command to install the CockPit.




# sudo apt install cockpit -y





The CockPit service must be started once the installation is complete. Execute the following command.




# sudo systemctl start cockpit




Check CockPit’s status(If the service is inactive, run the above command again):



# sudo systemctl status cockpit






Step 3: Set up the firewall






Port 9090 needs to be opened up in your firewall if it is configured. Port 9090 is used by default by the cockpit.





First check the status of your firewall:



# sudo systemctl status ufw




If it is running, Run the following command to open the port on your firewall: 



# sudo ufw allow 9090/tcp







Step 4: Access the we interface







You can access the web interface of CockPit at https://{ServerIP}:9090. Access your account by entering your credentials and login.










We have successfully installed CockPit system administrators on your Ubuntu instance. You can now monitor and do all the administrative work using a browser. Thanks for reading! I hope it was informative for you! 


Share on