• vnc


    https://wiki.centos.org/HowTos/VNC-Server

    (1) 在centos7安装tigervnc-server

    /usr/bin/Xvnc:exe这个是原来就有的?

    /usr/bin/vncserver: Perl script

     

    (2) 配置用户

    Edit /etc/sysconfig/vncservers, and add the following to the end of the file.

    VNCSERVERS="1:larry 2:moe 3:curly"
    VNCSERVERARGS[1]="-geometry 640x480"
    VNCSERVERARGS[2]="-geometry 640x480"
    VNCSERVERARGS[3]="-geometry 800x600"


    (3)用对应用户如larry登录
    执行vncserver :1
    按提示输入登录密码
    实际它就会根据:1读取/etc/sysconfig/vncservers的第一个用户的配置信息。拉起Xvnc程序

    (4)通过firewall-cmd设置允许外部访问5901的端口
    实际上在
    /usr/lib/firewalld/services目录下已经有
    vnc-server.xml文件指定了5900~5903的tcp端口
    firewall-cmd --permanent --zone=public --add-service=vnc-server

    (5)用vnc客户端连接
    在window机器上下载realvnc的vnc-viewer,运行在提示的窗口中
    vnc server写上ipaddr:1回车
    再输入之前设置的密码



  • 相关阅读:
    【SPOJ1825】Free Tour II-点分治+桶排序
    【BZOJ3238】差异(AHOI2013)-后缀自动机+树形DP
    Vacation
    Function
    Path
    杭电oj初体验之 Code
    挑7
    行游散记!
    坐标移动
    STL之pair类型
  • 原文地址:https://www.cnblogs.com/itzxy/p/5840609.html
Copyright © 2020-2023  润新知