### Displaying Host Installation Help (Windows Command Line) Source: https://looking-glass.io/docs/B7/_sources/install_host This command displays a list of all available command-line flags for the Looking Glass Host installer on Windows. This is useful for understanding and customizing the installation process beyond the default silent installation. ```batch looking-glass-host-setup.exe /? ``` -------------------------------- ### Example Memory Calculation for 1080p SDR Source: https://looking-glass.io/docs/B7/_sources/install_libvirt An example calculation demonstrating how to determine the required MiB for a 1920x1080 resolution with SDR (4 BPP), including adding 10 MiB and rounding up to the nearest power of two. ```math 1920 * 1080 * 4 * 2 = 16,588,800 bytes 16,588,800 / 1024 / 1024 = 15.82 MiB 15.82 MiB + 10 MiB = 25.82 MiB 2^ceil(log2(25.82)) = 32 MiB ``` -------------------------------- ### Install NSIS for Windows Installer Source: https://looking-glass.io/docs/B7/build Installs the Nullsoft Scriptable Install System (NSIS) using the apt-get package manager, which is required for building the Windows installer. ```shell apt-get install nsis ``` -------------------------------- ### Install OBS Plugin (Bash) Source: https://looking-glass.io/docs/B7/_sources/obs Installs the Looking Glass OBS plugin after it has been built. This command executes 'make install'. If the plugin was built for system-wide installation, this command needs to be run with root privileges. ```bash make install ``` ```bash sudo make install ``` -------------------------------- ### Install OBS Plugin (as root) Source: https://looking-glass.io/docs/B7/obs Installs the Looking Glass OBS plugin system-wide, requiring root privileges to write to system directories. ```bash sudo make install ``` -------------------------------- ### Install Looking Glass Client (System-wide) Source: https://looking-glass.io/docs/B7/_sources/install_client Installs the Looking Glass client application system-wide after building from source. This command requires root privileges. ```shell make install ``` -------------------------------- ### Silent Installation of Looking Glass Host on Windows Source: https://looking-glass.io/docs/B7/install_host This command executes a silent installation of the Looking Glass Host application on Windows with default options. It's useful for automated deployments. The '/?' flag can be used to list all available configuration options. ```bash looking-glass-host-setup.exe /S ``` -------------------------------- ### Install Looking Glass Client (Local User) Source: https://looking-glass.io/docs/B7/_sources/install_client Installs the Looking Glass client application for the local user only. It configures the installation path to '~/.local' using CMake before building and installing. ```shell cmake -DCMAKE_INSTALL_PREFIX=~/.local .. && make install ``` -------------------------------- ### Run Looking Glass Client Source: https://looking-glass.io/docs/B7/build Executes the compiled Looking Glass client binary directly from the build directory. This allows testing the client before formal installation. ```bash ./looking-glass-client ``` -------------------------------- ### Configure SPICE VM Channel for Clipboard Sync (libvirt) Source: https://looking-glass.io/docs/B7/_sources/install_libvirt libvirt XML configuration to enable a SPICE channel for agent communication, facilitating clipboard synchronization between the host and guest. ```xml ``` -------------------------------- ### Build OBS Plugin (User Install) Source: https://looking-glass.io/docs/B7/obs Compiles the Looking Glass OBS plugin from source, installing it for the current user. This involves creating a build directory, configuring with CMake, and running make. ```bash mkdir obs/build cd obs/build cmake -DUSER_INSTALL=1 ../ make ``` -------------------------------- ### Install Build Dependencies with APT Source: https://looking-glass.io/docs/B7/build Installs the required libraries and tools for building the Looking Glass client on Debian-based systems. It's crucial to ensure compatibility with your audio system (PipeWire or PulseAudio) and adjust the list accordingly. ```bash apt-get install binutils-dev cmake fonts-dejavu-core libfontconfig-dev \ gcc g++ pkg-config libegl-dev libgl-dev libgles-dev libspice-protocol-dev \ nettle-dev libx11-dev libxcursor-dev libxi-dev libxinerama-dev \ libxpresent-dev libxss-dev libxkbcommon-dev libwayland-dev wayland-protocols \ libpipewire-0.3-dev libpulse-dev libsamplerate0-dev ``` -------------------------------- ### Configure SPICE VM Channel for Clipboard Sync (QEMU) Source: https://looking-glass.io/docs/B7/_sources/install_libvirt QEMU command-line arguments to configure the virtio serial PCI device and a SPICE channel for agent communication, enabling clipboard synchronization. ```bash -device virtio-serial-pci \ -chardev spicevmc,id=vdagent,name=vdagent \ -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 ``` -------------------------------- ### Install libobs-dev with apt-get Source: https://looking-glass.io/docs/B7/obs Installs the necessary development library for the OBS plugin using the apt-get package manager. This is a prerequisite for building the plugin. ```bash apt-get install libobs-dev ``` -------------------------------- ### Build Windows installer using makensis Source: https://looking-glass.io/docs/B7/_sources/build Builds the Looking Glass Windows installer package using the 'makensis' utility. This command is executed after cross-compiling the host and installing NSIS, targeting the installer script. ```bash cd host/build/platform/Windows makensis installer.nsi ``` -------------------------------- ### Build OBS Plugin (System-wide Install) Source: https://looking-glass.io/docs/B7/obs Compiles the Looking Glass OBS plugin from source, installing it system-wide. This process is similar to the user install but omits the USER_INSTALL flag during CMake configuration. ```bash mkdir obs/build cd obs/build cmake ../ make ``` -------------------------------- ### Build Windows Installer with NSIS Source: https://looking-glass.io/docs/B7/build Uses the makensis command to build the Windows installer package from the provided NSIS script. ```shell cd host/build/platform/Windows makensis installer.nsi ``` -------------------------------- ### Install Looking Glass Build Dependencies with APT Source: https://looking-glass.io/docs/B7/_sources/build Installs the required packages for building Looking Glass on Debian-based systems using the apt-get package manager. It includes a warning about potential conflicts with PipeWire and PulseAudio. ```bash apt-get install binutils-dev cmake fonts-dejavu-core libfontconfig-dev \ gcc g++ pkg-config libegl-dev libgl-dev libgles-dev libspice-protocol-dev \ nettle-dev libx11-dev libxcursor-dev libxi-dev libxinerama-dev \ libxpresent-dev libxss-dev libxkbcommon-dev libwayland-dev wayland-protocols \ libpipewire-0.3-dev libpulse-dev libsamplerate0-dev ``` -------------------------------- ### Configure QEMU for SPICE Clipboard Sync Source: https://looking-glass.io/docs/B7/install_libvirt Sets up QEMU arguments to enable SPICE communication for clipboard synchronization. It involves adding a virtio-serial PCI device and a serial port connected to the vdagent. ```bash -device virtio-serial-pci \ -chardev spicevmc,id=vdagent,name=vdagent \ -device serialport,chardev=vdagent,name=com.redhat.spice.0 ``` -------------------------------- ### Configure libvirt for SPICE Clipboard Sync Source: https://looking-glass.io/docs/B7/install_libvirt Configures libvirt XML to enable SPICE communication for clipboard synchronization via a virtio-serial channel. This automatically adds the necessary VirtIO Serial device. ```xml
``` -------------------------------- ### Example Log Output for IVSHMEM Devices Source: https://looking-glass.io/docs/B7/usage This example demonstrates how IVSHMEM devices are listed in the `looking-glass-host.txt` log file. It shows the device index, bus, slot, and function, with an asterisk indicating the currently selected device. ```Log [I] 19989544 … IVSHMEM 0 on bus 0x6, device 0x3, function 0x0 [I] 19990438 … IVSHMEM 1* on bus 0x6, device 0x5, function 0x0 ``` -------------------------------- ### Add SPICE Audio Device Configuration (XML) Source: https://looking-glass.io/docs/B7/_sources/install_libvirt XML snippet to add an Intel HDA audio device with SPICE audio support to a libvirt VM configuration. ```xml