Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1636
  • Last Modified:

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.
0
derekl
Asked:
derekl
1 Solution
 
Duncan RoeSoftware 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.
0
 
scrathcyboyCommented:
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.
0
 
echlinmCommented:
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.
0
 
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:

    http://forums.fedoraforum.org/showthread.php?p=842062#post842062

but haven't seen anything promising in the way of a fix.
0
 
echlinmCommented:
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.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now