Install and Configure VNC Server in CentOS 7 and RHEL 7

19 Responses

  1. José Luis Alonso says:


    I’m from Mexico. Thank you for your post. This is a good post, i can to installed and configured the vncserver

  2. Aravindh says:

    Hi Pradeep, Thank you for your post.It worked for me. once again thanks. 🙂

  3. Pablo says:

    Hi there! Great job, easily explained. Works perfect.

  4. David Livingstone says:

    I did everything Exactly by the book, and ended here:
    [[email protected] ~]# systemctl daemon-reload
    [[email protected] ~]# systemctl start [email protected]:3.service
    Job for [email protected]:3.service failed because the control process exited with error code. See “systemctl status [email protected]:3.service” and “journalctl -xe” for details.
    [[email protected] ~]# systemctl status [email protected]:3.service
    [email protected]:3.service – Remote desktop service (VNC)
    Loaded: loaded (/etc/systemd/system/[email protected]:3.service; disabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since Tue 2016-05-17 09:45:47 AEST; 44s ago
    Process: 1238 ExecStart=/usr/sbin/runuser -l david -c /usr/bin/vncserver %i (code=exited, status=2)
    Process: 1232 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)

    May 17 09:45:47 OptiPlex-380 systemd[1]: Starting Remote desktop service (VNC)…
    May 17 09:45:47 OptiPlex-380 systemd[1]: [email protected]:3.service: control process exited, code=exited status=2
    May 17 09:45:47 OptiPlex-380 systemd[1]: Failed to start Remote desktop service (VNC).
    May 17 09:45:47 OptiPlex-380 systemd[1]: Unit [email protected]:3.service entered failed state.
    May 17 09:45:47 OptiPlex-380 systemd[1]: [email protected]:3.service failed.

    Any hints? I’ve checked the forums I could find, with no clue. Any help greatly appreciated.

  5. Steve says:

    Followed you instructons for RHEL7, connected from Win7 laptop. Works perfect. Thanks!

  6. Magesh Mahi says:

    Worked Like a Charm in Centos 7 windows 10 laptop remoting into it …

  7. DeeZay says:

    Thanks Its Working Perfect

  8. Sandeep says:

    Can I get this work without Gnome Desktop group package?

  9. Brianthreedee says:

    I’m a complete noob: Running CentOS 7 – Gnome installed. Followed all instructions. I entered the following;

    systemctl enable [email protected]:5901.service ln -s ‘/etc/systemd/system/[email protected]:5901.service’ ‘/etc/systemd/system/[email protected]:5901.service’

    When I hit enter I get Failed to parse signal string /etc/systemd/system/[email protected]:5901.service

    Any help would be greatly appreciated!

  10. jirka says:

    Hi, I have a little problem. Everything went OK, but after
    systemctl start [email protected]:1.service

    I got this:

    Job for [email protected]:1.service failed because a configured resource limit was exceeded. See “systemctl status [email protected]:1.service” and “journalctl -xe” for details.

    I tried to remove /tmp/.X11-unix/

    without avail.

    Can somebody help. Thank

  11. Amar says:

    Thank you very much.

  12. Pete Kowalsky says:

    Great little guide – works like a champ. I like that if you follow the instructions exactly you’ll wind up with a VNC server that starts on host boot, and you can even login via the Gnome login… I’m printing this page to a PDF and stashing it. THANKS!

  13. Santhoshkumar says:

    Instead of using “yum groupinstall “GNOME Desktop” , use below command to get rid of all issues. Follow rest other steps.

    yum groupinstall ‘Server with GUI

    yum groups mark install ‘X Window System’ ‘GNOME’

    systemctl set-default

  14. Kazuhiko Yamashita says:

    Thank you for your kind instruction. I could install both Vncserver on Centos 7 and Vncclient onWindows 10 successfully.

  15. Marco says:

    Thank you, very useful.

  16. JohnW says:

    How about a light duty Window Manager. I dont want all the gnome stuff running on my server. TWM is not on the list anymore?

  17. Rob says:

    I had to create a vnc password for my user before the service would start properly on my RHEL 7.6 system. I created the user using vncpasswd while logged in with that user account.

Leave a Reply

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