What is Agama's SSH Injection Advantage: By injecting public key into Agama during the network deployment phase, the very first boot of the newly installed operating system will have the OpenSSH daemon (sshd) active and your authorized keys populated.This gives you a guaranteed SSH hook into the target host. You don't have to look at the unreadable HDMI screen to execute the configuration script below you can run it smoothly from a remote machine, cleanly stripping away the problematic
SDDM prompt and tailoring the Wayland desktop profile securely.
Online setup openSUSE Leap 16.1 on bare metal may be performed via Leap-16.1-online-installer-x86_64.install.iso with same Web UI as Agama installer. Installation phase is almost the same as described in Install Tumbleweed via Agama Installer and automated detection of HDMI ports However , on Leap 16.1 the block marked in blue is critical on Leap 16.1
"You should have SSH trusted pair already generated prior to configuring root's credentials on target box. I've selected password and SSH public key. Cut and paste SSH Public key into corresponding field on Agama Web UI. Save and start installation" which would be initiated remotely from your workstation.
Agama follows standard transactional schema when preparing desired disk layout, selection of DE, user's and root's credentials until you press "Install". In particular user1 credentials were also injected into Agama Web UI before installation started.
Upon system reboot instead of struggling with poor quality SDDM login you better issue from host initiated Agama Web UI and having ssh trusted connection to target box (*) :
# systemctl disable sddm.service --force
# systemctl set-default multi-user.target
# mkdir -p /etc/systemd/system/getty@tty1.service.d
# nano /etc/systemd/system/getty@tty1.service.d/override.conf
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin user1 --noclear %I $TERM
CTRL+O; CTRL+X
# su - user1
======================
$ nano ~/.bash_profile
======================
# Source the user1's primary bash configuration if it exists
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# Automatically launch KDE Plasma Wayland if logging in on TTY1
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
exec /usr/bin/startplasma-wayland
fi
Verification step
user1@localhost:~> systemctl cat getty@tty1.service | grep "autologin"
ExecStart=-/sbin/agetty --autologin user1 --noclear %I $TERM
Upon next reboot of target box you would avoid SDDM login prompt and automatically start KDE Plasma 6.6.4 session.
I also have to notice that dracut hook like this
$ echo 'hostonly="no"' | sudo tee /etc/dracut.conf.d/00-generic.conf$ sudo dracut -f --regenerate-all won't help you under kernel 6.12 ( vs 7.2-7.3 kernels on Tumbleweed)
References
(*) Assisted by Google AI

No comments:
Post a Comment