How to install Cockpit on Oracle Linux 8.8
To Install Cockpit On Oracle Linux 8.8
Introduction:
Cockpit is an intuitive web-based console that lets you manage your server using an easy-to-use web interface. The Cockpit web console operates the same system APIs as a terminal, and tasks performed in a terminal are almost mirrored in the web console. Furthermore, you can configure the settings instantly in the web console or through the terminal.
Installation Steps:
Step 1: Check the Oracle Linux version by using the below command
[root@linuxhelp ~]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.8"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:8:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://github.com/oracle/oracle-linux"
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.8
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.8
Step 2: Install Cockpit web console package by using the below command
[root@linuxhelp ~]# yum install cockpit
Oracle Linux 8 BaseOS Latest (x86_64) 21 kB/s | 3.6 kB 00:00
Oracle Linux 8 BaseOS Latest (x86_64) 9.8 MB/s | 59 MB 00:06
Oracle Linux 8 Application Stream (x86_64) 37 kB/s | 3.9 kB 00:00
Oracle Linux 8 Application Stream (x86_64) 9.9 MB/s | 47 MB 00:04
Latest Unbreakable Enterprise Kernel Release 6 26 kB/s | 3.0 kB 00:00
Latest Unbreakable Enterprise Kernel Release 6 10 MB/s | 72 MB 00:07
Last metadata expiration check: 0:00:23 ago on Monday 10 July 2023 04:34:50 AM IST.
Package cockpit-286.1-1.0.1.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Step 3: Enable the Cockpit service by using the below command
[root@linuxhelp ~]# systemctl enable cockpit.service
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 4: Start the Cockpit service by using the below command
[root@linuxhelp ~]# systemctl start cockpit.service
Step 5: Check the Status of Cockpit service by using the below command
[root@linuxhelp ~]# systemctl status cockpit.service
? cockpit.service - Cockpit Web Service
Loaded: loaded (/usr/lib/systemd/system/cockpit.service; static; vendor pres>
Active: active (running) since Mon 2023-07-10 04:36:18 IST; 18s ago
Docs: man:cockpit-ws(8)
Process: 128253 ExecStartPre=/usr/libexec/cockpit-certificate-ensure --for-co>
Main PID: 128287 (cockpit-tls)
Tasks: 1 (limit: 22942)
Memory: 896.0K
CGroup: /system.slice/cockpit.service
+-128287 /usr/libexec/cockpit-tls
Jul 10 04:36:15 linuxhelp systemd[1]: Starting Cockpit Web Service...
Jul 10 04:36:18 linuxhelp systemd[1]: Started Cockpit Web Service.
Step 6: If you are running a firewalld on the system, you need to open the cockpit port 9090 in the firewall by using the below command.
[root@linuxhelp ~]# firewall-cmd --add-service=cockpit --permanent
Warning: ALREADY_ENABLED: cockpit
success
[root@linuxhelp ~]# firewall-cmd --reload
Success
Step 7: Open the Cockpit web console in your web browser by using the below URL’s:
Locally: https://localhost:9090
Remotely with the server’s hostname: https://example.com:9090
Remotely with the server’s IP address: https://192.168.6.136:9090
Step 8: 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.
Step 9: In the web console login screen, enter your system user name and password as shown in the below image.
Step 10: After successful authentication, the Cockpit web console interface opens as shown in the below image.
Conclusion:
We have reached the end of this article. In this guide, we have walked you through the steps required to install Cockpit webconsole on Oracle Linux 8.8. Your feedback is much welcome
Comments ( 0 )
No comments available