how to Install a VNC remote desktop (CentOS, Red Hat)

To install VNC, we need to install the graphical environment (such as Gnome).

Install the required programs and modules:
#yum-y install firefox nano tigervnc-server tigervnc-server-module tigervnc-server-applet gtk-vnc python-gtk-vnc

Turn on AutoPlay:
shkconfig vncserver on

Add the user under which we will access the remote desktop

#useradd-m user

Assign a password for user

#passwd user

Now you need to go to Terminal 2 (or use the SU command) use user login and enter the following command

#vncpasswd

Set a password for VNC.

By Ruth Perezahodim.

Change the configuration file/etc/sysconfig/vncservers
VNCSERVERS = “0: user”
VNCSERVERARGS [0] = “-geometry 1024 x 768-depth 16”

1024 x 768-resolution desktop

Not to start a VNC server manually after each reboot, you can add it to the startup procedure. If you wish, you can build a full set of scripts for the upstart, but in practice enough to do without adding to the/etc/rc.local file:

Su user-c-l “vncserver: 0”

Reload the server to check: #reboot

And try to connect to any VNC client, VNC port: 5900, do not forget to add entry-open port 5900 in iptables firewall.

The client can download here http://sourceforge.net/projects/tigervnc/files/tigervnc/1.2.0/

PS: you can do it as root user, but for security reasons, in order not to do better.

ZYZY: this article discusses the main points and not dismantled the nuances