<div dir="ltr">Thanks Brian it worked better, now I am trying to do a passthrough of LXD container but there is no .conf file in LXD, where do I add mount entries?</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 21, 2016 at 2:11 AM, brian mullan <span dir="ltr"><<a href="mailto:bmullan.mail@gmail.com" target="_blank">bmullan.mail@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Rahul<br><br></div>If you are talking x2go.. there currently is no way to do 3D or hw acceleration, as I said previously I don't know of ANY remote desktop solution outside of commercial ones line PCoIP from Teradici that do that or perhaps "maybe" NoMachine's commercial version of NX.<br><br></div>Now I do know that the x2go team has been working for quite some time on a much more advanced x2go that "perhaps" would let you do that but they have not said anything yet about when that might be finished.<br><br></div>also..<br><br></div>In x2go ... edit your PROFILE again.<br><br></div>Click on the CONNECTION tab and notice that SLIDER.<br><br></div>Its not intuitive BUT the farther you slide it to the RIGHT the LESS compression is done.<br></div>The farther you slide it to the LEFT the MORE compression is done.<br><br></div>If you have a fast Internet connection ... try sliding it all the way to the right to LAN (re no compression) and try that.<br><br></div>Also, on your Client and on the x2go server... check to see if libjpeg-turbo8 is installed. libjpeg-turbo replaces the original libjpeg library and the "turbo" version is about 250% faster.<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">Brian<br><br><div><br><div><br></div></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 20, 2016 at 10:35 AM, Rahul Rawail <span dir="ltr"><<a href="mailto:rhlrawail@gmail.com" target="_blank">rhlrawail@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Brian,<div><br></div><div>Thanks a ton, that worked flawlessly. </div><div>I only have one issue now even the full hd video is not smooth, Is there a way to get vgpu, hardware acceleration or 3d support in LXD, some of my users are going to use autocad.</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 19, 2016 at 1:39 AM, brian mullan <span dir="ltr"><<a href="mailto:bmullan.mail@gmail.com" target="_blank">bmullan.mail@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>no... neither x2go nor guacamole will do 3d or hw rendering.<br><br></div>I'm not aware of ANY remote desktop solution that does that other unless you go with PCoIP which requires a HW card purchase for the server & each client & is pretty pricey.<br><br>PCoIP is not open source its a proprietary software/hardware solution from Teradici...<br><br><a href="http://www.teradici.com/pcoip-technology" target="_blank">http://www.teradici.com/pcoip-technology</a><br><br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 18, 2016 at 11:35 AM, Rahul Rawail <span dir="ltr"><<a href="mailto:rhlrawail@gmail.com" target="_blank">rhlrawail@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Brian, just another quick one, does this approach allows hardware acceleration and can all containers work on graphic intensive application like 3d rendering at the same time using host's single GPU.<div>Thanks </div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 19, 2016 at 1:22 AM, Rahul Rawail <span dir="ltr"><<a href="mailto:rhlrawail@gmail.com" target="_blank">rhlrawail@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks a lot Brian, I will give it a shot tomorrow, the reason <i> </i>asked you this was because I have to implement it for over 100 people and then connect each of them remotely to their container.</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 19, 2016 at 1:11 AM, brian mullan <span dir="ltr"><<a href="mailto:bmullan.mail@gmail.com" target="_blank">bmullan.mail@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Rahul<br><br></div>Whether you use KVM or LXD you still need to install an OS & a Desktop Environment.<br><br></div>The LXD approach will give you alot of scalability over KVM because there is no HW virtualization required ... and ... every container is sharing the Host's Kernel.<br><br></div>So there is much less overhead with LXD than with KVM and much less memory utilization.<br><br></div>x2go will be using the xserver in the container provided by the ubuntu-desktop (xubuntu-desktop, lubuntu-desktop, ubuntu-mate etc) desktop environment you install in the container.<br><br></div>Try it and see if it suits your needs. Its really simple to install if you follow the steps I gave you.<span><font color="#888888"><br><br></font></span></div><span><font color="#888888">Brian<br><br></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 18, 2016 at 11:05 AM, Rahul Rawail <span dir="ltr"><<a href="mailto:rhlrawail@gmail.com" target="_blank">rhlrawail@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Ron and Brian.<div><br></div><div>Brian, </div><div><br></div><div>I have a question, I am happy to follow the x2go approach but does it add to performance overhead for the container or the container performs as it should be, because the main reason to go to LXD over KVM is to get high density, faster performance and less resource intensive.</div><div><br></div><div>Other question is does this approach use host x server and all the host drivers, in case I have graphic card so will all the containers have access to GPU in parallel.</div><div><br></div><div>Thanks again for detailed steps.</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 19, 2016 at 12:34 AM, brian mullan <span dir="ltr"><<a href="mailto:bmullan.mail@gmail.com" target="_blank">bmullan.mail@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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.<span><font color="#888888"><br><br></font></span></div><span><font color="#888888"><div>Brian<br><br></div></font></span></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>