#183863 allow easy X connection between `pbuilder login` and the outside system

#183863#5
Date:
2003-03-07 20:57:37 UTC
From:
To:
It is straightforward to connect to a parent X server on DISPLAY=:0.0
within a "pbuilder login" environment:

 Outside chroot:

   mkdir /var/cache/pbuilder/build/XXX/tmp/X11-unix
   ln -s /tmp/X11-unix/* /var/cache/pbuilder/build/XXX/tmp/X11-unix/
   xauth list $DISPLAY

 and then either this inside chroot:

   apt-get install xbase-clients (for xauth)
   xauth add $DISPLAY -see-above-

 or this outside:

   xauth -f /var/cache/pbuilder/build/XXX/root/.Xauthority add `xauth list $DISPLAY`

It would be convenient if this process were automated, so by eg going
"pbuilder login --xclients" one could get a pbuilder chroot shell that
can run X clients.

#183863#10
Date:
2003-03-09 08:33:12 UTC
From:
To:
Hmm.. thanks.

I think this is another case that calls for "external hooks",
so this actually gives me motivation to include the patch for
external hooks.


Until that support is included, use of X over ssh is one
way of doing the similar thing (which works even on user-mode-linux
setups)

regards,
	junichi

#183863#15
Date:
2003-05-30 03:10:10 UTC
From:
To:
Really slowly though!

(Also you can't fully test things that use X shared memory for speed,
like action games and movie players.)

#183863#20
Date:
2004-02-22 23:20:13 UTC
From:
To:
Hi,


 pbuilder login --bindmounts /tmp/.X11-unix/

will do half of the work now.

What's the remaining task ?

I have an impression that it should be possible to create
a 'pbuilder execute' script.



regards,
	junichi