zoukankan      html  css  js  c++  java
  • 3、VNC

    VNC(Virtual Network Computing,虚拟网络计算机)

    VNC分为两部分组成:VNC server 和 VNC viewer

    VNC安装

    1.yum install tigervnc-server
    2.vncserver
    vncserver

    You will require a password to access your desktops.

    Password:输入一个密码(不低于六位),等下用于连接
    Verify:再次输入密码
    xauth: (stdin):1: bad display name "CentOS6.5-1:1" in "add" command

    New 'CentOS6.5-1:1 (root)' desktop is CentOS6.5-1:1

    Creating default startup script /root/.vnc/xstartup
    Starting applications specified in /root/.vnc/xstartup
    Log file is /root/.vnc/CentOS6.5-1:1.log

    3.vncpasswd 可以修改vnc的密码
    4管理VNC服务器:vncserver
    -name 桌面名称:
    -list 列出VNC虚拟桌面
    -kill :1 杀死虚拟桌面号1
    -genmetry 宽x高
    -autokill 当xstartup脚本退出时自动杀死Xvnc
    -fg 前台运行Xvnc


    客户端进行连接
    1.安装tigervnc
    yum install tigervnc

    2.使用图形化界面连接
    【应用程序】 ——》 【Internet】 ——》 【TigerVNC Viewer】 然后输入192.168.9.6:1进行连接
    192.168.9.6 IP
    :1 指第一个虚拟桌面
    3.命令行连接
    vncviewer 192.168.9.6:1


    VNC高级配置
    vim /etc/sysconfig/vncserver
    VNCSERVERS="2:xuan1" 2代表第二个虚拟桌面
    VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp" 设置分辨率大小

    service vncserver start

  • 相关阅读:
    Completely disable mousewheel on a WinForm
    C# Form内存回收
    解锁用户
    CentOS7+JDK8编译Hadoop2.6.4
    网址收藏
    pvresize
    Linux crontab 命令格式与详细例子
    在CentOS 7中安装与配置JDK8
    Disable SELinux CentOS 7
    Python3标准库:math数学函数
  • 原文地址:https://www.cnblogs.com/-xuan/p/10500360.html
Copyright © 2011-2022 走看看