1.     #yum install vncserver

2.     #vncpasswd       此密码将成为vnc的login password
          password:
          Verify:

3.     #vncserver
         这个时候会创建一个/root/.vnc/xstartup文件
         正常情况下不用改动
         CentOS 5.11开启VNC Service
         可学习/root/.vnc/xstartup内容

         CentOS 5.11开启VNC Service

4.      #vim /etc/sysconfig/vncservers
         酌情修改内容,可根据监视器分辨率修改:
          VNCSERVERS="1:root"
          VNCSERVERARGS[1]=”-geometry 800×600 -alwaysshared -depth 24″
         -alwaysshared代表允许多用户同时登录 -depth代为色深,参数有8,16,24,32。

         CentOS 5.11开启VNC Service

5.      #/etc/init.d/vncserver restart 或 start 或 stop          #重启vncserver
         New 'hqvpn:1 (root)' desktop is hqvpn:1  (红色字即是windows vnc ip栏要填入)

         CentOS 5.11开启VNC Service

6.      可在windows下用vnc 远程登入centos啦

相关文章:

  • 2021-08-20
  • 2021-09-26
  • 2021-05-02
  • 2021-10-26
  • 2021-07-21
  • 2022-01-11
  • 2021-12-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
  • 2022-01-26
  • 2022-02-19
  • 2021-12-03
相关资源
相似解决方案