- LightDM (Русский)
- Contents
- Установка
- Greeter (Экран приветствия/входа в систему)
- Включение LightDM
- Инструмент командной строки
- Тестирование
- Дополнительные настройки и твики
- Изменение фонового изображения/цветов
- Экран приветствия GTK+
- Экран приветствия Unity
- Экран приветствия KDE
- Изменение вашего аватара
- Внедрение Arch-ориентированных 64×64 иконок
- Включение автовхода
- Включение интерактивного без парольного входа в систему
- Скрытие пользователей системы и служб
- Миграция с SLiM
- NumLock включен по умолчанию
- Переключение пользователя при Xfce4
- Сессия по умолчанию
- Регулировка положения входа окна
- Экран приветствия GTK+
- Решение проблем
- Локаль неправильно отображается
- Ресурсы X не корректно распознаны
- Отсутствуют иконки в Экране приветствия GTK
- LightDM зависает при попытке входа в систему
- LightDM отображается в неправильном мониторе
- LightDM не отображается
- LightDM
- Contents
- Installation
- Greeter
- Enabling LightDM
- Command line tool
- User switching
- Testing
- Optional configuration and tweaks
- X session wrapper
- Environment variables
- Keymap
- Multiple keyboard layouts in lightdm-gtk-greeter
- Changing background images/colors
- GTK greeter
- Webkit2 greeter
- Unity greeter
- Slick Greeter
- Changing your avatar
- Sources of Arch-centric 64×64 icons
- Enabling autologin
- Enabling interactive passwordless login
- Enabling guest sessions
- Hiding system and services users
- Migrating from SLiM
- Login using
- NumLock on by default
- Default session
- Adjusting the login window’s position
- GTK greeter
- VNC Server
- Lock the screen using light-locker
- Multiple-monitor setup
- Troubleshooting
- Autologin does not work
- Viewing current configuration
- LightDM not starting and screen flashing
- Wrong locale displayed
- Unresponsive for a few minutes after startup
- Missing icons with GTK greeter
- LightDM freezes on login attempt
- LightDM displaying in wrong monitor
- LightDM does not appear or monitor only displays TTY output
- LightDM is running with low FPS on Intel Graphics
- Pulseaudio not starting automatically
- Long pause before LightDM shows up when home is encrypted
- Boot hangs on «[ OK ] Reached target Graphical Interface.»
- Wayland session not working with duplicate GNOME entries in greeter
- Login always segfaults on first attempt
- Infinite login loop
LightDM (Русский)
LightDM это кросс-десктопный Экранный менеджер. Главные особенности:
- Кросс-десктопный — поддерживает различные технологии рабочего стола.
- Поддерживает различные технологии отображения (X, Wayland, Mir, . ).
- Легковесный — низкое потребление памяти и высокая производительность.
- Поддержка гостевых сессий.
- Поддержка удаленного входа (входящий — XDMCP, VNC, исходящие — XDMCP, подключаемые).
- Комплексный набор тестов.
- Низкая сложность кода.
Более подробную информацию о проекте LightDM можно найти здесь.
Contents
Установка
Установите lightdm . Обратите внимание, что чётные выпуски являются стабильными (1.8, 1.10), а разрабатываемые релизы, — нечётными (1.9, 1.11). Разрабатываемые релизы доступны в lightdm-devel AUR . Также доступен lightdm-git AUR .
Greeter (Экран приветствия/входа в систему)
Возможно вы хотите установить Экран приветствия. Экран приветствия представляет собой графический интерфейс, который предлагает пользователю ввести учетные данные, выбрать сеанс, и так далее. Можно использовать LightDM без Экрана приветствия, но только если он настроен на автоматический вход в систему. Ссылка на Экран приветствия lightdm-gtk-greeter . LightDM пытается использовать этот Экран приветствия при запуске, если он не настроен иначе.
Официальные репозитории содержат следующие альтернативные Экраны приветствия.
- lightdm-deepin-greeter ( deepin-session-ui ): Экран приветствия из проекта Deepin.
Другие альтернативные Экраны приветствия доступны в AUR.
- lightdm-webkit2-greeter : Экран приветствия, который использует Webkit2 для тем. Он заменяет lightdm-webkit-greeterAUR .
- lightdm-unity-greeterAUR : Экран приветствия использующийся в Ubuntu Unity [archived page] .
- lightdm-pantheon-greeter : Экран приветствия из проекта elementary OS.
Вы можете установить Экран приветствия по умолчанию, путём изменения раздела [Seat:*] в файле настроек LightDM, например:
Какие Экраны приветствия доступны? Какие значения можно назначить опцией greeter-session ? Каждый файл .desktop в каталоге /usr/share/xgreeters обозначает доступный Экран приветствия. В этом примере доступны Экраны приветствия lightdm-gtk-greeter и lightdm-kde-greeter :
Включение LightDM
Убедитесь в том что вы включили lightdm.service чтобы LightDM запускался при загрузке. Смотрите также Экранный менеджер#Запуск экранного менеджера.
Инструмент командной строки
LightDM предлагает инструмент командной строки, dm-tool , который может быть использован для блокировки текущего места, переключения сеансов и т.д., что полезно в «минималистских» оконных менеджерах и для тестирования. Чтобы увидеть список доступных команд, выполните следующую команду:
Тестирование
Затем запустите LightDM как приложение X:
Дополнительные настройки и твики
Некоторые Экраны приветствия имеют свои собственные файлы настроек. Например lightdm-gtk-greeter имеет:
LightDM может быть настроен путём изменения его скрипта настроек /etc/lightdm/lightdm.conf .
Изменение фонового изображения/цветов
Пользователи, желающие иметь плоский цвет (без изображения) могут установить шестнадцатеричное значение background цвета.
Если вы хотите вместо этого использовать изображение, смотрите ниже.
Экран приветствия GTK+
Можете воспользоваться программой с графическим интерфейсом lightdm-gtk-greeter-settings .
Пользователям, желающим настроить обои на экране приветствия необходимо отредактировать /etc/lightdm/lightdm-gtk-greeter.conf и определить переменную background под секцией [greeter] . Например:
Экран приветствия Unity
Пользователи, использующие lightdm-unity-greeter AUR должны отредактировать /usr/share/glib-2.0/schemas/com.canonical.unity-greeter.gschema.xml файл, а затем выполнить:
В соответствии с этой страницей.
Экран приветствия KDE
Зайдите в System Settings > Login Screen (LightDM) и измените фоновое изображение для вашей темы.
Как вариант, можете отредактировать переменную Background в lightdm-kde-greeter.conf :
Изменение вашего аватара
Во-первых, убедитесь, что пакет accountsservice из Официальных репозиториев установлен, затем установите его следующим образом, заменив username на регистрационное имя нужного пользователя. Расширение файла .png не должно содержатся в имени файла.
- Отредактируйте или создайте файл /var/lib/AccountsService/users/username , и добавьте строки
- Создайте файл /var/lib/AccountsService/icons/username используя файл изображения 96×96 PNG.
Внедрение Arch-ориентированных 64×64 иконок
Пакет archlinux-artwork AUR из AUR содержит некоторые интересные примеры, которые устанавливаются в /usr/share/archlinux/icons и которые могут быть скопированы в /usr/share/icons/hicolor/64×64/devices следующим образом:
После копирования, пакет archlinux-artwork AUR может быть удалён.
Включение автовхода
Отредактируйте файл настроек LightDM, расскомментируйте эти строки и правильно настройте:
LightDM проходит через PAM даже когда включен autologin . Вы должны быть в группе autologin чтобы входить в систему автоматически без вода пароля:
Включение интерактивного без парольного входа в систему
LightDM проходит через PAM, так что вы должны сконфигурировать lightdm настройки PAM:
Вы также должны входить в группу nopasswdlogin чтобы получить возможность входа в систему в интерактивном режиме без ввода пароля:
Для того, чтобы создать новую учетную запись пользователя, которая входит в систему автоматически и дополнительно имеет возможность снова войти в систему без пароля, пользователь может быть создан с помощью дополнительного участия в обеих группах и т.д .:
Скрытие пользователей системы и служб
Чтобы запретить системным пользователям отображаться в начале при входе в систему, установите дополнительную зависимость accountsservice , или добавьте имя пользователя в /etc/lightdm/users.conf под hidden-users . Первый вариант предпочтительнее, — не нужно будет обновлять список при многократном добавлении или удалении пользователей.
Миграция с SLiM
Переместите содержимое xinitrc в xprofile, удалите вызов запуска Оконного менеджера или Среды рабочего стола.
Также удалите содержимое
/.dmrc, и выберите на иконке Сессий (в правом верхнем углу экрана по умолчанию), сессию которую вы хотите запустить.
NumLock включен по умолчанию
Установите пакет numlockx и отредактируйте /etc/lightdm/lightdm.conf добавив следующие строки:
Переключение пользователя при Xfce4
Если вы используете рабочий стол Xfce, то кнопка действия Функции Переключения Пользователей ищет в вашем Запуске Приложений специальный исполняемый файл gdmflexiserver, для того чтобы задействовать себя. Если вы предоставите исполняемый сценарий оболочки /usr/bin/gdmflexiserver состоящий из
то переключение пользователей в Xfce должно работать с LightDM.
В качестве альтернативы, если вы используете меню Whisker, пройдите Properties -> Commands и измените команду «Switch Users» непосредственно на:
Кроме того, можно переключать пользователей с экрана блокировки XScreenSaver, — смотрите XScreenSaver#LightDM.
Сессия по умолчанию
Lightdm, как и другие Экранные менеджеры, хранит последнюю выбранную xsession в
Регулировка положения входа окна
Экран приветствия GTK+
Пользователям нужно отредактировать /etc/lightdm/lightdm-gtk-greeter.conf и ввести значение в переменную position . Оно принимает значения x и y , абсолютные (в пикселях) или относительные (в процентах). Каждое значение может иметь дополнительное местоположение для привязки окна, start , center и end . Значения отделяются запятой.
Решение проблем
Если вы столкнулись с миганием экрана, и в итоге LightDM не запускается, проверьте что вы определили Экран приветствия правильно, в файле настроек LightDM. И если вы правильно задали Экран приветствия GTK, убедитесь что xsessions-directory (по умолчанию: /usr/share/xsessions ) существует и содержит по меньшей мере один файл .desktop.
Та же ошибка может произойти при запуске Lightdm, когда последняя запускаемая сессия больше не доступна (например, когда вы последний раз использовали Gnome, а потом удалили пакет gnome-session): самый простой способ, — временно восстановить удалённый пакет. Другое решение:
В этом примере устанавливается сессия по умолчанию «xfce» для пользователя 1000.
Локаль неправильно отображается
Если ваша локаль не отображается правильно LightDM, добавьте свой языковой стандарт в /etc/environment
Ресурсы X не корректно распознаны
В LightDM есть ошибка при которой ваш файл Xresources не будет загружен на предварительную обработку. В практическом плане это означает, что набор переменных #define не определится при последующих вызовах. Вы можете увидеть как экран отображается розовым цветом, при использовании пользовательского набора цветов в urxvt. Чтобы исправить это, отредактируйте /etc/lightdm/Xsession и найдите эту строку:
Измените её для чтения:
Теперь ваш Xresources будет предварительно обработан таким образом, чтобы переменные правильно определялись.
Отсутствуют иконки в Экране приветствия GTK
Если вы используете lightdm-gtk-greeter как Экран приветствия и видите «заполнитель изображений» в виде иконок, убедитесь что действующая тема значков установлена и задействована. Проверьте следующий файл:
LightDM зависает при попытке входа в систему
После ввода правильного имени пользователя и пароля, при попытке войти в систему, вы обнаруживаете что LightDM завис и вы не можете продолжить загрузу до Рабочего стола. Чтобы устранить эту проблему, переустановите пакет gdk-pixbuf2 . Смотрите эту тему на форуме (Англ.).
LightDM отображается в неправильном мониторе
Если вы используете несколько мониторов, LightDM может отображаться в неправильном (например, если ваш основной монитор находится справа). Чтобы заставить экран LightDM отображаться на конкретном мониторе, отредактируйте /etc/lightdm/lightdm.conf и измените display-setup-script параметр, например:
Замените HDMI1 на ваш настоящий ID монитора, который можно найти с помощью результата вывода команды xrandr.
LightDM не отображается
Может случиться так, что ваша система загружается так быстро, что служба LightDM запускается перед загрузкой вашего графического драйвера. Если это ваш случай, добавьте следующие настройки в ваш файл lightdm.conf:
Этот параметр прикажет LightDM ждать, пока графический драйвер не будет готов перед запуском сессии Экранного приветствия/автозапуска.
Источник
LightDM
LightDM is a cross-desktop display manager. Its key features are:
- Cross-desktop — supports different desktop technologies.
- Supports different display technologies (X, Mir, Wayland . ).
- Lightweight — low memory usage and high performance.
- Supports guest sessions.
- Supports remote login (incoming — XDMCP, VNC, outgoing — XDMCP, pluggable).
- Comprehensive test suite.
- Low code complexity.
More details about LightDM’s design can be found here.
Contents
Installation
Greeter
You will probably want to install a greeter. A greeter is a GUI that prompts the user for credentials, lets the user select a session, and so on. It is possible to use LightDM without a greeter, but only if an automatic login is configured; otherwise you will need to install xorg-server and one of the greeter packages below.
The official repositories contain the following greeters:
- lightdm-gtk-greeter : This is the default greeter LightDM attempts to use, unless configured otherwise.
- lightdm-deepin-greeter ( deepin-session-shell ): A greeter from the Deepin project.
- lightdm-pantheon-greeter : A greeter from the elementary OS project.
- lightdm-slick-greeter : A GTK based greeter focused more on appearance than lightdm-gtk-greeter , forked from lightdm-unity-greeterAUR , and default in Linux Mint.
- lightdm-webkit2-greeter : A greeter that uses Webkit2 for theming. It supersedes lightdm-webkit-greeterAUR .
- lightdm-webkit-theme-litarvan : A modern and full-featured Webkit2 LightDM theme.
Other alternative greeters are available in the AUR:
- lightdm-unity-greeterAUR : The greeter used by Unity.
- lightdm-mini-greeterAUR : A minimal, configurable, single-user greeter.
- lightdm-webkit-theme-aetherAUR : A sleek, straightforward Archlinux themed login screen written on lightdm and the lightdm-webkit2-greeter.
- lightdm-elephant-greeter-gitAUR : A small and simple greeter that runs in the cage Wayland compositor per default.
You can set the default greeter by changing the [Seat:*] section of the LightDM configuration file, like so:
One way to check which greeters are available is to list the files in the /usr/share/xgreeters directory; each .desktop file represents an available greeter. In this example, the lightdm-gtk-greeter and lightdm-webkit2-greeter greeters are available:
Enabling LightDM
Make sure to enable lightdm.service so LightDM will be started at boot; see also Display manager#Loading the display manager.
Command line tool
LightDM offers a command line tool, dm-tool , which can be used to lock the current seat, switch sessions, etc, which is useful with ‘minimalist’ window managers and for testing. To see a list of available commands, execute:
User switching
The factual accuracy of this article or section is disputed.
LightDM’s dm-tool command can be used to allow multiple users to be logged in on separate ttys. The following will send a signal requesting that the current session be locked and then will initiate a switch to LightDM’s greeter, allowing a new user to log in to the system.
Testing
Then, run LightDM as an X application:
Optional configuration and tweaks
LightDM can be configured by modifying its config file, /etc/lightdm/lightdm.conf .
Some greeters have their own configuration files. For example:
X session wrapper
This article or section is a candidate for merging with Xprofile.
If you are migrating from xinit, you will notice that the display is not launched by your shell. This is because, as opposed to your shell starting the display (and the display inheriting the environment of your shell), LightDM starts your display and does not source your shell. LightDM launches the display by running a wrapper script and that finally exec’s your graphic environment. By default, /etc/lightdm/Xsession is run.
Environment variables
The script checks and sources /etc/profile ,
/.profile , /etc/xprofile and
/.xprofile , in that order. If you are using a shell that does not source any of these files, you can create an
/.xprofile to do so. (In this example, the login shell is zsh)
If you have shell variables that are important for your display (such as Gtk or QT themes, GNUPG location, config overrides, etc.) this will let your graphic environment have access to your environment without having to be launched by your login shell.
Keymap
The script runs Xkbmap with arguments provided in files /etc/X11/Xkbmap ,
/.Xkbmap . If those files are not found, it runs xmodmap with /etc/X11/Xmodmap ,
/.Xmodmap . If using xkbmap, the files are parsed using cat. The following example works
Otherwise, the session inherits the system default mapping of X11. This mapping can be defined in the xorg configuration files, either manually or with localectl set-x11-keymap . See Xorg/Keyboard configuration#Setting keyboard layout.
Multiple keyboard layouts in lightdm-gtk-greeter
To enable users switch between pre-defined keyboard layouts on the log-in screen enable the drop-down menu and configure the layouts. Either use the lightdm-gtk-greeter-settings gui or edit the configuration file directly:
Use localectl to set multiple layouts, e.g. de and its “variant” neo with the latter as primary:
Note the trailing comma which implies a blank variant for the second de.
Changing background images/colors
You can set the background to a hex color or an image. Some greeters offer more robust background options like background selection from the login screen, random backgrounds, etc.
GTK greeter
Users wishing to customize the wallpaper on the greeter screen need to edit /etc/lightdm/lightdm-gtk-greeter.conf and define the background variable under the [greeter] section. For example:
GTK3 Theme
GTK3 themes can be specified with the theme-name variable in the [greeter] section of /etc/lightdm/lightdm-gtk-greeter.conf For example, theme-name=Adwaita-dark .
Webkit2 greeter
The lightdm-webkit2-greeter allows you to choose a background image directly on the login screen. It also offers an option to display a random image each time it starts if you use the Material theme. By default, images are sourced from /usr/share/backgrounds . You can change the background images directory by editing lightdm-webkit2-greeter.conf . For example:
Unity greeter
Users using the lightdm-unity-greeter AUR must edit the /usr/share/glib-2.0/schemas/com.canonical.unity-greeter.gschema.xml file and then execute:
According to this page.
Slick Greeter
Changing your avatar
First, make sure the accountsservice package from the official repositories is installed, then set it up as follows, replacing username with the desired user’s login name.
- Create the file /var/lib/AccountsService/icons/username.png using a 96×96 PNG image file. Different image file formats are possible too, e.g., JPEG.
- Alternatively, create the image file as /home/username/.face and skip the next step if the defaults already point to the user home directory path
- Edit or create the account settings file /var/lib/AccountsService/users/username , and add the lines
The filename here should point to the icon created in the first step, so adjust the filename extension if necessary.
Sources of Arch-centric 64×64 icons
The archlinux-artwork AUR package contains some nice examples that install to /usr/share/archlinux/icons and that can be copied to /usr/share/icons/hicolor/64×64/devices as follows:
After copying, the archlinux-artwork AUR package can be removed.
Enabling autologin
Edit the LightDM configuration file and ensure these lines are uncommented and correctly configured:
You must be part of the autologin group to be able to login automatically without entering your password:
LightDM logs in using the session specified in the
/.dmrc of the user getting logged in automatically. To override this file, specify autologin-session in lightdm.conf :
The list of valid session names can be found by listing /usr/share/xsessions/*.desktop for X’s sessions and /usr/share/wayland-sessions/*.desktop for Wayland’s.
Enabling interactive passwordless login
LightDM goes through PAM so you must configure the lightdm configuration of PAM:
You must then also be part of the nopasswdlogin group to be able to login interactively without entering your password:
To create a new user account that logs in automatically and additionally able to login again without a password the user can be created with supplementary membership of both groups, e.g.:
Enabling guest sessions
To enable guest sessions in LightDM (without changing your system configuration) you need at least two things:
- a guest-account-script: defaults to guest-account and accepts two commands:
- add (to create a temporary guest system account and returns the user name of the created account)
- removeaccount name(to delete the corresponding account)
- an autologin group to which the created guest account must be added (cf. /etc/pam.d/lightdm-autologin )
There are two AUR packages that enable guest sessions in lightdm:
- lightdm-guestAUR which provides the (largely unmodified) upstream guest-session script as well as lightdm itself.
- lightdm-guest-accountAUR which provides only a minimal version of the script.
Hiding system and services users
To prevent system users from showing-up in the login, install the optional dependency accountsservice , or add the user names to /etc/lightdm/users.conf under hidden-users . The first option has the advantage of not needing to update the list when more users are added or removed.
Migrating from SLiM
This article or section is a candidate for merging with Display Manager.
Move the contents of xinitrc to xprofile, removing the call to start the window manager or desktop environment.
Login using
NumLock on by default
Install the numlockx package and then edit /etc/lightdm/lightdm.conf :
Default session
Lightdm, like other DMs, stores the last-selected xsession in
Adjusting the login window’s position
GTK greeter
Users need to edit /etc/lightdm/lightdm-gtk-greeter.conf and enter a value for the position variable. It accepts x and y values, either absolute (in pixels) or relative (in percent). Each value can also have an additional anchor location for the window, start , center and end separated from the value by a comma.
VNC Server
Lightdm can also be used to connect to via VNC. Make sure to install tigervnc on the server side and optionally as your VNC client on the client PC.
Setup an authentication password on the server as root:
Edit the LightDM configuration file as shown below. Note that listen-address configures the VNC to only listen to connections from localhost. This is used to only allow connections via SSH and port forwarding. On the SSH client, make sure that you use localhost:5900 for the tunnel destination; using 127.0.0.1:5900 or ::1:5900 is not reliable on dual stack network connections. If you want to allow insecure connections you can disable this setting.
Now open an SSH tunnel and connect to localhost as described in TigerVNC#On the client.
Lock the screen using light-locker
light-locker is a simple screen locker using LightDM to authenticate the user. Once installed and running, you can lock your session via:
This requires light-locker to be started at the beginning of your session. By default, this is enabled through XDG Autostart. See Autostarting for more options.
Multiple-monitor setup
Sometimes LightDM does not set the monitor resolution correctly on a multiple-monitor setup. The following Xorg configuration works with two monitors: a large primary screen on the left side, and a secondary smaller screen to its right. The order can be reversed and tweaked.
This makes the display-setup-script tweaks from /etc/lightdm/lightdm.conf redundant.
Troubleshooting
Autologin does not work
Ensure autologin-user= in /etc/lightdm/lightdm.conf contain the correct values. Trailing whitespace will cause errors.
If autologin fails with a blank screen or if the login screen immediately returns, you may need to set logind-check-graphical=true .
You can also install lightdm-autologin-greeter-git AUR for this special purpose.
Viewing current configuration
To view effective configuration, run:
This will show current settings, with the configuration files these settings were read from.
LightDM not starting and screen flashing
If you encounter consistent screen flashing and ultimately no LightDM on boot, ensure that you have defined the greeter correctly in LightDM’s config file. And if you have correctly defined the GTK greeter, make sure the xsessions-directory (default: /usr/share/xsessions ) exists and contains at least one .desktop file.
The same error can happen on lightdm startup if the last used session is not available anymore (eg. you last used gnome and then removed the gnome-session package): the easiest workaround is to temporarily restore the removed package. Another solution might be:
This example sets the session «xfce» as default for the user 1000.
Wrong locale displayed
In case of your locale not being displayed correctly in Lightdm add your locale to /etc/environment :
Alternatively if you want LightDM and its greeters to be in a language other than your set system locale, you can use the Environment= option in Systemd#Drop-in files.
Unresponsive for a few minutes after startup
You may have to download more entropy. Install and enable haveged, c.f. https://github.com/canonical/lightdm/issues/17
Missing icons with GTK greeter
If you are using lightdm-gtk-greeter as a greeter and it shows placeholder images as icons, make sure valid icon themes and themes are installed and configured. Check the following file:
LightDM freezes on login attempt
You may find that after entering the correct username and password and attempting to log in, LightDM freezes and you are unable to continue to the desktop. To fix the issue, reinstall the gdk-pixbuf2 package. See this forum thread.
LightDM displaying in wrong monitor
If you are using multiple monitors, LightDM may display in the wrong one (e.g. if your primary monitor is on the right). To force the LightDM login screen to display on a specific monitor, edit /etc/lightdm/lightdm.conf and change the display-setup-script parameter like this:
Replace HDMI1 with your real monitor ID, which you can find from xrandr command output.
Alternatively, if you are using the GTK greeter, you can edit /etc/lightdm/lightdm-gtk-greeter.conf and add the active-monitor parameter like this:
Replace 0 with the desired display number.
LightDM does not appear or monitor only displays TTY output
It may happen that your system boots so fast that LightDM service is started before your graphics drivers are properly loaded. If this is your case, you will want to add the following config to your lightdm.conf file:
This setting will tell LightDM to wait until graphics devices are ready before spawning greeters/autostarting sessions on them.
LightDM is running with low FPS on Intel Graphics
Pulseaudio not starting automatically
Long pause before LightDM shows up when home is encrypted
Some LightDM themes try to access the user avatar located in HOME. If your HOME is encrypted, LightDM cannot access it and hangs. To prevent this from happening, you can either:
- Set your avatar as explained in #Changing your avatar
- for lightdm-gtk-greeter only: hide-user-image = true in /etc/lightdm/lightdm-gtk-greeter.conf
Boot hangs on «[ OK ] Reached target Graphical Interface.»
There is a possibility that user and group lookups fail if you modified /etc/nsswitch.conf. That happens when:
- nsswitch.conf group: includes ldap without setting nss_initgroups_ignoreusers ALLLOCAL in /etc/nslcd.conf
Wayland session not working with duplicate GNOME entries in greeter
- Some greeters ( lightdm-webkit2-greeter for example) do not support two sessions with the same name [1]. To check for duplicate entries:
- Rename the duplicate entry in /usr/share/xsessions. For example:
Login always segfaults on first attempt
Set a hostname as described in Network Page. See also FS#47694.
Infinite login loop
If you get stuck in loop in which you type your correct user and password but the screen goes black and the you are back in the login after every attempt, running rm
/.Xauthority (or the stuck user’s problematic .Xauthority ) may fix the issue.
Another reason for this may be that you tried to recreate your «lightdm.conf» from scratch and your version is missing this line:
In that case, lightdm tries to use «lightdm-session» as the session-wrapper which does not exist on Arch Linux.
Источник