# Building DEB packages

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

Debian and Ubuntu also ships xpra 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 libxres-dev \
                    libxkbfile-dev \
                    python-all-dev \
                    pandoc \
                    libsystemd-dev

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

To be able to run xpra, you are likely to need:

    apt-get install xvfb python3-cairo python3-gi-cairo \
        python3-opengl python3-lz4 python3-rencode python3-pil

### Optional:

Extra codecs

See picture 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

HTML5 client

for more details, see html5 client

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

Client OpenGL acceleration

OpenGL

    apt-get install python3-opengl

Network layer

For more details, see network.

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

SSH:

    apt-get install openssh-client sshpass python3-paramiko

misc extras

python libraries:

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

X11:

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

authentication modules

For more details, see authentication.

    apt-get install python3-kerberos python3-gssapi

audio forwarding

See 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

printer forwarding

See printing

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

## 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/xpra ./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.