https://access.redhat.com/solutions/2409
How do I change the system's default desktop or display manager?
SOLUTION 已验证 - 已更新 2016年十二月13日23:44 -
环境
- Red Hat Enterprise Linux 4
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7.2 and above
问题
- How do I change the system's default desktop or display manager?
决议
-
The systems default behavior is to try and start the following (if one is not installed it will then try the next one in the list):
- gnome (gdm)
- kde (kdm)
- xdm (xdm)
-
To force a default, create (or edit) a file in /etc/sysconfig/desktop with the following contents:
DISPLAYMANAGER="displaymanager" DESKTOP="desktop"
Where "displaymanager" is the X Display Manager to use. The following are available with Red Hat Enterprise Linux:
- KDE
- GNOME
- XDM
And "desktop" is the desktop that to use, the following are available with Red Hat Enterprise Linux:
- KDE
- GNOME
-
The display manager and desktop do not have to have the same values; for example the gnome display manager can be used with the kde desktop. If another desktop or display manager is installed that is not defined above, then values can be set for it and the system will attempt to start it.
-
Below is an example of the desktop configuration file using the xdm display manager and the kde deskop (case is important):
DISPLAYMANAGER="XDM" DESKTOP="KDE"
Note: For details about the steps to set default desktop environment in RHEL7.0 to RHEL7.1, please refer : How to configure default desktop session in RHEL7 ?