VNCserver Not Starting Due To Errors

Home » CentOS » VNCserver Not Starting Due To Errors
CentOS 4 Comments

Hello everyone,

Following the directions I found here:
http://wiki.CentOS.org/HowTos/VNC-Server

I get to part 2.4, and when I start the VNCservice, I get this error message:

Starting VNC server: 1:blah Invalid null command. if: Expression Syntax. A VNC server is already running as :1
else: endif not found.
[FAILED]

If I stop it, and then restart it, I get the same error message.
“blah” has been changed for security purposes on this email, but the real name is a valid user. I want to be on window “0”, not 1.

Any tips or suggestions would be greatly appreciated!

Gilbert

*******************************************************************************
Gilbert Sebenste
(My opinions only!)
*******************************************************************************

4 thoughts on - VNCserver Not Starting Due To Errors

  • Where do you get an “if” and “else” in the /etc/sysconfig/vncservers file?

    All you really need is one line. For example, here is what it says in /etc/sysconfig/vncservers on one system that I log into all the time:

    VNCSERVERS=”1:frankcox”

    That’s it and that’s all, folks. If you’re trying to do something else your problem is with that something else, not with VNCserver.

    Now that is something else. I assume that you mean you want to control the local desktop with VNC, right? I have never done that myself, but running “vnc display 0” through google gives a lot of hits to various howtos which will probably get you where you’re going.

  • I just did this…and I get the same error message. (Shrug)

    OK, but first things first…I am totally stumped. My Google-fu didn’t help on this one, either.

    Gilbert

    *******************************************************************************
    Gilbert Sebenste
    (My opinions only!)
    *******************************************************************************

  • Ok, you installed the tigervnc-server rpm and after that you changed some configuration files. What files did you change, and EXACTLY what were the changes that you made?

    vnc is usually dead-dog simple to get up and running.

  • I’m very sorry…I accidentally deleted a response to my email, and it was a good one. Someone (Frank C.?) stated that it should be straightforward…do a few things, and BAM! It just works!

    And that is exactly what I have experienced with CentOS 5. But with
    6…it’s like pulling teeth. I followed the smae instructions that got me working with 5…I don’t know why I am getting the errors with 6.

    Gilbert

    file?
    your

    I just did this…and I get the same error message. (Shrug)

    the running “vnc will

LEAVE A COMMENT