<div dir="ltr"><div>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.<br>
<br></div>Thanks<br><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 10, 2014 at 9:35 AM, Veer Singh <span dir="ltr"><<a href="mailto:veer.chah@gmail.com" target="_blank">veer.chah@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<br></div>Hello , <br><br></div>I am running a unprivileged container (as shown here : <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></div>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 :<br><br>lxc-attach --clear-env -n precise-gui -- sudo -u 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></div><div>I am able to do all cmd line stuff in container but not gui. <br><br></div>

<div>Thanks<br></div><br></div>
</blockquote></div><br></div>