[lxc-users] Run GUI program using lxc-execute

Fajar A. Nugraha list at fajar.net
Sun Aug 31 06:12:38 UTC 2014


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 <keqin at 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 <mhw at WittsEnd.com
> <javascript:_e(%7B%7D,'cvml','mhw at WittsEnd.com');>> wrote:
>
> On Sat, 2014-08-30 at 21:32 +0700, Fajar A. Nugraha wrote:
>
> On Saturday, August 30, 2014, Sun Keqin <keqin at nfs.iscas.ac.cn
> <javascript:_e(%7B%7D,'cvml','keqin at 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 |  mhw at WittsEnd.com
> <javascript:_e(%7B%7D,'cvml','mhw at 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 at lists.linuxcontainers.org
> <javascript:_e(%7B%7D,'cvml','lxc-users at lists.linuxcontainers.org');>
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140831/c78424b5/attachment-0001.html>


More information about the lxc-users mailing list