How To Install & Use Cockpit Web Console On Ubuntu Server?

How To Install & Use Cockpit Web Console On Ubuntu Server?


The cockpit is a web console that makes it easy to administer the GNU/Linux server. It has a user-friendly web-based interface that enables you to carry out different system admin tasks in a browser. You can even access the server on your mobile using a web browser.

We can install the cockpit in the Ubuntu server so that you can manage it by accessing inside a web browser. So let’s see how we can install it on the Ubuntu server.

How to install cockpit in Ubuntu

To access the Ubuntu server using a web browser you need to have cockpit package installed on your system. The Ubuntu server 20.04 LTS minimal setup does not contains the cockpit by default so you need to install it.

First, use the following command to update the OS repository –

sudo apt update

And then use the following command to install cockpit in your system –

sudo apt install cockpit

If it asks for confirmation press y and hit enter. Once it gets installed move to the next step.

Start cockpit service

Currently, the cockpit service is inactive on your system and it would not start automatically on system reboot. You need to start and enable it manually so that it can connect with the web console.

Use the following command to start the service in Ubuntu server –

sudo systemctl start cockpit

Check the status of cockpit service on your system

To check if cockpit service is running on your system or not, use the following command in your terminal –

sudo systemctl status cockpit

As you can see in the image below cockpit.socket service is running –

Adjust your firewall & allow port 9090

Cockpit listens to service on TCP port 9090. Now if the ufw firewall is enabled on the server then use the following command to allow port 9090.

sudo ufw allow 9090/tcp

Access Ubuntu server remotely using a browser

To access a server remotely by using the cockpit web console first you need to have the IP address or hostname of the server.

You can use the following command to find the IP address of a system –

ip addr

You can find the IP as given in the image below –

To access the Ubuntu server remotely use the URL as given below –




For example –

It can show you a warning in your web browser click on advanced and then click accept the risk and continue or proceed anyway if you are using chrome.

This will display the web login screen where you can log in by using your credentials –

Now once you log in with a privileged user you can perform various administrative tasks such as installing software, managing network services, check logs and system diagnostic reports, etc. You can switch to command line mode by clicking on the terminal option.


Ok, so that’s how you can manage the Ubuntu server from a web browser remotely. now if you want to say something on this then feel free to write us in the comments below.

Previous Using parted command to create partitions in Linux?
Next [kubuntu] VLC not working if network is blocked by firejail?

About author

You might also like

Linux Topics 0 Comments

What Is apt-fast And Why Should You Use It?

This post was last updated on August 2nd, 2020 at 01:35 pmThe apt-fast is a shell script wrapper for apt-get and aptitude that can drastically improve the downloading speed of

Linux Topics 0 Comments

How to install FileZilla in Ubuntu 20.04 LTS ?

Filezilla is a free, opensource, and cross-platform FTP application. This application is based on the client-server model. You can visit Filezilla’s website to download the client and server binaries. The

Linux Topics 0 Comments

How To Change Default Settings Of Grub Bootloader?

This post was last updated on August 3rd, 2020 at 02:59 pmContents1 Grub2 Make Changes Through Your Terminal2.1 Backup the current configuration file-2.2 Make Changes-2.3 Update the grub-3 Make changes


No Comments Yet!

You can be first to comment this post!

Leave a Reply