xpra icon
Bug tracker and wiki

Changes between Initial Version and Version 1 of Building/Raspbian


Ignore:
Timestamp:
03/25/18 15:29:18 (17 months ago)
Author:
Antoine Martin
Comment:

based on #1777

Legend:

Unmodified
Added
Removed
Modified
  • Building/Raspbian

    v1 v1  
     1= Building Xpra on Raspbian =
     2
     3For general information, see [/wiki/Building] first.
     4
     5[[BR]]
     6
     7{{{#!div class="box"
     8== Introduction ==
     9These instructions are valid for Raspbian Stretch and are based on this gist: [https://gist.github.com/xaviermerino/5bb83e0b471e67beaea6d5eeb80daf8c Installing Xpra on a Raspberry Pi from Source] and #1777.
     10}}}
     11
     12
     13{{{#!div class="box"
     14== Install The Dependencies ==
     15Install these dependencies as root:
     16* build dependencies:
     17{{{
     18apt-get install libx11-dev libxtst-dev libxcomposite-dev \
     19    libxdamage-dev libxkbfile-dev xauth x11-xkb-utils xserver-xorg-video-dummy \
     20    python-all-dev python-gobject-dev python-gtk2-dev cython
     21    libx264-dev libvpx-dev node-uglify yui-compressor
     22}}}
     23* decent set of runtime dependencies:
     24{{{
     25apt-get install python-lz4 python-cryptography
     26pip install pyopengl pyopengl-accelerate rencode \
     27    netifaces websocket-client websockify pillow
     28}}}
     29}}}
     30
     31
     32{{{#!div class="box"
     33== Xpra Source ==
     34
     35Download the latest source release from [https://xpra.org/src/] or even the current development version ([/wiki/Source]), build it and install it (as root).
     36ie for {{{xpra-2.2.5.tar.xz}}}:
     37{{{
     38wget https://xpra.org/src/xpra-2.2.5.tar.xz
     39tar -Jxf xpra-2.2.5.tar.xz
     40rm xpra-2.2.5.tar.xz
     41cd xpra-2.2.5/
     42python2 ./setup.py build
     43python2 ./setup.py install
     44}}}
     45}}}
     46
     47
     48{{{#!div class="box"
     49== Fixup Xvfb Path ==
     50
     51The Raspbian Stretch distribution is based on Debian Stretch, but uses different Xorg workarounds, so we have to manually update the Xorg path detected during the build.
     52
     53Edit {{{/usr/local/etc/xpra/conf.d/55_server_x11.conf}}} and change:
     54{{{
     55xvfb = /usr/lib/xorg/Xorg -noreset -novtswitch ... etc
     56}}}
     57to
     58{{{
     59xvfb = /usr/bin/Xorg -noreset -novtswitch ... etc
     60}}}
     61}}}
     62
     63
     64{{{#!div class="box"
     65== displayfd workaround ==
     66
     67Because of the Raspberry Pi's limited resources, getting an answer from displayfd might take more than the ten seconds specified as the standard timeout. In order to change this, you can start xpra like this:
     68{{{
     69XPRA_DISPLAY_FD_TIMEOUT=30 xpra start ...
     70}}}}
     71
     72Alternatively, always specify a display when use the xpra "start" subcommand.
     73}}}