From e2c54e5cd7f406190d0319761bafbcfe46eb48a1 Mon Sep 17 00:00:00 2001 From: Hang Cui Date: Fri, 31 Oct 2025 01:28:33 -0400 Subject: [PATCH] Add docker folder --- docker/startup.sh | 12 ++++++++++++ docker/xstartup | 14 ++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 docker/startup.sh create mode 100644 docker/xstartup diff --git a/docker/startup.sh b/docker/startup.sh new file mode 100644 index 0000000..496d7d4 --- /dev/null +++ b/docker/startup.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# set vnc passworld +x11vnc -storepasswd $VNC_PW ~/.vnc/passwd + +# start vncserver +vncserver :1 -localhost no -geometry=$VNC_GEOMETRY -depth=$VNC_DEPTH + +# start noVNC +./usr/lib/noVNC/utils/novnc_proxy --vnc localhost:5901 + +tail -f /dev/null \ No newline at end of file diff --git a/docker/xstartup b/docker/xstartup new file mode 100644 index 0000000..4acf083 --- /dev/null +++ b/docker/xstartup @@ -0,0 +1,14 @@ +#!/bin/sh +unset SESSION_MANAGER +unset DBUS_SESSION_BUS_ADDRESS +export GTK_IM_MODULE=fcitx +export QT_IM_MODULE=fcitx +export XMODIFIERS=@im=fcitx +export LANG=zh_CN.UTF-8 +fcitx -r + +# disable screen blanking +xset s off +xset s noblank + +startxfce4