Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I need to make the following line of code execute when my computer starts:
Code:
x11vnc -rfbauth /home/admin/vncpass -forever -bg
I've tried to use cron to do this (I read up on the tutorials on this site before posting), and I always get the following error in /var/log/syslog:
Quote:
Sep 26 17:00:19 backup-server cron[4664]: Error: bad minute; while reading /etc/cron.d/x11vnc
Sep 26 17:00:19 backup-server last message repeated 10 times
Does anyone know of what I might be doing wrong, or how I should go about getting x11vnc to start with the computer (before the gui login). Thanks for your help.
Ok, so I put the this line of code in /etc/rc.local...
Code:
x11vnc -rfbauth /home/admin/vncpass -forever -bg
but the program is still not starting up when I hit runlevel 5. I copied and pasted the exact same line in bash to see if the command simply had some syntax error I wasn't seeing, but the command worked fine. Last but not least, I looked through all my system logs, but none of them are reporting any errors. Does anyone have any idea what this could be?
I used ps aux | grep x11vnc to check if it was running, and it is not. Also, I followed ygloo's sugjestion and put the full path in rc.local, rebooted, and did ps again, and its still not running. I can start it manually, but I want to set it up as a headless server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.