Today we are going to learn that how to Manage Ubuntu 20.04 Linux With Cockpit Web Console. To make the Server operations more easier, we use some tools and softwares. Some of them are Webmin, Cockpit, ispconfig etc. So, with the help of Cockpit as we are going to install it on our Ubuntu 20.0, we can easily control our Linux Server from a web browser. Cockpit provides the more easy way to perform tasks on your Linux Machine with mouse. It also have the option to start containers, administrate storage, configuring of networks & inspecting of logs. So, by using this tool new Linux users can work easily. Let’s get into the installation of Cockpit.
Some Features of Cockpit
- Multiple Server Ability: You can monitor and adminsterate many servers at the same time.
- Extendable: Provides you a chance to create your own modules to plug them into Cockpit.
- Self Contained: You don’t need any web server to use Cockpit. It is self contained.
- Efficiency: It uses your RAM & CPU while active otherwise no load on your Linux Server.
- Embedded Terminal: Cockpit also provides the embedded terminal that can be used from Web Console.
Just follow the below steps for an easy installation.
Step 1: Update Your System
First of all update your system to have the latest updates installed before going to install any new package. To update your system hit the below command in your terminal.
sudo apt update
Step 2: Install Cockpit On Ubuntu 20.04
Fire the below command to see if the package is available on Ubuntu repository .
apt-cache policy cockpit
$ apt-cache policy cockpit cockpit: Installed: (none) Candidate: 215-1 Version table: 218-1~ubuntu20.04.1 100 100 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages 100 http://archive.ubuntu.com/ubuntu focal-backports/universe i386 Packages 100 http://mirror.hetzner.de/ubuntu/packages focal-backports/universe amd64 Packages 100 http://mirror.hetzner.de/ubuntu/packages focal-backports/universe i386 Packages 215-1 500 500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages 500 http://archive.ubuntu.com/ubuntu focal/universe i386 Packages 500 http://mirror.hetzner.de/ubuntu/packages focal/universe amd64 Packages 500 http://mirror.hetzner.de/ubuntu/packages focal/universe i386 Packages
After verifying that the package is available, simply type the following command to install Cockpit on Ubuntu 20.04.
sudo apt install cockpit
Press “Y” to agree to the installation of Cockpit on Ubuntu 20.04.
sabir@Ubuntu20:~$ sudo apt install cockpit Reading package lists… Done Building dependency tree Reading state information… Done The following additional packages will be installed: cockpit-bridge cockpit-dashboard cockpit-networkmanager cockpit-packagekit cockpit-storaged cockpit-system cockpit-ws finalrd libblockdev-mdraid2 libbytesize1 libpwquality-tools mdadm Suggested packages: cockpit-doc cockpit-pcp cockpit-machines sssd-dbus default-mta | mail-transport-agent dracut-core The following NEW packages will be installed: cockpit cockpit-bridge cockpit-dashboard cockpit-networkmanager cockpit-packagekit cockpit-storaged cockpit-system cockpit-ws finalrd libblockdev-mdraid2 libbytesize1 libpwquality-tools mdadm 0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded. Need to get 5,748 kB of archives. After this operation, 8,749 kB of additional disk space will be used. Do you want to continue? [Y/n]Y
Verify the installation by typing
sabir@Ubuntu20:~$ apt-cache policy cockpit
100 http://pk.archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages
100 http://pk.archive.ubuntu.com/ubuntu focal-backports/universe i386 Packages
*** 215-1 500
500 http://pk.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
500 http://pk.archive.ubuntu.com/ubuntu focal/universe i386 Packages
Step 3: Accessing Cockpit Web Console on Ubuntu 20.04
Cockpit by default uses 9090 port so first allow it if you’ve firewall. Run the below command to allow 9090 port.
sudo ufw allow 9090/tcp
Then go to the localhost/9090 or ServerIP:9090 to access the Cockpit Web Console.
So, when you visit the above URL, you’ll see a warning message for the certificate.To navigate to Web Console, click on the “Advanced” button.
Then on the next screen click on “Accept the Risk & Continue” button to go to the Cockpit Console on your Ubuntu 20.04.
Now, provide your user details to login to Cockpit Web Console.
That’s it now you can easily perform different tasks just navigate to different tabs and explore them.
One more interesting thing is that you can easily use the Embedded terminal of Cockpit under the Terminal tab.
So, this is how you can install Cockpit on your Ubuntu 20.04 and manage your servers with it. For more information and detailed reading visit the Cockpit Documentation.