zoukankan      html  css  js  c++  java
  • virt viewer Usbredir USB重定向

    编译virt viewer之前执行的configure命令,是没有使能usb-redir相关的功能,virt viewer是否支持usbredir是完全依赖于spice-gtk的。

    virt viewer对spice-gtk的依赖关系,可以从virt viewer的configure结果看出来:

    1. configure: Configuration summary  
    2. configure: =====================  
    3. configure:   
    4. configure:  Features:  
    5. configure:   
    6. configure:       Gtk: 3.0  
    7. configure:   
    8. configure:  Libraries:  
    9. configure:   
    10. configure:        GLIB2: -pthread -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include   -pthread -Wl,--export-dynamic   
    11. -lgthread-2.0 -lgmodule-2.0 -lrt -lglib-2.0    
    12. configure:   
    13. configure:          GTK: -pthread -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/atk-1.0   
    14. -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0   
    15. -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12   -lgtk-3 -lgdk-3 -latk-1.0 -lgio-2.0   
    16. -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lpango-1.0 -lcairo -lgobject-2.0 -lglib-2.0    
    17. configure:   
    18. configure:      GTK_VNC:    
    19. configure:   
    20. configure:    SPICE_GTK: -pthread -I/usr/local/include/spice-client-gtk-3.0 -I/usr/local/include/spice-client-glib-2.0   
    21. -I/usr/local/include -I/usr/local/include/spice-1 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/   
    22. -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0   
    23. -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12   -L/usr/local/lib -lspice-client-gtk-3.0   
    24. -lgtk-3 -lspice-client-glib-2.0 -lgdk-3 -latk-1.0 -lgio-2.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lpango-1.0 -lcairo   
    25. -lgobject-2.0 -lglib-2.0    
    26. configure:   
    27. configure:      LIBXML2: -I/usr/include/libxml2   -lxml2    
    28. configure:   
    29. configure:      LIBVIRT: -I/usr/local/include   -L/usr/local/lib -lvirt -ldl    
    30. configure:   
    31. configure:        OVIRT:    
    32. configure:   

    其中spice-client-gtk-3.0和spice-client-glib-2.0即是spice-gtk的编译结果。

    版本

    spice-gtk-0.20.tar

    virt-viewer-0.5.6.tar.gz

    编译libusbredir

    可以在http://www.spicespace.org/page/UsbRedir下载最新版本

    1. ./configure  
    2. make  
    3. sudo make install  



    编译spice-gtk

    要在virt viewer中使能usbredir,必须先正确的编译spice-gtk,--enable-usbdir=yes 使能usbredir

    1. ./configure --with-gtl=3.0 --with-audio=gstreamer --enable-usbdir=yes --enable-smartcard=yes  
    2. make  
    3. make install  

    make install 会把spice-gtk编译的库,头文件等安装到系统中,virt viewer的编译依赖这些库和头文件。

     

    编译virt viewer

    1. ./configure --with-gtk=3.0 --with-spice-gtk  
    2. make  
    3. make install  

    sudo ./remote-viewer, 使用sudo执行remote-viewer,因为要操作USB,需要超级用户权限。

    如果顺利,执行remote-viewer后,可在file菜单下看到 “USB device selection” 选项。

  • 相关阅读:
    pandas的Categorical方法
    LightBGM之train
    LightBGM之Dataset
    pandas的replace方法
    python的tqdm模块
    pandas的merge方法
    pandas的drop函数
    各种服务器建议配置
    thymeleaf:访问静态方法
    The project cannot be built until its prerequisite base-service is built. Cleaning and building all projects is recommended
  • 原文地址:https://www.cnblogs.com/ruiy/p/5128692.html
Copyright © 2011-2022 走看看