LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-28-2003, 07:51 PM   #1
klintonray
Member
 
Registered: Apr 2003
Location: Phx, AZ
Posts: 61

Rep: Reputation: 15
vnc on startup


Hey guys how would I get vnc to start on startup?
 
Old 04-28-2003, 09:10 PM   #2
klintonray
Member
 
Registered: Apr 2003
Location: Phx, AZ
Posts: 61

Original Poster
Rep: Reputation: 15
does anyone know the answer to this?
 
Old 04-28-2003, 09:20 PM   #3
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Rep: Reputation: 30
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.
"
 
Old 04-28-2003, 10:18 PM   #4
klintonray
Member
 
Registered: Apr 2003
Location: Phx, AZ
Posts: 61

Original Poster
Rep: Reputation: 15
don't think that works
 
Old 04-29-2003, 03:22 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
to actaully make it load at boot, just add the command to /etc/rc.local
 
Old 04-29-2003, 01:46 PM   #6
dav1x
Member
 
Registered: Sep 2002
Posts: 50

Rep: Reputation: 15
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...

 
Old 10-25-2003, 09:46 AM   #7
everythingand2
Member
 
Registered: Oct 2003
Location: Kansas City, MO
Distribution: Slackware 9.1
Posts: 61

Rep: Reputation: 15
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?
 
Old 10-25-2003, 02:37 PM   #8
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
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
 
Old 10-26-2003, 08:34 AM   #9
everythingand2
Member
 
Registered: Oct 2003
Location: Kansas City, MO
Distribution: Slackware 9.1
Posts: 61

Rep: Reputation: 15
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VNC on startup jagster Linux - Newbie 2 05-13-2005 09:39 PM
Starting VNC from Startup Ruler2112 Slackware 6 05-03-2005 03:40 PM
VNC startup problem yanickdejong Mandriva 3 04-18-2005 03:55 AM
VNC startup problem yanickdejong Linux - Networking 1 04-13-2005 10:39 AM
VNC at startup with Mandrake 9.2 crates Linux - Software 4 01-14-2004 03:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration