[root@Centos1 ~]# yum -y install vnc *vnc-server* |
[root@Centos1 ~]# vim /etc/sysconfig/vncservers====================================================================# VNCSERVERS="2:myusername" ||# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost" ||-----------------将如上两行改为如下配置------------------------------ ||VNCSERVERS="2:user2 3:user3" || VNCSERVERARGS[2]="-geometry 800x600 -alwaysshared" || VNCSERVERARGS[3]="-geometry 800x600 -alwaysshared" ||==================================================================== |
[root@Centos1 ~]# vncserver |
[root@Centos1 ~]# vim /root/.vnc/xstartup=======================================# twm & ||----将如上改为如下----------------------||gnome & ||======================================= |
[root@Centos1 ~]# iptables -F[root@Centos1 ~]# iptables -X[root@Centos1 ~]# service iptables stop[root@Centos1 ~]# vim /etc/sysconfig/selinux============================SELINUX=enforcing ||---将如上改为如下-----------||SELINUX=disabled || =========================== |
[root@Centos1 ~]# su - user2[user2@Centos1 ~]$ vncpasswd |
[root@Centos1 ~]#service vncserver restart |
[root@Centos1 ~]# vncserver -kill:2 |
[root@Centos1 ~]# vncserver :2 |
本文出自 “断肠人在天涯” 博客,请务必保留此出处http://8649605.blog.51cto.com/8639605/1855605
原文:http://8649605.blog.51cto.com/8639605/1855605