The main idea is to make my pc run a script on boot in wich x11docker takes care of lifting a container with a youtube video.
this is mi crontab -e:
@reboot /usr/local/sbin/script-exo.sh
script im trying to run:
#!/bin/bash
x11docker --xephyr -I exo-test
script is located in /usr/local/sbin
the status of cron.service is active (running), logs doesn't have any issue or warning.
Also, the script by itself it's fine, if i run bash script-exo.sh it works. I've also tried to run the script with SystemD and Init.d but nothing makes it start on boot. Any suggestion?
x11docker repo https://github.com/mviereck/x11docker
@reboot /usr/local/sbin/script-exo.sh 2>/tmp/cron.xd.logand then reboot and show us the contents of/tmp/cron.xd.log. Finally, try changingx11dockerin the script to instead be the full path to thex11dockerexecutable. – terdon Feb 09 '24 at 12:37shi.e.sh -c 'x11docker --xephyr -I exo-test'... Ifsudois a must, then probably see https://askubuntu.com/a/425762 and change it to something likesh -c 'sudo x11docker --xephyr -I exo-test'– Raffa Feb 09 '24 at 13:53