real vnc server won't start as cron job

Got any great tips or tricks you're dying to share with the rest of the world? Then please post them here.
They don't have to be specifically related to building a media server but please do try to keep them suitably "geeky".
Post Reply
david
Member
Member
Posts: 1
Joined: January 5th, 2015, 11:49 pm

real vnc server won't start as cron job

Post 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.
Post Reply