server:
=========
[root@prod01 Server]# ls vnc*
vnc-4.1.2-14.el5_6.6.x86_64.rpm vnc-server-4.1.2-14.el5_6.6.x86_64.rpm
[root@prod01 Server]# rpm -ivh vnc-server-4.1.2-14.el5_6.6.x86_64.rpm
warning: vnc-server-4.1.2-14.el5_6.6.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
package vnc-server-4.1.2-14.el5_6.6.x86_64 is already installed
[root@prod01 Server]# vncserver :1
You will require a password to access your desktops.
Password:
Verify:
New 'prod01:1 (root)' desktop is prod01:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/prod01:1.log
[root@prod01 Server]#
client:
========
access control disabled, clients can connect from any host
[root@prod01 ~]#
[grid@prod01 grid]$ xclock
=========
[root@prod01 Server]# ls vnc*
vnc-4.1.2-14.el5_6.6.x86_64.rpm vnc-server-4.1.2-14.el5_6.6.x86_64.rpm
[root@prod01 Server]# rpm -ivh vnc-server-4.1.2-14.el5_6.6.x86_64.rpm
warning: vnc-server-4.1.2-14.el5_6.6.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
package vnc-server-4.1.2-14.el5_6.6.x86_64 is already installed
[root@prod01 Server]# vncserver :1
You will require a password to access your desktops.
Password:
Verify:
New 'prod01:1 (root)' desktop is prod01:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/prod01:1.log
[root@prod01 Server]#
client:
========
安装vncviewer.exe
su - root
[root@prod01 ~]# xhost +access control disabled, clients can connect from any host
[root@prod01 ~]#
su - grid
[grid@prod01 grid]$ export DISPLAY=192.168.20.201:1[grid@prod01 grid]$ xclock