How to enable Cockpit on CentOS 8 Linux or Stream

- Advertisment -
- Advertisement -

The cockpit is a Linux web-based opensource server managing tool. It allows us to monitor Linux servers, their storages, containers, the configuration of networks and inspection of logs using a graphical user interface. It is really handy to give web-based GUI to command line servers; it could be your web server, database server, FTP server etc. running on Linux such as CentOS, Debian, Redhat, Ubuntu, Amazon Linux etc.

Lately, the CentOS has announced its new operating systems CentOS 8 Linux and CentOS Stream, however, both are same except the CentOS 8 is a Long term supported OS where the Stream is a rolling-based with frequent updates & upgrades, that means it will get all updates of applications and packages instantly for testing and developing purpose. Whereas the LTS version will be for servers those want a stable and rigid performance.

The best thing if you are using the CentOS 8 Linux command line or GUI server, you will get the Cockpit Linux web interface tool as pre-installed (in a standard installation). Which help us to control and manage our server remotely or locally using web browser via cockpit Linux web interface dashboard. Also, it features the terminal. However, by default, it is not enabled and needs to do it manually, here is the command to do that.

Open CentOS 8 Linux Terminal

Go to your CentOS 8, if you are on GUI then click on the Activities option given on the left top side of the Gnome Desktop environment and click on the terminal icon given on the left side strip. Users those are on Command line server they can directly move to the next step.

Login as Root

To enable the Cockpit server management GUI, you must have the root access of the server. Type: su and then the password for the root user.

Enable Cockpit Linux web GUI

Optional command: If you are on old CentOS such as 7 or 6 and want to install it simply use this command:

 yum install cockpit

To enable the web graphical user interface of the Cockpit on CentOS 8 or CentOS stream Linux run the following command:

sysmtemctl enable --now cockpit.socket

Start the Cockpit web service

First, check whether the Cockpit service is running on your Linux distro or not. For that type:

service cockpit status

You will get the following output:

[root@localhost raj]# service cockpit status
Redirecting to /bin/systemctl status cockpit.service
● cockpit.service - Cockpit Web Service
   Loaded: loaded (/usr/lib/systemd/system/cockpit.service; static; vendor pres>
   Active: inactive (dead) since Fri 2019-09-27 00:59:52 EDT; 21min ago
     Docs: man:cockpit-ws(8)
  Process: 10397 ExecStart=/usr/libexec/cockpit-ws (code=exited, status=0/SUCCE>
  Process: 10395 ExecStartPre=/usr/sbin/remotectl certificate --ensure --user=r>
 Main PID: 10397 (code=exited, status=0/SUCCESS)

Sep 27 00:58:22 localhost.localdomain systemd[1]: Starting Cockpit Web Service.>
Sep 27 00:58:22 localhost.localdomain systemd[1]: Started Cockpit Web Service.
Sep 27 00:58:22 localhost.localdomain cockpit-ws[10397]: Using certificate: /et>
start cockpit web service

Although the service of this server web management tool automatically gets started, in case not then use the following command to start it:

service cockpit start

Furthermore in future to stop and restart:

service cockpit stop
service cockpit restart

Log in to the Web interface of Cockpit

Now, open your web-browser and type: http://localhost:9090 or http://server-ip-address:9090

You can check the IP address of the server using the command:


On the web interface, it will ask you to enter the username and password. Use your server system username and password where the cockpit has been installed.

Log in to the Web interface of Cockpit

Cockpit web-based Dashboard

Here is the Dashboard of the Server management tool with beautiful and easy to use GUI. You can also access the terminal from here to directly issue the command to your local or remote server.

Cockpit web-based Dashboard on CentOS 8 and Stream Linux
H2S Media Team
H2S is a group of tech enthusiasts those are passionate about latest technology developments. They always like to solve own technical problems and share the same solution with others through this Website.


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Latest Posts

How to enable Virtualbox nested VTX/Amd-V

Do you want to run Virtual machine inside a Virtual Box VM then you have to enable the nested...

UBON introduces SP-6850 Portable speaker priced at INR 1,799/-

UBON electronic brand recently has announced a new portable speaker UBON SP-6850 ‘Entertainment Box’ with in-built radio connectivity along...

Top 10 podcast apps that you should download on your Android

Video-on-demand platforms like Netflix, Prime Video, Hulu are pretty popular among users, and I don't think I need to...

9 Best Indian Movies Games Available on the Google Play store

Most of the Indians are crazy about two things, Bollywood and cricket. We can see that most of the...
- Advertisement -

How and Where to Find All 20 Bobbleheads in Fallout 4

Fallout 4 was released in 2015, but as an ever-green role-playing game, it is still a hugely played game...

How to Obtain the Bastion Exotic Fusion Rifle in Destiny 2

Among the Destiny 2 players, there is a big question about the unlockable Exotic Fusion Rifle. In this article,...

- Advertisment -
- Advertisement -

You might also likeRELATED
Recommended to you