zoukankan      html  css  js  c++  java
  • unbuntu下vnc和vnc2swf的使用

    安装:sudo apt-get install vnc4server,vncviewer

    默认vnc2swf安装了的。

    pyvnc2swf的说明文档:http://www.unixuser.org/~euske/vnc2swf/pyvnc2swf.html

    1. 先建立一个vnc服务器:

    disappear@ubuntu:~$ vnc4server
    
    New 'ubuntu:1 (disappear)' desktop is ubuntu:1
    
    Starting applications specified in /home/disappear/.vnc/xstartup
    Log file is /home/disappear/.vnc/ubuntu:1.log
    #可以用vnc4server -kill :1来删除vnc server

    2. 使用vncviewer连接vnc服务器:

    disappear@ubuntu:~$ vncviewer ubuntu:1
    Connected to RFB server, using protocol version 3.8
    Performing standard VNC authentication
    Password: 
    

     3. 运行vnc2swf来录制操作

    disappear@ubuntu:~$ vnc2swf -n -o 000.swf locahost:1
    Using pygame 1.9.1release
    there is no soundcard
    

     如果想要录制当前已经存在的屏幕,需要用x11vnc,为了缓解掉帧情况,请将分辨率调为最低。

    1. x11vnc启动一个server,为了缓解掉帧,设置-wait 10 -defer 10

    x11vnc -localhost -viewonly -wait 10 -defer 10 -bg
    

     2. vnc2swf 启动录制

    vnc2swf -n -o out22.swf  localhost:1
    

     当然你可以设置framerate,扩大至24或者更高查看效果。

    vnc2swf -n -r 25 -o out22.swf  localhost:1
    
  • 相关阅读:
    产品团队管理
    产品版本规划
    gitlab服务器IP调整后修改domian或ip
    Linux服务器性能分析与调优
    linux设置别名连接远程服务器
    Yaml文件
    Alias采样算法
    Graph embedding(2)----- DeepWalk、Node2vec、LINE
    python学习(32)---networkx
    python报错
  • 原文地址:https://www.cnblogs.com/maseng/p/3598907.html
Copyright © 2011-2022 走看看