http://archive.cnblogs.com/a/2233332/
==========================================================
[root@MHD-ORACLE-SERVER ~]# rpm -qa|grep vnc
tigervnc-1.0.90-0.17.20110314svn4359.el6.x86_64
[root@MHD-ORACLE-SERVER ~]# yum -y install tigervnc-server
[root@MHD-ORACLE-SERVER ~]# yum -y install libvncserver
[root@MHD-ORACLE-SERVER ~]# vi /etc/sysconfig/vncservers
VNCSERVERS="1:oracle"
VNCSERVERARGS[1]="-geometry 1366x786"
:wq
[root@MHD-ORACLE-SERVER ~]# su - oracle
[oracle@MHD-ORACLE-SERVER ~]$ vncserver
You will require a password to access your desktops.
Password:
Verify:
xauth: creating new authority file /home/oracle/.Xauthority
New 'MHD-ORACLE-SERVER:1 (oracle)' desktop is MHD-ORACLE-SERVER:1
Creating default startup script /home/oracle/.vnc/xstartup
Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/MHD-ORACLE-SERVER:1.log
[oracle@MHD-ORACLE-SERVER ~]$ su - root
密码:
[root@MHD-ORACLE-SERVER ~]# service vncserver restart
关闭 VNC 服务器:1:oracle [确定]
正在启动 VNC 服务器:1:oracle
New 'MHD-ORACLE-SERVER:1 (oracle)' desktop is MHD-ORACLE-SERVER:1
Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/MHD-ORACLE-SERVER:1.log [确定]
[root@MHD-ORACLE-SERVER ~]#
http://www.cnblogs.com/niocai/archive/2011/11/02/2233332.html