To change the default desktop or display manager in Fedora, CentOS, or RHEL Linux, you can use the systemctl
command with the set-default
option.
Here's an example of how to change the default desktop environment in Fedora:
dnf install gnome-desktop
systemctl set-default graphical.target
This will set the default target to the graphical.target
, which will start the GNOME desktop environment when you boot the system.
To set the default display manager, you can use the systemctl
command with the enable
and disable
options.
For example, to set the default display manager to GDM (GNOME Display Manager), you can use the following commands:
systemctl enable gdm systemctl disable lightdm
This will enable the GDM display manager and disable the LightDM display manager.
Note that you will need to reboot the system for the changes to take effect.