Skip to content

Instantly share code, notes, and snippets.

View daryltucker's full-sized avatar

Daryl Tucker daryltucker

  • Neo-Retro Group
  • Salem, Or
View GitHub Profile
@daryltucker
daryltucker / Docker_CDI_NVIDIA_Non-Standard.md
Created December 17, 2025 23:10
NVIDIA Docker Container Runtime CDI w. non-standard NVIDIA Kernel

NVIDIA Docker Container Runtime

nvidia-smi --query-gpu=index,name,uuid,pci.bus_id --format=csv

Enable the Module

sudo modprobe nvidia-uvm
@daryltucker
daryltucker / 470.256.02_DKMS_FIXES_6.12.43.md
Created December 17, 2025 22:57
NVIDIA Kernel 470.256.02 Linux Kernel 6.12.43+deb13-amd64 DKMS Fixes

Patching NVIDIA 470.256.02 for Linux Kernel 6.12 -> 6.13 Transition (Debian 13)

Assuming you have the appropriate patches and had DKMS working...

0001-Fix-conftest-to-ignore-implicit-function-declaration.patch
0002-Fix-conftest-to-use-a-short-wchar_t.patch
0003-Fix-conftest-to-use-nv_drm_gem_vmap-which-has-the-se.patch
nvidia-470xx-fix-gcc-15.patch
kernel-6.10.patch
@daryltucker
daryltucker / Debian_GCC_Versions.txt
Last active November 5, 2025 22:39
Minimum and Maximum Kernel Versions for Debian Distributions w. GCC Versions
squeeze -> gcc 4.6.1 (kernel linux-image-2.6.32-5)
wheezy -> gcc 4.8.4 (kernel linux-image-3.2.78-1)
jessie -> gcc 4.9.2 (kernel linux-image-3.16.56-1)
stretch -> gcc 5.3 (kernel linux-image-4.9.228-1)
buster -> gcc 5.5 (kernel linux-image-4.19.249-1)
bullseye -> gcc 10 (kernel linux-image-5.10.223-1)
bookworm -> gcc 11 (kernel linux-image-6.1.148-1)
trixie -> gcc 12 (kernel linux-image-6.12.43-1)
@daryltucker
daryltucker / .bashrc_tmux_history
Last active October 8, 2025 00:26
Ensure tmux is storing history properly
# Ensure tmux is storing history properly
HISTFILE=~/.bash_history
export HISTCONTROL=ignoredups:erasedups,ignoreboth
if [ -n "$TMUX" ]; then
HISTFILE=$(mktemp)
history -r ~/.bash_history
trap 'history -a ~/.bash_history; rm "$HISTFILE"' EXIT
else
trap 'history -a ~/.bash_history' EXIT
fi
@daryltucker
daryltucker / kmscon_with_btop.mkd
Last active October 2, 2025 15:38
kmscon with btop

kmscon w. btop

Create btopuser

sudo adduser --system --no-create-home --shell /usr/sbin/nologin btopuser
sudo addgroup --system procview
sudo usermod -a -G procview btopuser
sudo usermod -a -G video btopuser
@daryltucker
daryltucker / uvgit
Created September 30, 2025 21:09
uvgit: Specify uv Package Source
function uvgit(){
repo=$(echo "${1}" | rev | cut -d'/' -f -1 | rev)
echo "Installing $repo found at ${1}"
uv tool install "git+${1}#egg=${repo}"
}
@daryltucker
daryltucker / main.py
Last active September 30, 2025 04:21
openapi_mcp_confgen
#!/usr/bin/env python3
# Neo-Retro Group
# @daryltucker
# /// script
# dependencies = [
# "requests"
# ]
# ///
@daryltucker
daryltucker / ROCM-6.4.3_Linux-6.12_DKMS.mkd
Last active September 25, 2025 16:55
Install ROCm 6.4.3 DKMS on Linux 6.12 (Debian 13)

Install ROCm DKMS on Linux 6.12 (Debian 13)

What a mess this is...

Install ROCm Repositories

We must set up these repositories to grab amdgpu-install... which... installs additional repositories...

wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | \
@daryltucker
daryltucker / ROCM-6.4.3_Linux-6.12_Packages.txt
Created September 24, 2025 23:43
Recording ROCm Packages Installed to DKMS on Linux 6.12
amd-smi-lib:
Installed: 25.5.1.60403-128~24.04
Candidate: 25.5.1.60403-128~24.04
Version table:
*** 25.5.1.60403-128~24.04 600
600 https://repo.radeon.com/rocm/apt/6.4.3 noble/main amd64 Packages
100 /var/lib/dpkg/status
comgr:
Installed: 3.0.0.60403-128~24.04
Candidate: 3.0.0.60403-128~24.04
@daryltucker
daryltucker / apt-switch-repos
Last active September 24, 2025 23:38
Find all Packages installed from BAD_REPO and find replacements on GOOD_REPO
#!/bin/bash
# vim: set filetype=sh :
# @daryltucker #WorkedForMe
# Find all Packages installed from BAD_REPO and find replacements on GOOD_REPO
# This is my chance to say the ROCm ecosystem is absolute trash
# Otherwise, this script can be useful for other situations, so I'm publishing it.