How to Install cockpit on Ubuntu 16.04

How to Install cockpit on Ubuntu 16.04

Cockpit. A remote manager for GNU/Linux servers. Cockpit is a server manager that makes it easy to administer your GNU/Linux servers via a web browser.

Cockpit helps make linux system administrator, system maintainers and DevOps easy to manage their server and to perform simple tasks, such as administering storage, inspecting journals, starting and stopping services and more.

You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.

operating system – Ubuntu 16.04 server

IP Address – also i am using my aws live domain name

sudo add-apt-repository ppa:cockpit-project/cockpit

After adding the repository execute the below command from your terminal

sudo apt-get update

After completed the update process run the below command for install the cockpit

sudo apt-get install cockpit

After complete installation just start and enable the service through bellow commands

systemctl start cockpit.socket
systemctl enable cockpit.socket

Cockpit by default runs on port 9090,therefore if firewall is enabled,allow the port by executing the following command:

ufw allow 9090/tcp

Now go to your browser and log on using your hostname or IP address in the format similar to one below:

https://<ip address>:9090 or https://<hostname>:9090

Now, we’ll be asked to enter the login details in order to enter into the dashboard. Here, the username and password is the same as that of the login details we use to login to our linux server. After we enter the login details and click on Login button, we will be welcomed into the Cockpit Dashboard.

Next on the dashboard menu, is Services. Here you can view Targets, System Services, Sockets, Timers and Paths pages.

The interface below shows running services on your system.

Showing Current Running Services on Linux

Showing Current Running Services on Linux

You can click on a single service to manage it. Simply click on the drop down menus to get the functionality you want.

View Linux Service Summary

View Linux Service Summary

The Logs menu item displays the logs page which allows for logs inspection. The logs are categorized into Errors, Warnings, Notices and All as in the image below.

To inspect a single log entry, simply click on it.

Linux Logs Monitoring

Linux Logs Monitoring

To add a system user, click on “Create New Account” button and enter the necessary user information in the interface below.

Create User Account in Linux

Create User Account in Linux

To get a terminal window, go to Tools → Terminal.

Cockpit - Linux Web Terminal

Cockpit – Linux Web Terminal

How to Add Linux Server to Cockpit

Important: Be aware that you must install Cockpit on all remote Linux servers in order to monitor them on Cockpit dashboard. So, please install it before adding any new server to Cockpit..

To add another server, click on dashboard, you will see the screen below. Click on the (+) sign and enter the server IP address. Remember that information for each server you add is displayed in Cockpit using a distinct color.

Add Linux Server to Cockpit

Add Linux Server to Cockpit

Cockpit - Remote Linux Server Monitoring

Cockpit – Remote Linux Server Monitoring



You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *