remove options

pull/250/head
Muhammad Atif Ali 1 year ago
parent a76095fbe1
commit a254fd3e89

@ -20,18 +20,3 @@ module "kasmvnc" {
```
> **Note:** This module only works on debian-based workspaces. It is recommended to use an image with a desktop environment pre-installed to speed up the installation process.
## Examples
1. Add specific version of KasmVNC with [`mate`](https://mate-desktop.org/) desktop environment and custom port:
```tf
module "kasmvnc" {
source = "registry.coder.com/modules/kasmvnc/coder"
agent_id = coder_agent.example.id
version = "1.0.15"
kasm_version = "1.3.1"
desktop_environment = "mate"
port = 6080
}
```

@ -20,12 +20,6 @@ variable "port" {
default = 6800
}
variable "desktop_environment" {
type = string
description = "The desktop environment to for KasmVNC (xfce, lxde, mate, etc)."
default = "xfce"
}
variable "kasm_version" {
type = string
description = "Version of KasmVNC to install."
@ -38,7 +32,6 @@ resource "coder_script" "kasm_vnc" {
icon = "/icon/kasmvnc.svg"
script = templatefile("${path.module}/run.sh", {
PORT : var.port,
DESKTOP_ENVIRONMENT : var.desktop_environment,
VERSION : var.kasm_version
})
run_on_start = true

@ -1,11 +1,11 @@
#!/usr/bin/env bash
# Check if desktop environment is installed
if ! dpkg -s ${DESKTOP_ENVIRONMENT} &> /dev/null; then
if ! dpkg -s $PACKAGES &> /dev/null; then
sudo apt-get update
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y ${DESKTOP_ENVIRONMENT} libdatetime-perl
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y xfce4 xfce4-goodies libdatetime-perl --no-install-recommends --no-install-suggests
else
echo "${DESKTOP_ENVIRONMENT} is already installed."
echo "$PACKAGES is already installed."
fi
# Check if vncserver is installed
@ -40,4 +40,4 @@ echo -e "password\npassword\n" | vncpasswd -wo -u $USER
# Start the server
printf "🚀 Starting KasmVNC server...\n"
sudo -u $USER bash -c 'vncserver -select-de "${DESKTOP_ENVIRONMENT}" -disableBasicAuth' > /tmp/kassmvncserver.log 2>&1 &
sudo -u $USER bash -c 'vncserver -select-de xfce4 -disableBasicAuth' > /tmp/kassmvncserver.log 2>&1 &

Loading…
Cancel
Save