LinuxQuestions.org
Visit Jeremy's Blog.
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, 08: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, 10: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, 10:20 PM   #3
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: SuSE 9.2 Professional, OpenSuSE 10.1 64 bit, Open SuSE 10.2, Debian Etch
Posts: 535

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, 11: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, 04:22 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
to actaully make it load at boot, just add the command to /etc/rc.local
 
Old 04-29-2003, 02: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, 10: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, 03:37 PM   #8
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 341

Rep: Reputation: 83
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, 09: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:39 PM
Starting VNC from Startup Ruler2112 Slackware 6 05-03-2005 04:40 PM
VNC startup problem yanickdejong Mandriva 3 04-18-2005 04:55 AM
VNC startup problem yanickdejong Linux - Networking 1 04-13-2005 11:39 AM
VNC at startup with Mandrake 9.2 crates Linux - Software 4 01-14-2004 04:07 AM


All times are GMT -5. The time now is 11:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration