zoukankan      html  css  js  c++  java
  • Win7 VNC远程连接Centos桌面

    一,安装Linux桌面:

    1. yum -y groupinstall Desktop
    2. yum -y groupinstall "X Window System"
    3. yum -y groupinstall chinese-support
    4. vi /etc/sysconfig/i18n
      将en_US改成zh_CN

    二。安装VNCServer服务包:

            1,安装VNCServer服务端软件包。

                  #yum -y install vnc *vnc-server*


             2,改动VNCServer主配置文件

                 #vim /etc/sysconfig/vncservers

                 复制最后两行并去掉行首凝视符,然后改动为

                 VNCSERVERS="1:root"

                 VNCSERVERARGS[1]="-geometry 1920x1080"


            3。设置password

                 #vncpasswd


            4,启动vncserver服务

                #/etc/init.d/vncserver start


            5。打开xstartup配置桌面

                #vim /root/.vnc/xstartup

                将最后一行改为

                gnome &            
                

           6。设置防火墙

               #vim /etc/sysconfig/iptables

               在“-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT”以下加入一行-A INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT

               重新启动iptables服务

               #/etc/init.d/iptables restart

              


           7,使用VNC连接(下载地址:http://www.realvnc.com/download/

              

              password为上面设置的password。

              

    完毕!



  • 相关阅读:
    在Magento产品分类页面创建推荐产品
    任意两个时间之间的星期几的次数纵.sql
    SQL 日期格式化处理.sql
    系统应用程序域
    在ubuntu12.04中,apc_cache_find()
    buildertheory.cs
    复杂年月处理.sql
    CurrentAccounts.cs
    CLR和Windows加载器
    应用程序域
  • 原文地址:https://www.cnblogs.com/cxchanpin/p/6852683.html
Copyright © 2011-2022 走看看