How To Install Cockpit on Ubuntu 18.04 LTS (Bionic Beaver)
Cockpit is a free, web-based server manager for Linux operating systems. With Cockpit, a system admin can perform tasks such as managing storage, Users, containers, network configuration, inspecting logs and so on.
Cockpit is released under the LGPL v2.1+, and it is available for Redhat, CentOS, Debian, Ubuntu, Atomic, and Arch Linux.
This guide helps you to install Cockpit on Ubuntu 18.04.
Features
- Modify the network settings
- Easily manage the user accounts
- With the use of sosreport, it can collect system configuration and diagnostic information
- Connect and Manage multiple systems from a single Cockpit session
- Gathers system performance using Performance Co-Pilot framework and displays it in a graph.
- Manage the containers via Docker
- Provides web-based shell in a terminal
Install Cockpit on Ubuntu 18.04
apt
command to install it.sudo apt update
Install the Cockpit package.
sudo apt -y install cockpit
Start and Enable the Cockpit.
sudo systemctl start cockpit.socket sudo systemctl enable cockpit.socket
Working with Cockpit
Once you start the Cockpit service, it will start listening on port 9090. Now, open up your browser and navigate it to below URL.
![Install Cockpit on Ubuntu 18.04 - Add SSL Exception](https://www.itzgeek.com/wp-content/uploads/2018/07/Install-Cockpit-on-Ubuntu-18.04-Add-SSL-Exception-1024x612.jpg)
Log in with your local user account. In my case it is raj.
![Install Cockpit on Ubuntu 18.04 - Login Page](https://www.itzgeek.com/wp-content/uploads/2018/07/Install-Cockpit-on-Ubuntu-18.04-Login-Page-1024x619.jpg)
Once you have logged in into Cockpit, you will be taken to the system overview page where you can see 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..) the services by clicking on a particular service.
![Install Cockpit on Ubuntu 18.04 - System Services](https://www.itzgeek.com/wp-content/uploads/2018/07/Install-Cockpit-on-Ubuntu-18.04-System-Services-1024x615.jpg)
Troubleshoot your system’s problem by having a look at the system logs.
![Install Cockpit on Ubuntu 18.04 - View System Logs](https://www.itzgeek.com/wp-content/uploads/2018/07/Install-Cockpit-on-Ubuntu-18.04-View-System-Logs-1024x618.jpg)
You can view the storage information by clicking the Storage.
![Install Cockpit on Ubuntu 18.04 - View Storage Information](https://www.itzgeek.com/wp-content/uploads/2018/07/Install-Cockpit-on-Ubuntu-18.04-View-Storage-Information-1024x616.jpg)
Manage the system users by going to Accounts.
![Install Cockpit on Ubuntu 18.04 - Manage User Accounts](https://www.itzgeek.com/wp-content/uploads/2018/07/Install-Cockpit-on-Ubuntu-18.04-Manage-User-Accounts-1024x616.jpg)
You can also take the terminal console of a machine by going to Terminal.
![Install Cockpit on Ubuntu 18.04 - Take System Terminal with Cockpit](https://www.itzgeek.com/wp-content/uploads/2018/07/Install-Cockpit-on-Ubuntu-18.04-Take-System-Terminal-with-Cockpit-1024x618.jpg)
Manage Multiple Servers with Cockpit
If you have multiple servers and want to manage them in a single Cockpit session, then click on Dashboard and click on Plus sign icon and add them one by one.
![Install Cockpit on Ubuntu 18.04 - Add Remote Machine in Cockpit](https://www.itzgeek.com/wp-content/uploads/2018/07/10-1-1024x473.jpg)
Below screenshot shows that two machines are attached to this Cockpit session
server.itzgeek.local (Ubuntu 18.04 – Local Machine)
client.itzgeek.local (Ubuntu 18.04 – Remote Machine)
![Install Cockpit on Ubuntu 18.04 - Machines List](https://www.itzgeek.com/wp-content/uploads/2018/07/Install-Cockpit-on-Ubuntu-18.04-Machines-List-1024x617.jpg)
The below screenshot shows the detailed information of a remote system.
![Install Cockpit on Ubuntu 18.04 - Detailed Information of Remote System](https://www.itzgeek.com/wp-content/uploads/2018/07/Install-Cockpit-on-Ubuntu-18.04-Detailed-Information-of-Remote-System-1024x617.jpg)
That’s All.