From fd540af3ffa5392c14f62001d9494bf912b556aa Mon Sep 17 00:00:00 2001 From: tim-allen-ck Date: Fri, 26 Apr 2024 16:08:32 +0100 Subject: [PATCH] clean up script --- .../terraform/vm_config.sh | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/vm_config.sh b/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/vm_config.sh index 4683addcdd..ea15ec0542 100644 --- a/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/vm_config.sh +++ b/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/vm_config.sh @@ -12,6 +12,7 @@ sudo rm -f /etc/apt/sources.list.d/* # Update apt packages from configured Nexus sources echo "init_vm.sh: START" sudo apt update || true +sudo apy upgrade -y sudo apt install -y gnupg2 software-properties-common apt-transport-https wget dirmngr gdebi-core sudo apt-get update || true @@ -28,11 +29,12 @@ echo "init_vm.sh: xrdp" sudo apt install -y xrdp xorgxrdp xfce4-session sudo adduser xrdp ssl-cert sudo -u "${VM_USER}" -i bash -c 'echo xfce4-session > ~/.xsession' -sudo -u "${VM_USER}" -i bash -c 'echo xset s off > ~/.xsession' +sudo -u "${VM_USER}" -i bash -c 'echo xset s off >> ~/.xsession' +sudo -u "${VM_USER}" -i bash -c 'echo xset -dpms >> ~/.xsession' # Make sure xrdp service starts up with the system -sudo service xrdp restart sudo systemctl enable xrdp +sudo service xrdp restart ## Python 3.8 and Jupyter sudo apt install -y jupyter-notebook microsoft-edge-dev @@ -145,12 +147,7 @@ sudo systemctl restart docker # R config sudo echo -e "local({\n r <- getOption(\"repos\")\n r[\"Nexus\"] <- \"""${NEXUS_PROXY_URL}\"/repository/r-proxy/\"\n options(repos = r)\n})" | sudo tee /etc/R/Rprofile.site -# # ## Cleanup -# echo "init_vm.sh: Cleanup" -# sudo apt -y autoremove -# sudo apt install unattended-upgrades - -sudo shutdown -r now - -sudo service xrdp restart -sudo systemctl enable xrdp +## Cleanup +echo "init_vm.sh: Cleanup" +sudo apt -y autoremove +sudo shutdown -r now \ No newline at end of file