From 7b9d8fba58def19d6fe1536c327c3c7f1d8acea3 Mon Sep 17 00:00:00 2001 From: "Justin Terry (VM)" Date: Tue, 5 Dec 2017 11:08:51 -0800 Subject: [PATCH] Updates the script for 16.04.3 execution. Adds a few checks to avoid double cloning the repos if rerun multiple times. Fixes a bug where we check for file status not directory status for the xrdp/xorgxrdp repos. Adds the post script to be run the the logon user account to allow the Unity panels to load. --- ubuntu/16.04/config-user.sh | 24 ++++++++++++ ubuntu/16.04/install.sh | 76 +++++++++++++++++++++++++++---------- 2 files changed, 79 insertions(+), 21 deletions(-) create mode 100644 ubuntu/16.04/config-user.sh diff --git a/ubuntu/16.04/config-user.sh b/ubuntu/16.04/config-user.sh new file mode 100644 index 0000000..b083972 --- /dev/null +++ b/ubuntu/16.04/config-user.sh @@ -0,0 +1,24 @@ +#! /bin/bash + +# +# This script configures the logged in users xsession to properly +# configure unity to launch +# +# Major thanks to: http://c-nergy.be/blog/?p=10752 for the tips. +# + +sudo bash -c "cat >~/.xsession </etc/polkit-1/localauthority.conf.d/02-allow-colord.conf < /dev/null - fi -else - # No lightdm config file. - echo "[Seat:*]" > sudo tee /etc/lightdm/lightdm.conf > /dev/null - echo "xserver-config=/etc/X11/xrdp/xorg.conf" | sudo tee --append /etc/lightdm/lightdm.conf > /dev/null -fi - #reboot +echo +echo "Reboot your machine to begin using XRDP" +echo \ No newline at end of file