How to Install and Configure VNC Server in CentOS 7

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Matei Cezar

I'am a computer addicted guy, a fan of open source and linux based system software, have about 4 years experience with Linux distributions desktop, servers and bash scripting.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

9 Responses

  1. Tom knotts says:

    I have been using the VNC server on Linux and Real VNC on remote Windows for 15 years and it has always worked beautifully. But something has gone wrong. Since my most recent yum update on my Centos 7.2 there is a problem.

    Whenever a graphical window inside the Remote Desktop is closed by me or the program that invoked it, Xvnc on Linux throws a segmentation fault 0x38 and Xvnc crashes. Apparently it is dereferencing a null pointer or some such. So those of you who follow these very finely written installation instructions may be in for a disappointment.

  2. Lionel says:

    Not everyone use (or can use) “yum” to install VNC or any other application !
    Can you indicate the mandatory RPMs individually so that one can install VNC manually ?


  3. Travis says:

    Hey Matei. Thanks so much. This was very detailed and clear to follow. It was working great and then after a reboot, I’m getting “Unable connect to socket: Connection refused (10061)”. Been googling around for a bit and can’t seem to find a solution for this. Reloaded systemctl, stopped it, disabled/enabled it, etc. and still getting no connection. Any thoughts on this?

  4. Joe F. says:

    I’m getting a large solid blue background, but no icons or menus.

    I can open the window, but can’t do anything inside of it, because none of the expected buttons, icons, task bars are visible.

  5. Rana faisal says:

    This configuration is not working, invalid argument in Unit and I don’t know what is the problem.

  6. Don says:

    How can you set this up so that it works on boot up? It seems it only works after you have made it past the login screen. So if I were remote, rebooting the machine then locks me out as I am not physically there to enter the user credentials into the Desktop login screen. Does that make sense?

  7. Mario Cajina says:

    Thank you very much! These were the best instructions I’ve found for setting up tigervnc-server on CentOS 7.x. It worked perfectly. Previous instructions I’ve found always leave out something, and even though I’ve gotten it to work, when I start the service I always get some errors. I didn’t get any errors at all following these instructions.

    I do agree with @Todor Petkov, that one should run the service through SSH tunnel. Perhaps Tecmint can post a revision to these with the option to run VNC via SSH.

  8. ramesh bolaram says:

    VNC Viewer is not able to display graphical window properly seems pixel – resolution issue, please help me


  9. Todor Petkov says:

    Since VNC is not secured by default, I suggest making the server listen only on lo device and connecting to it via ssh tunnel.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.