[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "cannot open display: :0.0" error when using schroot



Aniruddha wrote:
I have set up a schroot using this guide: http://alioth.debian.org/docman/view.php/30192/21/debian-amd64-howto.html#id292205 , but for some reason when I try to run a program I get the following error:

~$ schroot -p nero
W: Group ‘sbuild’ not found
I: [sid chroot] Running command: “nero”

(nero:456): Gtk-WARNING **: cannot open display: :0.0

I have set up a succesfull schroot before, the only difference now is
that I use sudo.

"DISPLAY=:0" doesn't work either:

(sid32)root@Desktop:/# export DISPLAY=:0
(sid32)root@Desktop:/# nero

(nero:4231): Gtk-WARNING **: cannot open display: :0

My schroot.conf
[sid]
description=Debian sid (unstable)
location=/var/chroot/sid
priority=3
users=rleigh,aniruddha
groups=sbuild,aniruddha
root-groups=root
aliases=unstable,default


What does 'xhost' say when you run it as the "normal" user (before you do the schroot)?

You may need to do an 'xhost local:' to allow any local (only your host system logins) user to connect to the display. You will need the DISPLAY=:0.0 exported in the schroot environment, at least.

--
Bob McGowan

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Reply to: