xpra icon
Bug tracker and wiki

Opened 8 years ago

Closed 8 years ago

Last modified 5 years ago

#10 closed task (fixed)

Xdummy standalone and packaging

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: critical Milestone: 0.0.7.x
Component: server Version: 0.0.7.35
Keywords: Cc: leho@…

Description (last modified by Antoine Martin)

There are a number of issues that can only be solved by having a proper supported Xvfb server with modern extension support (randr, etc), ie: #1, #2 (and potentially others - original winswitch ticket)

Although this is not strictly an Xpra thing, and is unlikely to live in the this xpra source repository, it is best to record this somewhere.
There are number of tasks:

  • create an xorg project based on xorg-server, but with the ability to specify absolute config paths and dummy defaults
  • merge it upstream and/or package it
  • add code to xpra so it will use randr to resize the virtual framebuffer to the exact screen dimension of the client (currently resizes to the nearest size bigger than the client's)

All the info should now be here: wiki/Xdummy]

Attachments (3)

Xdummy-patches-5.8.tar.bz2 (4.3 KB) - added by Antoine Martin 7 years ago.
patches required for building Xdummy for centos 5.8
Xdummy-patches-6.2.tar.bz2 (4.3 KB) - added by Antoine Martin 7 years ago.
patches required for building Xdummy for centos 6.2
Xdummy-fedora-patches.tar.bz2 (5.2 KB) - added by Antoine Martin 7 years ago.
patches required for building Xdummy on Fedora

Download all attachments as: .zip

Change History (25)

comment:1 Changed 8 years ago by Antoine Martin

Description: modified (diff)
Type: defecttask

comment:2 Changed 8 years ago by Antoine Martin

Status: newaccepted

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.

Last edited 8 years ago by Antoine Martin (previous) (diff)

comment:3 Changed 8 years ago by Antoine Martin

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
Last edited 8 years ago by Antoine Martin (previous) (diff)

comment:4 Changed 8 years ago by Antoine Martin

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

comment:5 Changed 8 years ago by Antoine Martin

... 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...)

comment:6 Changed 8 years ago by Antoine Martin

Resolution: fixed
Status: acceptedclosed

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

comment:7 Changed 8 years ago by Antoine Martin

xf86-video-dummy 0.3.5 has been released

comment:8 Changed 8 years ago by Antoine Martin

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

comment:9 Changed 8 years ago by Antoine Martin

Component: clientserver
Milestone: current0.0.7.x

comment:10 Changed 8 years ago by Antoine Martin

Version: 0.0.7.35

comment:11 Changed 8 years ago by https://me.yahoo.com/a/Ft5BHTVktN6dS7LFG2ZUKJr3mQ--#4cb6e

Cc: leho@… added

Changed 7 years ago by Antoine Martin

Attachment: Xdummy-patches-5.8.tar.bz2 added

patches required for building Xdummy for centos 5.8

Changed 7 years ago by Antoine Martin

Attachment: Xdummy-patches-6.2.tar.bz2 added

patches required for building Xdummy for centos 6.2

Changed 7 years ago by Antoine Martin

patches required for building Xdummy on Fedora

comment:12 Changed 7 years ago by Antoine Martin

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.

comment:13 Changed 7 years ago by Antoine Martin

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)

comment:14 Changed 7 years ago by Antoine Martin

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.

comment:15 Changed 7 years ago by Antoine Martin

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

comment:16 Changed 7 years ago by Antoine Martin

More Xdummy work now in #186

comment:17 Changed 7 years ago by redneb

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.

comment:18 Changed 7 years ago by Antoine Martin

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.

comment:19 Changed 7 years ago by Antoine Martin

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.

Last edited 7 years ago by Antoine Martin (previous) (diff)

comment:20 Changed 6 years ago by Antoine Martin

If you want to know more about Xdummy and how to configure it, see wiki/Xdummy

comment:21 Changed 6 years ago by Antoine Martin

Description: modified (diff)

comment:22 Changed 5 years ago by Antoine Martin

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

Note: See TracTickets for help on using tickets.