commit bea2840281ba3b31c9a080e337ef0d1ab6b4dcc0
parent 1347108f70380360ab464dfbc3f6215aa2a75b94
Author: Henry Unite <unitehenry@gmail.com>
Date: Tue, 30 Jun 2026 02:19:40 +0000
feat: apache guacamole
Diffstat:
4 files changed, 56 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -0,0 +1 @@
+*.out
diff --git a/guacamole/user-mapping.xml b/guacamole/user-mapping.xml
@@ -0,0 +1,7 @@
+<user-mapping>
+ <authorize username="admin" password="password">
+ <protocol>vnc</protocol>
+ <param name="hostname">host.docker.internal</param>
+ <param name="port">5900</param>
+ </authorize>
+</user-mapping>
diff --git a/scripts/connect b/scripts/connect
@@ -0,0 +1,28 @@
+#!/usr/bin/env bash
+
+PIDS=()
+
+cleanup() {
+ sudo rm -f guacamole;
+ sudo rm -f guacd;
+
+ for pid in "${PIDS[@]}"; do
+ kill -9 "$pid";
+ done
+}
+
+sudo docker run \
+ -p 4822:4822 \
+ --name guacd \
+ -d guacamole/guacd
+
+sudo docker run --name guacamole \
+ --add-host host.docker.internal \
+ -e GUACD_HOSTNAME=host.docker.internal \
+ -v "$(pwd)/guacamole:/etc/guacamole" \
+ -d \
+ -p 8080:8080 guacamole/guacamole
+
+nohup opencode web > opencode.out &
+
+PIDS+=("$!")
diff --git a/scripts/install-wayvnc b/scripts/install-wayvnc
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+sudo pacman -S base-devel libglvnd libxkbcommon pixman gnutls jansson
+
+git clone https://github.com/any1/wayvnc.git
+git clone https://github.com/any1/neatvnc.git
+git clone https://github.com/any1/aml.git
+
+mkdir wayvnc/subprojects
+cd wayvnc/subprojects
+ln -s ../../neatvnc .
+ln -s ../../aml .
+cd -
+
+mkdir neatvnc/subprojects
+cd neatvnc/subprojects
+ln -s ../../aml .
+cd -
+
+meson build
+ninja -C build