Sddm linux ��� ���

Display manager (Русский)

Экранный менеджер или менеджер входа — графический экран, который отображается в конце процесса загрузки вместо стандартного приглашения командной строки. Экранный менеджер представляет собой экран ввода имени пользователя и пароля для входа в систему. Существует множество экранных менеджеров, как и окружений рабочего стола. Практически все экранные менеджеры можно настраивать, изменяя их стиль и поведение.

Contents

Список экранных менеджеров

Консольные

  • CDM — ультра-минималистичный, но полнофункциональный менеджер входа, написанный на Bash.

https://github.com/evertiro/cdm || cdmAUR

  • Console TDM — расширение для xinit, также написанное на Bash.

https://github.com/dopsi/console-tdm || console-tdmAUR

  • nodm — минималистичный экранный менеджер для автоматического входа.

https://github.com/spanezz/nodm || nodm

  • Ly — легковесный TUI (ncurses-like) экспериментальный менеджер входа.

https://github.com/nullgemm/ly || lyAUR

  • tbsm — лаунчер сессий или приложений, написанный на чистом bash. Поддерживает сеансы X и Wayland.

https://loh-tar.github.io/tbsm/ || tbsmAUR

  • emptty — совершенно простой менеджер CLI на TTY с поддержкой X и Wayland.

https://github.com/tvrzna/emptty/ || emptty-gitAUR

  • udm — микроскопический менеджер (как cdm, tdm и т.д.) с поддержкой Wayland и нескольких дисплеев/сеансов. Написан на POSIX shell без зависимостей и имеет всего

    Графические

    • Entrance — экранный менеджер Enlightenment.

    https://github.com/Obsidian-StudiosInc/entrance || entrance-gitAUR

    • GDM — экранный менеджер GNOME.

    https://wiki.gnome.org/Projects/GDM || gdm

    • LightDM — независимый от среды рабочего стола экранный менеджер, можно подключать различные фронтенды с любыми тулкитами.

    https://github.com/canonical/lightdm || lightdm

    • LXDM — экранный менеджер LXDE. Может быть использован отдельно от среды рабочего стола LXDE.

    https://sourceforge.net/projects/lxdm/ || lxdm

    • SDDM — экранный менеджер, основанный на QML. Продолжение KDE4 kdm, рекомендуется для Plasma 5 и LXQt.

    https://github.com/sddm/sddm || sddm

    • XDM — экранный менеджер с поддержкой XDMCP.

    xdm(8) || xorg-xdm

    Демоны входа

    • greetd — Минимальный, гибкий и независимый демон входа в систему, который поддерживает как консольные, так и графические интерфейсы.

    https://git.sr.ht/

    Запуск экранного менеджера

    Чтобы включить экран входа, запустите соответствующую службу. Например для SDDM включите sddm.service .

    Это должно работать без дополнительных настроек. Если нет, возможно, вам придется удалить символическую ссылку default.target , чтобы указать на graphical.target файл по умолчанию. Смотрите Изменение цели загрузки по умолчанию.

    После включения SDDM в /etc/systemd/system/ должен быть установлен symlink display-manager.service . Возможно, вам придется использовать —force для переопределения старых символических ссылок.

    Использование systemd-logind

    Чтобы иметь возможность проверить статус вашей сессии, вы можете использовать loginctl. Все действия polkit, такие, как перевод системы в ждущий режим или монтирование внешних устройств будут работать «из коробки».

    Настройка сеанса

    Большинство экранных менеджеров получают список доступных сеансов из каталога /usr/share/xsessions/ . Он содержит стандартные файлы .desktop для каждого экранного/оконного менеджера.

    Чтобы добавить/удалить записи в список сеансов вашего экранного менеджера, создайте/удалите соответствующий файл .desktop в /usr/share/xsessions/ . Типичный файл .desktop выглядит примерно так:

    Использование

    /.xinitrc как сеанс

    Установите xinit-xsession AUR для запуска xinitrc в качестве сеанса. Просто установите xinitrc в качестве сеанса в настройках вашего экранного менеджера и убедитесь, что файл

    /.xinitrc является исполняемым.

    Запуск приложений без оконного менеджера

    Вы также можете запускать приложения без какого-либо оформления. Например, для запуска google-chrome AUR создайте файл web-browser.desktop в /usr/share/xsessions/ :

    При этом, сразу после входа будет запущено приложение, указанное в опции Exec . Когда вы закроете приложение, вы будете возвращены к экранному менеджеру (точно так же, как если бы вы вышли из среды рабочего стола/оконного менеджера).

    Важно помнить, что большинство графических приложений не рассчитаны на запуск в таком режиме и вы можете столкнуться с определенными ограничениями в их работе (например, диалоговые окна будут отображены без рамки и вы не сможете их перемещать по экрану; вы не сможете управлять никаким окном обычным способом — для установки размеров и положения вам, вероятно, придется вносить изменения в файлы настроек приложения).

    Советы и рекомендации

    Автозапуск

    Большинство экранных менеджеров используют /etc/xprofile ,

    /.xprofile и /etc/X11/xinit/xinitrc.d/ при входе. Для получения подробной информации, см. xprofile.

    Установка языка

    Для экранных менеджеров, которые используют AccountsService, язык для пользовательского сеанса может быть установлен путем редактирования:

    где your_locale — значение вида ru_RU.UTF-8 .

    В качестве альтернативы можно использовать D-Bus: busctl call org.freedesktop.Accounts /org/freedesktop/Accounts/User$UID org.freedesktop.Accounts.User SetLanguage s your_locale

    Выйдите из системы, а затем снова войдите, чтобы изменения вступили в силу.

    Источник

    Sddm linux ��� ���

    Simple Desktop Display Manager (SDDM) is a cross-desktop X11 and Wayland display manager. It was built to be modern, fast, simple, beautiful, and highly customizable. It is based on Qt and its markup language QML and has customizable looks using themes. It is the standard display manager of the Qt-based desktop environments KDE and LXQt. It is present in Debian stable since stretch (Debian 9).

    To install SDDM, run as root or prepended by sudo:

    or search SDDM in your favorite graphical APT frontend like e.g. Synaptic and install it from there.

    System-wide configuration

    SDDM configuration files can be placed at /usr/lib/sddm/sddm.conf.d or /etc/sddm.conf.d

    Alternatively, a file named sddm.conf in /etc/ can be used.

    The man page for sddm.conf contains a comprehensive list of options.

    To change the current default Display Manager, run

    Enable autologin

    Create some text file in one of the above folders, e.g. /usr/lib/sddm/sddm.conf.d/autologin with the following content, customizing the ALL-UPPERCASE parts:

    Put the user name of the user to be logged in automatically after User=.

    As Session= name use the name of one of the files found under /usr/share/xsessions/, e.g. plasma.desktop for KDE or lxqt.desktop for LXQt.

    Relogin= may be set to true in order to immediately again autologin after logoff, if false or omitted/left blank, SDDM will autologin only for first login after boot.

    Источник

    Sddm linux ��� ���

    The Simple Desktop Display Manager (SDDM) a display manager. It is the recommended display manager for the KDE Plasma and LXQt desktop environments.

    Simple Desktop Display Manager (SDDM) is a display manager (a graphical login program and session manager) for the X11 and Wayland windowing systems. SDDM was written from scratch in C++11 and supports theming via QML.

    Contents

    Installation

    Install the sddm package. Optionally install sddm-kcm for the KDE Config Module.

    Configuration

    The default configuration file for SDDM can be found at /usr/lib/sddm/sddm.conf.d/default.conf . For any changes, create configuration file(s) in /etc/sddm.conf.d/ . See sddm.conf(5) for all options.

    The sddm-kcm package (included in the plasma group) provides a GUI to configure SDDM in Plasma’s system settings. There is also a Qt-based sddm-config-editor-git AUR available in the AUR.

    Everything should work out of the box, since Arch Linux uses systemd and SDDM defaults to using systemd-logind for session management.

    Autologin

    SDDM supports automatic login through its configuration file, for example:

    This configuration causes a KDE Plasma session to be started for user john when the system is booted. Available session types can be found in /usr/share/xsessions/ for X and in /usr/share/wayland-sessions/ for Wayland.

    An option to autologin into KDE Plasma while simultaneously locking the session is not available [2]

    You can add a script that activates the screensaver of KDE to the autostart as a workaround:

    Unlock KDE Wallet automatically on login

    Theme settings

    Theme settings can be changed in the [Theme] section. If you use Plasma’s system settings, themes may show previews.

    Set to breeze for the default Plasma theme.

    Some themes are available in the AUR, for example archlinux-themes-sddm AUR .

    Current theme

    Set the current theme through the Current value, e.g. Current=archlinux-simplyblack .

    Editing themes

    The default SDDM theme directory is /usr/share/sddm/themes/ . You can add your custom made themes to that directory under a separate subdirectory. Note that SDDM requires these subdirectory names to be the same as the theme names. Study the files installed to modify or create your own theme.

    Customizing a theme

    To override settings in the theme.conf configuration file, create a custom theme.conf.user file in the same directory. For example, to change the theme’s background:

    Testing (previewing) a theme

    You can preview an SDDM theme if needed. This is especially helpful if you are not sure how the theme would look if selected or just edited a theme and want to see how it would look without logging out. You can run something like this:

    This should open a new window for every monitor you have connected and show a preview of the theme.

    Mouse cursor

    To set the mouse cursor theme, set CursorTheme to your preferred cursor theme.

    Valid Plasma mouse cursor theme names are breeze_cursors , Breeze_Snow and breeze-dark .

    User icon (avatar)

    This article or section is out of date.

    SDDM reads the user icon (a.k.a. «avatar») as a PNG image from either

    /.face.icon for each user, or the common location for all users specified by FacesDir in an SDDM configuration file. The configuration setting can be placed in either /etc/sddm.conf directly, or, better, a file under /etc/sddm.conf.d/ such as /etc/sddm.conf.d/avatar.conf .

    To use the FacesDir location option, place a PNG image for each user named username.face.icon at the location specified by the FacesDir key in the configuration file. The default location for FacesDir is /usr/share/sddm/faces/ . You can change the default FacesDir location to suit your needs. Here is an example:

    The other option is to put a PNG image named .face.icon at the root of your home directory. In this case, no changes to any SDDM configuration file is required. However, you need to make sure that sddm user can read the PNG image file(s) for the user icon(s).

    /.face.icon is a symlink to that file. If the user icon images are symlinks, you need to set proper file permissions to the target files.

    Numlock

    If you want to enforce Numlock to be enabled, set Numlock=on in the [General] section.

    Rotate display

    DPI settings

    Sometimes it is useful to set up the correct monitor’s PPI settings on a «Display Manager» level.[3] To do so you need to add to ServerArguments the parameter -dpi your_dpi at the end of the string. For example:

    Enable HiDPI

    Create the following file:

    Enable virtual keyboard

    Create the following file:

    SDDM now displays a button in lower-left corner of login screen to open the virtual keyboard.

    Using a fingerprint reader

    SDDM works with a fingerprint reader when using fprint. After installing fprint and adding fingerprint signatures, add the line auth sufficient pam_fprintd.so at the beginning of /etc/pam.d/sddm .

    In KDE’s lock screen it is also possible to use either password or fingerprint, this can be done by adding the following to the top of the auth section:

    The above also works with SDDM ( /etc/pam.d/sddm ) but seems to require KWallet to be unlocked separately.

    If you now press enter in the empty password field, the fingerprint reader should start working.

    Troubleshooting

    Blank screen with cursor, but no greeter shows

    Greeter crashes if there is no available disk space. Check your disk space with df -h .

    If disk space is not the issue, it may be due to a bug. Switch to another TTY, and then try loginctl unlock-session session_id or to restart SDDM.

    Long load time before SDDM shows the greeter

    A low entropy pool can cause long SDDM load time (Bug report). See Random number generation for suggestions to increase the entropy pool.

    Hangs after login

    /.Xauthority and logging in again without rebooting. Rebooting without logging in creates the file again and the problem will persist.

    SDDM starts on tty1 instead of tty7

    SDDM follows the systemd convention of starting the first graphical session on tty1. If you prefer the old convention where tty1 through tty6 are reserved for text consoles, change the default value of MinimumVT variable, which comes under the [X11] section:

    One or more users do not show up on the greeter

    By default, SDDM is configured to displays only users with a UID in the range of 1000 to 60513. If the UIDs of the desired users are outside this range then you will have to modify the range.

    For example, for a UID of 501, set MinimumUid and hide those with shells used by system users:

    For users with a higher UIDs, set MaximumUid to the appropriate value.

    User avatars do not show up on the greeter

    User avatars are not shown on the greeter if the number of users exceeds DisableAvatarsThreshold parameter or if avatars are not enabled at all as controlled by EnableAvatars parameter. To circumvent this add the following lines to your sddm configuration:

    SDDM loads only US keyboard layout

    SDDM loads the keyboard layout specified in /etc/X11/xorg.conf.d/00-keyboard.conf . You can generate this configuration file by localectl set-x11-keymap command. See Keyboard configuration in Xorg for more information.

    An alternative way of setting the keyboard layout that will only set it in SDDM and not subsequent sessions is to invoke a setxkbmap command in the startup script of SDDM, located at /usr/share/sddm/scripts/Xsetup . See Xorg/Keyboard configuration#Using setxkbmap for examples.

    SDDM may also incorrectly display the layout as US but will immediately change to the correct layout after you start typing your password [4]. This seems to not be a bug in SDDM but in X server.[5]

    Screen resolution is too low

    Issue may be caused by HiDPI usage for monitors with corrupted EDID [6]. If you have enabled HiDPI, try to disable it.

    If even the above fails, you can try setting your screen size in a Xorg configuration file:

    Long load time on autofs home directory

    SDDM by default tries to display avatars of users by accessing

    /.face.icon file. If your home directory is an autofs, for example if you use dm-crypt, this will make it wait for 60 seconds, until autofs reports that the directory cannot be mounted.

    You can disable avatars by creating the following configuration file:

    SDDM uses a random fresh UUID for the auth file as described in details at [7]. So in order to find that file one may use a script:

    This may be needed if one needs to start x11vnc when there is no user logged in. For example:

    Overlapping greeters on multiscreen setup

    It happens that the X monitor layout is not setup correctly on multiscreen setup leading to overlapping greeters. To solve this add the following lines to order your sddm greeter layout from left to right:

    Источник

    Читайте также:  Как переустановить windows автоматически
Оцените статью