I am trying to create a User on Parrot OS 6.0, installed on my Raspberry PI 4, which logs in automatically after 10 seconds, when the device is booted, doesn‘t start the GUI, but only starts a shell, running a script and logging out immediately after finishing the script or when interrupting the script.
I want the other users on the machine to be able to be used normally, with GUI.
I managed to get the user to log in automatically after boot. I tried adding the script to the .bashrc file on my user and to the .profile file, but the issue is, that the GUI will still start up and the script won‘t execute until I manually open a Terminal. I have also tried adding the script to a crontab with the @reboot option, which doesn‘t seem to work at all for some reason.
Another important thing to not is, that i want the output of the script to be printed, since there will be a counter in the script, counting down before executing the rest of the script, giving the user the option to cancel the script and log into a different user with GUI.