Everything for the ultix-streaming (VM 5111, pfv-tsys5) performance pass: full report + host audit results, staged/gated configs, guest prep + host one-shot + post-reboot-fix + netcheck lifecycle scripts, grow-root manual runbook, rolling tracking HUD, questions v1, and the gateway boot-race hardening units. Applied and verified live 2026-08-31; open work is tracked in Redmine project 55 as #601-#607. [#602] 💘 Generated with Crush Assisted-by: Crush:glm-5.2
37 lines
1.4 KiB
Bash
Executable File
37 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# UKRRS KDE fix: sddm autologin into an UNLOCKED, always-alive session.
|
|
# Deliberately NO autolock (instant Jump/iPad re-attach requirement).
|
|
# Relogin=true: if the session ever exits/crashes, sddm logs straight back in,
|
|
# so there is always a session to attach to.
|
|
#
|
|
# Usage:
|
|
# sudo ./fix-kde.sh config only; takes effect next boot/restart
|
|
# sudo ./fix-kde.sh --restart also restart sddm NOW. WARNING: restart kills
|
|
# any ACTIVE local GUI session. Right now only
|
|
# the greeter runs, so it is safe; verify with
|
|
# `loginctl list-sessions` if unsure.
|
|
# Override user with: sudo DESKTOP_USER=someone ./fix-kde.sh
|
|
set -euo pipefail
|
|
[ "$(id -u)" = 0 ] || { echo "run with sudo" >&2; exit 1; }
|
|
USER_NAME=${DESKTOP_USER:-reachableceo}
|
|
CONF_DIR=/etc/sddm.conf.d
|
|
CONF=$CONF_DIR/50-ukrrs-autologin.conf
|
|
|
|
mkdir -p "$CONF_DIR"
|
|
[ -f "$CONF" ] && cp "$CONF" "$CONF.bak.$(date +%s)"
|
|
|
|
cat > "$CONF" <<EOF
|
|
[Autologin]
|
|
User=$USER_NAME
|
|
Session=plasma.desktop
|
|
Relogin=true
|
|
EOF
|
|
echo "wrote $CONF (user=$USER_NAME, session=plasma.desktop, unlocked, always-alive)"
|
|
|
|
if [ "${1:-}" = "--restart" ]; then
|
|
systemctl restart sddm
|
|
echo "sddm restarted: autologin session should be up now (check: loginctl)"
|
|
else
|
|
echo "takes effect at next sddm start/reboot; or rerun with --restart"
|
|
fi
|