<div dir="ltr"><div><div>I do this using 3 different methods. <br>using xnest<br>using xRDP & Guacamole<br>and using x2go.<br><br>For me the most easiest & most full featured approach is x2go.<br></div><br>Guacamole & xRDP works great & only requires an HTML5 bBrowser but there is alot to the setup and some capabilities of Guacamole (cut & paste, printing) are still a bit cumbersome to accomplish.<br></div><div><div><br>The following is going to assume Ubuntu 16.04 and x2go...<br><br>## Create an LXD container using say Ubuntu 16.04<br><br>## enter the container:<br><br>lxc exec container_name bash<br><br><div>## add some repositories for xenial (re 16.04)<br><br></div><div>echo "deb <a href="http://archive.canonical.com/ubuntu" target="_blank">http://archive.canonical.com/ubuntu</a> xenial partner" | sudo tee -a /etc/apt/sources.list<br>echo "deb-src <a href="http://archive.canonical.com/ubuntu" target="_blank">http://archive.canonical.com/ubuntu</a> xenial partner" | sudo tee -a /etc/apt/sources.list<br>echo "deb <a href="http://us.archive.ubuntu.com/ubuntu/" target="_blank">http://us.archive.ubuntu.com/ubuntu/</a> xenial-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list<br>echo "deb-src <a href="http://us.archive.ubuntu.com/ubuntu/" target="_blank">http://us.archive.ubuntu.com/ubuntu/</a> xenial-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list<br><br>apt install software-properties-common -y<br><br></div><div>## add the ubuntu-mate repository<br><br></div><div>sudo add-apt-repository ppa:ubuntu-mate-dev/xenial-mate -y<br><br></div><div>## add the x2go repository<br></div><br>add-apt-repository ppa:x2go/stable<br><br><div>## update & upgrade the container<br><br></div><div>apt update && apt upgrade -y<br></div><br>## install ubuntu-mate dekstop or xubuntu-desktop or lubuntu-desktop (this will take upto 30 min or more depending on PC/HD etc)<br><br><div>sudo apt install lightdm ubuntu-mate-core ubuntu-mate-desktop -y<br><br></div><div>## set things up so all future user accounts you create in this container default to the Ubuntu-Mate desktop<br><br></div><div>sudo update-alternatives --set x-session-manager /usr/bin/mate-session<br><br></div><div>## install the x2go server side software<br></div><div><br>apt install x2goserver x2goserver-xsession<br><br></div><div>## create user accounts for your "users" as you normally would<br></div><div><br></div><div>##
then depending on whether you want to use login/password or a key based
login edit the /etc/ssh/sshd_config and set it up appropriately<br></div><div>## adn when done configuring the container... reboot the container<br><br></div><div><br>>>> On the Host:<br><div><br>sudo apt install software-properties-common -y<br><br>## add the x2go repository<br></div><br>sudo add-apt-repository ppa:x2go/stable<br><br></div><div>sudo apt install x2goclient<br><br></div><div> = = = = = = = <br><br>Finally make sure you container is started & get its IP address<br><br></div><div>Start the x2go client (Click the DASH icon and type "x2go") then click on the x2go icon that comes up<br><br></div><div>In the x2go client gui create a Profile (upper left corner icon of the x2go gui) for the container <br><ol><li>enter some Profile "name" at the top to ID what that profile is for say "My Ubuntu-Mate Desktop)</li><li>input the container's HOST IP, </li><li>click the drop down menu and select which Desktop Environment (re Session Type) you installed (Mate in the case)</li><li>Save that profile.</li></ol></div><div>You will see that there will appear a new square icon on the right side of the x2go GUI.<br></div><div><br></div><div>Then execute that Profile by clicking on it & login using one of the login ID's you created in the container.<br><br></div><div>Audio/Printing etc should also all just work.<br><br></div><div>If
you can't login the usual problem are authentication is not setup right
(login ID + password vs key based) remember to do that in container.<br></div><div><br></div><div>Note: <br>Once you've created the 1st container like this you can just clone/copy it to create more. <br>On the Host just create a different x2go Login Profile for each
container/IP & give each Profile a different TItle. You can also have diff containers with different desktops (xubuntu, lubuntu, ubuntu-mate etc)<br></div><div><br></div>If
you leave the x2go Profile LOGIN field empty any valid user can click on the
Profile Icon and just fill in their ID and Password in order to log into
the container.<br><br></div><div>Brian<br><br></div></div></div>