### dnf Install Confirmation Prompt Example Source: https://docs.oracle.com/en/operating-systems/oracle-linux/software-management/sfw-mgmt-InstallSoftwareonEnterpriseLinux.html This output shows an example of the confirmation prompt that appears when installing a package with `dnf`. It lists dependencies and asks for user confirmation to proceed. ```text Last metadata expiration check: 1:38:46 ago on Mon 14 Apr 2025 13:47:07 BST. Dependencies resolved. ======================================================================================================= Package Architecture Version Repository Size ======================================================================================================= Reinstalling: dnf-automatic noarch 4.14.0-17.0.1.el9 ol9_baseos_latest 51 k Transaction Summary ======================================================================================================= Total download size: 51 k Installed size: 54 k Is this ok [y/N] ``` -------------------------------- ### Kickstart Configuration Example Source: https://docs.oracle.com/en/operating-systems/oracle-linux/10/install/install-AbouttheKickstartConfigurationFile.html This example demonstrates a comprehensive Kickstart configuration file for Oracle Linux 10, including network setup, repository definitions, user configuration, and disk partitioning with Btrfs. ```bash #platform=x86, AMD64, or Intel EM64T #version=OL10 # Firewall configuration firewall --enabled --service=ssh # Use Oracle Linux yum server repositories as installation source repo --name="ol10_AppStream" --baseurl="https://yum.oracle.com/repo/OracleLinux/OL10/appstream/x86_64/" url --url="https://yum.oracle.com/repo/OracleLinux/OL10/baseos/x86_64" # Root password rootpw --iscrypted SHA512_password_hash # Use graphical install graphical firstboot --disable # Keyboard layouts keyboard --vckeymap=us --xlayouts='us' # System language lang en_US.UTF-8 # SELinux configuration selinux --enforcing # Installation logging logging # System timezone timezone America/Los_Angeles # Network information network --bootproto=dhcp --device=em1 --onboot=yes --hostname=hostname # System bootloader configuration bootloader --location=mbr --boot-drive=sda # Non-administrative user user --name=user --homedir=/home/user --password=SHA512_password_hash --iscrypted # Partition information clearpart --all --initlabel --drives=sda autopart --type=btrfs ``` -------------------------------- ### Executing Preinstallation Scripts Source: https://docs.oracle.com/en/operating-systems/oracle-linux/10/install/install-AbouttheKickstartConfigurationFile.html Runs scripts before the installation begins. This example includes a script for partition configuration and downloads a package list from a web server. ```kickstart %pre %include http://server-ip-address/scripts/config-partitions wget -q -O- http://server-ip-address/scripts/package-list > /tmp/package-list %end ``` -------------------------------- ### Get Started with CLI Source: https://docs.oracle.com/en/operating-systems/oracle-linux-automation-manager/2/olam-api-cli2.3/op-api-v2-job_templates-id-notification_templates_started-get.html This section provides instructions for setting up and using the Oracle Linux Automation Manager Command-Line Interface. ```APIDOC ## Command-Line Interface Quick Start This section guides you through using the CLI. ### Setting Up the Command-Line Interface Instructions for installing and configuring the CLI. ### Authenticating Details on how to authenticate your CLI sessions. ### Using the Command-Line Interface Guidance on common CLI commands and usage. ``` -------------------------------- ### Example Output of mkfs Utilities Source: https://docs.oracle.com/en/operating-systems/oracle-linux/10/fsadmin/fsadmin-about_file_systems.html This is an example of the output you might see when listing local file system creation utilities. The actual output depends on the installed packages. ```text /sbin/mkfs.btrfs /sbin/mkfs.cramfs /sbin/mkfs.exfat /sbin/mkfs.ext2 /sbin/mkfs.ext3 /sbin/mkfs.ext4 /sbin/mkfs.fat /sbin/mkfs.minix /sbin/mkfs.msdos /sbin/mkfs.ocfs2 /sbin/mkfs.udf /sbin/mkfs.vfat /sbin/mkfs.xfs /sbin/mkfs.xmem ``` -------------------------------- ### Example Boot Loader Options for NFS Installation Source: https://docs.oracle.com/en/operating-systems/oracle-linux/10/install/install-ConfiguringtheBootLoader.html Use these options to specify the network location of an installation ISO and a Kickstart file for automated installation via NFS. The 'ip=dhcp' option ensures network configuration is handled automatically. ```bash inst.repo=nfs:nfs.example.com:/ISOs/OL10/full_image.iso \ inst.ks=nfs:nfs.example.com:/kickstart/OL10/server-ks.cfg ip=dhcp ``` -------------------------------- ### Enable Quadlet Service for Boot Source: https://docs.oracle.com/en/operating-systems/oracle-linux/podman/quadlets.html Quadlet services are transient. To enable them to start on boot, use the `[Install]` section in the Quadlet file. For enabling user services to start when the user signs in, use `loginctl enable-linger`. ```ini [Install] WantedBy=default.target ``` ```bash sudo loginctl enable-linger user ``` -------------------------------- ### Get Started with REST API Source: https://docs.oracle.com/en/operating-systems/oracle-linux-automation-manager/2/olam-api-cli2.3/op-api-v2-job_templates-id-notification_templates_started-get.html This section covers the basics of interacting with the REST API, including installation, authentication, and making requests. ```APIDOC ## REST API Quick Start This section guides you through using the REST API. ### Installing and Using cURL Learn how to install and use cURL for making API requests. ### Authenticating Understand the authentication mechanisms for accessing the API. ### Accessing the REST API Details on how to access the various API endpoints. ### Sending Requests Information on constructing and sending requests to the API. ### Ordering and Sorting How to order and sort the results returned by the API. ### Searching Text Fields Techniques for searching within text fields of resources. ### Filtering Results Using Operators Using operators to filter the data returned by the API. ### Limiting Response Results Using Pagination Implementing pagination to manage large result sets. ### Accessing Resources Using Named URLs Using named URLs to access specific resources. ``` -------------------------------- ### Example: Create Snapper Configuration for Root Filesystem Source: https://docs.oracle.com/en/operating-systems/oracle-linux/10/btrfs/btrfs-UsingtheSnapperUtilityWithBtrfsSubvolumes.html An example of setting up the Snapper configuration for the root (/) Btrfs filesystem. ```bash sudo snapper -c root_config create-config -f btrfs / ``` -------------------------------- ### Example Ping GET Response Source: https://docs.oracle.com/en/operating-systems/oracle-linux-automation-manager/2/olam-api-cli2.3/op-api-v2-ping-get.html This is an example JSON response for the /api/v2/ping/ endpoint. It includes details about the active node, high availability status, installation UUID, instance groups, instances, and the software version. ```json { "active_node":"awx_1", "ha":false, "install_uuid":"00000000-0000-0000-0000-000000000000", "instance_groups":[ ], "instances":[ ], "version":"23.7.0" } ``` -------------------------------- ### Start and Enable Kdump Service Source: https://docs.oracle.com/en/operating-systems/oracle-linux/10/boot/monitoring-InstallingKdump.html Enable the kdump service to start automatically on system boot and start it immediately. This ensures Kdump is active after installation and configuration. ```bash sudo systemctl enable --now kdump.service ``` -------------------------------- ### Instances Install Bundle List Source: https://docs.oracle.com/en/operating-systems/oracle-linux-automation-manager/2/olam-api-cli2.3/op-api-v2-job_templates-id-notification_templates_success-post.html Lists install bundles available for instances. ```APIDOC ## GET /instances/install_bundle ### Description Lists install bundles available for instances. ### Method GET ### Endpoint /instances/install_bundle ``` -------------------------------- ### Standard Build Process Example Source: https://docs.oracle.com/en/operating-systems/oracle-linux/dtrace-guide/dtrace-ref-StaticallyDefinedTracingofUserApplications.html Illustrates a typical build process for an application using multiple source files and object files. ```makefile src1.o: src1.c gcc -c src1.c src2.o: src2.c gcc -c src2.c myserv: src1.o src2.o gcc -o myserv src1.o src2.o ``` -------------------------------- ### Get Notification Templates for Started Workflow Job Source: https://docs.oracle.com/en/operating-systems/oracle-linux-automation-manager/2/olam-api-cli2.3/op-api-v2-workflow_job_templates-id-notification_templates_started-get.html Retrieves the notification templates associated with a workflow job that has started. ```APIDOC ## GET /api/v2/workflow_job_templates/{id}/notification_templates_started ### Description Retrieves the notification templates associated with a workflow job that has started. ### Method GET ### Endpoint /api/v2/workflow_job_templates/{id}/notification_templates_started ### Parameters #### Path Parameters - **id** (integer) - Required - The ID of the workflow job template. ``` -------------------------------- ### Configuring Resolv.conf in Postinstallation Source: https://docs.oracle.com/en/operating-systems/oracle-linux/10/install/install-AbouttheKickstartConfigurationFile.html Downloads and sets up the resolv.conf file to ensure proper DNS resolution during postinstallation, especially when using DHCP. ```kickstart %post wget -q -O- http://192.168.1.100/scripts/resolv.conf > /etc/resolv.conf %include http://instsvr.example.com/scripts/post-config . . . %end ``` -------------------------------- ### Install Base Pip Packages Source: https://docs.oracle.com/en/operating-systems/oracle-linux/10/python/python-InstallingThirdPartyPackages.html Install the necessary base packages for the `pip3` command before proceeding with virtual environment setup. ```bash sudo dnf install python3-pip python3-setuptools python3-pip-wheel ``` -------------------------------- ### Instances Install Bundle List Source: https://docs.oracle.com/en/operating-systems/oracle-linux-automation-manager/2/olam-api-cli2.3/api-instances.html Lists install bundles available for an instance. ```APIDOC ## GET /api/v2/instances/{id}/install_bundle/ ### Description Lists install bundles available for an instance. ### Method GET ### Endpoint /api/v2/instances/{id}/install_bundle/ ``` -------------------------------- ### Get Started Notification Templates Source: https://docs.oracle.com/en/operating-systems/oracle-linux-automation-manager/2/olam-api-cli2.3/op-api-v2-projects-id-notification_templates_started-get.html Retrieves a list of started notification templates for a given project ID. Supports pagination and searching. ```APIDOC ## GET /projects/{id}/notification_templates/started ### Description Retrieves a list of started notification templates for a given project ID. Supports pagination and searching. ### Method GET ### Endpoint /projects/{id}/notification_templates/started ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the project. #### Query Parameters - **page** (integer) - Optional - A page number within the paginated result set. - **page_size** (integer) - Optional - Number of results to return per page. - **search** (string) - Optional - A search term to filter results. - **related__search** (string) - Optional - A search term to filter across related fields (Added in Ansible Tower 3.1.0). ### Response #### Success Response (200) - **results** (array) - A list of notification templates. - **count** (integer) - The total number of results. - **next** (string) - A URL to the next page of results. - **previous** (string) - A URL to the previous page of results. #### Response Example { "results": [ { "id": 1, "name": "Template 1", "description": "This is the first template." } ], "count": 1, "next": null, "previous": null } ``` -------------------------------- ### Copy Installation Kernel and Ram-Disk Source: https://docs.oracle.com/en/operating-systems/oracle-linux/10/install/install-ConfiguringPXEBootLoading.html Copy the installation kernel (vmlinuz) and ram-disk image (initrd.img) from the NFS share to the UEFI boot directory. These files are used to start the Oracle Linux installation. ```bash sudo cp /var/nfs-exports/ISOs/ol10/vmlinuz -O /var/lib/tftpboot/efi/vmlinuz sudo cp /var/nfs-exports/ISOs/ol10/initrd.img /var/lib/tftpboot/efi/initrd.img ``` -------------------------------- ### Example Input Parameters for packages.getDetails Source: https://docs.oracle.com/en/operating-systems/oracle-linux/uln/uln-api-PackagesMethods.html Provides an example of the input parameters required for the `packages.getDetails` method, including the session key and package ID. ```text sessionKey: uyjAN3cB7ySsAUra27CKj3qx9fuGyio5uQ6w4q4ALNX pid: 33658475 ``` -------------------------------- ### Get Notification Templates for Started System Jobs Source: https://docs.oracle.com/en/operating-systems/oracle-linux-automation-manager/2/olam-api-cli2.3/op-api-v2-system_job_templates-id-notification_templates_started-get.html Retrieves a list of notification templates for system jobs that have started. Supports pagination and searching. ```APIDOC ## GET /system/job_templates/{id}/notification_templates/started ### Description Retrieves a list of notification templates for system jobs that have started. This endpoint supports filtering and pagination. ### Method GET ### Endpoint /system/job_templates/{id}/notification_templates/started ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the system job template. #### Query Parameters - **page** (integer) - Optional - A page number within the paginated result set. - **page_size** (integer) - Optional - Number of results to return per page. Defaults to 100. - **search** (string) - Optional - A case-insensitive search term to filter results. ### Response #### Success Response (200) - **results** (array) - A list of notification templates. - **count** (integer) - The total number of results available. - **next** (string) - URL for the next page of results. - **previous** (string) - URL for the previous page of results. #### Response Example { "results": [ { "id": 1, "type": "email", "template": "Job {{job.name}} started." } ], "count": 1, "next": null, "previous": null } ``` -------------------------------- ### Create Working Directory and Files Source: https://docs.oracle.com/en/operating-systems/oracle-linux-automation-manager/2/user-guide-private-hub2.3/awx_builder.html Set up the necessary directory and files for configuring a custom execution environment using format 2. ```bash mkdir ~/builder-utility cd ~/builder-utility touch ansible.cfg execution-environment.yml requirements.yml requirements.txt bindep.txt ``` -------------------------------- ### Start the NMB Service Source: https://docs.oracle.com/en/operating-systems/oracle-linux/10/samba/services_concept.html Starts the nmb systemd service, responsible for NetBIOS name resolution and network browsing. Ensure the 'samba' package is installed. ```bash sudo systemctl start nmb.service ``` -------------------------------- ### Start the Winbind Service Source: https://docs.oracle.com/en/operating-systems/oracle-linux/10/samba/services_concept.html Starts the winbind systemd service, used for resolving Active Directory users and groups. Install the 'samba-winbind' package to use this service. If setting up as a domain member, start this before the 'smb' service. ```bash sudo systemctl start winbind.service ``` -------------------------------- ### Instances Install Bundle List Source: https://docs.oracle.com/en/operating-systems/oracle-linux-automation-manager/2/olam-api-cli2.3/swagger.json Lists installable bundles for a specific instance with search and pagination capabilities. ```APIDOC ## GET /api/v2/instances/{id}/install_bundle/ ### Description Lists installable bundles for a specific instance. Supports searching and pagination. ### Method GET ### Endpoint /api/v2/instances/{id}/install_bundle/ ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the instance. #### Query Parameters - **search** (string) - Optional - A search term to filter bundles. - **page** (integer) - Optional - The page number for pagination. - **page_size** (integer) - Optional - The number of results per page. ### Responses #### Success Response (200) - **count** (integer) - The total number of bundles. - **next** (string) - The URI for the next page of results. - **previous** (string) - The URI for the previous page of results. - **results** (array) - An array of Instance objects. ``` -------------------------------- ### Get help for a specific corelens module Source: https://docs.oracle.com/en/operating-systems/oracle-linux/10/drgn/corelens_command_reference.html Use the -h option after specifying a module with -M to learn more about its functionality. For example, to get help for the 'dentrycache' module. ```bash corelens -M module -h ``` -------------------------------- ### Start a Pod Source: https://docs.oracle.com/en/operating-systems/oracle-linux/podman/pods.html Initiate all containers within a specified pod. Use the pod name or ID. ```bash podman pod start mypod ``` -------------------------------- ### Start a Quadlet Service Source: https://docs.oracle.com/en/operating-systems/oracle-linux/podman/quadlets.html Use `systemctl start` to start a Quadlet service. For standard users, include the `--user` option. ```bash sudo systemctl start myquadlet.service ``` ```bash systemctl --user start myquadlet.service ``` -------------------------------- ### Start the SMB Service Source: https://docs.oracle.com/en/operating-systems/oracle-linux/10/samba/services_concept.html Starts the smb systemd service, which provides file sharing and printing services using the SMB protocol. Ensure the 'samba' package is installed. ```bash sudo systemctl start smb.service ``` -------------------------------- ### Build USDT Application Example Source: https://docs.oracle.com/en/operating-systems/oracle-linux/dtrace-v2-guide/dtrace-ref-StaticallyDefinedTracingofUserApplications.html Builds the C application with USDT probes, including generating the header, compiling the C file, post-processing with DTrace, and linking the final executable. ```bash dtrace -h -s myproviders.d gcc -c func.c dtrace -G -s myproviders.d func.o gcc -Wl,--export-dynamic,--strip-all myproviders.o func.o ``` -------------------------------- ### Start Data Volume Containers Source: https://docs.oracle.com/en/operating-systems/oracle-linux/docker/docker-WorkingWithContainersandImages.html Starts two instances of a data volume container image named `mymod/dvc:v1`. These are used in subsequent examples for data transfer. ```bash docker run -d --name dvc1 mymod/dvc:v1 docker run -d --name dvc2 mymod/dvc:v1 ``` -------------------------------- ### Example: Create Local OCFS2 Volume Source: https://docs.oracle.com/en/operating-systems/oracle-linux/10/ocfs2/create-local-ocfs2-filesystem_concept.html This example demonstrates creating a locally mountable OCFS2 volume on `/dev/sdc1` with a specific label and node slot count. ```bash sudo mkfs.ocfs2 -M local --fs-features=local -N 1 -L "localvol" /dev/sdc1 ``` -------------------------------- ### Install BIND and Utilities Source: https://docs.oracle.com/en/operating-systems/oracle-linux/10/bind/bind-InstallingandConfiguringaNameServer.html Installs the BIND package and associated utilities required for name server configuration. ```bash sudo dnf install bind bind-utils ``` -------------------------------- ### Enable ol8_UEKR7 Repository for DTrace Installation Source: https://docs.oracle.com/en/operating-systems/oracle-linux/dtrace-v2-guide/install_dtrace.html Enable either ol8_UEKR6 or ol8_UEKR7 yum repository on x86 platforms for Oracle Linux 8 to install DTrace. This example enables ol8_UEKR7. ```bash sudo dnf config-manager --enable ol8_UEKR7 ``` -------------------------------- ### Start Docker Engine with User Namespace Remapping Source: https://docs.oracle.com/en/operating-systems/oracle-linux/docker/docker-KnownIssues.html Example of starting the Docker Engine with user namespace remapping set to default. This command may fail with an error during the creation of the 'dockremap' user. ```bash dockerd --userns-remap default ``` -------------------------------- ### Example TuneD Global Configuration Source: https://docs.oracle.com/en/operating-systems/oracle-linux/10/tuned/reviewing_tuned_global_settings.html This snippet shows a sample configuration for the `/etc/tuned/tuned-main.conf` file, illustrating various global settings for the TuneD service. ```shell # Global tuned configuration file. # Whether to use daemon. Without daemon it just applies tuning. It is # not recommended, because many functions don't work without daemon, # e.g. there will be no D-Bus, no rollback of settings, no hotplug, # no dynamic tuning, ... demon = 1 # Dynamicaly tune devices, if disabled only static tuning will be used. dynamic_tuning = 0 # How long to sleep before checking for events (in seconds) # higher number means lower overhead but longer response time. sleep_interval = 1 # Update interval for dynamic tunings (in seconds). # It must be multiply of the sleep_interval. update_interval = 10 # Recommend functionality, if disabled "recommend" command will be not # available in CLI, daemon will not parse recommend.conf but will return # one hardcoded profile (by default "balanced"). recommend_command = 1 ... ``` -------------------------------- ### Set Up the Cluster with a Name and Node Details Source: https://docs.oracle.com/en/operating-systems/oracle-linux/10/availability/availability-CreatingtheCluster.html Create the cluster using the pcs cluster setup command, specifying a cluster name and the hostnames/IP addresses of participating nodes. This command also destroys any existing cluster configuration on the specified nodes. ```bash sudo pcs cluster setup pacemaker1 node1 addr=192.0.2.1 node2 addr=192.0.2.2 ``` -------------------------------- ### C Program for Docker Build Example Source: https://docs.oracle.com/en/operating-systems/oracle-linux/docker/docker-WorkingWithContainersandImages.html A simple 'hello world' program in C used as the source for a multi-stage Docker build. ```c #include int main (void) { printf ("Hello, world!\n"); return 0; } ``` -------------------------------- ### Measure Program Runtime with proc:::start and proc:::exit Source: https://docs.oracle.com/en/operating-systems/oracle-linux/dtrace-v2-guide/dtrace-ref-procProvider.html This example utilizes the proc:::start and proc:::exit probes to measure the duration of program execution. It records the start time and calculates the elapsed time upon program termination, then aggregates the results using quantize. ```dtrace proc:::start { self->start = timestamp; } proc:::exit /self->start/ { @[execname] = quantize(timestamp - self->start); self->start = 0; } ``` -------------------------------- ### Start Libreswan Source: https://docs.oracle.com/en/operating-systems/oracle-linux/vpn/vpn-ConfiguringaVPNbyUsingLibreswan.html Starts the Libreswan service. ```bash sudo ipsec setup start ``` -------------------------------- ### GET /instances/{id}/install_bundle Source: https://docs.oracle.com/en/operating-systems/oracle-linux-automation-manager/2/olam-api-cli2.3/op-api-v2-instances-id-install_bundle-get.html Retrieves a list of installed bundles for a specific Oracle Linux instance. ```APIDOC ## GET /instances/{id}/install_bundle ### Description Retrieves a list of installed bundles for a specific Oracle Linux instance. ### Method GET ### Endpoint /instances/{id}/install_bundle ### Parameters #### Path Parameters - **id** (string) - Required - The unique identifier of the Oracle Linux instance. ### Response #### Success Response (200) - **items** (array) - A list of installed bundle names. - **type** (string) - Indicates the data type of the 'items' field, which is an array. - **uniqueItems** (boolean) - Indicates whether the array contains unique items. ``` -------------------------------- ### ASMLIB Configuration Prompts Source: https://docs.oracle.com/en/operating-systems/oracle-linux/asmlib/asmlib-ConfiguringASMLib.html Example output of the interactive ASMLIB configuration utility, showing prompts for user, group, boot options, and disk scanning. ```text Configuring the Oracle ASM library driver. This will configure the on-boot properties of the Oracle ASM library driver. The following questions will determine whether the driver is loaded on boot and what permissions it will have. The current values will be shown in brackets ('[]'). Hitting without typing an answer will keep that current value. Ctrl-C will abort. Default user to own the driver interface []: oracle Default group to own the driver interface []: dba Start Oracle ASM library driver on boot (y/n) [n]: y Scan for Oracle ASM disks on boot (y/n) [y]: y Maximum number of disks that may be used in ASM system [2048]: 2048 Enable iofilter if kernel supports it (y/n) [y]: y Writing Oracle ASM library driver configuration: done ``` -------------------------------- ### Run Emacs Program Source: https://docs.oracle.com/en/operating-systems/oracle-linux/dtrace-tutorial/dtrace-tutorial-TracingOperatingSystemBehavior.html This command starts the Emacs program. It is used here as an example process to be traced by the DTrace script. ```bash # `emacs foobar.txt` ```