{"id":1814,"date":"2023-03-24T15:27:56","date_gmt":"2023-03-24T19:27:56","guid":{"rendered":"https:\/\/enterpriseadmins.org\/blog\/?p=1814"},"modified":"2023-03-24T15:27:56","modified_gmt":"2023-03-24T19:27:56","slug":"horizon-linux-virtual-desktop-non-persistent-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/enterpriseadmins.org\/blog\/virtualization\/horizon-linux-virtual-desktop-non-persistent-ubuntu-22-04\/","title":{"rendered":"Horizon Linux Virtual Desktop &#8211; Non Persistent Ubuntu 22.04"},"content":{"rendered":"\n<p>I recently wanted to apply some updates (OS updates and Horizon Agent) to my Ubuntu 20.04 desktop.  It had been several months since I had last updated the desktop and realized the Ubuntu 22.04 had since been released.  This is the current\/newest Long Term Support release (<a href=\"https:\/\/ubuntu.com\/about\/release-cycle\">https:\/\/ubuntu.com\/about\/release-cycle<\/a>), which support going into early 2027.  I decided this would be a good opportunity to build a new image that revved to the next major release.  <\/p>\n\n\n\n<p>I followed the process from a similar article I created for Ubuntu 20.04 (<a href=\"https:\/\/enterpriseadmins.org\/blog\/virtualization\/horizon-virtual-desktop-non-persistent-ubuntu-20-04\/\">https:\/\/enterpriseadmins.org\/blog\/virtualization\/horizon-virtual-desktop-non-persistent-ubuntu-20-04\/<\/a>) and found only a few minor differences.  <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">SSSD<\/h3>\n\n\n\n<p>When I last created this desktop, I switched from PBIS Open to SSSD for Active Directory authentication.  At that time documentation was a little light on how to make this work with Horizon.  The Horizon documentation has since been updated (<a href=\"https:\/\/docs.vmware.com\/en\/VMware-Horizon\/2212\/linux-desktops-setup\/GUID-1E29173F-1E32-4663-92D6-788905F387E6.html\">https:\/\/docs.vmware.com\/en\/VMware-Horizon\/2212\/linux-desktops-setup\/GUID-1E29173F-1E32-4663-92D6-788905F387E6.html<\/a>) and provided better guidance for SSO.  This resulted in appending an additional couple of lines to the <code>\/etc\/sssd\/sssd.conf<\/code> file that were not in my previous notes, but are captured in the official documentation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Firefox<\/h3>\n\n\n\n<p>I spent more time troubleshooting Firefox than I care to admit.  In the previous Ubuntu 20.04 article, I updated a file (<code>\/etc\/dconf\/db\/local.d\/00-favorite-apps<\/code>) to pin Firefox to the app list in the GUI.  Additionally, in a previous article (<a href=\"https:\/\/enterpriseadmins.org\/blog\/lab-infrastructure\/installing-windows-ca-root-certificate-on-linux-and-firefox\/\">https:\/\/enterpriseadmins.org\/blog\/lab-infrastructure\/installing-windows-ca-root-certificate-on-linux-and-firefox\/<\/a>) I had described a process to create a Firefox policy to install a specific CA certificate used in my lab.  Ubuntu 22.04 switched to a newer <code>snap<\/code> installer for Firefox and this change had an impact on both of these settings.  I tried a couple of different troubleshooting steps, such as moving the policy file to <code>\/etc\/firefox\/policies<\/code>, changing file permissions, moving the certificate file, but wasn&#8217;t able to find a quick path to resolution.  I ended up finding an article to revert back to the way Firefox was installed in Ubuntu 20.04.  That process is outlined here: <a href=\"https:\/\/www.omgubuntu.co.uk\/2022\/04\/how-to-install-firefox-deb-apt-ubuntu-22-04\">How to Install Firefox as a .Deb on Ubuntu 22.04 (Not a Snap) &#8211; OMG! Ubuntu! (omgubuntu.co.uk)<\/a>.  For reference, I&#8217;m going to include the partial list of commands that I implemented (since this is a non-persistent desktop I opted out of the step 4 from the original article that keeps Firefox up to date).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo snap remove firefox\r\nsudo add-apt-repository ppa:mozillateam\/ppa\r\n\r\necho '\r\nPackage: *\r\nPin: release o=LP-PPA-mozillateam\r\nPin-Priority: 1001\r\n' | sudo tee \/etc\/apt\/preferences.d\/mozilla-firefox\r\n\r\nsudo apt install firefox<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Summary<\/h3>\n\n\n\n<p>Overall I was pleasantly surprised that this process worked like it did before.  I recall the process going from Ubuntu 18.04 to 20.04 to be much more time consuming.  I now have a non-persistent Linux pool, with the latest release of Ubuntu LTS, and a slightly better SSO experience than I previously accepted.  Hopefully these notes &amp; previous post links will assist if you plan on setting up a similar desktop.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently wanted to apply some updates (OS updates and Horizon Agent) to my Ubuntu 20.04 desktop. It had been several months since I had last updated the desktop and realized the Ubuntu 22.04 had since been released. This is &hellip; <a href=\"https:\/\/enterpriseadmins.org\/blog\/virtualization\/horizon-linux-virtual-desktop-non-persistent-ubuntu-22-04\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[9,4],"tags":[],"class_list":["post-1814","post","type-post","status-publish","format-standard","hentry","category-lab-infrastructure","category-virtualization"],"_links":{"self":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/1814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/comments?post=1814"}],"version-history":[{"count":1,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/1814\/revisions"}],"predecessor-version":[{"id":1815,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/1814\/revisions\/1815"}],"wp:attachment":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/media?parent=1814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/categories?post=1814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/tags?post=1814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}