chroot x

Francois-Denis Gonthier neumann at lostwebsite.net
Fri May 12 03:34:02 UTC 2006


On Thursday 11 May 2006 17:34, Andrey Vul wrote:
> How do you enable X server in a chroot (amd64 install, i386 chroot @
> /chroot)
> WITHOUT xdcmp

If your /home is bind-mounted in the chroot, use dchroot -d, which preserves 
the required environment variable ($DISPLAY).

If your /home is not bind-mounted in the chroot, then you'll need to use 
remote access by configuring your X server to listen on a TCP port and 
setting $DISPLAY accordingly.

For daily use, I recommend bind-mounting /home and /tmp in the chroot.  Making 
a dchroot'able chroot is a bit of a PITA, but this wiki page [1] show an easy 
recipe.  I've used it several times succesfully.

If your chroot is only for testing use, then you might want to setup your X 
server to listen on TCP.  Be sure to firewall it from the outside. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-ca/attachments/20060511/36b9b7bc/attachment.pgp>


More information about the ubuntu-ca mailing list