Start RealVNC at boot using init.d
I have searched hundreds of forums and tried several things however I keep winding up with a problem in one way or another. (Note- I am using RealVNC, not the vnc that comes with Fedora)
I am just trying to start my vnc server when the computer boots. I have created a file called vnc in my /etc/init.d Code:
#! /bin/sh Code:
ln -s /etc/init.d/boot.vnc /etc/rc0.d/K99vnc Code:
su: /bin/bash Permission Denied If I run Code:
[root@intrepid init.d]# bash vnc start |
The X server has to be up and running before you can start the VNC server. When init.d scripts run, X is not up. I think that's your problem; you're trying to start VNC too early. This would also explain why your script works when you run it after booting up; X is up and running at that time.
I'm not that familiar with fedora, but I think you need to add your script someplace like /etc/X11/xinit.d. I'm also not that familiar with gnome, but it may have a way of autostarting scripts/programs when it first comes up. In fact, I'm fairly certain that gnome has some way to do that. That would be where I would look. |
Quote:
Fedora/Redhat already have vnc startup scripts in /etc/init.d Why can't you use that script but change it to use your version of VNC? LinuxDave |
:(
Well, I was trying to learn something about linux by installing and configuring a program my self instead of just letting it install its self and add all the scripts for me. But I have been searching for over 2 weeks now and no one can tell me how to start the downloaded rpm version of RealVNC using rc.local or inid.d so I have uninstalled it and installed the vnc that comes with Fedora. Code:
rpm -e vnc Code:
VNCSERVERS="3:username" Here is a good site that explains how to do this on Fedora. http://www.redhat.com/magazine/006apr05/features/vnc/ If anyone knows how to do what I was trying to do please respond. I would still like to learn how to do things manualy. Thanks |
All times are GMT -5. The time now is 09:18 PM. |