vnc on startup
Hey guys how would I get vnc to start on startup?
|
does anyone know the answer to this?
|
Does this help:
" The simplest approach is to make your VNC startup file a link to your normal X startup file. This is done as follows: 1. Move into your vnc configuration directory ( cd ~/.vnc) 2. Delete the startup file which is already there (rm xstartup) 3. Make a link to your normal X startup file (ln -s ../.xinitrc ./xstartup) 4. Switch back to your home directory (cd) 5. Make your .xinitrc file executable (chmod u+x .xinitrc) Of course, you can also create a custom startup file if you prefer, by editing .vnc/xstartup. " |
don't think that works
|
to actaully make it load at boot, just add the command to /etc/rc.local
|
yar... or depending on the distro
change /etc/rc.d/rc*.d/K35vncserver to s35vncserver.. or through chkconfig if you are of the redhat persuasion... :p |
I'm wanting VNC to run at startup as well. I put this path - "/usr/local/bin/vncserver" in my rc.local file and rebooted but VNC still didn't start. I can start it just fine manually but for whatever reason it won't start automatically. Is there some sort of log I can view to see if any errors occurred while VNC tried to start?
|
You can redirect standard error (2) to a file for the command in rc.local:
/usr/local/bin/vncserver 2>/tmp/vncserver_err.txt Then just view the "/tmp/vncserver_err.txt" file for any error messages. Speck |
Ok I did that and in the error file it says it can't find xauth in my path. Is there a way to run vnc as a specific user? If a process starts at startup, what user is actually running the process?
|
All times are GMT -5. The time now is 07:15 AM. |