- Смена менеджера дисплеев (DM) по-умолчанию (KDM,GDM и т.п)
- How to change the default display manager in Debian Linux
- How to check what display manager are you running
- Change the display manager:
- Popular display managers and how to install them:
- Disabling the display manager in Debian
- Enabling back the display manager:
- Conclusion:
- About the author
- David Adams
Смена менеджера дисплеев (DM) по-умолчанию (KDM,GDM и т.п)
Дата добавления: 08 августа 2010
KDM или GDM?
KDM (KDE Display Manager) и GDM (GNOME Display Manager) являются самыми популярными менеджерами дисплеев. KDM рекомендуется использовать если вы используете среду рабочего стола KDE, а GDM если используете GNOME, xfce, lxde и т.д. Однако есть и другие DM.
Функциональность обоих менеджеров примерно одинакова.
Частые причины для смены DM
Если вы установили и используете GNOME, а в качестве менеджера DE выступает KDM (такое бывает при наличии KDE и GNOME в одной системе). Так-же вы возможно хотите вернуться на прошлую DE, но менеджера дисплеев все равно используется от старой (предположим, не понравившийся) DE.
Мне, например, пришлось изменить менеджер дисплеев чтобы зайти в Ubiquty т.к из KDM почему-то запускался стандартный GNOME.
Смена DM для основанном на DEB дистрибутивов
Если у вас «DEB-BASED» дистрибутив (Debian, Ubuntu, Mint, Gnewsense и т.д), то можете воспользоваться командой.
От суперпользователя!
dpkg-reconfigure gdm
После ввода команды появится меню выбора DM по-умолчанию:
Редактируем конфигурационный файл (для всех дистрибутивов)
Во многих дистрибутивах (точно перечислить не могу, но у меня в Debian именно в этом файле) нужно прописать путь до нужного DM в конфигурационном файле X11 под названием default-display-manager. Давайте его изменим.
От суперпользователя!
nano -w /etc/X11/default-display-manager
И в прописываем (или редактируем) путь до нужного DM: /usr/sbin/gdm для GDM, /usr/sbin/kdm для KDM или другой путь для другой DM.
Сохраняем файл (Ctrl+O) и все готово.
В дистрибутивах OpenSuse, ASP (и возможно в других) необходимо отредактировать другой конфигурационный файл.
От суперпользователя!
nano -w /etc/sysconfig/desktop
И прописываем (или редактируем) строчку: DISPLAYMANAGER=KDM для KDM или DISPLAYMANAGER=GDM для GDM.
Сохраняем файл (Ctrl+O) и все готово.
Для gentoo (и опять же возможно и других) нужно отредактировать другой конфигурационный файл.
От суперпользователя!
nano -w /etc/conf.d/xdm
Создаем строку (или находим и редактируем): DISPLAYMANAGER=»kdm» для KDM или DISPLAYMANAGER=»gdm» для GDM.
Сохраняем файл (Ctrl+O) и все готово.
У меня другой дистрибутив. Как узнать какой файл редактировать?
Выполните в терминале команду (на самом деле цепочка команд, но запускается как одна команда):
И смотрим какая команда выдает результат (выводиться содержимое файла с текущими параметрами). Собственно тот конфигурационный файл вам и нужно будет редактировать по инструкциям выше.
* Вместо редактора nano -w можно использовать любой другой, например kate или gedit.
Запуск нужного DM однократно
Для этого нужно просто запустить нужную службу ( от суперпользователя ):
/etc/init.d/kdm start
— Для KDM.
/etc/init.d/gdm start
— Для GDM.
Возможно понадобится остановка действующей службы, например надо буде выполнить /etc/init.d/kdm stop перед запуском GDM.
$ sudo update-alternatives —config x-session-manager
Автор: Subsanek, дата: 08 августа 2010 , время: 22:38:41 (MSK).
>А где тут написано про оконные менеджеры?
В описании было, уже исправил.
Автор: Анон, дата: 17 октября 2010 , время: 23:30:21 (MSK).
[Некропост]
И как я это пропустил?
>От суперпользователя!
>dpkg-reconfigure gdm
Охлол. А нет у мя гдм. Чо теперь?
>Во многих дистрибутивах (точно перечислить не могу, но у меня в Debian именно в этом файле)
Проверить лично / погуглить / почитать ман / посмотреть политику дистра(ов) / посмотреть стандарт религия не позволяет?
>И в прописываем (или редактируем
Чочо мы делаем?
>/etc/init.d/kdm start
1. дистрибутиво-зависимо
2. аффтар-дебианщег не знает про service?
На сладенькое. Объяснил бы простым смертным зачем nano непременно с опцией -w
Автор: Анон, дата: 18 октября 2010 , время: 13:37:02 (MSK).
В каком месте я не прав?
Я знаю, что делает опция -w у нано, но зачем она тут так яростна рекомендована без описания действия?
М. Поверхностное гугление показывает что таки это не дистрибутиво зависимо был не прав. Однако service гибче / лучше / в конце концов тупо печатать меньше. И сервис есть везде, где есть инитд (как минимум в красношапке)
Ошибки автора в тексте поста считаются троллингом комментатора? О_о
Первое замечание также является обоснованным ибо и ты и ксенос не раз на просторах этого бложика упоминали, что тут статьи для пользователей разного уровня.
Источник
How to change the default display manager in Debian Linux
The display manager’s role is to provide a login interface after the system boots start a session. Display managers are available both in graphical and text modes, being GDM, KDM, and LightDM (see picture below) most known examples.
After reading this tutorial, you’ll know how to install, change or disable display managers in Debian, including the following topics:
- How to check my display manager
- How to change the display manager (GDM3 install)
- Installing LightDM
- Installing SDDM
- Installing XDM
- Installing SLIM
- Installing LXDM
- Disabling the display manager
- Enabling the display manager back
How to check what display manager are you running
To learn what display manager your system is running in Debian Linux, run the command shown in the screenshot below:
As you can see in the output, my display manager is Lightdm.
Change the display manager:
Before changing the display manager, you need to install the display the managers you want to have on your device. You can install them using the command apt. In the example below, GDM3 is installed.
Once GDM is installed, you can set it using the command dpkg-reconfigure, as shown in the example below.
Note: The command dpkg-reconfigure allows you to reconfigure installed packages. To change your display manager, you can use the command dpkg-reconfigure followed by an installed display manager.
After running the command dpkg-reconfigure, you’ll see the screen shown above with a brief description of display managers. Press OK to continue to the selection menu shown below, where you can choose the display manager you want to change to, select it and press OK.
Now when you boot, your computer should see GDM3 as in the image below.
Popular display managers and how to install them:
GDM3: GDM3 (GNOME Display Manager) is the Gnome display manager. It allows users to authenticate and graphically customize and edit settings.
GDM supports theme customization, remote display management, PAM authentication, XDMCP displays, cursor customization, Wayland, among more features.
GDM starts the Xserver process and launches the init script and greeter.
GDM3 also allows you to hide the user’s list, includes built-in themes, supports multiple user logins, fingerprint scanning, smart card authentication, and more.
GDM3 installation was already explained in this tutorial’s first example.
LightDM: LightDM became one of the most popular display managers. It aims to be light and fast, with low code complexity. It has very few dependencies, being a great alternative for low-resource devices; it provides all GDM features without Gnome dependencies.
LightDM also supports XDMCP and VNC. Cross Desktop, multiple GUI is also supported.
Its popularity made LightDM the default display manager for Linux distributions like Linux Mint, Lubuntu, and other OS.
To install LightDM on Debian based Linux distributions, use apt as shown below:
On the first configuration screen, press OK to continue to the display manager selector.
Select lightdm and press ENTER to finish the installation.
Reboot your computer, and LightDM will show up.
SDDM: SDDM (Simple Desktop Display Manager) supports audio, gif, and video files. Its GUI is simpler than GDM. It also supports Wayland, theme customization, Session selector, Num Lock on, automatic login, among additional features.
To install SDDM in Debian, use apt as shown below:
The first configuration screen we saw in previous steps will show up; press OK to continue to the next step.
Select sddm and press ENTER to continue the installation
Restart your computer, and SDDM will show up.
XDM: XDM (X Display Manager) is an old and minimalist alternative. Contrary to previous examples, XDM shows a simple dialogue box without a users list or drop-down menu; just type your username and password and press ENTER.
To install XDM on Debian based distributions, run the command below:
Press OK like in previous examples.
Select XDM and press ENTER
Reboot your computer, and XDM will show up; just start typing your username and password and hit ENTER.
SLIM: SLIM (Simple Login Manager) features PNG and XFT support for alpha transparency and anti-aliased fonts, external themes, different runtime options (X server, shut down, reboot, login). It can also load defined users at startup and supports welcome and shutdown message customization.
To start with Slim installation, run the following command:
Press OK to continue to the selection screen.
Select slim and press ENTER to finish the process.
Reboot your computer, and SLIM will show up.
LXDM: LXDM is another display manager for LXDE x window manager. LXDM is a lightweight alternative designed to be fast.
To install LXDM in Debian, use apt as shown below:
Press OK to continue to the next screen.
On the selection screen, select LXDM and press ENTER to finish the process.
Reboot your computer, and LXDM will show up.
Disabling the display manager in Debian
You may want to disable the display manager and boot to a TTY.
Edit the file /etc/default/grub using your favorite text editor, as shown in the screenshot below.
Edit the following line.
Replace “quiet” with “text” and press CTRL+X to exit saving changes.
Update grub by running the command below.
Disable your display manager by executing the following command, replace with your display manager name.
Then you will boot into text mode.
To start lightdm run:
Enabling back the display manager:
If you want to revert the change, edit GRUB back, replacing “text” with “quiet”.
Update GRUB again by running:
And enable your display manager again using systemctl as shown below.
Execute dpkg-reconfigure followed by any of your installed display managers:
Press OK.
Select your display manager and press ENTER.
Reboot your computer.
And your display manager will show up again.
Conclusion:
As shown in this tutorial, any Linux user level can easily change his display manager or disable it in minutes. However, downloading a display manager with unmet dependencies may be the most time-consuming part, for example, if you are using Gnome and want to install KDM.
Fortunately, the open-source community provides a variety of available options both for graphic and text modes.
GDM, LightDM SDDM, and XDM are the most popular display managers in the market, and KDM, which weren’t included in this tutorial, excluding KDE. LightDM seems to be one of the best alternatives due to its performance optimization.
It is important to clarify that using display managers is associated with less security than booting into a TTY1, but most users choose the nice looks to display managers.
I hope you found this tutorial useful. Keep following Linux Hint for more Linux tips and tutorials.
About the author
David Adams
David Adams is a System Admin and writer that is focused on open source technologies, security software, and computer systems.
Источник