2

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

ømen
  • 21

1 Answers1

0

This was solved using StartUp apps preferences from ubuntu 20.04. You just add the command: sh -c 'path/to/script' and in the bash script i added sudo at the start.

Also this post provided by @Raffa was super usefull How to set a timer that starts when I login and then alerts after a set time

ømen
  • 21