Tom and Michael thank you for the information regarding X11 access control.
I have now enabled the access control again (i.e xhost -) . I am now using Xauthority in container and firefox and chrome seem to run ok. Cheers Veer On Sun, Aug 10, 2014 at 6:43 PM, Michael H. Warfield <[email protected]> wrote: > On Sun, 2014-08-10 at 11:18 +0530, Veer Singh wrote: > > Just for information , I am now able to run google-chrome also. Now > > only thing left is to understand what the heck xhost does :D . > > Uh, suggest run "man xauth". You use xauth to set up .Xauthority to > control access to X11. > > You probably don't want to run xhost. > > > Thanks. > > Regards, > Mike > > > > > > > > On Sun, Aug 10, 2014 at 11:11 AM, Veer Singh <[email protected]> > > wrote: > > When I execute "xhost +" in host (arch linux) , I am now able > > to successfully to run firefox in container and can use its > > gui window on host . I think error that I was getting might > > have to do with some permissions on who can use display . I > > wonder how to set this permission and what exactly to set when > > launching firefox from host. > > > > > > Thanks > > > > > > > > > > On Sun, Aug 10, 2014 at 9:35 AM, Veer Singh > > <[email protected]> wrote: > > [email protected] > > > > > > Hello , > > > > > > I am running a unprivileged container (as shown here : > > > https://www.stgraber.org/2014/02/09/lxc-1-0-gui-in-containers/ ) in > host Arch Linux (amd64) and template is precise-gui (amd64 version) > downloaded as given in above link. > > > > > > I am able to run this unprivileged container as normal > > user , but I am unable to run any gui from it . When I > > try to run firefox from the container I get following > > error : > > > > lxc-attach --clear-env -n precise-gui -- sudo -u > > ubuntu -i DISPLAY=$DISPLAY firefox > > No protocol specified > > No protocol specified > > No protocol specified > > No protocol specified > > Error: cannot open display: :0 > > > > > > I am able to do all cmd line stuff in container but > > not gui. > > > > > > Thanks > > > > > > > > > > > > > > > > _______________________________________________ > > lxc-users mailing list > > [email protected] > > http://lists.linuxcontainers.org/listinfo/lxc-users > > -- > Michael H. Warfield (AI4NB) | (770) 978-7061 | [email protected] > /\/\|=mhw=|\/\/ | (678) 463-0932 | > http://www.wittsend.com/mhw/ > NIC whois: MHW9 | An optimist believes we live in the best of > all > PGP Key: 0x674627FF | possible worlds. A pessimist is sure of it! > > > _______________________________________________ > lxc-users mailing list > [email protected] > http://lists.linuxcontainers.org/listinfo/lxc-users >
_______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
