mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-19 06:41:33 +00:00
Merge remote-tracking branch 'callmepk/hyper-v-fix' into ubuntu/master
This commit is contained in:
commit
4a02400dec
@ -55,8 +55,8 @@ EOF
|
|||||||
|
|
||||||
CHANGED_FILE_SUFFIX=.replaced-by-desktop-img-build
|
CHANGED_FILE_SUFFIX=.replaced-by-desktop-img-build
|
||||||
|
|
||||||
# use vsock transport.
|
# use vsock transport
|
||||||
sed -i${CHANGED_FILE_SUFFIX} -e 's/use_vsock=false/use_vsock=true/g' "${scratch_d}/etc/xrdp/xrdp.ini"
|
sed -i${CHANGED_FILE_SUFFIX} -e 's/port=3389/port=vsock:\/\/-1:3389/g' "${scratch_d}/etc/xrdp/xrdp.ini"
|
||||||
# use rdp security.
|
# use rdp security.
|
||||||
sed -i${CHANGED_FILE_SUFFIX} -e 's/security_layer=negotiate/security_layer=rdp/g' "${scratch_d}/etc/xrdp/xrdp.ini"
|
sed -i${CHANGED_FILE_SUFFIX} -e 's/security_layer=negotiate/security_layer=rdp/g' "${scratch_d}/etc/xrdp/xrdp.ini"
|
||||||
# remove encryption validation.
|
# remove encryption validation.
|
||||||
@ -74,6 +74,9 @@ exec /etc/xrdp/startwm.sh
|
|||||||
EOF
|
EOF
|
||||||
chmod a+x "${scratch_d}/etc/xrdp/startubuntu.sh"
|
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
|
# use the script to setup the ubuntu session
|
||||||
sed -i${CHANGED_FILE_SUFFIX} -e 's/startwm/startubuntu/g' "${scratch_d}/etc/xrdp/sesman.ini"
|
sed -i${CHANGED_FILE_SUFFIX} -e 's/startwm/startubuntu/g' "${scratch_d}/etc/xrdp/sesman.ini"
|
||||||
|
|
||||||
@ -100,6 +103,15 @@ ResultInactive=no
|
|||||||
ResultActive=yes
|
ResultActive=yes
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
cat >/etc/polkit-1/localauthority/50-local.d/46-allow-update-repo.pkla <<EOF
|
||||||
|
[Allow Package Management all Users]
|
||||||
|
Identity=unix-user:*
|
||||||
|
Action=org.freedesktop.packagekit.system-sources-refresh
|
||||||
|
ResultAny=yes
|
||||||
|
ResultInactive=yes
|
||||||
|
ResultActive=yes
|
||||||
|
EOF
|
||||||
|
|
||||||
sed -i${CHANGED_FILE_SUFFIX} -e 's|After=|ConditionPathExists=!/var/lib/oem-config/run\nAfter=|g' "${scratch_d}/lib/systemd/system/xrdp.service"
|
sed -i${CHANGED_FILE_SUFFIX} -e 's|After=|ConditionPathExists=!/var/lib/oem-config/run\nAfter=|g' "${scratch_d}/lib/systemd/system/xrdp.service"
|
||||||
|
|
||||||
# End xrdp customisation
|
# End xrdp customisation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user