Virt Viewer Usbredir USB redirection

Source: Internet
Author: User
Tags cairo gtk

The Configure command executed prior to compiling the Virt viewer is not capable of usb-redir related functions, Virt Viewer support Usbredir is completely dependent on SPICE-GTK.

Virt Viewer's dependency on SPICE-GTK can be seen from the configure results of the Virt Viewer:

[HTML]View Plaincopy
  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,--Expo Rt-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/incl ude/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

Where spice-client-gtk-3.0 and spice-client-glib-2.0 are compiled results of SPICE-GTK.

Version

Spice-gtk-0.20.tar

Virt-viewer-0.5.6.tar.gz

Compiling Libusbredir

You can download the latest version in Http://www.spicespace.org/page/UsbRedir

[HTML]View Plaincopy
    1. ./configure
    2. Make
    3. sudo make install



Compiling SPICE-GTK

In order to enable Usbredir in the Virt Viewer, it is necessary to correctly compile Spice-gtk,--enable-usbdir=yes to enable Usbredir

[HTML]View Plaincopy
    1. ./configure --with-gtl=3.0 --with-audio=gstreamer --enable-usbdir=Yes -- enable-smartcard=Yes
    2. Make
    3. Make install

Make installs the SPICE-GTK compiled library, header files and so on to the system, Virt Viewer compilation relies on these libraries and header files.

Compiling Virt Viewer

[HTML]View Plaincopy
    1. ./configure --with-gtk=3.0--with-spice-gtk
    2. Make
    3. Make install

sudo./remote-viewer, use sudo to execute remote-viewer, because to operate USB, Superuser privileges are required.

If it goes well, you can see the "USB Device Selection" option under the File menu after performing Remote-viewer.

Virt Viewer Usbredir USB redirection

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.