[winswitch] How to install local unprivileged Xpra server?

Antoine Martin antoine at nagafix.co.uk
Sun Jan 28 03:47:06 GMT 2018


On 28/01/18 02:01, Ben Mishkanian wrote:
> 55_server_x11.conf has the following xvfb command:
> xvfb = Xvfb +extension GLX +extension Composite -screen 0
> 5760x2560x24+32 -dpi 96 -nolisten tcp -noreset -auth $XAUTHORITY
OK
> Setting XPRA_SYSCONF_DIRS seems to have worked! It looks like the server
> is running, at least. But I haven't been able to get my Windows client
> to connect. I set it to SSH mode and after putting in my password
> nothing happens for a few seconds and the client window comes back
> saying "Connection lost".
Try running the client from the command line and look for clues in the
output, maybe also keep an eye on your ssh server log to verify that the
client does make an ssh connection with the correct credentials.
Something like:
Xpra_cmd.exe attach ssh://username:password@host:sshport/
Assuming you only have a single display active (verify by running "xpra
list") this should work, otherwise specify one:
Xpra_cmd.exe attach ssh://username:password@host:sshport/DISPLAY

> The server prints:
> [bmishkania at ussd-prd-rdln01 ~]$
> XPRA_SYSCONF_DIRS=/home/bmishkania/bin/xpra-2.2.3/etc/xpra/ xpra start
> --start=~/bin/firefox/firefox --daemon=no
> 2018-01-27 10:41:51,460 cannot access python uinput module:
> 2018-01-27 10:41:51,460  No module named uinput
> 2018-01-27 10:41:51,957 Warning: failed to create socket directory
> '/run/xpra'
> 2018-01-27 10:41:51,958  [Errno 13] Permission denied: '/run/xpra'
> 2018-01-27 10:41:51,961 created unix domain socket:
> /run/user/109999/xpra/ussd-prd-rdln01-100
> 2018-01-27 10:41:52,264 created unix domain socket:
> /home/bmishkania/.xpra/ussd-prd-rdln01-100
> 2018-01-27 10:41:52,265 Warning: cannot create socket
> '/run/xpra/ussd-prd-rdln01-100'
> 2018-01-27 10:41:52,265  [Errno 2] No such file or directory
> 2018-01-27 10:41:52,265  /run/xpra does not exist
> 2018-01-27 10:41:52,266  user 'bmishkania' is a member of groups: no groups!
> 2018-01-27 10:41:52,266   missing 'xpra' group membership?
> 2018-01-27 10:41:52,267   failed to query path information for
> '/run/xpra': [Errno 2] No such file or directory: '/run/xpra'
> 2018-01-27 10:41:52,689 Warning: zlib is the only compressor enabled
> 2018-01-27 10:41:52,689  install and enable lzo or lz4 support for
> better performance
Once you get going, you should do something about this warning and try
to stuff the python-lz4 (and lz4 if not installed) RPM contents into
your local home environment. The performance with zlib is pretty bad.

> 2018-01-27 10:41:52,701 Warning: your version of Python Imaging Library
> is well out of date
> 2018-01-27 10:41:52,701  version 1.1.7 is not supported, your mileage
> may vary
Same with this one: we ship updated Pillow packages.

> 2018-01-27 10:41:52,824 Error importing x264 encoder (enc_x264)
> 2018-01-27 10:41:52,824  libx264.so.152: cannot open shared object file:
> No such file or directory
Same with this one: we ship an x264-xpra package, and libvpx-xpra...

You may also hit crashes when running without some of those codecs
dependencies installed if the system provides a different version of the
same library. (ie: a different version of libvpx)

> 2018-01-27 10:41:52,825 pointer device emulation using XTest
> 2018-01-27 10:41:53,429 serving html content from:
> /home/bmishkania/bin/xpra-2.2.3/share/xpra/www
> 2018-01-27 10:41:53,564 Warning: webcam forwarding is disabled
> 2018-01-27 10:41:53,565  the virtual video directory
> '/sys/devices/virtual/video4linux' was not found
> 2018-01-27 10:41:53,565  make sure that the 'v4l2loopback' kernel module
> is installed and loaded
> 2018-01-27 10:41:53,565 found 0 virtual video devices for webcam forwarding
> 2018-01-27 10:41:53,596 pulseaudio server started with pid 3276
There's nothing wrong here, except that there are no connection attempts
logged.

Cheers
Antoine



More information about the shifter-users mailing list