Install Cockpit on Ubuntu 16.04

ADVERTISEMENT

Install Cockpit on Ubuntu 16.04

Install Cockpit on Ubuntu 16.04

ADVERTISEMENT
Article will continue after the ad

 

Cockpit is a free software which provides a web-based interface for the system admin to perform tasks, such as starting containers, storage management, network configuration, inspecting logs and so on. Cockpit is released under the LGPL v2.1+; it is available for Debian, Redhat, CentOS, Atomic, Arch Linux, and Ubuntu.

This guide focuses on installing Cockpit on Ubuntu 16.04.

Features:

  1. Connect and Manage multiple machines from a single Cockpit session
  2. Manage the containers via Docker
  3. Modify the network settings
  4. Easily manage the user accounts
  5. Provides web-based shell in a terminal
  6. Gathers system performance using  Performance Co-Pilot framework and displays it in a graph.
  7. With the use of sosreport, it can collect system configuration and diagnostic information
  8. It can interact with a Kubernetes cluster or an Openshift v3 cluster

Install Cockpit on Ubuntu 16.04:

Cockpit repository for Ubuntu is less tested and irregularly updated, that does not mean it won’t work. Add a Cockpit repository on Ubuntu.

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

Update the apt cache database.

$ sudo apt-get update

Install the Cockpit package.

$ sudo apt-get -y install cockpit

Start and Enable the Cockpit.

$ sudo systemctl start cockpit
$ sudo systemctl enable cockpit

Working with Cockpit:

Once you start the Cockpit service, it will start to listen on port 9090. You can open up your favorite browser and navigate it to below URL.

https://ip-add-ress:9090 or https://your-host-name:9090

Log in with your local user account, in my case; it is “raj”

Install Cockpit on Ubuntu 16.04 - Login Page
Install Cockpit on Ubuntu 16.04 – Login Page

Once you have logged in, it will take you to the system overview page where you can have a detailed overview and performance graphs of the selected system.

Install Cockpit on Ubuntu 16.04 - System DashBoard
Install Cockpit on Ubuntu 16.04 – System DashBoard

You can take a look at the details of running services by clicking on the services page; here, you can manage (start, stop, restart, etc.look) the services by clicking on particular service.

Install Cockpit on Ubuntu 16.04 - Services Management
Install Cockpit on Ubuntu 16.04 – Services Management

If you would like to manage the Docker containers, you have to go containers page. Here, you can run, stop, delete and commit a container.

Install Cockpit on Ubuntu 16.04 - Docker Container Management
Install Cockpit on Ubuntu 16.04 – Docker Container Management

Troubleshoot your machine by having a look at the system logs.

Install Cockpit on Ubuntu 16.04 - Logs
Install Cockpit on Ubuntu 16.04 – Logs

Manage the system users by going to Tools –> Accounts

Install Cockpit on Ubuntu 16.04 - User Management
Install Cockpit on Ubuntu 16.04 – User Management

If you are looking to take terminal of the server, you no need to take putty and work; visit Tools –> Terminal.

Install Cockpit on Ubuntu 16.04 - Server Terminal
Install Cockpit on Ubuntu 16.04 – Server Terminal

Consider if you have multiple servers with Cockpit and want to manage them in a single session. Click on Dashboard. Click on Plus sign icon and add them one by one. Below screenshot shows that two machines are attached to this Cockpit session. (Please watch the video tutorial attached later in this tutorial)

server.itzgeek.local (Ubuntu 16.04; Local Machine)

client.itzgeek.local (Fedora 24; Remote Machine)

Install Cockpit on Ubuntu 16.04 - Add Remote System
Install Cockpit on Ubuntu 16.04 – Add Remote System

Below screenshot shows the detailed information of the remote system.

Install Cockpit on Ubuntu 16.04 - Remote System Overview
Install Cockpit on Ubuntu 16.04 – Remote System Overview

Watch Video Tutorial:

The following video tutorial explores the available features in Cockpit, and way to manage your machine’s efficiently.

PS: Please forgive me for No-Audio.

That’s All.

ADVERTISEMENT

POSTS YOU MAY LIKE -:)

Share This Post

Shares