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.

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.

-- 
Fajar

On Sunday, August 31, 2014, Sun Keqin <ke...@nfs.iscas.ac.cn> wrote:

> Yeah, I have read the article, but I still want to ask if there is a 
> “lightweight"
> approach. Perhaps the answer is not.
> Thank you for help!
>
> On Sat, 2014-08-30 at 23:01 +0700, Michael H. Warfield <m...@wittsend.com
> <javascript:_e(%7B%7D,'cvml','m...@wittsend.com');>> wrote:
>
> On Sat, 2014-08-30 at 21:32 +0700, Fajar A. Nugraha wrote:
>
> On Saturday, August 30, 2014, Sun Keqin <ke...@nfs.iscas.ac.cn
> <javascript:_e(%7B%7D,'cvml','ke...@nfs.iscas.ac.cn');>> wrote:
>        Hi all,
>            How to run a GUI program (eg. firefox) with lxc-execute?
>
>
> https://www.stgraber.org/2014/02/09/lxc-1-0-gui-in-containers/
>
>
> He was asking about lxc-execute but, yeah, doing it with a full
> container will work.  I've done that with entire desktops.
>
> --
> Fajar
>
>
> Regards,
> Mike
> --
> Michael H. Warfield (AI4NB) | (770) 978-7061 |  m...@wittsend.com
> <javascript:_e(%7B%7D,'cvml','m...@wittsend.com');>
>   /\/\|=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
> lxc-users@lists.linuxcontainers.org
> <javascript:_e(%7B%7D,'cvml','lxc-users@lists.linuxcontainers.org');>
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
>
>
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to