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 <[email protected]> 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 <[email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote: > > On Sat, 2014-08-30 at 21:32 +0700, Fajar A. Nugraha wrote: > > On Saturday, August 30, 2014, Sun Keqin <[email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>> 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 | [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');> > /\/\|=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 > [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');> > http://lists.linuxcontainers.org/listinfo/lxc-users > > >
_______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
