1.在linux下安装vnc[root@www ~]#rpm -ivh vnc-4.1.2-14.el5[root@www ~]#rpm -ivh vnc-server-4.1.2-14.el52.写入:[root@www ~]#vncserver出现:New linux.com:1 (root) desktop is South.redflag-linux.com:1Starting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/South.redflag-linux.com:1.log 3.编辑文件:[root@www ~]#vi /root/.vnc/xstsrtup#unset SESSION_MANAGER#exec /etc/X11/xinit/xinitrc将上面两行的#号去掉,使其生效twm & 改为gnome - session &4.重启VNC[root@www ~]#service vncserver restart5.杀掉以前的连接号:(****此步骤相当重要*****)[root@www ~]#vncserver -kill linux.com:连接号 (注:连接号第一个为1,第二个为2)6启动vnc连接号:[root@www ~]#vncserver这样将会得到一个连接号17.在windows下安装安装vnc viewer 8.运行vnc viewer,输入ip+连接号 例如:192.168.2.98:1