On Mon, Jul 03, 2006 at 10:13:07AM -0500, Alexander Horn wrote:
> Ok I got it the X11 & chroot issue resolved. Here is what I did in
> case someone has the same problem:
> 
> EDIT /etc/fstab on your original system (non-chroot)
> 
> # Setup chroot system
> 
> proc-exp        /mnt/exp/proc   proc    none            0       0
> /tmp            /mnt/exp/tmp    none    bind            0       0
> /home           /mnt/exp/home   none    bind            0       0
> 
> For convenience, I have created an alias in my .bashrc:
> 
> alias exp='xhost local:localhost; sudo chroot /mnt/exp /bin/bash'
> 
> Make sure you have the xclient stuff installed inside the chroot.
> 
> I hope this helps,
> Alex

A better solution is to make a bind mount of /tmp in your chroot.
Then you can actually use the X11 socket.  Obviously you'll need
your home in the chroot (another bind mount) for your .Xauthority.

BTW, on a Debian system you can use dchroot to allow non-root
users to chroot into selected areas you set up.  It's very
convenient.

Don

-- 
Don Bindner <[EMAIL PROTECTED]>

-----------------------------------------------------------------
To get off this list, send email to [EMAIL PROTECTED]
with Subject: unsubscribe
-----------------------------------------------------------------

Reply via email to