Because the recent project involves virtual desktop, it took a bit of time to find a bit of information to look at the current commonly used protocols have VNC/SPICE/RDP three kinds, here do a simple introduction.Comparison of three types of protocols
SPICE
Vnc
Rdp
BIOS Screen Display
Yes
Yes
No
Full color support
Spice technology has been out for a long time, it is superior to VNC a Remote Desktop protocol, the reason is recorded here, because some encrypted video files (such as the end of the Vpy video encryption), will identify the characteristics of the host, once the host reboot after the video can not be viewed, So I thought of watching the video in the virtual machine.
Introduction of Spice
The SPICE-GTK support for USB redirection under Windows clients is implemented through the WINUSB drive, but Winusb and usbstore drivers cannot exist simultaneously. So spice-gtk through Usb-clerk service Laian loading and unloading WINUSB drive to achieve. Reference http://permalink.gmane.org/gmane.comp.lib.libusbx.devel/132
Usbclerk Source http://cgit.freedesktop.org/~agilboa/usbclerk/
git clone Git://p
vulnerability types:1, through the SQL injection loophole conversion.2. Transfer variables by encoding/decoding.3, other ways.Two command attacksTwo-time injection vulnerabilities are a widespread form of security vulnerability in Web applications. The two injection vulnerability is more difficult to discover than an injection vulnerability, but it has the same attack power as an injection attack vulnerability.The basic flow is as follows:1. Construction ParametersIn a normal database insert, u
The latest version of the spice-vdagent-0.10.1 after their own experiments, is available, indeed solved some problems, first look at the official statement:
Spice agent for Linux==================================
The spice agent for Linux consists of 2 parts, a daemon spice-vdagentd andA per x-session process
Install
Apt-get install build-essential
This qem-kvm version is qemu-kvm-1.2.0
Http://sourceforge.net/projects/kvm/files/qemu-kvm/
Extract
Tar-xzf qemu-kvm-1.2.0.tar.gz
Root @ compute :~ # Cd qemu-kvm-1.2.0/
You can run the./configure-help command to view the help information.Root @ compute :~ Qemu-kvm-1.2.0 #./configureInstall prefix/usr/localBIOS directory/usr/local/share/qemuBinary directory/usr/local/binLibrary directory/usr/local/libInclude directory/usr/local/includeConfig directory/usr/l
1. Installation Websockify
git clone https://github.com/kanaka/websockify.gitCD websockifyPython setup.py Install
(If the error, the Python-related modules may be missing
Yum Install Python-setuptools
Easy_install * * * *)
./websockify.py Port Hostip:hostport
Here:
Port is local websockify proxy ports
HostIP is the server port where Spice server resides
Hostport as Spice server port
2, install
Recently engaged in an Android version of the Spice protocol. After the Andorid-spice official GitHub code is downloaded, the compilation succeeds and runs smoothly on the Android system to link to the cloud desktop, in the case of non-secure ports can be successfully linked to the virtual cloud desktop, But it's very, very annoying, when you link to a TLS port, you always link to a cloud desktop, and the b
Spice-guest-tools is a set of small tools that run on the client computer to improve the performance of the virtual machine, mainly two major parts, one is the driver of the agent, the driver and the driver including the graphics driver and the IO port.Referencehttp://blog.csdn.net/qq_21398167/article/details/46647133Configure the environment to support the Spice protocolCreate a virtual machine using Virt-
When installing spice/serser on the host, add three parameters to compile qemu: -- enable-smartcard, enable-smartcart-NSS, enable-USB-redir;
Install spice-GTK: http://blog.csdn.net/wilcke/article/details/7335389 on guest
Other installation references: Spice/server (1) (2 ):
Http://blog.csdn.net/wilcke/article/details/7357304
Http://blog.csdn.net/wilcke/ar
Reproduced from: http://www.cnblogs.com/qpanda/p/4331782.html
The current commonly used agreement has vnc/spice/rdp three kinds of, just do a simple introduction here.
Comparison of three kinds of protocols
SPICE
Vnc
Rdp
BIOS Screen Display
Yes
Yes
No
Full color support
Yes
Yes
Yes
Change resolution
Yes
Yes
Yes
Nova. conf Vnc_enabled = false [SPICE] Agent_enabled = trueEnabled = trueHtml5proxy_base_url = http://x.x.x.x: 6082/spice_auto.htmlServer_listen = 0.0.0.0Server_proxyclient_address = x. x Keymap = en-US Html5proxy_base_url -- IP address of the proxy (spicehtml5proxy) node Server_proxyclient_address -- IP address of the host on which the openstack-nova-spicehtml5proxy service is running Chkconfig openstack-nova-spicehtml5proxy onChkconfig open
opgger parameter ring_add ( timers, timer-> link); // Add the timer to the timers ring and return timer; // returns the timer pointer}
4. Start a timer
Static void timer_start (spicetimer * timer, uint32_t MS) {assert (MS); // assert that Ms is 0, not to continue running, if yes, exit the function gettimeofday ( timer-> TV _start, null); // get the current precise time, put the TV _start timer-> MS = MS; // assign the timer wait time ms to timer-> MS // already add MS to timer value add_ms_t
In spice/qemu -- usbredir (3), installing usbredir has some bugs. USB flash drives and USB optical drives cannot be used, but keys can only be used.
I looked at it again today and made the following operations:
Edit the ich9-ehci-uhci.cfg file under/etc/qemu on the host:
[Device "EHCI"] driver = "ich9-usb-ehci1" ADDR = "1D. 7 "multifunction =" on "[Device" uhci-1 "] driver =" ich9-usb-uhci1 "ADDR =" 1D. 0 "multifunction =" on "masterbus =" ehci.0 "
1. Items in SPICE server include the following:
Enum {iterator = iterator, iterator, pipe_item_type_cursor, iterator, pipe_item_type_image, iterator, pipe_item_type_upgrade, pipe_item_type_verb, iterator, second, pipe_item_type_stream_activate_report ,};
9. pipe_item_type_upgrade
It is created only when streams times out,
(In worker, the ring streams is added only when red_create_stream is used, while red_create_stream is called only when red_s
Content: Known two integer arrays f[] and g[], their elements have been arranged from small to large, and the elements in each of the two arrays are different. For example, there are 1,3,4,7,9 in f[], and 3,5,7,8,10 in g[]. The trial program
1.
Structure memslot
Typedef struct memslot {int generation; // Number of generated records ?? Unsigned long virt_start_addr; // The virtual address starts unsigned long virt_end_addr; // The virtual address ends long address_delta; // The address
1. server-side channel implementation
1. The server registers the channel.
Server channel type
enum { SPICE_CHANNEL_MAIN = 1, SPICE_CHANNEL_DISPLAY, SPICE_CHANNEL_INPUTS, SPICE_CHANNEL_CURSOR, SPICE_CHANNEL_PLAYBACK,
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.