Linux - General This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-26-2006, 05:52 PM
|
#1
|
|
Member
Registered: May 2006
Location: Tennessee et. al
Distribution: Debian Sid, Etch
Posts: 138
Rep:
|
Simple cron problem
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.
crashsystems
|
|
|
|
09-26-2006, 06:07 PM
|
#2
|
|
Member
Registered: Aug 2006
Distribution: slack
Posts: 323
Rep:
|
cron is used to run tasks every hour,day,week...
put what you want to run at the end of "rc.local" file
Last edited by ygloo; 09-26-2006 at 06:19 PM.
|
|
|
|
09-27-2006, 10:24 AM
|
#3
|
|
Member
Registered: May 2006
Location: Tennessee et. al
Distribution: Debian Sid, Etch
Posts: 138
Original Poster
Rep:
|
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?
crashsystems
|
|
|
|
09-27-2006, 11:21 AM
|
#4
|
|
Member
Registered: Aug 2006
Distribution: slack
Posts: 323
Rep:
|
try
"ps aux |grep x11vnc"
to see if program is running
|
|
|
|
09-27-2006, 11:36 AM
|
#5
|
|
Moderator
Registered: Aug 2002
Posts: 10,695
|
Use the full path to x11vnc.
|
|
|
|
09-27-2006, 12:06 PM
|
#6
|
|
Member
Registered: May 2006
Location: Tennessee et. al
Distribution: Debian Sid, Etch
Posts: 138
Original Poster
Rep:
|
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.
crashsystems
|
|
|
|
09-27-2006, 12:28 PM
|
#7
|
|
Member
Registered: Aug 2006
Distribution: slack
Posts: 323
Rep:
|
see file permissions of rc.local
in order to start at boot it should look like this:
-rwxr-xr-x 1 root root 1877 2006-08-19 15:21 rc.local
Last edited by ygloo; 09-27-2006 at 01:13 PM.
|
|
|
|
09-27-2006, 12:34 PM
|
#8
|
|
Member
Registered: Aug 2006
Distribution: slack
Posts: 323
Rep:
|
-rwxr-xr-x 1 root root 1877 2006-08-19 15:21 rc.local
Last edited by ygloo; 09-27-2006 at 12:45 PM.
|
|
|
|
09-27-2006, 01:53 PM
|
#9
|
|
Member
Registered: May 2006
Location: Tennessee et. al
Distribution: Debian Sid, Etch
Posts: 138
Original Poster
Rep:
|
After much searching through google, I have found a solution. For anyone who is interested, check it out at http://ubuntuforums.org/showthread.p...ghlight=x11vnc Thank you everyone for your help.
crashsystems
Last edited by crashsystems; 09-27-2006 at 02:28 PM.
|
|
|
|
11-06-2006, 09:45 AM
|
#10
|
|
Member
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189
Rep:
|
Quote:
|
Originally Posted by ygloo
cron is used to run tasks every hour,day,week...
put what you want to run at the end of "rc.local" file
|
ok, but where is that rc.local file to be stored? Is it to be a hidden file preceded by a dot?
|
|
|
|
11-06-2006, 05:30 PM
|
#11
|
|
Member
Registered: Aug 2006
Distribution: slack
Posts: 323
Rep:
|
rc.local is not a hidden file...
it is stored in /etc/rc.d/ or somewhere in /etc... along with
these and other startup files:
rc.A
rc.K
rc.M
rc.S
rc.X
Last edited by ygloo; 11-06-2006 at 05:32 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:37 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|