Debian Ubuntu

The debian packaging files can be found here: packaging/debian.

Debian also ships packages, though their stable versions are completely out of date, broken and unsupported, they should not be used.

For general information, see building.

Build and runtime requirements

apt-get install libx11-dev libxtst-dev libxcomposite-dev libxdamage-dev \
                libxkbfile-dev \
                python-all-dev \
                pandoc

GTK3 for the server and GUI client:

apt-get install libgtk-3-dev python3-dev python3-cairo-dev python-gi-dev cython3

Also install some X11 utilities if not installed already:

apt-get install xauth x11-xkb-utils

Codecs

Basic picture codecs

apt-get install libturbojpeg-dev libwebp-dev python3-pil

for video support (x264 and vpx)

apt-get install libx264-dev libvpx-dev yasm

for using NVENC

apt-get install libnvidia-encode1 python3-numpy

ffmpeg based video codecs

apt-get install libavformat-dev libavcodec-dev libswscale-dev

Optional:

for the html5 client

apt-get install uglifyjs brotli libjs-jquery libjs-jquery-ui gnome-backgrounds

OpenGL

apt-get install python3-opengl

network layer

apt-get install python3-rencode python3-lz4 python3-dbus python3-cryptography \
                python3-netifaces python3-yaml python3-lzo

misc extras

apt-get install python3-setproctitle python3-xdg python3-pyinotify python3-opencv

misc X11

apt-get install libpam-dev quilt xserver-xorg-dev xutils-dev xserver-xorg-video-dummy xvfb keyboard-configuration

extra authentication modules

apt-get install python3-kerberos python3-gssapi

audio support and codecs

apt-get install gstreamer1.0-pulseaudio gstreamer1.0-alsa \
                gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
                gstreamer1.0-plugins-ugly

printing

apt-get install cups-filters cups-common cups-pdf python3-cups

SSH

apt-get install openssh-client sshpass python3-paramiko

DEB Packaging

Install the packaging tools

apt-get install devscripts build-essential lintian debhelper pandoc

Build DEBs

git clone https://github.com/Xpra-org/xpra
cd xpra
ln -sf ./packaging/debian .
debuild -us -uc -b

This builds fresh packages from git master. You can also use other branches, tags or download a source snapshot instead.

If you do not have CUDA installed, the build will fail until you remove usr/share/xpra/cuda/* from xpra.install