如何在debian中更改默认的桌面管理器?


18

我正在将Debian 6与两个桌面管理器(Gnome和KDE)一起使用。在安装过程中,我选择了KDE作为默认桌面。但是,现在我想将默认桌面更改为Gnome。我该如何更改?

Answers:


19

我已经通过编辑default-display-manager路径中的文件找到了解决方案/etc/X11/

#vim /etc/X11/default-display-manager

对于Gnome,编辑为:

/usr/sbin/gdm

对于KDE,进行如下编辑:

/usr/lib/kde4/bin/kdm

更新后,重新启动计算机。您可以找到它更新了显示管理器。

您也可以通过执行以下命令来做到这一点:

$ sudo dpkg-reconfigure gdm

4
update-alternatives --configure x-window-manager应该允许您选择要将哪个作为系统默认值。
沃尔夫,

4
@Wolfer您的意思是update-alternatives --config x-window-manage
Mike

1
@Mike在我的系统update-alternatives --display x-window-manage产出update-alternatives: error: no alternatives for x-window-manage,而update-alternatives --display x-window-manager报告什么人会希望看到...作为参考,这是对SID ...
沃孚

2
@Wolfer抱歉,这是我的错字。我的观点是,它是“ config”而不是“ configure”。
2014年

1
x-window-manager不是X显示管理器(或所谓的“ X桌面管理器”)
Giacomo Catenazzi

6

sudo update-alternatives --config x-window-manager

这使用Debian的内置机制为默认命令选择“替代”。


答案来自沃尔夫和迈克附近的评论。由于这是首选的解决方案,因此最好将其发布为一个。
VasyaNovikov
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.