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@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users