RE: X programs inside chroot
I may be wrong on this BUT...
I have just done a similar task for a LiveCD which I created and in
order to run X programs from within a CHROOT environment I had to do 2
First, on your actual box within X, run "Xnest -ac :1"
Second, with in your CHROOT, run "export DISPLAY=localhost:1" or
Than you should be able to startx within your chroot and see your CHROOT
X environment in the Xnest session on your main X environment.
From: James Richardson [mailto:firstname.lastname@example.org]
Sent: Monday, October 02, 2006 10:21 PM
Subject: X programs inside chroot
I have setup an i386 chroot (sarge) on my amd64 (also sarge) on my
laptop. However I cannot run X programs inside. I get the error can't
open display: :0.0.
I get the error from xterm and OpenOffice.
I have mount /proc inside the chroot.
At first I thought it may have been a permission problem, so I ran
xhost + on the X server to disable access control.
Can anyone help me out here?
Oh, I build the chroot using:
cdebootstrap -f minimal --arch i386 sarge /chroots/sarge-ia32
I then mounted /proc inside the chroot, copied /etc/resolv.conf,
/etc/passwd, /etc/group, /etc/shadow, /etc/apt/sources.list.
I then chrooted (chroot /chroots/sarge-ia32), installed openoffice and