From aa341a91e3acae07959cee6b16860d41ef23c69c Mon Sep 17 00:00:00 2001 From: djarbz <30350993+djarbz@users.noreply.github.com> Date: Fri, 18 Oct 2024 22:15:43 -0500 Subject: [PATCH 1/4] Update run.sh Update package lists --- kasmvnc/run.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kasmvnc/run.sh b/kasmvnc/run.sh index 47fe571c..15056a8e 100644 --- a/kasmvnc/run.sh +++ b/kasmvnc/run.sh @@ -32,6 +32,7 @@ download_file() { install_deb() { local url=$1 download_file $url /tmp/kasmvncserver.deb + sudo apt-get update sudo apt-get install --yes --no-install-recommends --no-install-suggests /tmp/kasmvncserver.deb sudo adduser $USER ssl-cert rm /tmp/kasmvncserver.deb @@ -103,6 +104,7 @@ fi # Check if vncserver is installed, and install if not if ! check_installed; then + echo "Installing KASM version: ${VERSION}" case $distro in ubuntu | debian | kali) case $version in From 64b51c31a7f7080b88d657f53ad3b1bf93f5d9e4 Mon Sep 17 00:00:00 2001 From: djarbz <30350993+djarbz@users.noreply.github.com> Date: Fri, 18 Oct 2024 22:30:07 -0500 Subject: [PATCH 2/4] Quiet Curl Limits unneeded curl output --- kasmvnc/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kasmvnc/run.sh b/kasmvnc/run.sh index 15056a8e..13d89d17 100644 --- a/kasmvnc/run.sh +++ b/kasmvnc/run.sh @@ -19,7 +19,7 @@ download_file() { if command -v wget &> /dev/null; then wget $url -O $output elif command -v curl &> /dev/null; then - curl -L $url -o $output + curl -fsSL $url -o $output elif command -v busybox &> /dev/null; then busybox wget -O $output $url else From 8c94eaaf4ca5ef852b654bfa0dc3184ef49e3318 Mon Sep 17 00:00:00 2001 From: djarbz <30350993+djarbz@users.noreply.github.com> Date: Fri, 18 Oct 2024 22:33:21 -0500 Subject: [PATCH 3/4] Silence APT --- kasmvnc/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kasmvnc/run.sh b/kasmvnc/run.sh index 13d89d17..b8315376 100644 --- a/kasmvnc/run.sh +++ b/kasmvnc/run.sh @@ -33,7 +33,7 @@ install_deb() { local url=$1 download_file $url /tmp/kasmvncserver.deb sudo apt-get update - sudo apt-get install --yes --no-install-recommends --no-install-suggests /tmp/kasmvncserver.deb + DEBIAN_FRONTEND=noninteractive sudo apt-get install --yes -qq --no-install-recommends --no-install-suggests /tmp/kasmvncserver.deb sudo adduser $USER ssl-cert rm /tmp/kasmvncserver.deb } From c10501bbb845211b7026e284c7f48a08480b91c0 Mon Sep 17 00:00:00 2001 From: djarbz <30350993+djarbz@users.noreply.github.com> Date: Fri, 18 Oct 2024 22:57:35 -0500 Subject: [PATCH 4/4] Update README.md Bump version --- kasmvnc/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kasmvnc/README.md b/kasmvnc/README.md index 845cbc23..3b7fe507 100644 --- a/kasmvnc/README.md +++ b/kasmvnc/README.md @@ -14,7 +14,7 @@ Automatically install [KasmVNC](https://kasmweb.com/kasmvnc) in a workspace, and ```tf module "kasmvnc" { source = "registry.coder.com/modules/kasmvnc/coder" - version = "1.0.21" + version = "1.0.22" agent_id = coder_agent.example.id desktop_environment = "xfce" }