Introduction
In this challenge, you will learn how to configure a Linux system to boot into a specific systemd target automatically. This is a common task for system administrators to ensure that the system starts up in a desired state, such as a graphical user interface (GUI) or a command-line interface (CLI). Understanding how to manage boot targets is a fundamental skill for RHEL system administration.
Configure the Default Boot Target
On a systemd-based system like RHEL, "targets" are used to manage the state of the system by starting a specific group of services. This is analogous to "runlevels" in older init systems. Your task is to change the default target that the system boots into.
Tasks
- Identify the current default boot target on your system.
- Change the default boot target to the graphical target (
graphical.target). - Verify that the configuration change was successful.
Requirements
- The default boot target must be set to
graphical.target. - All operations must be performed using the
systemctlcommand. - You must perform the operations as the
labexuser.
Note
In this containerized lab environment, you cannot reboot the system to fully test the boot process. The goal of this challenge is to correctly set the configuration, which you can verify without a reboot. On a physical or virtual machine, this change would cause the system to boot into a graphical login screen.
Summary
In this challenge, you have learned how to manage the default boot target on a RHEL system using systemd. You practiced using systemctl get-default to check the current configuration and systemctl set-default to change it. By setting the default target, you can control whether a system boots into a command-line or graphical environment, a crucial skill for tailoring a system to its intended role.



