Chapter 3. Installing web console add-ons and creating custom pages
Depending on how you want to use your Red Hat Enterprise Linux system, you can add additional available applications to the web console or create custom pages based on your use case.
3.1. Add-on applications for the RHEL web console
While the cockpit
package is a part of Red Hat Enterprise Linux by default, you can install add-on applications on demand. You can choose from the following two methods:
In the web console, click Applications and use the button in the list of available and already-installed applications.
In the terminal, use the
dnf install
command:dnf install <add-on>
# dnf install <add-on>
Copy to Clipboard Copied! In the previous command, replace <add-on> by a package name from the list of available add-on applications for the RHEL web console.
Feature name | Package name | Usage |
---|---|---|
File manager |
| Managing files and directories in the standard web-console interface |
HA cluster management |
|
The |
Image builder |
| Building customized operating system images |
Machines |
|
Managing |
PackageKit |
| Software updates and application installation (usually installed by default) |
PCP |
| Persistent and more fine-grained performance data (installed on demand from the UI) |
Podman |
| |
Session recording |
| Recording and managing user sessions |
Storage |
|
Managing storage through |
[a]
Additional steps such as enabling the pcsd service might be required. See the Installing cluster software section in the Configuring and managing high availability clusters document for more information.
|
3.2. Creating new pages in the web console
If you want to add customized functions to your Red Hat Enterprise Linux web console, you must add the package directory that contains the HTML and JavaScript files for the page that runs the required function.
For detailed information about adding custom pages, see Creating Plugins for the Cockpit User Interface on the Cockpit Project website.
3.3. Overriding the manifest settings in the web console
You can modify the menu of the web console for a particular user and all users of the system. In the cockpit
project, a package name is a directory name. A package contains the manifest.json
file along with other files. Default settings are present in the manifest.json
file. You can override the default cockpit
menu settings by creating a <package-name>.override.json
file at a specific location for the specified user.
Prerequisites
You have installed the RHEL 10 web console.
For instructions, see Installing and enabling the web console.
Procedure
Override manifest settings in the
<systemd>.override.json
file in a text editor of your choice, for example:To edit for all users, enter:
vi /etc/cockpit/<systemd>.override.json
# vi /etc/cockpit/<systemd>.override.json
Copy to Clipboard Copied! To edit for a single user, enter:
vi ~/.config/cockpit/<systemd>.override.json
# vi ~/.config/cockpit/<systemd>.override.json
Copy to Clipboard Copied!
Edit the required file with the following details:
{ "menu": { "services": null, "logs": { "order": -1 } } }
{ "menu": { "services": null, "logs": { "order": -1 } } }
Copy to Clipboard Copied! -
The
null
value hides the services tab -
The
-1
value moves the logs tab to the first place.
-
The
Restart the
cockpit
service:systemctl restart cockpit.service
# systemctl restart cockpit.service
Copy to Clipboard Copied!