RemoteDroid is an app that can act as a keyboard and mouse. A server needs to be run on the Linux PC and is available via http://www.remotedroid.net. This is a java archive that can be run directly and needs just a java setup and can be run directly as java -jar ./RemoteDroidServer.jar
Most desktop system as gnome have a Startup application setting where the command can be added so it starts automatically. Unfortunately on the desktops the RemoteDroid window pops up. To avoid this a script can be started that calls first RemoteDroidServer and than the application:
#!/usr/bin/python3 import subprocess import time subprocess.Popen(["java","-jar","~/RemoteDroidServer.jar"]) time.sleep(5) subprocess.Popen(["<add here the application>"])