Login Screen in VNC

I would like to run a headless FC6 box at home, accessing it only from a Windows Vista machine via VNC.  Setting up VNC was easy enough, I just edited /etc/sysconfig/vncservers, added a password with vncpasswd and was off and running.

The only problem is that I must first login to the machine the old fashioned keyboard and mouse way in order to sudo service vncserver start whenever I reboot the machine.  What I would like is for the VNC server to start automatically on a reboot, connect via VNC to see the login screen and login as normal.

Is there an easy way to do this?  Any information in this regard would be appreciated.
Who is Participating?
Duncan RoeConnect With a Mentor Software DeveloperCommented:
There should be a file "rc.local" in /etc/init.d or somewhere below it. You can put the commands in that file and they will get run at boot time.
You can set the "server" machine to automatically boot VNC host on startup, but you cannot set the other "listener" computer -- the one loggin into a host server -- to automaically boot on startup unless you put the right commands in the Startup folder of the listener machine.  Realize, VNC has the terms backwards, the host and server are the opposite of what everyone else uses, they were very lame in their deployment.
On Fedora core as root run > chkconfig vncserver --list
you should get something like:
vncserver 0:off 1:off 2:off 3:off 4:off 5:off 6:off

If they are all off enter > chkconfig vncserver on

The run the list again (above) and it should have 3, 4 and 5 now set to on.
From then on when the system reboots vncserver will start on boot.

either reboot to have it start or use > server vncserver start
to start it this time.
dereklAuthor Commented:
echlinm, I tried that but apparently there is an ugly Fedora 7 bug in which all of the Gnome applets get screwed up the second time you bring up the desktop.

I'm following this thread about it here:


but haven't seen anything promising in the way of a fix.
Then there is a trick, use a different WM for the vnc and terminal sessions. It might even improve performance. I switched an older machine of mine to use icewm and you do this by editing the ~/.vnc/xstartup script to use the new wm instead of gnome. There is an ice derivitive available for F7 through yum, forget what they call it though. I then use something like dfm for desktop icons. Or switch the terminal sessions to kde and use gnome for the vnc session.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.