2026-01-09 10:37 PM
Hi Team,
I am using the following method to enable password protection for both SSH and serial login.
I added the below configuration in local.conf:
INHERIT += "extrausers"
EXTRA_USERS_PARAMS += "\
usermod -U root; \
usermod -p '\$6\$ao/KaHyZbsgvo2RD\$QUzqRGclDHxnOv8BiGImYO10QX0YwmLh6XVjvqcEVg6976kyhNarzpX4rjCimbGSuM2d.2GOehoCFzHCx6jcd0' root; \
"I also made the following changes:
Serial login (serial-getty@.service):
ExecStart=-/sbin/agetty -8 -L --keep-baud %I @BAUDRATE@ $TERMSSH configuration (sshd_config):
PermitRootLogin yesAfter enabling password protection, scripts placed under /etc/profile.d no longer run automatically. These scripts only execute after I manually log in to the shell. Previously, they were used to start some required functionality automatically.
Those scripts launch Python code using Qt (PySide6) and play video using Qt Multimedia. I attempted to move this logic into a systemd service, but when running from a service, I encounter hardware decoder issues while playing video.
My questions are:
Is it possible to keep password-protected SSH and serial login enabled while still ensuring that /etc/profile.d scripts run automatically at boot?
Is there a recommended way to run Qt / PySide6 applications with Qt Multimedia and hardware acceleration without requiring an interactive login?
Has anyone faced similar issues with hardware video decoding when launching Qt applications from a systemd service, and how was it resolved?
Any guidance or best practices to resolve this would be greatly appreciated. I shared Screenshot of Error i got while i try to run my scripts via systemd service.