I am using RPi4 for clients and would like to have them automatically load the client software on boot.
I can currently boot the Pi to the desktop and run the script from there, but have not been successful in doing it automatically.
legacyclient.sh is located in a folder /home/pi/Ignition/
I have edited the following:
/etc/xdg/lxsession/LXDE-pi/autostart
Added
@xset s off @xset -dpms @xset s noblank
/home/pi/Ignition/legacyclient.sh http://192.168.12.200:8088 C MIS F
have also tried with no success @sh /home/pi/Ignition/legacyclient.sh http://192.168.12.200:8088 C MIS F
When I reboot, I come back to the desktop and no client load.
Any help please as I am fairly new to linux. My windows machine work flawlessly
For my Pi3s and later, I ended up adding another script to act as a delay before running the legacyclient script. Big enough to ensure the desktop is loaded, small enough to keep my impatience at bay.
Not sure if you did this yet but permissions are are a common issue with crontab if its not working. You should do a chmod +x /home/pi/Ignition/legacyclient.sh if you haven’t already. Also, which crontab are you doing it in? There’s a crontab for root and a crontab for your user. Make sure you’re using the right one. sudo crontab -e gives you the roots ccrontab and crontab -e will give you your user pi's crontab.