diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 2d1e576..97bc38c 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -25,4 +25,12 @@ jobs: file: ${{ gitea.workspace }}/infrastructure/graduated/fedora/arch.containerfile push: true tags: "gitea.reeseapps.com/services/arch-toolbox:latest,gitea.reeseapps.com/services/arch-toolbox:${{gitea.sha}}" + no-cache: true + - name: Build and push AMD GPU Docker image + uses: https://github.com/docker/build-push-action@v5 + with: + context: ${{ gitea.workspace }}/infrastructure/graduated/fedora + file: ${{ gitea.workspace }}/infrastructure/graduated/fedora/arch-amdgpu.containerfile + push: true + tags: "gitea.reeseapps.com/services/arch-toolbox-amdgpu:latest,gitea.reeseapps.com/services/arch-toolbox-amdgpu:${{gitea.sha}}" no-cache: true \ No newline at end of file diff --git a/infrastructure/graduated/fedora/arch-amdgpu.containerfile b/infrastructure/graduated/fedora/arch-amdgpu.containerfile new file mode 100644 index 0000000..17403f4 --- /dev/null +++ b/infrastructure/graduated/fedora/arch-amdgpu.containerfile @@ -0,0 +1,14 @@ +FROM gitea.reeseapps.com/services/arch-toolbox:latest + +# Install ROCM Drivers +RUN pacman -S --noconfirm rocm-hip-sdk rocm-opencl-sdk + +# Install Ollama, an AI language model application. +RUN curl -L https://ollama.com/download/ollama-linux-amd64.tgz -o ollama-linux-amd64.tgz && \ + tar -C /usr -xzf ollama-linux-amd64.tgz && \ + rm ollama-linux-amd64.tgz + +# Install Ollama AMD drivers +RUN curl -L https://ollama.com/download/ollama-linux-amd64-rocm.tgz -o ollama-linux-amd64-rocm.tgz && \ + tar -C /usr -xzf ollama-linux-amd64-rocm.tgz && \ + rm ollama-linux-amd64-rocm.tgz diff --git a/infrastructure/graduated/fedora/arch-build.sh b/infrastructure/graduated/fedora/arch-build.sh index 28e1992..683f4f7 100755 --- a/infrastructure/graduated/fedora/arch-build.sh +++ b/infrastructure/graduated/fedora/arch-build.sh @@ -3,13 +3,14 @@ # Build latest image podman pull quay.io/toolbx/arch-toolbox:latest podman build \ - -t gitea.reeseapps.com/services/arch-toolbox:debug \ + -t gitea.reeseapps.com/services/arch-toolbox:latest \ -f ./infrastructure/graduated/fedora/arch.containerfile -# Stop the current arch toolbox -podman container stop arch-toolbox-latest -podman container stop arch-toolbox-debug -# Remove the old container -podman container rm arch-toolbox-latest -podman container rm arch-toolbox-debug -# Start with the new image -toolbox create -i gitea.reeseapps.com/services/arch-toolbox:debug + +podman build \ + -t gitea.reeseapps.com/services/arch-toolbox-amdgpu:latest \ + -f ./infrastructure/graduated/fedora/arch-amdgpu.containerfile + +echo "podman container stop arch-toolbox-latest" +echo "podman container rm arch-toolbox-latest" +echo "toolbox create -i gitea.reeseapps.com/services/arch-toolbox-amdgpu:latest" +echo "toolbox create -i gitea.reeseapps.com/services/arch-toobolx" \ No newline at end of file diff --git a/infrastructure/graduated/fedora/arch.containerfile b/infrastructure/graduated/fedora/arch.containerfile index be732d3..08c804a 100644 --- a/infrastructure/graduated/fedora/arch.containerfile +++ b/infrastructure/graduated/fedora/arch.containerfile @@ -16,7 +16,7 @@ EOF # Set the architecture for Pacman manually to x86_64 since automatic detection might not work properly. RUN sed -i 's/^Architecture = auto/Architecture = x86_64/' /etc/pacman.conf -# Sync repository databases and perform an upgrade of all installed packages without asking for confirmation. +# Sync repository databases. RUN pacman -Sy --noconfirm # Install a variety of commonly used tools and utilities using Pacman. @@ -84,7 +84,9 @@ RUN pacman -S --noconfirm \ # Visual Studio Code editor code \ # Python static type checker and code formatter. - ruff + ruff \ + # Generate strong passwords. + pwgen ######################## ##### Extra Apps ##### @@ -93,11 +95,6 @@ RUN pacman -S --noconfirm \ # Install UV, a tool for managing Python environments. RUN curl -LsSf https://astral.sh/uv/install.sh | sh -# Install Ollama, an AI language model application. -RUN curl -L https://ollama.com/download/ollama-linux-amd64.tgz -o ollama-linux-amd64.tgz && \ - tar -C /usr -xzf ollama-linux-amd64.tgz && \ - rm ollama-linux-amd64.tgz - # Install AWS CLI version 2. RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \ unzip -qq awscliv2.zip && \ diff --git a/infrastructure/graduated/fedora/fedora-kinoite.md b/infrastructure/graduated/fedora/fedora-kinoite.md index 341a934..348fe99 100644 --- a/infrastructure/graduated/fedora/fedora-kinoite.md +++ b/infrastructure/graduated/fedora/fedora-kinoite.md @@ -283,6 +283,36 @@ Play games. flatpak install com.valvesoftware.Steam ``` +### MangoHud + + + +Pretty Numbers for your Games. + +```bash +flatpak install org.freedesktop.Platform.VulkanLayer.MangoHud +flatpak override --user --env=MANGOHUD=1 com.valvesoftware.Steam + +# Allow flatpak apps to read Mangohud config +flatpak override --user --filesystem=xdg-config/MangoHud:ro +``` + +Edit `~/.config/MangoHud/MangoHud.conf` + +```conf +### pre defined presets +# -1 = default +# 0 = no display +# 1 = fps only +# 2 = horizontal view +# 3 = extended +# 4 = high detailed information +preset=2 + +### Enable most of the toggleable parameters (currently excludes `histogram`) +# full +``` + ### Raspberry Pi Imager Flash your pi. @@ -410,14 +440,6 @@ Bittorent Client. flatpak install com.transmissionbt.Transmission ``` -### AdwSteamGtk - -Make Steam look like a KDE App... you know you want to. - -```bash -flatpak install io.github.Foldex.AdwSteamGtk -``` - ### Frog Extract text, scan QR codes, from images. diff --git a/infrastructure/graduated/fedora/zshrc b/infrastructure/graduated/fedora/zshrc index f7d9c84..23f111d 100644 --- a/infrastructure/graduated/fedora/zshrc +++ b/infrastructure/graduated/fedora/zshrc @@ -18,7 +18,7 @@ source /usr/share/doc/pkgfile/command-not-found.zsh ### Custom Commands and Aliases ### # Local bin PATH -export PATH="$HOME/.local/bin:$PATH" +export PATH="$HOME/.local/bin:$HOME/.local/scripts:$PATH" # Fix for Ansible export LC_ALL="C.UTF-8"