<div dir="ltr"><div><div><div><div>Tom and Michael thank you for the information regarding X11 access control. <br><br></div>I have now enabled the access control again (i.e xhost -) . <br><br></div>I am now using Xauthority in container and firefox and chrome seem to run ok.<br>
<br></div>Cheers<br></div>Veer<br><div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 10, 2014 at 6:43 PM, Michael H. Warfield <span dir="ltr"><<a href="mailto:mhw@wittsend.com" target="_blank">mhw@wittsend.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Sun, 2014-08-10 at 11:18 +0530, Veer Singh wrote:<br>
> Just for information , I am now able to run google-chrome also. Now<br>
> only thing left is to understand what the heck xhost does :D .<br>
<br>
</div>Uh, suggest run "man xauth".  You use xauth to set up .Xauthority to<br>
control access to X11.<br>
<br>
You probably don't want to run xhost.<br>
<br>
> Thanks.<br>
<br>
Regards,<br>
Mike<br>
<div class="HOEnZb"><div class="h5">><br>
><br>
><br>
> On Sun, Aug 10, 2014 at 11:11 AM, Veer Singh <<a href="mailto:veer.chah@gmail.com">veer.chah@gmail.com</a>><br>
> wrote:<br>
>         When I execute "xhost +" in host (arch linux) , I am now able<br>
>         to successfully to run firefox in container and can use its<br>
>         gui window on host . I think error that I was getting might<br>
>         have to do with some permissions on who can use display .  I<br>
>         wonder how to set this permission and what exactly to set when<br>
>         launching firefox from host.<br>
><br>
><br>
>         Thanks<br>
><br>
><br>
><br>
><br>
>         On Sun, Aug 10, 2014 at 9:35 AM, Veer Singh<br>
>         <<a href="mailto:veer.chah@gmail.com">veer.chah@gmail.com</a>> wrote:<br>
>                 <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
><br>
><br>
>                 Hello ,<br>
><br>
><br>
>                 I am running a unprivileged container (as shown here :<br>
>                 <a href="https://www.stgraber.org/2014/02/09/lxc-1-0-gui-in-containers/" target="_blank">https://www.stgraber.org/2014/02/09/lxc-1-0-gui-in-containers/</a>   ) in host Arch Linux (amd64) and template is precise-gui (amd64 version) downloaded as given in above link.<br>

><br>
><br>
>                 I am able to run this unprivileged container as normal<br>
>                 user , but I am unable to run any gui from it . When I<br>
>                 try to run firefox from the container I get following<br>
>                 error :<br>
><br>
>                 lxc-attach --clear-env -n precise-gui -- sudo -u<br>
>                 ubuntu -i DISPLAY=$DISPLAY firefox<br>
>                 No protocol specified<br>
>                 No protocol specified<br>
>                 No protocol specified<br>
>                 No protocol specified<br>
>                 Error: cannot open display: :0<br>
><br>
><br>
>                 I am able to do all cmd line stuff in container but<br>
>                 not gui.<br>
><br>
><br>
>                 Thanks<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> lxc-users mailing list<br>
> <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Michael H. Warfield (AI4NB) | (770) 978-7061 |  mhw@WittsEnd.com<br>
   /\/\|=mhw=|\/\/          | (678) 463-0932 |  <a href="http://www.wittsend.com/mhw/" target="_blank">http://www.wittsend.com/mhw/</a><br>
   NIC whois: MHW9          | An optimist believes we live in the best of all<br>
 PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!<br>
<br>
</font></span><br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>