How to Install Cockpit on Linux CentOS 7? - GeeksforGeeks

01 Feb, 2021
The cockpit is a free, open-source Linux Server Management Tool which provides you the facility to control your server using the mouse on the web-interface. The cockpit can be used to perform any server related task such as start containers, storage administration, and network configuration and much more. It has a very beautiful user interface along with its light-weight application.
Fedora Server comes with Cockpit pre-installed but in CentOS we have to install it separately. In this article, we will discuss the ways in which we can install Cockpit in CentOS 7.
Cockpit is already included in CentOS 7.x official base repository, so we can install directly from ‘yum‘ command. 
Installation Steps:
Open your terminal app in CentOSDownload and install cockpit using yum command.Enable the cockpit.Open the firewall for cockpit and reloading the firewall.Logging In Cockpit Admin Panel.
Open your terminal app in CentOS
Download and install cockpit using yum command.
Enable the cockpit.
Open the firewall for cockpit and reloading the firewall.
Logging In Cockpit Admin Panel.
Step-wise implementation of installations:
Step 1: Open your Terminal
You can launch the terminal app using ‘ctrl+shift+T’ or from application menu.
Step 2: Download and install Cockpit
Use the command below to download and install the cockpit.
sudo yum install cockpit 
We will need admin rights in order to install new applications in our system, that’s why we are using sudo command. You may need to enter your root password because of security reasons.
Installing Cockpit using ‘yum’ Command
It may ask you to confirm again whether you are sure to install cockpit. In that case, you just need to type ‘y’ and press enter for the confirmation.
Confirming the cockpit Installation. 
Once the package is installed successfully without any errors, your screen will show a ‘Complete’ message, just like in the picture below. At this stage, you are ready to proceed with the next steps.
Cockpit Successfully Installed
 Step 3: Enable the Cockpit
Use the command below to enable the cockpit in our system.
sudo systemctl enable --now cockpit.socket
Enabling the Cockpit in System
Step 4: Open the firewall for Cockpit
Use the command below to open the firewall for cockpit.
sudo firewall-cmd --permanent --zone=public --add-service=cockpit
We will need to reload the firewall in order to reflect the changes. This can be easily done by using the command below.
sudo firewall-cmd --reload
Opening Firewall for Cockpit and Reloading the Firewall
Step 5: Loading the Cockpit Web Interface
Now we are ready to use Cockpit. Open any browser of your preference and type the URL as: https://SERVER_IP:9090. Where server IP should be replaced with the actual IP of your server. You can also use https://localhost:9090 to login into Cockpit.
Cockpit Web Interface
Use your admin username and root password which you use for CentOS to login into the admin panel. After the successful login, you will see the admin Console of Cockpit web interface.
Cockpit Application Interface
In this way, you can easily install and use cockpit in CentOS 7.x or any other later version. 
Picked
Technical Scripter 2020
How To
Linux-Unix
Technical Scripter
Writing code in comment?
Please use ide.geeksforgeeks.org,
generate link and share the link here.
How to Install FFmpeg on Windows?
How to Add External JAR File to an IntelliJ IDEA Project?
How to Set Git Username and Password in GitBash?
How to create a nested RecyclerView in Android
How to Install Jupyter Notebook on MacOS?
Sed Command in Linux/Unix with examples
AWK command in Unix/Linux with examples
grep command in Unix/Linux
cut command in Linux with examples
cp command in Linux with examples