I have a Raspberry Pi running a Java application (with Swing/GUI) in a kiosk-like setup.
I want to terminate (or preferably prevent from starting) all unnecessary processes that are not essential for my application to run.
How can I identify the mandatory processes and prevent them from starting?
I attempted to search for this information on Google, but unfortunately, I haven't had any luck so far.
My application includes a GUI, utilizes a mouse and keyboard, doesn't require network access, and needs to interact with specific USB devices.
While I don't necessarily need Ubuntu, I do require a 64-bit OS for the Raspberry Pi.