Install Cockpit on Ubuntu 16.04
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.
- Connect and Manage multiple machines from a single Cockpit session
- Manage the containers via Docker
- Modify the network settings
- Easily manage the user accounts
- Provides web-based shell in a terminal
- Gathers system performance using Performance Co-Pilot framework and displays it in a graph.
- With the use of sosreport, it can collect system configuration and diagnostic information
- 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”
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.
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.
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.
Troubleshoot your machine by having a look at the system logs.
Manage the system users by going to Tools –> Accounts
If you are looking to take terminal of the server, you no need to take putty and work; visit Tools –> 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)
Below screenshot shows the detailed information of the remote system.
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.