How to Install Cockpit on Linux CentOS 7?
Last Updated :
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.
Installing Cockpit on 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 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.
Similar Reads
How To Install Git on CentOS 7? Git is a type of version control system. There are two types of version control systems are present. One is Centralised and another one is distributed. Centralized VCs are less effective in nature. So, Distributed VCs now replaced the Centralised version. Git is an example of a distributed version c
3 min read
How to Compile Linux Kernel on CentOS 7 The kernel is the core of a computer's operating system that has complete control over the system and provides basic services for all other parts. The default kernel available in any distribution cannot be customized. We cannot enable or disable any feature on it. Running a custom-compiled Linux Ker
6 min read
How to Install Docker on CentOS? Quick Preview to Install Docker on CentOS:Installation of Docker on CentOS:Open CentOS Terminal.Execute the command yum update in the Root Menu.Run the command yum install -y yum-utils device-mapper-persistent-data lvm2.Execute the command yum-config-manager --add-repo https://download.docker.com/li
4 min read
How to Install Golang on CentOS 7? The Go programming language is an open-source project to make programmers more productive. Go is expressive, concise, clean, and efficient. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel type system enables flexibl
2 min read
How To Install "git-gui" on Linux? Git is a FOSS (Free and Open Source Software) that is used for version control of any set of files, typically, the source code of software projects. Git is a version control system for recording changes in any group of files. During software development, it's generally used to coordinate work among
2 min read
How to Install Git-GUI on CentOS? There are many GUI clients are present for git, but among all of them, GitKraken is widely used. GitKraken is a GUI that provides graphical interfaces which make it easy to understand Git branches. In a big project of IT companies, it is impossible to develop one full project by anyone. So, it is be
2 min read