Tag Archives: VNC client

Enable remote desktop on Linux using VNC|setup VNC client

VNC client setup.

1- give a password for VNC client connection “for each user you will use in the VNC remote desktop connection e.g. user (oracle)”

su – oracle

$ vncpasswd

2- edit vnc configuration file, in the line starts with VNCSERVERS=; add users you want to connect with in pair format “number:username”
# vi /etc/sysconfig/vncservers

VNCSERVERS=”1:root 2:oracle”

3- to make VNC services start with system start
#chkconfig vncserver on

4- if you have firewall enable on Red Hat, be sure that your firewall configuration won’t block connection from remote computer by open port TCP 5901 for remote access.

5- edit oracle user VNC setting to force to load Gnome
$ vi /home/oracle/.vnc/xstartup

*uncomment unset line and exec line
*edit the last line from ‘twm &’ to ‘startx &’ for Gnome and ‘startkde &’ for KDE Desktop.

6-to restart the service

# service vncserver restart


Tags: , , ,