How to install Cockpit in Ubuntu

How to install Cockpit in Ubuntu

Cockpit is a free and open source web-based system management tool through which users can easily monitor and manage multiple remote Linux servers. It is very thin and light weight utility. The user can easily monitor the terminal errors through the cockpit journal interface. This tutorial covers the cockpit on Ubuntu.

Installation procedure

To start with the installation procedure, add the repository to the system by executing the following command.

root@linuxhelp:/home/user1/Desktop# add-apt-repository ppa:cockpit-project/cockpit
 Cockpit makes it easy to administer your GNU/Linux servers via a web browser.
 More info: https://launchpad.net/~cockpit-project/+archive/ubuntu/cockpit
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmp_9hqvtz1/secring.gpg'  created
gpg: keyring `/tmp/tmp_9hqvtz1/pubring.gpg'  created
gpg: requesting key C99782CC from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp_9hqvtz1/trustdb.gpg: trustdb created
gpg: key C99782CC: public key " Launchpad PPA for Cockpit"  imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK

The repository is added to the target system. Run the apt-get update command to update the local repository index.

root@linuxhelp:/home/user1/Desktop# apt-get update
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Get:2 http://ppa.launchpad.net/cockpit-project/cockpit/ubuntu xenial InRelease [18.1 kB]
Hit:3 http://in.archive.ubuntu.com/ubuntu xenial InRelease                         
Hit:4 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease                 
Hit:5 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:6 http://ppa.launchpad.net/cockpit-project/cockpit/ubuntu xenial/main amd64 Packages [2,708 B]
Get:7 http://ppa.launchpad.net/cockpit-project/cockpit/ubuntu xenial/main i386 Packages [2,700 B]
Get:8 http://ppa.launchpad.net/cockpit-project/cockpit/ubuntu xenial/main Translation-en [1,116 B]
Fetched 24.6 kB in 1s (18.9 kB/s)           
Reading package lists... Done

The target system is updated with the required repository. Install the cockpit package by executing the following command.

root@linuxhelp:/home/user1/Desktop# apt-get install cockpit
Reading package lists... Done
Building dependency tree      
Reading state information... Done
&hellip 
&hellip 
&hellip 
Setting up cockpit (140-0) ...
Setting up cockpit-networkmanager (140-0) ...
Setting up cockpit-storaged (140-0) ...

Open the web browser and navigate to the following URL http://192.168.7.248:9090 and it leads to the cockpit login page.

After entering the cockpit credentials, the cockpit dashboard appears and the user can view the CPU, memory, disk and network traffic information.

The user can also view the system logs of the target servers.

The storage used by the target machine can be viewed in the application.

The networking details of the target servers can also be viewed in the application.

There are two default user accounts namely root and user1 which the user can configure accordingly.

There is a list of services in the application dashboard from which the user can choose from.

The terminal can also be accessed via this cockpit application.

Wasn' t that an easy installation procedure? The cockpit management tool is easy to user and has no interference and also supports multi-server.

FAQ
Q
Why can't I see closed CTA's if I group by Due Date, or filter to include them?
A
From Cockpit, if CTA's are grouped by Due Date, you will not see closed CTAs even if you filter to include them. This is because anything that is closed will not have an upcoming due date or be due today.
Q
What's the maximum number of CTAs I can view in Cockpit?
A
CTA's in Cockpit will max out at 1000 for each view. You can use the built in filters/groupings to narrow your search and it will still respect the 1000 views.
Q
Why do I have preferred the Cockpit?
A
It is very thin and light weight utility and the user can easily monitor the terminal errors through the cockpit journal interface
Q
What is the alternative to the Cockpit?
A
The following alternative tools are available for Cockpit,
Webmin,
Portainer,
SeaLion.
Q
How does Gainsight prevent duplicate CTAs, and/or update existing CTAs?
A
When a rule generates a CTA, Gainsight checks for any existing open CTAs containing several identifiers. Account, Type, and Reason are always used as Identifiers and optionally Name can be used as an identifier. If there is an open CTA with the same Identifiers, then the existing CTA is updated; otherwise, a new CTA is created. If there are multiple open CTAs with the same identifiers, then only one of the CTAs is updated. While updating, we update the priority, if the priority of the existing CTA is lower than the new CTA. Comments are updated based on the Comments setting in the rule (comments will not include the updated properties, it includes the comments that the rule is trying to post, based on settings like post once, always, or never). For Relationship level CTAs, Relationship will also be included in the default identifier.