【转】怎么改变RHEL中默认的显示管理器/GUI?

本文介绍如何在Red Hat Enterprise Linux中更改系统的默认桌面环境和显示管理器。通过编辑配置文件可以设置首选的显示管理器及桌面环境,如GNOME、KDE或XDM等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

https://access.redhat.com/solutions/2409

How do I change the system's default desktop or display manager?

 SOLUTION 已验证 - 已更新 2016年十二月13日23:44 - 

English 

环境

  • 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:

    Raw

    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):

    Raw

    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 ?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值