[lxc-users] Run GUI in LXD 2.0+
gunnar.wagner
gunnar.wagner at netcologne.de
Sun Apr 16 00:54:42 UTC 2017
why does is have to be ubuntu:pokemon? why not any OS ? or is 'pokemon'
just a placeholder like 'foo'
On 4/15/2017 11:29 PM, Matlink wrote:
> Well, the lxc 1.0 version didn't require any network stack: it mounted
> the X11 required files in the container.
>
> However in lxc 2.0 I would like a solution like this, not using x2go
> or ssh X11 forwarding.
>
> The ideal solution for me would be to be able to run 'lxc exec test
> firefox' to run Firefox in the container.
>
> Le 15 avril 2017 16:09:00 GMT+02:00, Tomasz Chmielewski
> <mangoo at wpkg.org> a écrit :
>
> On 2017-04-15 22:39, Felipe wrote:
>
> Instructions: a) In LXD container: * lxc launch ubuntu:
> pokemon * lxc exec pokemon bash * add-apt-repository
> ppa:x2go/stable && sudo apt-get update * apt-get install xfce4
> xfce4-goodies xfce4-artwork xubuntu-icon-theme firefox
> x2goserver x2goserver-xsession * adduser pikachu * vi
> /etc/ssh/sshd_config # Change to no to disable tunnelled clear
> text passwords PasswordAuthentication yes * /etc/init.d/ssh
> restart
>
>
> While x2go is great for remote connectivity, it can be really simpler,
> if you're running the container locally (or over low-latency, high speed
> network) and don't need disconnected sessions etc.
>
>
> Run this once:
>
> * LXD host:
>
> lxc launch ubuntu: pokemon
> lxc exec pokemon bash
>
>
> * container
>
> apt install openssh-server firefox
> adduser pikachu
>
> # add your ssh key for pikachu
>
>
>
> Then, connect with ssh -X:
>
> ssh -X container_IP
> export MOZ_NO_REMOTE=1 ; firefox
>
>
> MOZ_NO_REMOTE=1 in the container is needed in case you run Firefox both
> locally and over SSH - otherwise, it won't be possible to start two
> separate Firefox instances.
>
>
> Tomasz Chmielewski
> https://lxadm.com
> ------------------------------------------------------------------------
>
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
> -- Matlink
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
-- Gunnar Wagner | Yongfeng Village Group 12 #5, Pujiang Town, Minhang
District, 201112 Shanghai, P.R. CHINA mob +86.159.0094.1702 | skype:
professorgunrad | wechat: 15900941702
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170416/d62542d6/attachment.html>
More information about the lxc-users
mailing list