1.Please install tigervnc-server using yum and create VNC user and password

[root@ORCL ~]# yum install tigervnc-server xorg-x11-fonts-Type1

[root@ORCL ~]# useradd elinuxbook

[root@ORCL ~]# passwd elinuxbook

[root@ORCL ~]# su – elinuxbook

[elinuxbook@ORCL ~]$ vncpasswd

2.Configure display to proper resolution and user “elinuxbook”

[root@ORCL ~]#vi /etc/sysconfig/vncservers

# VNCSERVERS=”2:myusername”

# VNCSERVERARGS[2]=”-geometry 800×600 -nolisten tcp -localhost”

VNCSERVERS=”1:elinuxbook”

VNCSERVERARGS[1]=”-geometry 1440×900″

[root@ORCL ~]# /etc/init.d/vncserver start

Creating default startup script /home/elinuxbook/.vnc/xstartup

Starting applications specified in /home/elinuxbook/.vnc/xstartup

Log file is /home/elinuxbook/.vnc/ORCL:1.log

[  OK  ]

[root@ORCL ~]# chkconfig –level 35 vncserver on

[root@ORCL ~]# chkconfig –list vncserver

vncserver       0:off   1:off   2:off   3:on    4:off   5:on    6:off

3.Now configure the private key in SSH

4.Please select tunnels with port number 5901

5.Now you can connect using localhost with port 5901 from vnc viewer

Leave a Reply

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