From 59e2d1837d45b3ee337e3c52640e2c92418485d3 Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Thu, 24 Oct 2024 21:56:06 +0300 Subject: [PATCH] We has desktop? --- Dockerfile | 36 ++++++++++++++++++++++++++++++++++++ README.md | 12 ++++++++++++ install-stuff.sh | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 94 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 install-stuff.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e1c9f05 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,36 @@ +ARG BASE_TAG="develop" +ARG BASE_IMAGE="core-debian-bookworm" +FROM kasmweb/$BASE_IMAGE:$BASE_TAG + +USER root + +ENV HOME /home/kasm-default-profile +ENV STARTUPDIR /dockerstartup +WORKDIR $HOME + +### Envrionment config +ENV DEBIAN_FRONTEND=noninteractive \ + SKIP_CLEAN=true \ + KASM_RX_HOME=$STARTUPDIR/kasmrx \ + DONT_PROMPT_WSL_INSTALL="No_Prompt_please" \ + INST_DIR=$STARTUPDIR/install + +# Copy install scripts +COPY ./install-stuff.sh $INST_DIR + +# Run installations +RUN \ + bash ${INST_DIR}/install-stuff.sh || exit 1; \ + $STARTUPDIR/set_user_permission.sh $HOME && \ + rm -f /etc/X11/xinit/Xclients && \ + chown 1000:0 $HOME && \ + mkdir -p /home/kasm-user && \ + chown -R 1000:0 /home/kasm-user && \ + rm -Rf ${INST_DIR} + +# Userspace Runtime +ENV HOME /home/kasm-user +WORKDIR $HOME +USER 1000 + +CMD ["--tail-log"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..be6b3f1 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +GlassTop +========== + +Modified for my needs from https://github.com/kasmtech/workspaces-images/commit/7600e4580c0affd177767c26b97b72acfffc28a4 + + + +Key differences +------------------ + - Stripped many packages + - Might have added packages + - Probably customized desktop default settings diff --git a/install-stuff.sh b/install-stuff.sh new file mode 100644 index 0000000..9a1ca35 --- /dev/null +++ b/install-stuff.sh @@ -0,0 +1,46 @@ +#/usr/bin/env bash +set -ex + +# VSCodium repo +wget https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg -O /usr/share/keyrings/vscodium-archive-keyring.asc +echo 'deb [ signed-by=/usr/share/keyrings/vscodium-archive-keyring.asc ] https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs vscodium main' | tee /etc/apt/sources.list.d/vscodium.list + + + +apt-get update +apt-get upgrade -y + +# Software yay +apt-get install -y \ + xdotool nano zip wget curl htop iotop \ + vlc \ + git \ + build-essential \ + firefox-esr \ + thunderbird \ + libreoffice \ + python-is-python3 \ + gimp \ + codium + +# Fonts whee +apt-get install -y \ + fonts-recommended \ + fonts-symbola \ + fonts-glasstty \ + fonts-firacode + +# Desktop entries +cp \ + /usr/share/applications/codium.desktop \ + /usr/share/applications/thunderbird.desktop \ + /usr/share/applications/libreoffice-startcenter.desktop \ + /usr/share/applications/gimp.desktop \ + /usr/share/applications/firefox-esr.desktop \ + $HOME/Desktop +chmod +x $HOME/Desktop/*.desktop +chown 1000:1000 $HOME/Desktop/*.desktop + +# Clean up +apt-get autoremove -y +apt-get autoclean -y