• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How To Install and Manage Cockpit on Rocky Linux 8.6

  • 01:01 dnf install epel-release
  • 01:30 dnf install cockpit
  • 02:02 systemctl enable cockpit
  • 02:17 systemctl start cockpit
  • 02:30 systemctl status cockpit
  • 03:05 firewall-cmd --permanent --zone=public --add-service=cockpit
  • 03:23 firewall-cmd --reload
  • 04:42 cat /etc/os-release
{{postValue.id}}

How to install and manage Cockpit on Rocky Linux 8.6

Introduction

Cockpit is a web-based graphical interface for servers, designed for everyone, especially those who are new to Linux including Windows admins, familiar with Linux, and want an easy, graphical way to administer servers. expert admins who mostly use other tools but want an overview of individual systems.

Installation Steps:

Step 1 : Check the OS version by using the below command

[root@linuxhelp ~]# cat /etc/os-release 
NAME="Rocky Linux"
VERSION="8.6 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.6"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.6 (Green Obsidian)"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky Linux"
ROCKY_SUPPORT_PRODUCT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8"

Step 2 : Install the dependency packages by using the below command

[root@linuxhelp ~]# dnf install epel-release
Last metadata expiration check: 0:21:36 ago on Fri 23 Sep 2022 07:31:30 PM EDT.
Package epel-release-8-15.el8.noarch is already installed.
Dependencies resolved.
==========================================================================================
 Package                 Architecture      Version                Repository         Size
==========================================================================================
Upgrading:
 epel-release            noarch            8-17.el8               extras             24 k

Transaction Summary
==========================================================================================
Upgrade  1 Package

Total download size: 24 k
Is this ok [y/N]: y
Downloading Packages:
epel-release-8-17.el8.noarch.rpm                          124 kB/s |  24 kB     00:00    
------------------------------------------------------------------------------------------
Total                                                      30 kB/s |  24 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                  1/1 
  Running scriptlet: epel-release-8-17.el8.noarch                                     1/1 
  Upgrading        : epel-release-8-17.el8.noarch                                     1/2 
  Running scriptlet: epel-release-8-17.el8.noarch                                     1/2 
  Cleanup          : epel-release-8-15.el8.noarch                                     2/2 
  Running scriptlet: epel-release-8-15.el8.noarch                                     2/2 
  Verifying        : epel-release-8-17.el8.noarch                                     1/2 
  Verifying        : epel-release-8-15.el8.noarch                                     2/2 

Upgraded:
  epel-release-8-17.el8.noarch                                                            

Complete!

Step 3 : Next need to install cockpit by using the below command

[root@linuxhelp ~]# dnf install cockpit

Last metadata expiration check: 0:22:08 ago on Fri 23 Sep 2022 07:31:30 PM EDT.
Dependencies resolved.
==========================================================================================
 Package                     Arch        Version                     Repository      Size
==========================================================================================
Installing:
 cockpit                     x86_64      264.1-1.el8                 baseos          78 k
Installing dependencies:
 clevis                      x86_64      15-8.el8                    appstream       57 k
 cockpit-bridge              x86_64      264.1-1.el8                 baseos         533 k
 cockpit-system              noarch      264.1-1.el8                 baseos         3.2 M
 cockpit-ws                  x86_64      264.1-1.el8                 baseos         1.3 M
 jose                        x86_64      10-2.el8                    appstream       56 k
 jq                          x86_64      1.6-3.el8                   appstream      201 k
 libjose                     x86_64      10-2.el8                    appstream       62 k
 libluksmeta                 x86_64      9-4.el8                     appstream       26 k
 luksmeta                    x86_64      9-4.el8                     appstream       21 k
 oniguruma                   x86_64      6.8.2-2.el8                 appstream      186 k
 python3-lxml                x86_64      4.2.3-4.el8                 appstream      1.5 M
 python3-psutil              x86_64      5.4.3-11.el8                appstream      372 k
 python3-pydbus              noarch      0.6.0-5.el8                 appstream       52 k
 python3-webencodings        noarch      0.5.1-6.el8                 appstream       26 k
 setroubleshoot-plugins      noarch      3.3.14-1.el8                appstream      357 k
 tpm2-tools                  x86_64      4.1.1-5.el8                 baseos         1.0 M
 tracer-common               noarch      0.7.5-2.el8                 appstream       33 k
Installing weak dependencies:
 clevis-luks                 x86_64      15-8.el8                    appstream       37 k
 cockpit-packagekit          noarch      264.1-1.el8                 appstream      630 k
 cockpit-storaged            noarch      264.1-1.el8                 appstream      632 k
 python3-beautifulsoup4      noarch      4.6.3-2.el8.1               epel           185 k
 python3-cssselect           noarch      0.9.2-10.el8                epel            40 k
 python3-html5lib            noarch      1:0.999999999-6.el8         appstream      213 k
 python3-tracer              noarch      0.7.5-2.el8                 appstream      121 k
 setroubleshoot-server       x86_64      3.3.26-3.el8                appstream      388 k
 udisks2-iscsi               x86_64      2.9.0-9.el8                 appstream       30 k
 udisks2-lvm2                x86_64      2.9.0-9.el8                 appstream       45 k

Transaction Summary
==========================================================================================
Install  28 Packages

Total download size: 11 M
Installed size: 27 M
Is this ok [y/N]: y
Downloading Packages:
(1/28): clevis-15-8.el8.x86_64.rpm                        221 kB/s |  57 kB     00:00    
(2/28): clevis-luks-15-8.el8.x86_64.rpm                   133 kB/s |  37 kB     00:00    
(3/28): cockpit-packagekit-264.1-1.el8.noarch.rpm         2.0 MB/s | 630 kB     00:00    
(4/28): jq-1.6-3.el8.x86_64.rpm                           2.7 MB/s | 201 kB     00:00    
(5/28): jose-10-2.el8.x86_64.rpm                          441 kB/s |  56 kB     00:00    
(6/28): cockpit-storaged-264.1-1.el8.noarch.rpm           2.7 MB/s | 632 kB     00:00    
(7/28): libluksmeta-9-4.el8.x86_64.rpm                    307 kB/s |  26 kB     00:00    
(8/28): libjose-10-2.el8.x86_64.rpm                       703 kB/s |  62 kB     00:00    
(9/28): luksmeta-9-4.el8.x86_64.rpm                       391 kB/s |  21 kB     00:00    
(10/28): python3-html5lib-0.999999999-6.el8.noarch.rpm    1.6 MB/s | 213 kB     00:00    
(11/28): oniguruma-6.8.2-2.el8.x86_64.rpm                 521 kB/s | 186 kB     00:00    
(12/28): python3-lxml-4.2.3-4.el8.x86_64.rpm              4.0 MB/s | 1.5 MB     00:00    
(13/28): python3-pydbus-0.6.0-5.el8.noarch.rpm            494 kB/s |  52 kB     00:00    
(14/28): python3-tracer-0.7.5-2.el8.noarch.rpm            1.6 MB/s | 121 kB     00:00    
(15/28): python3-webencodings-0.5.1-6.el8.noarch.rpm      556 kB/s |  26 kB     00:00    
(16/28): setroubleshoot-plugins-3.3.14-1.el8.noarch.rpm   2.4 MB/s | 357 kB     00:00    
(17/28): tracer-common-0.7.5-2.el8.noarch.rpm             563 kB/s |  33 kB     00:00    
(18/28): python3-psutil-5.4.3-11.el8.x86_64.rpm           599 kB/s | 372 kB     00:00    
(19/28): udisks2-iscsi-2.9.0-9.el8.x86_64.rpm             529 kB/s |  30 kB     00:00    
(20/28): udisks2-lvm2-2.9.0-9.el8.x86_64.rpm              974 kB/s |  45 kB     00:00    
(21/28): cockpit-264.1-1.el8.x86_64.rpm                   1.2 MB/s |  78 kB     00:00    
(22/28): setroubleshoot-server-3.3.26-3.el8.x86_64.rpm    965 kB/s | 388 kB     00:00    
(23/28): cockpit-bridge-264.1-1.el8.x86_64.rpm            1.6 MB/s | 533 kB     00:00    
(24/28): tpm2-tools-4.1.1-5.el8.x86_64.rpm                1.7 MB/s | 1.0 MB     00:00    
(25/28): cockpit-system-264.1-1.el8.noarch.rpm            3.4 MB/s | 3.2 MB     00:00    
(26/28): python3-cssselect-0.9.2-10.el8.noarch.rpm        272 kB/s |  40 kB     00:00    
(27/28): cockpit-ws-264.1-1.el8.x86_64.rpm                1.3 MB/s | 1.3 MB     00:01    
(28/28): python3-beautifulsoup4-4.6.3-2.el8.1.noarch.rpm  646 kB/s | 185 kB     00:00    
------------------------------------------------------------------------------------------
Total                                                     2.4 MB/s |  11 MB     00:04     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                  1/1 
  Installing       : cockpit-bridge-264.1-1.el8.x86_64                               1/28 
  Installing       : libjose-10-2.el8.x86_64                                         2/28 
  Running scriptlet: libjose-10-2.el8.x86_64                                         2/28 
  Installing       : jose-10-2.el8.x86_64                                            3/28 
  Installing       : python3-cssselect-0.9.2-10.el8.noarch                           4/28 
  Installing       : tpm2-tools-4.1.1-5.el8.x86_64                                   5/28 
  Running scriptlet: cockpit-ws-264.1-1.el8.x86_64                                   6/28 
  Installing       : cockpit-ws-264.1-1.el8.x86_64                                   6/28 
  Running scriptlet: cockpit-ws-264.1-1.el8.x86_64                                   6/28 
libsemanage.semanage_direct_install_info: Overriding cockpit module at lower priority 100 with module at priority 200.

  Installing       : udisks2-lvm2-2.9.0-9.el8.x86_64                                 7/28 
  Installing       : udisks2-iscsi-2.9.0-9.el8.x86_64                                8/28 
  Installing       : tracer-common-0.7.5-2.el8.noarch                                9/28 
  Installing       : python3-webencodings-0.5.1-6.el8.noarch                        10/28 
  Installing       : python3-html5lib-1:0.999999999-6.el8.noarch                    11/28 
  Installing       : python3-beautifulsoup4-4.6.3-2.el8.1.noarch                    12/28 
  Installing       : python3-lxml-4.2.3-4.el8.x86_64                                13/28 
  Installing       : python3-pydbus-0.6.0-5.el8.noarch                              14/28 
  Installing       : setroubleshoot-plugins-3.3.14-1.el8.noarch                     15/28 
  Running scriptlet: setroubleshoot-server-3.3.26-3.el8.x86_64                      16/28 
  Installing       : setroubleshoot-server-3.3.26-3.el8.x86_64                      16/28 
  Running scriptlet: setroubleshoot-server-3.3.26-3.el8.x86_64                      16/28 
  Installing       : cockpit-system-264.1-1.el8.noarch                              17/28 
  Installing       : python3-psutil-5.4.3-11.el8.x86_64                             18/28 
  Installing       : python3-tracer-0.7.5-2.el8.noarch                              19/28 
  Installing       : cockpit-packagekit-264.1-1.el8.noarch                          20/28 
  Installing       : oniguruma-6.8.2-2.el8.x86_64                                   21/28 
  Running scriptlet: oniguruma-6.8.2-2.el8.x86_64                                   21/28 
  Installing       : jq-1.6-3.el8.x86_64                                            22/28 
  Running scriptlet: clevis-15-8.el8.x86_64                                         23/28 
  Installing       : clevis-15-8.el8.x86_64                                         23/28 
  Installing       : libluksmeta-9-4.el8.x86_64                                     24/28 
  Running scriptlet: libluksmeta-9-4.el8.x86_64                                     24/28 
  Installing       : luksmeta-9-4.el8.x86_64                                        25/28 
  Installing       : clevis-luks-15-8.el8.x86_64                                    26/28 
  Installing       : cockpit-storaged-264.1-1.el8.noarch                            27/28 
  Installing       : cockpit-264.1-1.el8.x86_64                                     28/28 
  Running scriptlet: clevis-15-8.el8.x86_64                                         28/28 
  Running scriptlet: cockpit-264.1-1.el8.x86_64                                     28/28 
  Verifying        : clevis-15-8.el8.x86_64                                          1/28 
  Verifying        : clevis-luks-15-8.el8.x86_64                                     2/28 
  Verifying        : cockpit-packagekit-264.1-1.el8.noarch                           3/28 
  Verifying        : cockpit-storaged-264.1-1.el8.noarch                             4/28 
  Verifying        : jose-10-2.el8.x86_64                                            5/28 
  Verifying        : jq-1.6-3.el8.x86_64                                             6/28 
  Verifying        : libjose-10-2.el8.x86_64                                         7/28 
  Verifying        : libluksmeta-9-4.el8.x86_64                                      8/28 
  Verifying        : luksmeta-9-4.el8.x86_64                                         9/28 
  Verifying        : oniguruma-6.8.2-2.el8.x86_64                                   10/28 
  Verifying        : python3-html5lib-1:0.999999999-6.el8.noarch                    11/28 
  Verifying        : python3-lxml-4.2.3-4.el8.x86_64                                12/28 
  Verifying        : python3-psutil-5.4.3-11.el8.x86_64                             13/28 
  Verifying        : python3-pydbus-0.6.0-5.el8.noarch                              14/28 
  Verifying        : python3-tracer-0.7.5-2.el8.noarch                              15/28 
  Verifying        : python3-webencodings-0.5.1-6.el8.noarch                        16/28 
  Verifying        : setroubleshoot-plugins-3.3.14-1.el8.noarch                     17/28 
  Verifying        : setroubleshoot-server-3.3.26-3.el8.x86_64                      18/28 
  Verifying        : tracer-common-0.7.5-2.el8.noarch                               19/28 
  Verifying        : udisks2-iscsi-2.9.0-9.el8.x86_64                               20/28 
  Verifying        : udisks2-lvm2-2.9.0-9.el8.x86_64                                21/28 
  Verifying        : cockpit-264.1-1.el8.x86_64                                     22/28 
  Verifying        : cockpit-bridge-264.1-1.el8.x86_64                              23/28 
  Verifying        : cockpit-system-264.1-1.el8.noarch                              24/28 
  Verifying        : cockpit-ws-264.1-1.el8.x86_64                                  25/28 
  Verifying        : tpm2-tools-4.1.1-5.el8.x86_64                                  26/28 
  Verifying        : python3-beautifulsoup4-4.6.3-2.el8.1.noarch                    27/28 
  Verifying        : python3-cssselect-0.9.2-10.el8.noarch                          28/28 

Installed:
  clevis-15-8.el8.x86_64                       clevis-luks-15-8.el8.x86_64               
  cockpit-264.1-1.el8.x86_64                   cockpit-bridge-264.1-1.el8.x86_64         
  cockpit-packagekit-264.1-1.el8.noarch        cockpit-storaged-264.1-1.el8.noarch       
  cockpit-system-264.1-1.el8.noarch            cockpit-ws-264.1-1.el8.x86_64             
  jose-10-2.el8.x86_64                         jq-1.6-3.el8.x86_64                       
  libjose-10-2.el8.x86_64                      libluksmeta-9-4.el8.x86_64                
  luksmeta-9-4.el8.x86_64                      oniguruma-6.8.2-2.el8.x86_64              
  python3-beautifulsoup4-4.6.3-2.el8.1.noarch  python3-cssselect-0.9.2-10.el8.noarch     
  python3-html5lib-1:0.999999999-6.el8.noarch  python3-lxml-4.2.3-4.el8.x86_64           
  python3-psutil-5.4.3-11.el8.x86_64           python3-pydbus-0.6.0-5.el8.noarch         
  python3-tracer-0.7.5-2.el8.noarch            python3-webencodings-0.5.1-6.el8.noarch   
  setroubleshoot-plugins-3.3.14-1.el8.noarch   setroubleshoot-server-3.3.26-3.el8.x86_64 
  tpm2-tools-4.1.1-5.el8.x86_64                tracer-common-0.7.5-2.el8.noarch          
  udisks2-iscsi-2.9.0-9.el8.x86_64             udisks2-lvm2-2.9.0-9.el8.x86_64           

Complete

Step 4 : Next enable the cockpit service by using the below command

[root@linuxhelp ~]# systemctl enable cockpit

The unit files have no installation config (WantedBy, RequiredBy, Also, Alias
settings in the [Install] section, and DefaultInstance for template units).
This means they are not meant to be enabled using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
   .wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
   a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
   D-Bus, udev, scripted systemctl call, ...).
4) In case of template units, the unit is meant to be enabled with some
   instance name specified.

Step 5 : Start the service by running the below command

[root@linuxhelp ~]# systemctl start cockpit

Step 6 : Next check the status of the cockpit by using the below command

[root@linuxhelp ~]# systemctl status cockpit

● cockpit.service - Cockpit Web Service
   Loaded: loaded (/usr/lib/systemd/system/cockpit.service; static; vendor preset: disabl>
   Active: active (running) since Fri 2022-09-23 19:55:40 EDT; 15s ago
     Docs: man:cockpit-ws(8)
  Process: 5125 ExecStartPre=/usr/libexec/cockpit-certificate-ensure --for-cockpit-tls (c>
 Main PID: 5150 (cockpit-tls)
    Tasks: 1 (limit: 23328)
   Memory: 896.0K
   CGroup: /system.slice/cockpit.service
           └─5150 /usr/libexec/cockpit-tls

Sep 23 19:55:39 linuxhelp systemd[1]: Starting Cockpit Web Service...
Sep 23 19:55:40 linuxhelp systemd[1]: Started Cockpit Web Service

Step 7 : Then add the zone and reload that in the firewall by using the below command

[root@linuxhelp ~]# firewall-cmd --permanent --zone=public --add-service=cockpit 
success
[root@linuxhelp ~]# firewall-cmd --reload 
success

Step 8: Open the Cockpit web console in your web browser by using the below URL’s:

Locally: https://localhost:9090

Step 9: If you are using a self-signed certificate, you will get a warning on the browser, simply verify the certificate and accept the security exception to proceed further with the login as shown in the below image

snap 1

Step 10: Enter into the web console login screen and type your system user name and password as shown in the below image.

snap 2

Step 11: After successful authentication, the Cockpit web console interface page open. Here we can view the running of page Cockpit web console interface as shown in the below image

snap 3

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to Install Cockpit web console on Rocky linux 8.6. Your feedback is much welcome.

Tags:
david
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What is the use of the cockpit?

A

you can catch the server-related information in real time. It also gives access to CPU load, a variety of processes, filesystem statistics, and other data

Q

What is the package name of Cockpit?

A

yum install cockpit

Q

What is the command to allow Cockpit in a public Zone?

A

firewall-cmd --permanent --zone=public --add-service=cockpit

Q

What are the Default login credentials of cockpit?

A

you can use your OWN machine credentials to login Cockpit

Q

What is the command to start the server of the cockpit?

A

systemctl start cockpit

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Luk Van De Looverbosch ?
How to create a root ?

Hello,
How to create root@linuxhelp in Linux Mint 20.1 64-bit ?
Thanks in advance for your reply.
Best regards.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.