Skip to content

Instantly share code, notes, and snippets.

@SlothDpal
SlothDpal / Dockerfile (webui)
Last active November 8, 2025 14:24
Run stable diffusion webui on Debian 13 (trixie)
FROM nvidia/cuda:12.4.1-cudnn-runtime-ubuntu22.04
# Install system dependencies
RUN apt-get update && apt-get install -y \
python3.10 \
python3.10-venv \
python3-pip \
git \
curl \
libgl1-mesa-dev \
@SlothDpal
SlothDpal / OVERLAYFS
Created April 21, 2022 13:23 — forked from mutability/OVERLAYFS
readonly root via overlayfs
- install the two shellscripts into the appropriate places under /etc/initramfs-tools
- run update-initramfs
- put "overlay=yes" on the kernel command line
- reboot
With the overlay in place, the real root is mounted readonly on /ro.
Only the root fs is changed, other filesystems are mounted normally.
Remove "overlay=yes" (or change it to something other than yes) and reboot to go back to readwrite.
(This probably means that you want the commandline config to live somewhere other than on the root fs, e.g. under /boot)