From 757d565276d9c88204d3acf4174fedbf9f19c410 Mon Sep 17 00:00:00 2001 From: tim-allen-ck Date: Fri, 26 Apr 2024 12:18:28 +0100 Subject: [PATCH] update --- .../user_resources/guacamole-azure-linuxvm/porter.yaml | 2 +- .../guacamole-azure-linuxvm/terraform/vm_config.sh | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/porter.yaml b/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/porter.yaml index 1c53a3f52c..58d0168f75 100644 --- a/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/porter.yaml +++ b/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/porter.yaml @@ -1,7 +1,7 @@ --- schemaVersion: 1.0.0 name: tre-service-guacamole-linuxvm -version: 0.6.39 +version: 0.6.40 description: "An Azure TRE User Resource Template for Guacamole (Linux)" dockerfile: Dockerfile.tmpl registry: azuretre 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 e28d9e3b57..1819ec59a0 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 @@ -26,6 +26,8 @@ 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 -dpms > ~/.xsession' sleep 10 @@ -146,11 +148,6 @@ 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 -## Add ouh_researcher group for directory permissions -echo "init_vm.sh: directory permissions" -sudo chgrp -R ouh_researcher /opt/anaconda -sudo chmod -R g+w /opt/anaconda - # ## Cleanup echo "init_vm.sh: Cleanup" sudo apt -y autoremove