aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile6
-rwxr-xr-xstartup.sh4
2 files changed, 6 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index 7afe452..354afc8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,8 @@
-# At some point maybe add variables to control size of screen.
+FROM debian:bullseye
-FROM debian:buster
+ENV WIDTH=1920
+ENV HEIGHT=1080
+ENV DEPTH=16
RUN apt-get --yes update && apt-get --yes install --no-install-recommends \
firefox-esr \
diff --git a/startup.sh b/startup.sh
index 792c469..b4f1dee 100755
--- a/startup.sh
+++ b/startup.sh
@@ -3,10 +3,10 @@
export USER=root HOME=/root DISPLAY=:0 XAUTHORITY=$HOME/.Xauthority
mkdir -p $HOME/.vnc
-echo '' | vncpasswd -f >$HOME/.vnc/passwd
+echo fnord | vncpasswd -f >$HOME/.vnc/passwd
chmod -R go= $HOME/.vnc
# -localhost
-vncserver $DISPLAY -geometry 1920x1080 -depth 16 -nolisten tcp
+vncserver $DISPLAY -geometry ${WIDTH}x${HEIGHT} -depth ${DEPTH} -nolisten tcp
icewm
vncserver -kill $DISPLAY