<html><head><meta http-equiv="Content-Type" content="text/html charset=GB2312"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Yes, you¡¯re right. I do need network. Your explaination is extremely clear, and I will follow your advice.</div><div>Thank you all!</div><div><br></div><div>Jimmy</div><br><div><div>On Sunday, 2014-08-31 at 14:12 +0800£¬Fajar A. Nugraha <<a href="mailto:list@fajar.net">list@fajar.net</a>> wrote£º</div><br class="Apple-interchange-newline"><blockquote type="cite">Basically the main requirement for a GUI (without sound) is to bind-mount the X socket and setting DISPLAY environment. In fact, if you run full container, you must make sure lightdm service disabled on the container so that the mounted X socket does not get overwritten. So if you keep the line that mounts the X socket, it should work even with lxc-execute.<div>
<br></div><div>However since you'd also need network for firefox, the exec-d command must also inckude scripts to do ifconfig/ifup. With the additional script requirement, it should be easier to simply use a full container as in the article example.</div>
<div><br></div><div>-- </div><div>Fajar<br><br>On Sunday, August 31, 2014, Sun Keqin <<a href="mailto:keqin@nfs.iscas.ac.cn">keqin@nfs.iscas.ac.cn</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><span style="color:rgb(51,51,51);line-height:22px;background-color:rgb(255,255,255);font-size:14px">Yeah</span><span style="color:rgb(51,51,51);line-height:22px;background-color:rgb(255,255,255);font-size:14px">,</span><span style="color:rgb(51,51,51);line-height:22px;background-color:rgb(255,255,255);font-size:14px"> I have</span><span style="color:rgb(51,51,51);line-height:22px;background-color:rgb(255,255,255);font-size:14px"> read the article</span><span style="color:rgb(51,51,51);line-height:22px;background-color:rgb(255,255,255);font-size:14px">,</span><span style="color:rgb(51,51,51);line-height:22px;background-color:rgb(255,255,255);font-size:14px"> but I still want to</span><span style="color:rgb(51,51,51);line-height:22px;background-color:rgb(255,255,255);font-size:14px"> ask if there is a</span><span style="color:rgb(51,51,51);line-height:22px;background-color:rgb(255,255,255);font-size:14px"> ¡°lightweight" approach. Perhaps the answer is not.</span><div>
<font color="#333333"><span style="line-height:22px;background-color:rgb(255,255,255);font-size:14px">Thank you for help!</span></font></div><div><font color="#333333"><span style="line-height:22px;background-color:rgb(255,255,255);font-size:14px"><br>
</span></font></div><div><div>On Sat, 2014-08-30 at 23:01 +0700, Michael H. Warfield <<a href="javascript:_e(%7B%7D,'cvml','mhw@WittsEnd.com');" target="_blank">mhw@WittsEnd.com</a>> wrote£º</div><br>
<blockquote type="cite">On Sat, 2014-08-30 at 21:32 +0700, Fajar A. Nugraha wrote:<br><blockquote type="cite">On Saturday, August 30, 2014, Sun Keqin <<a href="javascript:_e(%7B%7D,'cvml','keqin@nfs.iscas.ac.cn');" target="_blank">keqin@nfs.iscas.ac.cn</a>> wrote:<br>
Hi all,<br> How to run a GUI program (eg. firefox) with lxc-execute? <br></blockquote><br><blockquote type="cite"><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><br>
</blockquote><br>He was asking about lxc-execute but, yeah, doing it with a full<br>container will work. I've done that with entire desktops.<br><br><blockquote type="cite">-- <br>Fajar<br></blockquote><br>Regards,<br>
Mike<br>-- <br>Michael H. Warfield (AI4NB) | (770) 978-7061 | <a href="javascript:_e(%7B%7D,'cvml','mhw@WittsEnd.com');" target="_blank">mhw@WittsEnd.com</a><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>_______________________________________________<br>lxc-users mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','lxc-users@lists.linuxcontainers.org');" target="_blank">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></blockquote>
</div><br></div></blockquote></div>
_______________________________________________<br>lxc-users mailing list<br><a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>http://lists.linuxcontainers.org/listinfo/lxc-users</blockquote></div><br></body></html>