Re: X programs inside chroot
hi, I solved my own problem, Here is the solution: I bind mounted /tmp in the chroot (e.g. mount --bind /tmp /chroots/sarge-ia32/tmp). Why did this solve the problem? * The X server on the host did not have a TCP/IP listener, only a unix * domain listener (e.g. /tmp/.X11-unix) which was not available in the * chroot until I bind mounted /tmp. * Another solution would be to have the X server listen on an IP * address,which I disremember how to do off of the top of my head. maybe copying /etc/hosts to chroot would help as well? i think i resolved my problems in this way (and i didn't see hosts in the list of your copied files) - i don't have tmp bindmounted... regards, -- Lubos [EMAIL PROTECTED] http://www.lubos.vrbka.net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
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 things... First, on your actual box within X, run Xnest -ac :1 Second, with in your CHROOT, run export DISPLAY=localhost:1 or export DISPLAY=127.0.0.1:1 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. -Stephen -Original Message- From: James Richardson [mailto:[EMAIL PROTECTED] Sent: Monday, October 02, 2006 10:21 PM To: debian-user@lists.debian.org Subject: X programs inside chroot Greetings! 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 http://apt.lan0:/debian 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 xterm. TIA James richardson
Re: X programs inside chroot
James Richardson wrote: Greetings! 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? I solved my own problem, Here is the solution: I bind mounted /tmp in the chroot (e.g. mount --bind /tmp /chroots/sarge-ia32/tmp). Why did this solve the problem? * The X server on the host did not have a TCP/IP listener, only a unix * domain listener (e.g. /tmp/.X11-unix) which was not available in the * chroot until I bind mounted /tmp. * Another solution would be to have the X server listen on an IP * address,which I disremember how to do off of the top of my head. Oh, I build the chroot using: cdebootstrap -f minimal --arch i386 sarge /chroots/sarge-ia32 http://apt.lan0:/debian 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 xterm. TIA James richardson signature.asc Description: Digital signature
Re: X programs inside chroot
James Richardson wrote: Greetings! 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? I solved my own problem, Here is the solution: I bind mounted /tmp in the chroot (e.g. mount --bind /tmp /chroots/sarge-ia32/tmp). Why did this solve the problem? * The X server on the host did not have a TCP/IP listener, only a unix * domain listener (e.g. /tmp/.X11-unix) which was not available in the * chroot until I bind mounted /tmp. * Another solution would be to have the X server listen on an IP * address,which I disremember how to do off of the top of my head. Oh, I build the chroot using: cdebootstrap -f minimal --arch i386 sarge /chroots/sarge-ia32 http://apt.lan0:/debian 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 xterm. TIA James richardson signature.asc Description: Digital signature