[winswitch] How to install local unprivileged Xpra server?

Antoine Martin antoine at nagafix.co.uk
Wed Jan 24 09:26:06 GMT 2018


Please always CC the mailing list.

On 24/01/18 13:39, Ben Mishkanian wrote:
> Thank you for the quick response!
> 
> 
> It is CentOS 7.4.1708. You're right, I used the wrong PYTHONPATH. Oops.
> It allows server commands now, but now there's a new error. Here is what
> I did:
> 
> 
> ./setup.py -v install --home=/home/bmishkania/bin/xpra-2.2.3/
> 
> export PYTHONPATH=/home/bmishkania/bin/xpra-2.2.3/lib64/python:$PYTHONPATH
> 
> xpra start --start=~/bin/firefox/firefox
This should not work unless you've also installed xpra somewhere on the
$PATH or modified $PATH.
You could also use the path to somewhere/install/bin/xpra directly.

> It prints:
> 
> Warning: cannot use the system proxy for 'start' subcommand,
Harmless warning, you don't have a system service, it will fallback to
self-daemonizing.

>  failed to connect to '/run/xpra/system':
>  [Errno 2] No such file or directory
Harmless warning because you are missing the tmpfiles.d bits.

> Entering daemon mode; any further errors will be reported to:
>   /run/user/109999/xpra/S12370.log
> 
> Here is the log file:
> 2018-01-23 22:12:33,912 cannot access python uinput module:ESC[0m
> 2018-01-23 22:12:33,912  No module named uinputESC[0m
Harmless, you don't have uinput installed. You wouldn't be able to use
it anyway without the system service without also modifying the device
permissions.

> Failed to rename log file "/run/user/109999/xpra/Xorg.S12370.log" to
> "/run/user/109999/xpra/Xorg.S12370.log": No such file or directory
Harmless, that's a known Xorg bug languishing upstream.

> X.Org X Server 1.19.3
> Release Date: 2017-03-15
> X Protocol Version 11, Revision 0
> Build Operating System:  3.10.0-514.16.1.el7.x86_64
> Current Operating System: Linux ussd-prd-rdln01
> 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 x86_64
> Kernel command line: BOOT_IMAGE=vmlinuz initrd=initrd
> rdblacklist=nouveau net.ifnames=0 biosdevname=0 user_namespace.enable=1
> mlx4_core.port_type_array=2,2
> ip=10.12.144.15:10.12.144.11:10.12.144.1:255.255.252.0
> BOOTIF=01-0c-c4-7a-1d-ae-de
> Build Date: 05 August 2017  06:19:43AM
> Build ID: xorg-x11-server 1.19.3-11.el7
> Current version of pixman: 0.34.0
>         Before reporting problems, check http://wiki.x.org
>         to make sure that you have the latest version.
> Markers: (--) probed, (**) from config file, (==) default setting,
>         (++) from command line, (!!) notice, (II) informational,
>         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> (++) Log file: "/run/user/109999/xpra/Xorg.S12370.log", Time: Tue Jan 23
> 22:12:34 2018
> (++) Using config file:
> "/home/bmishkania/bin/localPython/etc/xpra/xorg.conf"
> (==) Using system config directory "/usr/share/X11/xorg.conf.d"
> (EE)
> Fatal server error:
> (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
> (EE)
> (EE)
> Please consult the The X.Org Foundation support
>          at http://wiki.x.org
>  for help.
> (EE) Please also check the log file at
> "/run/user/109999/xpra/Xorg.S12370.log" for additional information.
> (EE)
> (EE) Server terminated with error (1). Closing log file.
> xpra initialization error:
>  xpra_Xdummy: did not provide a display number using displayfd
xpra_Xdummy failed to run, there could be a number of reasons for that.
The easiest fix for you might just be to switch to Xvfb:
./setup.py --without-Xdummy install --home=....

Cheers
Antoine

> 
> 
> Any ideas how I can fix this?
> 
> Thank you,
> Ben
> 
> ------------------------------------------------------------------------
> *From:* shifter-users <shifter-users-bounces at lists.devloop.org.uk> on
> behalf of Antoine Martin via shifter-users
> <shifter-users at lists.devloop.org.uk>
> *Sent:* Tuesday, January 23, 2018 9:57 PM
> *To:* shifter-users at lists.devloop.org.uk
> *Subject:* Re: [winswitch] How to install local unprivileged Xpra server?
>  
> On 24/01/18 12:47, Ben Mishkanian via shifter-users wrote:
>> Hi,
>> 
>> 
>> I am trying to build and install from source an Xpra 2.2.3 server as an unprivileged user on CentOS 7. I ran setup.py and it seems to complete fine, although it prints a bunch of brotli errors saying it failed to minify various files.
> You can ignore those errors or turn off the brotli feature, see:
> ./setup.py --help
> 
>> In any case it produces the xpra binary, but when I run `xpra -h` it says (This xpra installation does not support starting local servers.)
> Please always include the exact command lines that you have used so we
> can help you with that.
> Also specify which CentOS 7 you are using, CentOS versions older than
> 7.2 are not supported in xpra versions 2.x and later, see:
> https://www.xpra.org/trac/wiki/Platforms
> Platforms – Xpra <https://www.xpra.org/trac/wiki/Platforms>
> www.xpra.org
> Platforms. Unless otherwise stated, all the operating systems listed
> here support all versions of xpra. The only architectures officially
> tested and supported are ...
> 
> 
> 
> 
> Be aware that your home made build will be severely degraded and may not
> work as expected. (performance, features, security, etc)
> 
>> How can I find out why it can't start local servers? setup.py showed that the "server" build switch is set to "Y".
> My guess is that you're not setting the PYTHONPATH correctly.
> You should be installing into a directory:
> ./setup.py install --home=./install
> Then adjusting PATH and PYTHONPATH accordingly.
> 
> Cheers
> Antoine
>> Thank you,
>> 
>> Ben
>> _______________________________________________
>> shifter-users mailing list
>> shifter-users at lists.devloop.org.uk
>> http://lists.devloop.org.uk/mailman/listinfo/shifter-users
> shifter-users Info Page - devloop.org.uk
> <http://lists.devloop.org.uk/mailman/listinfo/shifter-users>
> lists.devloop.org.uk
> General discussion and help on using Window Switch. To see the
> collection of prior postings to the list, visit the shifter-users Archives.
> 
> 
> 
>> 
> 
> _______________________________________________
> shifter-users mailing list
> shifter-users at lists.devloop.org.uk
> http://lists.devloop.org.uk/mailman/listinfo/shifter-users
> shifter-users Info Page - devloop.org.uk
> <http://lists.devloop.org.uk/mailman/listinfo/shifter-users>
> lists.devloop.org.uk
> General discussion and help on using Window Switch. To see the
> collection of prior postings to the list, visit the shifter-users Archives.
> 
> 
> 




More information about the shifter-users mailing list