Sign inSign up

aborsatto/enhanced-terminal

By aborsatto

•Updated about 1 year ago

Kasm xfce4-terminal workspace with some enhancements - now including ansible and busybox

Image
0

5.9K

aborsatto/enhanced-terminal repository overview

⁠enhanced-terminal enhanced-terminal:

Created using the kasmweb/ubuntu-noble-desktop:develop image as base image.

Now with Powershell 7.5.3, Ansible and Busybox!

All the files used in this image can be downloaded from this drive: https://drive.google.com/drive/folders/1uLD_Dz-7e2zoziJc9Ja3I3uyjqbHHs88?usp=drive_link⁠

⁠Dokerfile
FROM kasmweb/ubuntu-noble-desktop:develop
LABEL maintainer="borsatto at mail dot com"

USER root

RUN echo 'root:Kasm123!' | sudo chpasswd
RUN echo 'kasm-user:Kasm123!' | sudo chpasswd

# Fixing the dockerstartup dir
COPY dockerstartup.zip /tmp/
RUN unzip -o /tmp/dockerstartup.zip -d / \
    && rm /tmp/dockerstartup.zip

# Kasm
ENV HOME=/home/kasm-default-profile
ENV STARTUPDIR=/dockerstartup
ENV INST_SCRIPTS=$STARTUPDIR/install
WORKDIR $HOME

# Cleaning up the Image for other apps
# -------------------------------------------

RUN rm /home/kasm-default-profile/Desktop/*.* \
    && rm -Rf /opt/onlyoffice/ /opt/Telegram/ \
    && apt update -y \
    && apt remove -y \
       thunderbird \
       gimp \
       nextcloud-desktop \
       remmina \
       zoom \
       code \
       slack-desktop \
       sublime-text \
       obs-studio \
       vlc \
       slack \
       google-chrome-stable \
       signal-desktop \
    && apt autoremove -y \ 
    && add-apt-repository --yes --update ppa:ansible/ansible \
    && wget http://ftp.ie.debian.org/debian/pool/main/i/icu/libicu72_72.1-3+deb12u1_amd64.deb \
    && wget -q https://packages.microsoft.com/config/ubuntu/24.04/packages-microsoft-prod.deb \
    && dpkg -i packages-microsoft-prod.deb \
    && dpkg -i libicu72_72.1-3+deb12u1_amd64.deb \
    && rm *.deb \ 
    && mkdir -p /etc/apt/keyrings \
    && wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | sudo gpg --dearmor -o /etc/apt/keyrings/gierens.gpg \
    && echo "deb [signed-by=/etc/apt/keyrings/gierens.gpg] http://deb.gierens.de stable main" | sudo tee /etc/apt/sources.list.d/gierens.list \
    && chmod 644 /etc/apt/keyrings/gierens.gpg /etc/apt/sources.list.d/gierens.list \
    && apt update \
    && apt install -y gpg \
       powershell \
       apt-transport-https \
       software-properties-common \
       iputils-ping \
       dnsutils \
       eza \
       fzf \
       unzip \
       ansible \
    && pwsh -Command Install-Module VMware.PowerCLI -Force \
    && pwsh -Command Install-Module -Name Az -Repository PSGallery -Force \
    && wget https://starship.rs/install.sh \
    && chmod +x install.sh \
    && ./install.sh -y \
    && mkdir -p /home/kasm-default-profile/.config/powershell/ \
    && echo 'Invoke-Expression (&starship init powershell)' > /home/kasm-default-profile/.config/powershell/Microsoft.PowerShell_profile.ps1 \
    && rm install.sh \
    && wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/Hack.zip \
    && unzip Hack.zip -d /usr/local/share/fonts \
    && rm Hack.zip

COPY custom_startup.sh /dockerstartup/custom_startup.sh
RUN chmod +x /dockerstartup/custom_startup.sh 
COPY .bashrc /home/kasm-default-profile/

COPY user /home/kasm-default-profile/.config/dconf/
COPY xfce4/ /home/kasm-default-profile/.config/
COPY xfce4/terminal/terminalrc /home/kasm-default-profile/.config/xfce4/terminal/
COPY wallpaper-kasm.jpg /usr/share/backgrounds/bg_default.png
COPY starship.toml /home/kasm-default-profile/.config/

RUN chmod a-rwx /usr/bin/xfce4-panel \
    && chmod +x /dockerstartup/custom_startup.sh \
    && chown 1000:0 $HOME \
    && $STARTUPDIR/set_user_permission.sh $HOME
ENV HOME=/home/kasm-user
WORKDIR $HOME
RUN mkdir -p $HOME && chown -R 1000:0 $HOME
USER 1000

Tag summary

Content type

Image

Digest

sha256:173fc94a6…

Size

4.4 GB

Last updated

about 1 year ago

docker pull aborsatto/enhanced-terminal