Login Screen in VNC

Posted on 2007-07-26
Last Modified: 2013-12-15
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.
Question by:derekl
    LVL 34

    Accepted Solution

    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.
    LVL 44

    Expert Comment

    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.
    LVL 1

    Expert Comment

    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.

    Author Comment

    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.
    LVL 1

    Expert Comment

    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.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    In a recent article here at Experts Exchange (, I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now