It occurred to me that it would be very handy to automate this, so they start aromatically at system boots using a service unit.
But, i never tried starting stuff on specific consoles using systemd and neither know how to select the console it will be run on.
I remember vaguely in past where we used init.rd configs or something to pull that off, but my memories have faded on that far past.
Anyone any ideas?
Should i be using getty@.service instance overrides maybe?
Can you clearly explain what you want to autostart?
You might not need systemd unit files if you just want to run the script as user. You can create a script and then add it to autostart in system settings as you are in KDE
You will need systemd unit file if you want to run something as root user. In order to do that look into https://askubuntu.com/a/960333
I’ve had this unit for years, don’t remember the source (not me), seems like it came from a blog.
journalctl enable to activate and will create a link in /etc/systemd/system/getty.target.wants/
Yes, it’s very similar to getty@.service
The tty is read-only