LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-27-2008, 11:59 PM   #1
niner710
Member
 
Registered: Apr 2008
Posts: 37

Rep: Reputation: 15
How do I get VNC to start on Reboot?


I am using VNC to connect from my XP machine to my Fedora box and it works. But when I reboot my computer then VNC server won't start unless I do it manually. How would I enable VNC on startup. I been reading around and it seems like you need to modify a startup script. Could someone tell me which one and how to do it? Any feedback would be much appreciated. Thanks.
 
Old 04-28-2008, 12:11 AM   #2
Smedley
Registered User
 
Registered: Apr 2008
Distribution: Slackware
Posts: 74

Rep: Reputation: 15
Quote:
Originally Posted by niner710 View Post
I am using VNC to connect from my XP machine to my Fedora box and it works. But when I reboot my computer then VNC server won't start unless I do it manually. How would I enable VNC on startup. I been reading around and it seems like you need to modify a startup script. Could someone tell me which one and how to do it? Any feedback would be much appreciated. Thanks.
Have you read this:

VNC (Virtual Network Computing) 101

http://fedoranews.org/tchung/vnc/printer.shtml
 
Old 05-26-2008, 08:09 PM   #3
Elomis
Member
 
Registered: Dec 2004
Location: Sydney
Distribution: SUSE
Posts: 89

Rep: Reputation: 15
Quote:
Originally Posted by niner710 View Post
I am using VNC to connect from my XP machine to my Fedora box and it works. But when I reboot my computer then VNC server won't start unless I do it manually. How would I enable VNC on startup. I been reading around and it seems like you need to modify a startup script. Could someone tell me which one and how to do it? Any feedback would be much appreciated. Thanks.
To start anything on boot, there are a bunch of scripts in /etc/rc.d/rc*.d/ where * is a number. Linux starts in runlevels, think of them as different shades of Windows 'safemode' where 1 is bare bones and 5 is full gui boot. You probably want to look in /etc/rc.d/rc5.d/

In there are a bunch of symlinks (analgous to Windows shortcuts), they all start with K or S and a number. When Linux starts up it starts things in the order S1whatever through to S99whatever, it kills them in the reverse order when it shuts down.

Assuming vncd is in /usr/sbin, you want to create a symlink to it in that directory called S99vncd, use;

Quote:
ln -s /usr/sbin/vncd /etc/rc.d/S99vncd
 
  


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 Server allows only one login per reboot. awalls Linux - Software 2 10-04-2007 06:05 AM
Start VNC at Boot neo571 Mandriva 1 01-28-2007 03:28 AM
VNC server won't start JSLayton Linux - General 7 04-04-2006 04:57 PM
Cannot start VNC Server JockVSJock Linux - Software 2 06-14-2005 08:34 AM
Start VNC at boot VBAHole22 Linux - Networking 3 06-14-2004 04:09 AM


All times are GMT -5. The time now is 02:59 PM.

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