Hi, I've written a photo booth application in python to run on a raspberry pi. I have a minimal debian jessie running and the following script: Code: #! /bin/bash date -s "01 JAN 1999 00:00:00" service ntp stop timeout 10s ntpd -gq service ntp start xinit /usr/bin/python3.4 /root/Main.py $* -- :1 This script does some time stuff + it starts X and the python program Now when the pi has booted, I log in as root and run the script, this works like a charm. However when I add Code: @reboot /root/startPhotoBooth.sh to /var/spool/cron/crontabs/root it doesn't work, whereas other things in the cron file like creating a testfile do work. Apparently it is quiet normal for xinit not to work in this way, but I'm not exactly sure how to fix it. Can anyone help me with this? Thanks! EDIT: I also added DESKTOP:=0 to the top of the cronfile but that doesn't work either.