From 2fc7d24feeb20ca945a3d50ca53546e145280747 Mon Sep 17 00:00:00 2001 From: Wanjohi <71614375+wanjohiryan@users.noreply.github.com> Date: Tue, 16 Apr 2024 03:16:39 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(base):=20Add=20xcvt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .scripts/entrypoint.sh | 6 +++--- base.Dockerfile | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.scripts/entrypoint.sh b/.scripts/entrypoint.sh index 7a308aa5..8abc3ed5 100644 --- a/.scripts/entrypoint.sh +++ b/.scripts/entrypoint.sh @@ -2,9 +2,9 @@ trap "echo TRAPed signal" HUP INT QUIT TERM # Create and modify permissions of XDG_RUNTIME_DIR -sudo -u user mkdir -pm700 /tmp/runtime-ubuntu -sudo chown user:user /tmp/runtime-ubuntu -sudo -u user chmod 700 /tmp/runtime-ubuntu +sudo -u ubuntu mkdir -pm700 /tmp/runtime-ubuntu +sudo chown ubuntu:ubuntu /tmp/runtime-ubuntu +sudo -u ubuntu chmod 700 /tmp/runtime-ubuntu # Make user directory owned by the user in case it is not sudo chown ubuntu:ubuntu /home/ubuntu || sudo chown ubuntu:ubuntu /home/ubuntu/* || { echo "Failed to change user directory permissions. There may be permission issues."; } # Remove directories to make sure the desktop environment starts diff --git a/base.Dockerfile b/base.Dockerfile index 4fb30761..1e8ffb3f 100644 --- a/base.Dockerfile +++ b/base.Dockerfile @@ -162,6 +162,7 @@ RUN dpkg --add-architecture i386 \ libsm6:i386 \ mesa-utils \ mesa-utils-extra \ + xcvt \ && rm -rf /var/lib/apt/lists/* \ && echo "/usr/local/nvidia/lib" >> /etc/ld.so.conf.d/nvidia.conf \ && echo "/usr/local/nvidia/lib64" >> /etc/ld.so.conf.d/nvidia.conf \