<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<p>why does is have to be ubuntu:pokemon? why not any OS ? or is
'pokemon' just a placeholder like 'foo'<br>
</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 4/15/2017 11:29 PM, Matlink wrote:<br>
</div>
<blockquote
cite="mid:CF2007A4-E46B-4EF8-9CCB-ECD2BC92CFE5@matlink.fr"
type="cite">Well, the lxc 1.0 version didn't require any network
stack: it mounted the X11 required files in the container.<br>
<br>
However in lxc 2.0 I would like a solution like this, not using
x2go or ssh X11 forwarding. <br>
<br>
The ideal solution for me would be to be able to run 'lxc exec
test firefox' to run Firefox in the container. <br>
<br>
<div class="gmail_quote">Le 15 avril 2017 16:09:00 GMT+02:00,
Tomasz Chmielewski <a class="moz-txt-link-rfc2396E" href="mailto:mangoo@wpkg.org"><mangoo@wpkg.org></a> a écrit :
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<pre class="k9mail">On 2017-04-15 22:39, Felipe wrote:
<blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> 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
</blockquote>
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
<a moz-do-not-send="true" href="https://lxadm.com">https://lxadm.com</a>
<hr>
lxc-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>
<a moz-do-not-send="true" href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></pre></blockquote></div>
--
Matlink
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre wrap="">_______________________________________________
lxc-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></pre>
</blockquote>
<div class="moz-signature">--
<span style="font-family: Arial Unicode MS;">Gunnar Wagner | </span><span style="font-family: Arial Unicode MS;">Yongfeng Village Group 12 #5, Pujiang Town, Minhang District, 201112 Shanghai, P.R. CHINA </span>
<span style="font-family: Arial Unicode MS;">mob +86.159.0094.1702 | skype:
professorgunrad | wechat: 15900941702</span>
</div></body></html>