diff -Nru livecd-rootfs-2.664.5/debian/changelog livecd-rootfs-2.664.6/debian/changelog --- livecd-rootfs-2.664.5/debian/changelog 2020-08-04 19:39:27.000000000 +0000 +++ livecd-rootfs-2.664.6/debian/changelog 2020-08-26 21:06:31.000000000 +0000 @@ -1,3 +1,10 @@ +livecd-rootfs (2.664.6) focal; urgency=medium + + [ Patrick Wu ] + * Fix xrdp support in hyper-v images. LP: #1890980. + + -- Steve Langasek Wed, 26 Aug 2020 14:06:31 -0700 + livecd-rootfs (2.664.5) focal; urgency=medium [ Robert C Jennings ] diff -Nru livecd-rootfs-2.664.5/live-build/ubuntu/hooks/040-hyperv-desktop-images.binary livecd-rootfs-2.664.6/live-build/ubuntu/hooks/040-hyperv-desktop-images.binary --- livecd-rootfs-2.664.5/live-build/ubuntu/hooks/040-hyperv-desktop-images.binary 2020-08-04 19:32:16.000000000 +0000 +++ livecd-rootfs-2.664.6/live-build/ubuntu/hooks/040-hyperv-desktop-images.binary 2020-08-26 21:06:31.000000000 +0000 @@ -55,8 +55,8 @@ CHANGED_FILE_SUFFIX=.replaced-by-desktop-img-build -# use vsock transport. -sed -i${CHANGED_FILE_SUFFIX} -e 's/use_vsock=false/use_vsock=true/g' "${scratch_d}/etc/xrdp/xrdp.ini" +# use vsock transport +sed -i${CHANGED_FILE_SUFFIX} -e 's/port=3389/port=vsock:\/\/-1:3389/g' "${scratch_d}/etc/xrdp/xrdp.ini" # use rdp security. sed -i${CHANGED_FILE_SUFFIX} -e 's/security_layer=negotiate/security_layer=rdp/g' "${scratch_d}/etc/xrdp/xrdp.ini" # remove encryption validation. @@ -74,6 +74,9 @@ EOF chmod a+x "${scratch_d}/etc/xrdp/startubuntu.sh" +# set to use the system Window manager +sed -i${CHANGED_FILE_SUFFIX} -e 's/EnableUserWindowManager=true/EnableUserWindowManager=0/g' "${scratch_d}/etc/xrdp/sesman.ini" + # use the script to setup the ubuntu session sed -i${CHANGED_FILE_SUFFIX} -e 's/startwm/startubuntu/g' "${scratch_d}/etc/xrdp/sesman.ini" @@ -100,6 +103,15 @@ ResultActive=yes EOF +cat >${scratch_d}/etc/polkit-1/localauthority/50-local.d/46-allow-update-repo.pkla <