[lxc-users] Run GUI program using lxc-execute
Sun Keqin
keqin at nfs.iscas.ac.cn
Sun Aug 31 06:49:41 UTC 2014
Yes, you’re right. I do need network. Your explaination is extremely clear, and I will follow your advice.
Thank you all!
Jimmy
On Sunday, 2014-08-31 at 14:12 +0800,Fajar A. Nugraha <list at fajar.net> wrote:
> 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> 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> 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
>> /\/\|=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
>> http://lists.linuxcontainers.org/listinfo/lxc-users
>
> _______________________________________________
> lxc-users mailing list
> 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/7fc03c36/attachment.html>
More information about the lxc-users
mailing list