Page 1 of 1

real vnc server won't start as cron job

Posted: January 6th, 2015, 12:04 am
by david
I am relatively new to Linux. I would like my RealVNC server to start when my machine boots (Ubuntu 14.04). The shell script works when I run it from a terminal. I followed the instructions on this website

http://www.havetheknowhow.com/Configure ... -boot.html

and I chose to use a cron job. I installed the Webmin successfully. Although the shell script runs from a terminal, the cron job does not. I receive the following message when I test the cron job:

Module Index
Execute Cron Job

Output from command /home/david/myscripts/startvnc.sh > /dev/null ..

unable to open display ""

<- Return to cron job | Return to cron list

I am stymied by the message

unable to open display ""

It's probably something simple, yet I can't figure it out.

Thank you in advance for your help.