Remove alpine webtops

This commit is contained in:
myve 2024-07-21 21:46:50 +00:00
commit d36efd180b
8 changed files with 0 additions and 158 deletions

View file

@ -1,50 +0,0 @@
#!/usr/bin/env bash
# Check for MYVNC_VNCPASS variable
if [ -z ${MYVNC_VNCPASS} ]
then
echo "MYVNC_VNCPASS env variable is missing"
exit 1
fi
# Configure tigervnc auth
if [ ! -f ~/.vnc/passwd ]
then
echo "${MYVNC_VNCPASS}" | vncpasswd -f >~/.vnc/passwd
chmod 0600 ~/.vnc/passwd
fi
# Remove VNCPASS env
unset MYVNC_VNCPASS
# VNC xstartup
install /dev/stdin ~/.vnc/xstartup <<- xstartup
#!/usr/bin/env bash
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
exec ${STARTXBIN}
xstartup
# Turn vnc sharing on/off
if [[ ${MYVNC_VNCSHARING} == "true" ]] || [[ ${MYVNC_VNCSHARING} == "1" ]]
then
_MYVNC_VNCSHARING=alwaysshared
else
_MYVNC_VNCSHARING=nevershared
fi
# VNC config
cat >~/.vnc/config <<- vncconfig
session=plasmax11
geometry=1920x1080
framerate=60
depth=32
${_MYVNC_VNCSHARING}
vncconfig
# Disable KDE screenlock
cat >~/.config/kscreenlockerrc <<- 'kscreenlockerrc'
[Daemon]
Autolock=false
LockOnResume=false
Timeout=0
kscreenlockerrc

View file

@ -1,3 +0,0 @@
#!/usr/bin/env bash
# Launch Tigervnc
vncserver :0 &

View file

@ -1,23 +0,0 @@
# syntax = docker/dockerfile:1
FROM alpine/base
USER root
# Build ARG: use "root" for debugging
ARG debug
# X session environment variable
ENV STARTXBIN=startplasma-x11
# Run
RUN apk add --no-cache \
tigervnc \
plasma-desktop-meta \
font-dejavu \
firefox \
&& printf '%s\n' 'permit nopass user as root cmd /sbin/apk args add' >>/etc/doas.conf
# Tigervnc initialization scripts
COPY *.sh /app/init.d/
# Default environment
USER ${debug:-user}

View file

@ -1,7 +0,0 @@
#!/usr/bin/env bash
# Docker build
# Optional: buildtag
DOCKER_BUILDKIT=1 \
docker build . \
--build-arg debug=${debug:-""} \
--tag ${buildtag:-alpine/webtop:plasma}

View file

@ -1,42 +0,0 @@
#!/usr/bin/env bash
# Check for MYVNC_VNCPASS variable
if [ -z ${MYVNC_VNCPASS} ]
then
echo "MYVNC_VNCPASS env variable is missing"
exit 1
fi
# Configure tigervnc auth
if [ ! -f ~/.vnc/passwd ]
then
echo "${MYVNC_VNCPASS}" | vncpasswd -f >~/.vnc/passwd
chmod 0600 ~/.vnc/passwd
fi
# Remove VNCPASS env
unset MYVNC_VNCPASS
# VNC xstartup
install /dev/stdin ~/.vnc/xstartup <<- xstartup
#!/usr/bin/env bash
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
exec ${STARTXBIN}
xstartup
# Turn vnc sharing on/off
if [[ ${MYVNC_VNCSHARING} == "true" ]] || [[ ${MYVNC_VNCSHARING} == "1" ]]
then
_MYVNC_VNCSHARING=alwaysshared
else
_MYVNC_VNCSHARING=nevershared
fi
# VNC config
cat >~/.vnc/config <<- vncconfig
session=xfce
geometry=1920x1080
framerate=60
depth=32
${_MYVNC_VNCSHARING}
vncconfig

View file

@ -1,3 +0,0 @@
#!/usr/bin/env bash
# Launch Tigervnc
vncserver :0 &

View file

@ -1,23 +0,0 @@
# syntax = docker/dockerfile:1
FROM alpine/base
USER root
# Build ARG: use "root" for debugging
ARG debug
# X session environment variable
ENV STARTXBIN=startxfce4
# Run
RUN apk add --no-cache \
tigervnc \
xfce4 xfce4-terminal adwaita-icon-theme \
font-dejavu \
firefox \
&& printf '%s\n' 'permit nopass user as root cmd /sbin/apk args add' >>/etc/doas.conf
# Tigervnc initialization scripts
COPY *.sh /app/init.d/
# Default environment
USER ${debug:-user}

View file

@ -1,7 +0,0 @@
#!/usr/bin/env bash
# Docker build
# Optional: buildtag
DOCKER_BUILDKIT=1 \
docker build . \
--build-arg debug=${debug:-""} \
--tag ${buildtag:-alpine/webtop:xfce}