Este conteúdo não está disponível no idioma selecionado.
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-ons 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 by using the following command:
# dnf install <add-on>
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 |
---|---|---|
Composer |
| Building custom OS images |
File manager |
| Managing files and directories in the standard web-console interface |
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 |
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.
Additional resources
- Cockpit Packages section in the Cockpit Project Developer Guide
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 9 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
To edit for a single user, enter:
# vi ~/.config/cockpit/<systemd>.override.json
Edit the required file with the following details:
Copy to clipboardCopied{ "menu": { "services": null, "logs": { "order": -1 } } }
-
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
Additional resources
-
cockpit(1)
man page on your system - Manifest overrides