GithubHelp home page GithubHelp logo

Comments (19)

totaam avatar totaam commented on May 21, 2024

Posted an RFC to the xorg list, includes pointers to some patches which can be used to generate a /usr/bin/Xdummy binary suitable for Xpra.

from xpra.

totaam avatar totaam commented on May 21, 2024

There are now binary packages available here (fedora, centos, debian, ubuntu)

To test that your Xorg supports the new non-root options, run:

wget http://xpra.org/src/Xdummy/xorg.conf
Xorg +extension GLX +extension RANDR +extension RENDER -logfile log -config ./xorg.conf :200

Note: you must ensure that Xorg is not suid.
On Fedora (and possibly others) this means that you have to copy the existing binary, ie:

sudo cp /usr/bin/Xorg /usr/local/bin/Xorg

from xpra.

totaam avatar totaam commented on May 21, 2024

You can help get this moving by testing the packages (or building from source with the patch) and providing "Tested-by:" tags for the latest patch, like this one

from xpra.

totaam avatar totaam commented on May 21, 2024

... or "Reviewed-by" tags like this one

Please help get this merge with a quick test (there are binary packages built - so it doesn't take long...)

from xpra.

totaam avatar totaam commented on May 21, 2024

The changes have been merged upstream in commit ead968a4300c0adeff89b9886e888b6d284c75cc
xf86-video-dummy should be tagged before the next server release too, so we can then automatically enable Xdummy with a simple X server version test:

$ X -version 2>&1 | grep "X Server"
X.Org X Server 1.11.2

Starting with soon-to-be-released 1.12

from xpra.

totaam avatar totaam commented on May 21, 2024

xf86-video-dummy 0.3.5 has been released

from xpra.

totaam avatar totaam commented on May 21, 2024

For more information on Xdummy, see the top-level page: Xdummy

from xpra.

totaam avatar totaam commented on May 21, 2024

2012-06-22 08:43:38: antoine uploaded file Xdummy-patches-5.8.tar.bz2 (4.3 KiB)

patches required for building Xdummy for centos 5.8

from xpra.

totaam avatar totaam commented on May 21, 2024

2012-06-22 08:43:52: antoine uploaded file Xdummy-patches-6.2.tar.bz2 (4.3 KiB)

patches required for building Xdummy for centos 6.2

from xpra.

totaam avatar totaam commented on May 21, 2024

2012-06-22 08:46:35: antoine uploaded file Xdummy-fedora-patches.tar.bz2 (5.2 KiB)

patches required for building Xdummy on Fedora

from xpra.

totaam avatar totaam commented on May 21, 2024

Added Xdummy packages for CentOS 5.8 and 6.2 here, the CentOS and Fedora specific patches are archived in this ticket. The Fedora binaries will no longer be updated since Fedora 17 is the current release and includes the patches already.

from xpra.

totaam avatar totaam commented on May 21, 2024

As of r1286 (+ fix in r1295), we install an xpra.conf with Xdummy support if the distro supports it (ie: if Xorg version is >= 1.12 and if the Xorg binary is not suid)

This works for recent Debian / Ubuntu but not for Fedora/CentOS as those ship with a suid /usr/bin/Xorg (no easy way around that - we cannot copy the binary from the specfile's post-install scripts as was done in r1256 and later reverted, as system updates would break our copy... and also it wouldn't get updated)

from xpra.

totaam avatar totaam commented on May 21, 2024

We could provide support for Xdummy on Fedora 17 (and others with suid-only binaries) by copying the /usr/bin/Xorg binary every time before we use it, something like /usr/bin/xpra_Xvfb:

#!/bin/bash
mkdir -p ~/.xpra
cp /usr/bin/Xorg ~/.xpra/Xorg
~/.xpra/Xorg "$@"

I have filed a bug with Fedora asking for a non-suid Xorg to be installed.

from xpra.

totaam avatar totaam commented on May 21, 2024

r1549 adds support for suid Xorg installations (Fedora, etc)

from xpra.

totaam avatar totaam commented on May 21, 2024

More Xdummy work now in #186

from xpra.

totaam avatar totaam commented on May 21, 2024

The solution of copying /usr/bin/Xorg does not work with gentoo because the executable is installed as -rws--x--x. If I'm not mistaken this is a common practice, ie to make root suid executables not readable by anybody else. Gentoo does it automatically for all such executables.

from xpra.

totaam avatar totaam commented on May 21, 2024

redneb: thanks, this was already discussed on the mailing list (see here) and the fix is in r1984: gentoo users just won't be able to use Xdummy until Xorg is either not suid or readable, sorry.

from xpra.

totaam avatar totaam commented on May 21, 2024

Looks like there may be some useful randr changes coming to Xvfb (maybe in Xorg 1.14?):
bug #26391 and this patch

It will be a while before this is shipped in any distro though.

from xpra.

totaam avatar totaam commented on May 21, 2024

Follow up and related tickets: #601, #732, #728, #349, #56

from xpra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.