Table of Contents
This tip is about the how to Install and Use Cockpit on Ubuntu 20.04. So read this free guide, How to Install and Use Cockpit on Ubuntu 20.04 step by step. If you have query related to same article you may contact us.
How to Install and Use Cockpit on Ubuntu 20.04 – Guide
Cockpit is a free and open source web console tool for Linux administrators and used for day to day administrative and operational tasks. Initially Cockpit was only available for RHEL based distribution, but nowadays it is available for almost all Linux distributions. In this article we will demonstrate how to install Cockpit on Ubuntu 20.04 LTS Server (Focal Fossa) and what administrative tasks can be done with the Cockpit Web Console.
How to Install and use Cockpit on Ubuntu 20.04
Create Atlantic.Net Cloud Server
First, log in to your Atlantic.Net Cloud Server. Create a new server, choosing Ubuntu 20.04 as the operating system with at least 2GB of RAM. Connect to your Cloud Server via SSH and login using the credentials highlighted at the top of the page. After logging into your Ubuntu 20.04 server, run the following command to update your base system with the latest packages available.
apt-get update -y
install the cockpit
By default, the Cockpit package is included in the default Ubuntu repository. You can install it just by running the following command:
apt-get install cockpit -y
Once Cockpit is installed, start the Cockpit service and enable it to start on system reboot:
systemctl start cockpitsystemctl enable cockpit
You can also check the status of the Cockpit service with the following command:
systemctl status cockpit
You should get the following output:
cockpit.service – Cockpit Web Service
Loaded: loaded (/lib/systemd/system/cockpit.service; static; vendor preset>Active: active (running) since Fri 01/22/2021 15:26:48 UTC; 4s agoTriggeredBy: cockpit.socketDocs: man: cockpit -ws(8)Process: 7544 ExecStartPre=/usr/sbin/remotectl certificate –guarantee –user=>Main PID: 7552 (cockpit-tls)Tasks: 1 (limit: 2353)Memory: 2.0MCGroup: /system.slice / cockpit.service└─7552 /usr/lib/cockpit/cockpit-tls
Jan 22 15:26:48 ubuntu2004 systemd[1]: Starting Cockpit Web Service… Jan 22 15:26:48 ubuntu2004 remotectl[7544]: Generating temporary certificate us> Jan 22 15:26:48 ubuntu2004 remotectl[7544]: Error generating temporary false ce > Jan 22 15:26:48 ubuntu2004 remotectl[7544]: Generating temporary certificate us> Jan 22 15:26:48 ubuntu2004 systemd[1]: Started the Cockpit Web service.
At this point, Cockpit is started and listening on port 9090. You can verify it with the following command:
ss-antpl | grep 9090
You should see the following output:
LISTEN 0 4096 *:9090 *:* users:((“cockpit-tls”,pid=7552,fd=3),(“systemd”,pid=1,fd=101))
Access the cockpit web interface
Now open your web browser and access the Cockpit web interface using the URL https://your-server-ip:9090. You should see the cockpit login page:
Provide your root username and password and click the Login button button. You should see the cockpit dashboard on the following page:
How to use the cockpit
apt-get install cockpit-machines -y
Manage services and records
Final note
I hope you like the guide How to Install and Use Cockpit on Ubuntu 20.04. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.