On Fri, Jun 25, 2010 at 01:46:41PM +0200, Josselin Mouette wrote: > Le jeudi 24 juin 2010 à 19:18 +0100, Roger Leigh a écrit : > > schroot is commonly used for this task, and I'm adding a "desktop" > > configuration profile, which I'd like to work "out of the box" to > > allow desktop applications to run inside a chroot. More detail > > is given below, and in the full bug report. > > > > Basically, I'd like to add whatever pieces are needed from the > > host system, be it bind mounting filesystems, making sure > > the needed services are accessible, copying over configuration > > etc. Anything that makes using a chroot more transparent and > > accessible to users is on the cards. If anyone has already > > added customisations to schroot to make this work, sharing your > > configuration details would also be useful. > > For GNOME, most things are done through X11 (with the root window), > D-Bus and GConf. This means you need: > * a bunch of environment variables > * /tmp for the X11 sockets, the session bus, GConf, seahorse and > gnome-keyring > * /var/run/dbus for the system bus > * starting with gdm3, /var/run/gdm3 for the xauth file > > You may also need (but I haven’t checked): > * /var/run/cups for printing > * /var/run/avahi-daemon > and some others that I’m forgetting. Thanks! I think we now have most of these. We don't preserve the environment by default (you have to use the -p option), but we could make that automatic in a future release by adding a new configuration option. We definitely have /tmp and all of /var/run so most of the above should be catered for. If anyone on the lists is using schroot for desktop applications, I'm currently uploaded schroot version 1.4.5-1 which adds a "desktop" configuration profile. Just set script-config=desktop/config in your chroot definition. I'd definitely appreciate any feedback about it. If there's anything missing that would be nice to have inside the chroot, please do let me know. 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.
Description: Digital signature