The LPIC-1 exam expects the candidate to know how to change a default target for a Linux computer using systemd. This exercise will assist you in your practice of determining what the default target is, and changing it to a new one.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Check the default target
Note: If you have an issue connecting to the instance, wait a minute or two to allow the instance to finish provisioning and retry.
The current default target is set to multi-user.target. Use the appropriate command to verify this:
systemctl get-default
- Change the default target
The administrator will need to change the default target so that the computer boots into a graphical desktop:
sudo systemctl set-default graphical.target
- Check the Default Target again
Check the Default Target again
Now verify that the system is set for a graphical boot:
systemctl get-default