zoukankan      html  css  js  c++  java
  • win7 远程桌面连接centos 6.5

    win7 远程桌面连接centos 6.5.如果使用xshell,则不用任何配置即可连接

    首先安装tigervnc-server:

    yum install tigervnc-server

     

    安装好后,设置 vi /etc/sysconfig/vncservers

     

    [root@gateway-001 ~]# cat /etc/sysconfig/vncservers

    # The VNCSERVERS variable is a list of display:user pairs.

    #

    # Uncomment the lines below to start a VNC server on display :2

    # as my 'myusername' (adjust this to your own).  You will also

    # need to set a VNC password; run 'man vncpasswd' to see how

    # to do that. 

    #

    # DO NOT RUN THIS SERVICE if your local area network is

    # untrusted!  For a secure way of using VNC, see this URL:

    # https://access.redhat.com/knowledge/solutions/7027

     

    # Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.

     

    # Use "-localhost" to prevent remote VNC clients connecting except when

    # doing so through a secure tunnel.  See the "-via" option in the

    # `man vncviewer' manual page.

     

    VNCSERVERS="1:root"

    VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"

    VNCSERVERS="2:work"

    VNCSERVERARGS[2]="-geometry 1024x768  -nolisten tcp -localhost"

     

     

    启动vncserver服务器:

    [root@gateway-001 ~]# service vncserver start

    切换到work用户,设置vncpasswd

     

    在服务器上可以看到打开的vnc端口:

     

     

    在windows上安装viewvnc,输入ip地址和端口号进行连接:

     

     

    输入密码:

     

    可以看到成功的连接上了centos 6.5的桌面:

  • 相关阅读:
    第七周学习进度
    环形数组求子数组最大和
    第六周学习进度
    团队
    子数组和最大值
    第五周学习进度
    第四周学习进度
    构建之法第一篇阅读笔记
    关于Sublime text 的PHP编译环境配置的问题
    PHP基础之 数组(二)
  • 原文地址:https://www.cnblogs.com/zero530/p/5022561.html
Copyright © 2011-2022 走看看