Thierry Vignaud a écrit :
On 8 August 2011 06:42, andre999<[email protected]>  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:

Thanks for your detailed response.
It lets me run everything.
(Just chroot $CHROOT
 gives me a terminal in chroot, which is what I wanted.)

How do I restrict a chroot session to non-root privileges, so I can safely do things like build packages locally ?
I tried logging into my account, but it doesn't seem to work.

--
André

Reply via email to