Changes

Jump to navigation Jump to search

Installation on other distributions

1,015 bytes added, 03:57, 7 May 2021
==== Installing Build Dependencies ====
* binutils-dev (Disable with <code>cmake -DENABLE_BACKTRACEThese required libraries and tools should be installed first. =no</code>)==== Required Dependencies ===== 
* cmake
* gcc | clang
* fonts-freefont-ttf
* libegl-dev
* libgl-dev
* libfontconfig1-dev
* libgmp-dev
* libsdl2-dev
* libsdl2-ttf-dev
* libspice-protocol-dev
* libx11-dev (Disable with <code>cmake -DENABLE_X11=no</code>)make
* nettle-dev
* waylandpkg-config ====== May be disabled ====== These dependencies are required by default, but may be omitted if their feature is disabled when running [[#Building|cmake]].* Disable with <code>cmake -DENABLE_BACKTRACE=no</code>** binutils-dev * Disable with <code>cmake -DENABLE_X11=no</code>** libx11-dev** libxfixes-dev** libxi-dev** libxss-protocols (dev* Disable with <code>cmake -DENABLE_WAYLAND=no</code>)** libwayland-bin** libwayland-dev** wayland-protocols
===== Debian (and maybe Ubuntu) =====
</syntaxhighlight>
The memory size (show as 32 in the example above) may need to be adjusted as per [[Installation#Determining_Memory|Determining Memory]] section.
==== Spice Server ====
If you would like to use Spice to give you keyboard and mouse input along with clipboard sync support, make sure you have a <code><graphics type='spice'></code> device, then:
* Find your <code><video></code> device, and set <code><model type='none'/></code>
** If you can't find it, make sure you have a <code><graphics></code> device, save and edit again
** On older libvirt versions, just disable the device in Windows Device Manager
</syntaxhighlight>
The memory size (show as 32 in the example above) may need to be adjusted as per [[Installation#Determining_Memory|Determining Memory]] section.
=== Determining Memory ===
<code>
width x height x 4 x 2 = total bytes
</code>
 
<code>
total bytes / 1024 / 1024 = total megabytes + 2
</code>
<code>
1920 x 1080 x 4 x 2 = 16,588,800 bytes
</code>
 
<code>
16,588,800 / 1024 / 1024 = 15.82 MB + 2 = 17.82
</code>
You must round this value up to the nearest power of two, which with the above example would be 32MB
It is suggested that you create the Note: This formula may be out of date. A 1440p display requires 64mb shared memory. The shared memory file before starting the VM with the appropriate permissions for your system, this only needs will be located in /dev/shm/looking-glass and will need to be done once at created on every boot time, for example (this is a sample script only, do otherwise it will have incorrect permissions. Looking glass will not use be able to run unless it has permissions to this without altering it for your requirements)file. You can create the shared memory file automatically by adding the following config file:
<code>
touch /devetc/shmtmpfiles.d/looking10-glass && chown user:kvm /dev/shm/looking-glass && chmod 660 /dev/shm/looking-glass.conf
</code>
 
Add the following content to the file:
 
<code>
<nowiki>#</nowiki>Type Path Mode UID GID Age Argument
 
f /dev/shm/looking-glass 0660 user kvm -
</code>
 
Be sure to set the UID to your local user. (Replace "user" with your user name)
== Looking Glass Service (Windows) ==
You must first run the Windows VM with the changes noted above in either the [[Installation#libvirt_Configuration|libvirt]] or [[Installation#Qemu_Commands|Qemu]] sections.
=== Installing the IVSHMEM Driver ===
Please note that you must obtain version 0.1.161 or later
 
If the installation of the driver results in warnings or errors about driver signatures, ensure secure boot is turned off for the virtual machine bios/uefi.
==== A note about IVSHMEM and Scream Audio ====
Start by downloading the correct version for your release from https://looking-glass.io/downloads. You can either choose between '''Official Releases''' which is is stable or '''Release Candidates''' that tries to be stable but has new features. '''Note:''' If your '''looking-glass-client''' was created by building from the '''master branch''' you have to pick the '''Bleeding Edge''' version.
Next, use 7Zip to extract the zip archiveusing the commit hash for the password. Then, run the "looking-glass-host-setup.exe" installer and click through it. By default, the installer will install a service that automatically starts the host application at boot. The installer can also be installed in silent mode with the "/S" switch. Other command line options for the installer are documented by running it with the "/h" switch. There is also an unofficial Chocolatey package available, install with "choco install looking-glass-host --pre"
The windows host application captures the windows desktop and stuffs the frames into the shared memory via the shared memory virtual device, without this Looking Glass will not function. It is critical that the version of the host application matches the version of the client application, as differing versions can be, and usually are, incompatible.
Anonymous user

Navigation menu