We has desktop?

This commit is contained in:
Jarkko Toivanen 2024-10-24 21:56:06 +03:00
commit 59e2d1837d
Signed by: jt
GPG key ID: 9151B109B73ECAD5
3 changed files with 94 additions and 0 deletions

36
Dockerfile Normal file
View file

@ -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"]

12
README.md Normal file
View file

@ -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

46
install-stuff.sh Normal file
View file

@ -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