Blog/content/posts/porteus/porteus-autologin.md

68 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "💻 Porteus Autologin"
date: 2022-07-08T14:25:06+03:00
draft: false
tags: [linux, tips, porteus]
---
В [Porteus](http://porteus.org/) настройка пользователей в KDE не работает.
Если открыть Users в System Settings получаем ошибку `Invalid KPackage: 'kcm_users'`.
Вот, что выводится в терминале:
```sh
$ systemsettings5
QQmlEngine::setContextForObject(): Object already has a QQmlContext
file:///usr/share/kpackage/kcms/kcm_landingpage/contents/ui/main.qml:127:9: QML FormLayout (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "preferredHeight"
file:///usr/share/kpackage/kcms/kcm_landingpage/contents/ui/main.qml:57:9: QML FormLayout (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "preferredHeight"
org.kde.kcm_users: "The name org.freedesktop.Accounts was not provided by any .service files"
Error loading the module "kcm_users" : invalid KPackage
```
Я [написал](https://forum.porteus.org/viewtopic.php?p=88518#p88518) багрепорт на форум
дистрибутива, где мне [ответили](https://forum.porteus.org/viewtopic.php?p=88521#p88521),
что про эта настройка не работает в Porteus.
Тем не менее есть два пути настройки автологина.
### Способ №1
В файле `/boot/syslinux/porteus.cfg` в параметры запуска ядра в строку `APPEND` добавить `nologin`.
Например было так:
```text
LABEL GRAPHICAL
MENU LABEL Graphics mode
KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/initrd.xz
APPEND changes=/mnt/sda1/data.dat
TEXT HELP
...
ENDTEXT
```
А стало так:
```text
APPEND changes=/mnt/sda1/data.dat nologin
```
### Способ №2
Редактирование `/etc/sddm.conf.d/kde_settings.conf`.
Необходимо в фале строку `User=guest` поменять на `User=`.
Но у меня в Porteus 5.0 поле `User` уже было пустое.
```text
# cat /etc/sddm.conf.d/kde_settings.conf
[Autologin]
Relogin=false
Session=plasma
User=
...
```