At the end of the setup you will have your application running on ubuntu desktop in kiosk mode. Starts up on boot, without desktop environment on the background. Disabled all shell access. Disabled 3rd party hardware.
sudo apt update
sudo apt upgrade
sudo apt install -y openssh-server
sudo apt-get remove notification-daemon
rm -rf /home/$USER/.config/autostart/*