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

68 lines
2.2 KiB
Markdown
Raw Normal View History

2022-07-08 14:54:55 +03:00
---
2022-11-19 03:36:06 +03:00
title: "💻 Porteus Autologin"
2022-07-08 14:54:55 +03:00
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'`.
Вот, что выводится в терминале:
2022-09-03 00:07:20 +03:00
```sh
2022-07-08 14:54:55 +03:00
$ 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`.
Например было так:
2022-09-03 00:07:20 +03:00
```text
2022-07-08 14:54:55 +03:00
LABEL GRAPHICAL
MENU LABEL Graphics mode
KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/initrd.xz
APPEND changes=/mnt/sda1/data.dat
TEXT HELP
...
ENDTEXT
```
А стало так:
2022-09-03 00:07:20 +03:00
```text
2022-07-08 14:54:55 +03:00
APPEND changes=/mnt/sda1/data.dat nologin
```
### Способ №2
Редактирование `/etc/sddm.conf.d/kde_settings.conf`.
Необходимо в фале строку `User=guest` поменять на `User=`.
Но у меня в Porteus 5.0 поле `User` уже было пустое.
2022-09-03 00:07:20 +03:00
```text
2022-07-08 14:54:55 +03:00
# cat /etc/sddm.conf.d/kde_settings.conf
[Autologin]
Relogin=false
Session=plasma
User=
...
```