add autologin porteus tip

This commit is contained in:
Alexander Popov 2022-07-08 14:54:55 +03:00
parent c7851ee2a0
commit 33ae9b06da
1 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,67 @@
---
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'`.
Вот, что выводится в терминале:
```
$ 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`.
Например было так:
```
LABEL GRAPHICAL
MENU LABEL Graphics mode
KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/initrd.xz
APPEND changes=/mnt/sda1/data.dat
TEXT HELP
...
ENDTEXT
```
А стало так:
```
APPEND changes=/mnt/sda1/data.dat nologin
```
### Способ №2
Редактирование `/etc/sddm.conf.d/kde_settings.conf`.
Необходимо в фале строку `User=guest` поменять на `User=`.
Но у меня в Porteus 5.0 поле `User` уже было пустое.
```
# cat /etc/sddm.conf.d/kde_settings.conf
[Autologin]
Relogin=false
Session=plasma
User=
...
```