Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 7992d9d

Browse files
authored
fix(kasmVNC): fix debian installation and improve logging (#326)
1 parent 20d97a2 commit 7992d9d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

kasmvnc/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Automatically install [KasmVNC](https://kasmweb.com/kasmvnc) in a workspace, and
1414
```tf
1515
module "kasmvnc" {
1616
source = "registry.coder.com/modules/kasmvnc/coder"
17-
version = "1.0.21"
17+
version = "1.0.22"
1818
agent_id = coder_agent.example.id
1919
desktop_environment = "xfce"
2020
}

kasmvnc/run.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ download_file() {
1919
if command -v wget &> /dev/null; then
2020
wget $url -O $output
2121
elif command -v curl &> /dev/null; then
22-
curl -L $url -o $output
22+
curl -fsSL $url -o $output
2323
elif command -v busybox &> /dev/null; then
2424
busybox wget -O $output $url
2525
else
@@ -32,7 +32,8 @@ download_file() {
3232
install_deb() {
3333
local url=$1
3434
download_file $url /tmp/kasmvncserver.deb
35-
sudo apt-get install --yes --no-install-recommends --no-install-suggests /tmp/kasmvncserver.deb
35+
sudo apt-get update
36+
DEBIAN_FRONTEND=noninteractive sudo apt-get install --yes -qq --no-install-recommends --no-install-suggests /tmp/kasmvncserver.deb
3637
sudo adduser $USER ssl-cert
3738
rm /tmp/kasmvncserver.deb
3839
}
@@ -103,6 +104,7 @@ fi
103104

104105
# Check if vncserver is installed, and install if not
105106
if ! check_installed; then
107+
echo "Installing KASM version: ${VERSION}"
106108
case $distro in
107109
ubuntu | debian | kali)
108110
case $version in

0 commit comments

Comments
 (0)