Skip to content

Commit

Permalink
updaet vm config
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-allen-ck committed Apr 12, 2024
1 parent eff7050 commit cd1a4db
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
schemaVersion: 1.0.0
name: tre-service-guacamole-linuxvm
version: 0.6.27
version: 0.6.28
description: "An Azure TRE User Resource Template for Guacamole (Linux)"
dockerfile: Dockerfile.tmpl
registry: azuretre
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
set -o errexit
set -o pipefail
set -vx
# set -o nounset
set -o nounset
# Uncomment this line to see each command for debugging (careful: this will show secrets!)
# set -o xtrace
set -o xtrace

# Remove apt sources not included in sources.list file
sudo rm -f /etc/apt/sources.list.d/*
Expand All @@ -14,18 +14,19 @@ sudo rm -f /etc/apt/sources.list.d/*
sudo apt-get update

# Install xrdp so Guacamole can connect via RDP
sudo apt-get install xrdp -y
sudo adduser xrdp ssl-cert

# Install desktop environment if image doesn't have one already
if [ "${INSTALL_UI}" -eq 1 ]; then
sudo apt-get install -y xorg
sudo apt-get install -y xfce4
sudo apt-get install -y xfce4-goodies
sudo apt-get install -y dbus-x11
sudo apt-get install -y x11-xserver-utils
sudo -u ${VM_USER} -i bash -c 'echo xfce4-session > ~/.xsession'
fi
# # Install desktop environment if image doesn't have one already
# if [ "${INSTALL_UI}" -eq 1 ]; then
# sudo apt-get install xrdp -y
# sudo apt-get install -y xorg
# sudo apt-get install -y xfce4
# sudo apt-get install -y xfce4-goodies
# sudo apt-get install -y dbus-x11
# sudo apt-get install -y x11-xserver-utils
# fi

sudo -u ${VM_USER} -i bash -c 'echo xfce4-session > ~/.xsession'

# Fix for blank screen on DSVM (/sh -> /bash due to conflict with profile.d scripts)
sudo sed -i 's|!/bin/sh|!/bin/bash|g' /etc/xrdp/startwm.sh
Expand Down

0 comments on commit cd1a4db

Please sign in to comment.