LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   vnc on startup (https://www.linuxquestions.org/questions/linux-software-2/vnc-on-startup-57226/)

klintonray 04-28-2003 07:51 PM

vnc on startup
 
Hey guys how would I get vnc to start on startup?

klintonray 04-28-2003 09:10 PM

does anyone know the answer to this?

allelopath 04-28-2003 09:20 PM

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.
"

klintonray 04-28-2003 10:18 PM

don't think that works

acid_kewpie 04-29-2003 03:22 AM

to actaully make it load at boot, just add the command to /etc/rc.local

dav1x 04-29-2003 01:46 PM

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

everythingand2 10-25-2003 09:46 AM

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?

speck 10-25-2003 02:37 PM

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

everythingand2 10-26-2003 08:34 AM

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.