I am running a Python application in kiosk mode on ubuntu 18.04. I want to take it on remote which is outside of local environment. I tried the port forwarding which is unsuccessful due to router.
I used teleconsole to take on remote it is successful but when i run in kiosk mode it failed because session got closed. Seems Linux is killing processes automatically in kiosk mode. I need Teleconsole process to be alive to get the remote access of the desktop.
Any help about how to keep this session alive till the machine is running? Or About how to prevent ubuntu from killing the process automatically?
To run the ubuntu in kiosk mode i used two scripts placed at /usr/share/xsession/ location
kiosk.desktop
[Desktop Entry]
Encoding=UTF-8
Name= Kiosk Mode
Comment=Starting Kiosk Mode
Exec=/usr/share/xsessions/pulsekiosk.sh
Type=Application
switchtokiosk.sh
#!/bin/bash
xset s off
xset s noblank
nm-applet &
sleep 5s
while true; do
sh /booth/run.sh;
sleep 5s;
done