[buildd-tools-devel] Bug#599518: Bug#599518: schroot: feature request: ssh-like -X option

Roger Leigh rleigh at codelibre.net
Sat Oct 9 10:32:49 UTC 2010


On Fri, Oct 08, 2010 at 12:19:28PM +0100, David Laban wrote:
> http://www.debian-administration.org/articles/566 provides a wrapper script
> for launching schroot with X enabled. It would be good if schroot supported
> this natively via a command line flag, rather than requiring the user to
> google for the answer and potentially come up with an insecure solution.
> 
> Does the approach given in the article look like the right one?

I think there's a better approach now.  schroot 1.4 provides a
"desktop" configuration profile specifically for running X
applications.  Look at /etc/schroot/desktop.  Just set
script-config=/etc/schroot/desktop/config (you might need to
double-check the path).

The only change this makes is to bind mount the directory under
/var used for X socket connections.  This means X applications in
the chroot can then automatically use the display.  You do still
need to use -p so the environment is kept (which contains the
X socket path), but that's all you need.

Please do let me know if this isn't sufficient for your needs, and
any extra details can be added to the desktop "profile".


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20101009/5daf932b/attachment.pgp>


More information about the Buildd-tools-devel mailing list