[Mageia-dev] Problems setting up chroot

Thierry Vignaud thierry.vignaud at gmail.com
Tue Aug 9 11:39:45 CEST 2011


On 8 August 2011 06:42, andre999 <andr55 at laposte.net> wrote:
> Everything seemed to install ok, but when I try to run a gui application
> (such as rpmdrake) under chroot, I get the message :
>
> "No protocol specified
> Cannot be run in console mode."

Which is expected

> If anyone has an idea what I might be missing, it would be appreciated :)

One way to run X11 stuff from a chroot is to run:
CHROOT=/where/is/my/chroot
xhost +SI:localuser:root
mount --bind /tmp/.X11-unix/ $CHROOT/tmp/.X11-unix/
chroot $CHROOT rpmdrake/gedit/firefox/...


If instead you want to allow all local users, you could alternatively
replace the xhost call by:
xhost + local:


More information about the Mageia-dev mailing list