I have been following the excellent advice given by @mdegans in this post on how-to-run-a-script-on-boot and have almost got it working. Once I have it working I want to enable the service so the user no longer has to log in or even connect a mouse + keyboard, which I know I can do via
sudo systemctl enable detection_app
However, if something were to go wrong or I needed to return back to the normal GUI with terminal access, how would I do it? I assume I would need to call
sudo systemctl disable detection_app but will that just return it to standard? And will that be possible by just plugging in a PC and clicking CTRL-C or do I need to do something via the MicroUSB terminal port?
I’m a bit nervous because last time I played around with this I ended up somehow removing the GUI and disabling access to the kernal so I had to start from scratch, couldn’t find a way to back up the system as an easy install image and it took days to get back to the same point…
Any advice would be much appreciated!
EDIT: Corrected 'systemctr’l to ‘systemctl’