If a unique index suddenly tolerates duplicates, or WHERE email = ... misses a row that a sequential scan finds, the index is sorted by collation rules that no longer match what your OS provides. That happens when the C library's sort order changes — most famously in glibc 2.28 — and it is not a Postgres bug, a replication bug, or a bad disk. The fix is to rebuild every index on a text column, then tell Postgres which collation version it is now running against. I hit this after the most boring change imaginable: bumping a Docker base image from Debian 10 to Debian 12 for a staging database. The data directory was on a mounted volume, so it survived. The sort order underneath it did not. The symptoms are inconsistent enough that you distrust your own code first, which is why this costs people days: Symptom What's really happening INSERT succeeds on a value that already exists in a UNIQUE column The index probe walked the b-tree using new sort rules and never reached the existing entry SELECT ... WHERE name = 'x' returns nothing, but SELECT ... WHERE name LIKE 'x' returns a row The first uses the index, the second forces a scan ORDER BY name returns a different order than it did last week The comparison function itself changed count(*) differs depending on whether a filtered index is used Index-only scans see a subset On Postgres 15+, every connection logs a collation version mismatch warning Postgres is telling you directly That last row is the gift. Since Postgres 15, connecting to a database whose recorded collation version doesn't match the OS produces: WARNING: database "app" has a collation version mismatch DETAIL: The database was created using collation version 2.28, but the operating system provides version 2.36. HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE app REFRESH COLLATION VERSION. Collation version tracking for libc collations landed in Postgres 13 at the collation level, and Postgres 15 extended it
If a call from inside a container occasionally takes almost exactly 5 seconds and then succeeds normally, you are almost certainly looking at a DNS resolver timeout, not a slow upstream. The glibc resolver waits 5 seconds per nameserver attempt by default, and Kubernetes pods ship with options ndots:5, which turns every external hostname into several cluster-internal lookups before the real one is tried. The fix is to stop generating those extra queries — per-pod dnsConfig, a fully-qualified hostname with a trailing dot, or a node-local DNS cache — not to raise your HTTP client timeout. That number is a resolver default, not a coincidence. resolv.conf supports options timeout:n attempts:m, and on glibc the defaults are a 5-second timeout with 2 attempts per nameserver. So any DNS query whose response never arrives costs you a flat 5 seconds before the resolver retries or moves on. This matters because a dropped UDP response is indistinguishable from a slow one. The usual causes are a saturated or restarting DNS pod, a conntrack race on the DNAT path to the DNS service, or simply too many queries in flight because of the fanout described below. Whatever the trigger, the symptom is the same shape: p50 latency is fine, p99 has a cliff at 5s (or 10s, when two attempts fail), and the upstream provider's status page is green. A latency histogram with a spike parked at 5 seconds and nothing between 200ms and 5s is a resolver timeout, not a network slowdown. The ndots option says: if a name contains fewer than this many dots, treat it as relative and try it against each entry in search first, before trying it as an absolute name. Kubernetes injects something like this into pods: nameserver 10.96.0.10 search myapp.svc.cluster.local svc.cluster.local cluster.local options ndots:5 api.stripe.com has two dots, which is fewer than five, so the resolver dutifully asks for api.stripe.com.myapp.svc.cluster.local, then api.stripe.com.svc.cluster.local, then api.stripe.com.cluster.lo
Accidental credential commits are often found weeks or months after they happen, long after anyone who was watching had time to use them. This guide walks through a systematic audit of your repositories, git history, Docker images and CI pipelines using free, open-source tools. A credential audit is not just scanning your current working tree. Secrets committed to git are permanent in history unless you rewrite it. Deleting a file does not remove the secret: the commit with the original file is still reachable via git log and git show. A proper audit covers: Full git history: every commit, including deleted files and reverted changes All branches and tags: feature branches often hold secrets that never reached main Docker image layers: build-time ARG and ENV instructions that baked secrets in CI/CD configs: .github/workflows, .gitlab-ci.yml, and environment variables echoed into logs Lock files: rarely, npm/yarn lockfiles contain registry auth tokens Build artifacts: compiled frontends that embedded env vars at build time Gitleaks (MIT) is one of the most widely used open-source secret scanners, with built-in rules for OpenAI, AWS, Stripe, GitHub, Twilio and most major providers. # Install (macOS) brew install gitleaks # Install (Linux) curl -sSL https://github.com/gitleaks/gitleaks/releases/latest/download/gitleaks_linux_x64.tar.gz | tar -xz sudo mv gitleaks /usr/local/bin/ # Scan full git history of the current repo gitleaks detect --source . --verbose # Write a JSON report gitleaks detect --source . --report-path gitleaks-report.json --report-format json detect scans every commit. On large repos it can take a few minutes; --log-opts accepts any git log options, e.g. --log-opts="--since=2025-01-01" to scan recent history only. Add it as a pre-commit hook so new secrets never land: # .pre-commit-config.yaml repos: - repo: https://github.com/gitleaks/gitleaks rev: v8.21.0 hooks: - id: gitleaks pre-commit install TruffleHog (AGPL-3.0) goes further by verifying detect
Have you ever launched 20–30 concurrent ffmpeg encoding jobs on a beefy multi-core server, only to watch the entire system grind to a halt? Even on modern NVMe drives and 64-thread machines, running dozens of heavy video encoders simultaneously can trigger the dreaded I/O convoy effect. The standard Linux scheduler (EEVDF) tries to be fair by giving everyone CPU time at once. The result? All 25 processes decompress, encode, and flush buffers to disk at the exact same moment—saturating memory channels, dirtying page cache pages, and freezing interactive tasks. With Linux 6.12, we finally have an elegant way to solve this at the kernel level without recompiling the kernel: sched_ext (SCX), the extensible BPF scheduler class. In this article, we’ll build a custom eBPF scheduler that detects ffmpeg processes, isolates them into a dedicated queue, and staggers their execution to smooth out I/O bursts. sched_ext? Historically, the Linux CPU scheduler has been hardcoded into the kernel image (from O(1) to CFS and recently EEVDF). Modifying scheduling logic required compiling a custom kernel, testing out-of-tree patches, or maintaining custom kernel forks. Merged into mainline in Linux 6.12, sched_ext lets developers write CPU scheduling policies in eBPF using struct_ops. You can: Write scheduling logic in C or Rust. Load and unload schedulers at runtime via user space without restarting. Safely fall back to default kernel scheduling if your BPF program misbehaves. It’s important to understand the boundary: sched_ext governs CPU execution (which thread runs on which core and for how long). blk-mq / cgroup v2 governs block storage queues (how bios are submitted to the disk controller). So why fix I/O problems in a CPU scheduler? Encoders operate in periodic cycles: Read Input -> Heavy CPU Compute (Decode/Encode) -> Write/Flush Output If 25 encoders run across all cores uncoordinated, their CPU phases align, meaning their I/O flush phases also align. By controlling CPU dispat
Introduction Every Linux server, whether it hosts a small personal project or a large-scale production application, depends on one fundamental administrative task: user management. Properly managed users and groups are the first line of defense for your server's security, and they form the foundation of a well-organized, maintainable system. When I first started working with Linux servers, user management seemed like a simple topic — just create a user, set a password, and move on. In practice, it is much more than that. Understanding how users, groups, permissions, and privileges work together is essential for anyone who administers a server, whether you are a DevOps engineer, a backend developer deploying your first application, or a student building a home lab. In this article, I will walk you through everything you need to know about user management on a Linux server: creating and deleting users, managing groups, assigning sudo privileges, securing SSH access, and following industry best practices. Before diving into commands, it is important to understand why this topic deserves your attention: Security: Each user account is a potential entry point. Unused accounts, weak passwords, and excessive privileges are among the most common ways servers get compromised. Accountability: When every action can be traced back to a specific user, auditing and troubleshooting become far easier. Least privilege: Users should only have the access they actually need — no more, no less. Collaboration: Groups allow teams to share files and resources safely without exposing them to everyone else. In Linux, every user is identified by two values: Username: The human-readable name used to log in (for example, yeasin). UID (User ID): The numeric identifier the system actually uses internally. Regular users typically start at 1000, while system accounts use lower values. User information is stored in a few key files: File Purpose /etc/passwd Stores usernames, UIDs, home directories, an
Most Linux packages still ship shell that looks like this: getent group myapp >/dev/null || groupadd --system myapp getent passwd myapp >/dev/null || useradd --system --gid myapp --home-dir /var/lib/myapp --shell /usr/sbin/nologin myapp It works until someone races the script, a container image rebuild forgets the accounts, an admin overrides /etc/login.defs, or you need the same identity on a chroot, a DDI, and a live host without copy-pasting three different useradd dialects. systemd-sysusers is the declarative fix. Drop one line per account under sysusers.d/, run it at package install or early boot, and the system users appear the same way every time — without inventing human logins, and without touching NIS/LDAP databases. systemd-sysusers reads sysusers.d fragments and creates system users and groups by writing /etc/passwd and /etc/group directly. That is intentional: It is for daemon identities and privilege separation, not for people. It bypasses complex remote user databases (NIS, LDAP, and friends). System users must resolve without the network, including early boot and initrd paths. If you need portable encrypted human homes, that is systemd-homed. If you want a throwaway UID for one unit with no persistent name, that is DynamicUser=. sysusers sits in the middle: named, persistent, local system accounts that packages and images can declare. The boot unit is systemd-sysusers.service. You can also invoke the tool by hand. Search paths (highest override wins on the same basename): Path Role /etc/sysusers.d/*.conf Local administrator /run/sysusers.d/*.conf Runtime /usr/local/lib/sysusers.d/*.conf Local software installs /usr/lib/sysusers.d/*.conf Vendor / package Rules from sysusers.d(5): Packages ship files under /usr/lib/sysusers.d/. Admins override by placing the same filename under /etc/sysusers.d/. All files are sorted lexicographically by filename, regardless of directory. If multiple files define the same user/group name, the lexicographically earliest
TL;DR We'll run MediaMTX locally, publish a test pattern to it over RTMP and over SRT, pull both back out, then add packet loss to the network path with tc netem. RTMP stalls and reconnects; SRT retransmits inside its latency window and keeps going. Then we'll size that window properly from a real RTT and push it to a relay. RTMP rides on TCP, so one lost packet blocks everything behind it until it's retransmitted. SRT rides on UDP with its own selective retransmission and a latency budget you choose. Everyone says this; almost nobody has watched it happen. Let's watch it happen. You need Linux (netem is a Linux qdisc; on macOS run this inside a Linux VM or container with NET_ADMIN), ffmpeg 7.x or 8.x built with libsrt (check with ffmpeg -protocols | grep srt), and MediaMTX. We'll do everything on loopback so there's nothing to deploy. MediaMTX is a single static binary that speaks SRT, RTMP, RTSP, WebRTC, HLS and more, with no dependencies. Grab the latest release for your platform from the GitHub releases page (1.19.x at the time of writing) and run it: mkdir srt-lab && cd srt-lab # download + extract mediamtx for your platform, then: ./mediamtx 2026/10/05 10:02:11 INF MediaMTX v1.19.0 2026/10/05 10:02:11 INF configuration loaded from /home/me/srt-lab/mediamtx.yml 2026/10/05 10:02:11 INF [RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP) 2026/10/05 10:02:11 INF [RTMP] listener opened on :1935 2026/10/05 10:02:11 INF [HLS] listener opened on :8888 2026/10/05 10:02:11 INF [WebRTC] listener opened on :8889 (HTTP), :8189 (ICE/UDP) 2026/10/05 10:02:11 INF [SRT] listener opened on :8890 (UDP) The shipped mediamtx.yml enables both RTMP (:1935) and SRT (:8890) by default. Leave it alone for now. 💡 Tip: with Docker, docker run --rm --network host bluenviron/mediamtx does the same thing. Host networking matters later, because we'll shape the host's loopback interface. We'll use a synthetic source so the test is repeatable and nobody has to find a samp
I run two production sites as a one-person operation. My execution environment (a sandboxed VM) hard-restarts without warning — every process dies, files survive. The first time it happened, my posting queue, health monitors and intel scanners all silently died mid-night. I found out hours later. Never again. Here's the immune system I built, layer by layer. Daemons never run from /tmp — all state lives in a persistent artifact directory. A restart wipes processes, not state, so every daemon is designed to resume from its state file (queue position, dedup sets, cooldown timestamps). A watchdog loops every 10 minutes: for each registered daemon, check if alive; if dead, relaunch with setsid nohup. The nasty bug: I checked aliveness with pgrep -f pattern. Classic. Except when my own agent shell ran a command containing the daemon's name (e.g. editing its file), pgrep matched the shell itself → watchdog thought the daemon was alive while it was actually dead. The fix: daemons are launched via setsid, so they're session leaders where SID == PID. Phantom matches (my shell) have SID != PID. The aliveness check became: def alive(pattern): r = subprocess.run(["pgrep", "-f", pattern], capture_output=True, text=True) for pid in r.stdout.split(): s = subprocess.run(["ps", "-o", "sid=", "-p", pid], capture_output=True, text=True) if s.stdout.strip() == pid: return True return False Bonus trap I hit twice in one night: never pkill -f X from a shell whose own command line contains X. You will kill your own shell. Use the bracket trick: pkill -f "[w]atchdog.py". Every 30 minutes the watchdog GETs every public URL of both sites. Three consecutive homepage failures → auto-redeploy from the known-good static build (wrangler pages deploy), with a 6-hour cooldown so a broken build can't flap. The deploy config is data-driven (a JSON registry). Lesson learned the hard way: audit the config too — mine pointed at .next instead of the exported out/ for one site, which would have made the a
Episode 5 of the homelab build series. Terraform poured the foundation, Ansible and RKE2 framed the walls, Kyverno and friends wired the alarms, and Tekton and Harbor built the workshop out back. This one is about the floor everything else stands on: Rook-Ceph as the garage that holds whatever you throw at it, and CloudNativePG as the filing cabinets for the stuff that needs a proper label. The Ceph dashboard landing page: HEALTH_OK, 22 TiB raw, 6 OSDs up and in across three zones. SSO Login with keycloak and Oauth2-proxy using google and Github social login. signed in with google SSO and keycloak I was proud of a cluster that was lying to me For a few months I told anyone who'd listen that my data was safe. Six Ceph OSDs, three datacenters, every object stored three times. It sounded great when I said it out loud. Then I actually looked at where those OSDs lived. Each one was a 100 GiB slice of the same local disk that held the VM boot volumes on that host, etcd's included. I'd built three copies of my data on three copies of the same weak spot, and I'd been bragging about it. Ceph kept filling up, and I kept blaming Ceph. It wasn't Ceph. I'd put the garage, the filing cabinets and the house wiring on one shelf and hoped nobody leaned on it. So this episode is the fix, and the story of what the fix taught me. It's the least exciting room in the house. Nobody comes round to admire your PVCs. But every episode after this one (the MLOps stack, the lakehouse, Kubeflow) is a tenant that needs somewhere to put things, and tenants don't move into a building without floors. Two floors, in the end. Rook-Ceph at the bottom gives the cluster block, file and object storage from one system. CloudNativePG sits on top of it for the one kind of data that deserves its own filing system: relational state. Here's how both are built, what moving onto real NVMe took, and the traps that taught me the difference between "replicated" and "safe". If you've been following along, the cluster
Docker permission denied: what the error is actually telling you A client messages me about this error almost every week. They run a command, see "permission denied", and assume Docker is broken. Docker is rarely broken. People just use one name for two completely different errors. The first happens before any container starts: your user cannot talk to the Docker daemon. The second happens inside a running container: the app cannot write a file. The fixes have nothing in common, so tell them apart first. Below are the four causes I see in client work. Docker permission denied means the process that tried to write a file (or talk to the daemon) is not the user that owns the file (or the socket), and it has no group or other rights to it either. The kernel does not care about names like www-data or hitesh. It compares numbers: the UID and GID of the process against the owner and mode bits of the file. Socket error File error What you see permission denied ... docker.sock Permission denied or EACCES in container logs Who actually failed Your shell user, running the docker CLI The app process inside the container Where to look /var/run/docker.sock and your groups Host path owner, container user, SELinux This is the one you see on a fresh server: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock The Docker daemon always runs as root and listens on /var/run/docker.sock, owned by root:docker with mode 660. If you are not root or in the docker group, the CLI cannot open it. Check both sides first: `ls -l /var/run/docker.sock id -nG Then the fix: `sudo groupadd docker # fine if it says the group already exists newgrp docker Group membership is read at login, so old shells lack it. newgrp docker fixes the current shell only. I once lost 20 minutes to a tmux pane that never got the change. If you ran sudo docker ... before fixing the group, you may see this: WARNING: Error loading config file: /home/hitesh/.docker/config.json
A demanda por executar modelos de linguagem locais (Llama, DeepSeek, Qwen, Mistral) para garantir soberania de dados, privacidade e zero custos com tokens de API explodiu. O Ollama tornou-se o padrão mais simples e eficiente para isso. No entanto, instalar o binário ou drivers CUDA diretamente no sistema operacional do servidor muitas vezes gera conflito de dependências, quebra de bibliotecas após atualizações do kernel (apt upgrade) ou dificuldades para isolar ambientes. Neste guia, você vai ver como isolar toda a stack de inferência dentro do Docker utilizando o NVIDIA Container Toolkit, com alocação correta de VRAM e boas práticas de segurança de rede. Para que o daemon do Docker consiga passar as GPUs e capacidades de computação CUDA para os containers, o host (Debian/Ubuntu) precisa do runtime oficial da NVIDIA. Execute no terminal: # 1. Adicionar o repositório oficial da NVIDIA curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \ sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \ sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list # 2. Instalar o toolkit e configurar o Docker daemon sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit sudo nvidia-ctk runtime configure --runtime=docker sudo systemctl restart docker compose.yaml com Aceleração de GPU Crie um arquivo compose.yaml (ou docker-compose.yml) na pasta do seu projeto. O ponto crucial está na diretiva deploy.resources.reservations.devices, onde definimos o driver nvidia e as capacidades necessárias (gpu, compute, utility): services: ollama: image: ollama/ollama:latest container_name: ollama-gpu-server restart: unless-stopped ports: # Amarre ao localhost para não expor a API sem autenticação na rede externa! - "127.0.0.1:11434:114
Two installers for Debian 13 (Trixie) with root on encrypted ZFS, each with a different upstream guide: Script Bootloader /boot Upstream guide debian13-zbm-install.sh rEFInd → ZFSBootMenu on the ZFS root dataset ZFSBootMenu — Debian (UEFI) debian13-zbm-install-testing.sh rEFInd → ZFSBootMenu on the ZFS root dataset ZFSBootMenu — Debian (UEFI) debian13-root-on-zfs-grub.sh GRUB separate ext4 partition OpenZFS — Debian Trixie Root on ZFS Both scripts: use ZFS native encryption (aes-256-gcm, passphrase) — mandatory, not optional require the disk to be given as a stable /dev/disk/by-id/… path build the same dataset hierarchy with separate datasets for /home, /root, /opt, /srv, /var/log, /var/spool, /var/tmp and the container/VM stores create a default and a baseline boot environment install a 1 GiB encrypted swap partition with a fresh random key each boot install KDE, GNOME, or nothing, selected by an environment variable install CPU microcode and a broad firmware set (including firmware-iwlwifi) leave boot messages visible — quiet is not set anywhere Every step is tagged in the source with [GUIDE] (straight from the upstream document) or [DEVIATION] (with the reason inline), so you can audit either script against its guide. Introduction Requirements Quick start Disk layouts Dataset hierarchy Environment variables What happens at boot After installation Upgrading OpenZFS and the pool Recovery Deviations from the upstream guides Safety notes Credits License debian13-zbm-install.sh — ZFSBootMenu ZFSBootMenu is a small Linux+initramfs bundled into a single EFI executable. It imports your pool, asks for the passphrase, lists every boot environment and snapshot it can find, and kexecs into the one you choose. Choose it if you want boot environments to be a first-class, interactive feature: rolling back a bad upgrade is a menu selection at boot, not a rescue USB. You also get a snapshot browser, a diff viewer, a recovery shell, and pool health reporting before the OS ever sta
TL;DR: llama-server's RAM prompt cache (--cache-ram, on by default) saves a slot's KV when another request takes the slot, and restores it when the same prompt comes back. The saved entry doesn't record which LoRA adapters and scales the KV was computed with. The server does check for a LoRA change, but it compares the new request with the slot's previous request, not with the entry it has just restored. So: send a prompt with an adapter at scale 0, send something else that takes the slot, send the first prompt again at scale 1, and the answer is decoded on the scale-0 KV. On b11514, the current release, that happened on 10 of 10 prompts: cache_n showed the whole prompt reused, prompt_n was 1, and the answer differed from the same request without the cache. Changing the scale globally with POST /lora-adapters did the same. b10703 from August behaved the same way. --cache-ram 0, or cache_prompt: false on every request, gave the right answers. The toolkit's check-lora-cache.sh tests a running server. Upstream: ggml-org/llama.cpp#30129, and #26207 for the global path. Debian 13 LXC, CPU only, llama.cpp b11514 from the release tarball. The models are the ones llama.cpp's own server tests use for LoRA: stories15M_MOE-F16.gguf (a 15M-parameter story model) and its moe_shakespeare15M.gguf adapter, both checked against the SHA-256 on Hugging Face. The server: llama-server -m stories15M_MOE-F16.gguf --lora moe_shakespeare15M.gguf \ --lora-init-without-apply -np 1 -c 4096 Ten prompts, each about 116 tokens, at temperature 0, 48 tokens out. First, the reference answers from a separate server started with --cache-ram 0: each prompt at scale 1 and at scale 0. The two scales gave different answers on all ten. Then, on a fresh default server, the sequence from the report, for each prompt P: 1. P with "lora": [{"id": 0, "scale": 0}] 2. Q with "lora": [{"id": 0, "scale": 1}] (another prompt; it takes the only slot) 3. P with "lora": [{"id": 0, "scale": 1}] Step 3 for the first promp
Build a private AI lab with Proxmox, NixOS, an NVIDIA GPU, Ollama, and Open WebUI, with automated deployment and secure remote access through Tailscale.
Ubuntu's cloud images are the quickest way to a Linux VM I know. There's no installer to click through, the download is under 1 GB, and they boot in seconds. Then you boot one on your Mac and hit two walls at once: the disk is about 3.5 GB, and there's no account you can log in with. Both walls have the same cause. A cloud image expects a cloud to finish setting it up. On your laptop, there is no cloud, so you have to play its part. This post walks through what that means and how to do it by hand on macOS with QEMU: a login, a disk of the size you want, and SSH without the fingerprint prompt. It ends with a script that does all of it, and two open-source tools that do it for you. Written with the help of an AI assistant, and reviewed by me. I build Velo Workspaces, a Mac app that automates these steps, but nothing here needs it: everything works with plain QEMU, and the same ideas apply to UTM, Tart or anything else that boots a disk image. Grab the arm64 image for Ubuntu 26.04 and look at it: curl -LO https://cloud-images.ubuntu.com/releases/26.04/release/ubuntu-26.04-server-cloudimg-arm64.img qemu-img info ubuntu-26.04-server-cloudimg-arm64.img Despite the .img name it's a QCOW2 file. Its virtual size is about 3.5 GiB, while the file itself is under 1 GB, because QCOW2 only stores the blocks that hold data. Inside is a fully installed Ubuntu: an EFI system partition, a root filesystem, a kernel, and cloud-init. What it doesn't have is a user you can sign in as. The stock ubuntu account is created by cloud-init at first boot, with its password locked, and the only way in is an SSH key that "the cloud" hands over. So everything depends on cloud-init finding a datasource: the place a cloud publishes a VM's configuration. On first boot, a tool called ds-identify looks for one (EC2's metadata service, Azure's, GCE's, and a dozen more). On Ubuntu, if it finds none, cloud-init simply disables itself. No account is created, no SSH key is installed, and the disk isn't grow
Un modelo de lenguaje con más de 100.000 millones de parámetros normalmente necesita un servidor con varias GPU de centro de datos. Strata, un motor de inferencia open source, lo hace correr en una tarjeta gráfica de PC gamer con apenas 12 GB de VRAM gracias al offloading de expertos. La pieza central es Qwen3.8-Flash-Next, un modelo de mezcla de expertos (MoE) de 125.000 millones de parámetros que normalmente vive en un clúster de GPU empresariales. Strata lo comprime y lo reparte entre la VRAM y la RAM de una PC normal, con instalación de un clic para Windows y Linux. Strata corre un MoE de 125B de parámetros en una gpu de 12 GB combinando offloading de expertos y cuantización GGUF.- Los modelos MoE activan solo unos pocos expertos por token, lo que libera al resto de la VRAM.- GGUF reduce los pesos de Q2_0 e IQ3_S a pocos bits, y el paquete completo cabe en un disco de unos 70 GB.- Una RTX 5070 de 12 GB llega a 94 tokens por segundo escribiendo en el nivel de cuantización más agresivo.- Un gotcha clave: la PC puede congelarse 1 a 3 minutos mientras Strata carga 35 a 55 GB en RAM. El offloading de expertos es la técnica de inferencia que reparte los pesos de un modelo de mezcla de expertos (MoE) entre la VRAM de la GPU y la RAM del sistema, dejando en la tarjeta gráfica solo los expertos que se activan en cada token. La idea aprovecha una propiedad central de los modelos de mezcla de expertos: aunque el modelo tenga cientos de miles de millones de parámetros en total, cada token solo necesita un subconjunto pequeño de ellos. Strata explota esa dispersión para que el modelo completo nunca tenga que vivir entero en la VRAM, uno de los cuellos de botella más caros del hardware de IA. Antes de proyectos como este, correr un modelo de 125.000 millones de parámetros significaba alquilar varias GPU de centro de datos tipo A100 o H100, con facturas de nube de miles de dólares al mes. La técnica cambia esa ecuación: convierte un problema de infraestructura en un problema d
Version 10.6 of OpenSSH has been released. The announcement notes that the OpenSSH team has been receiving a large number of AI-assisted security bug reports. "We very much welcome these reports, especially when combined with human triage, analysis, test-cases and particularly when accompanied by proposed fixes". As a result, the project expects to be making more frequent releases to get updates to users more quickly rather than batching the bug fixes until the next planned release. Notable changes in this release include enabling the hybrid post-quantum ssh-mldsa44-ed25519 signature algorithm, addition of a -p option for sftp's lmkdir/mkdir commands, as well as disabling the LZ77 dictionary coder in ssh and sshd to mitigate side-channel leaks (which will result in reduced effectiveness of the Compression option). The scp -R option, which allows copies between two remote hosts, is being deprecated due to security risks; the option will be ignored in the future. See the announcement for full details of all changes and bug fixes.
TL;DR: When llama-server runs with speculative decoding (a draft model with -md, MTP, or one of the n-gram types), every token that comes out of the speculative loop is sent with logprob: 0.0 and an empty top_logprobs list. The code sets the probability to 1.0 with the comment // set later and never sets it. With a draft model that is every token after the first. On b11430, the current release, the mean logprob of 64-token samples at temperature 1 was -0.48 without speculation and -0.0011 with it. The generated text looked normal, and nothing in the response or the log says the numbers are fill-ins. There is no per-request switch: the request fields that used to tune speculation are compiled out and ignored. Send logprob requests to an instance started without speculation. The tokens themselves are fine: on a small fixture, the server's speculative output had the same next-token distribution as plain sampling. The llama-speculative example program did not. The toolkit's check-spec-logprobs.sh checks a running server. Upstream: ggml-org/llama.cpp#27972 and #29975. Debian 13 LXC, CPU only, llama.cpp b11430 from the release tarball (the current release, SHA-256 matching the release digest), gemma-3-1b-it-Q4_K_M. A draft model normally has to be smaller than the target to save time; using the same file as its own draft is enough to put every token through the speculative path, and needs no extra download. The request is the one from the report: curl -s http://127.0.0.1:8080/v1/chat/completions -H 'Content-Type: application/json' -d '{ "messages": [{"role": "user", "content": "Explain how a CPU branch predictor works."}], "max_tokens": 24, "temperature": 1.0, "seed": 1, "logprobs": true, "top_logprobs": 3}' Without speculation: 'Okay' logprob=-0.00813608 top_logprobs=3 ',' logprob=0 top_logprobs=3 ' let' logprob=-2.38419e-07 top_logprobs=3 '’' logprob=-2.60903 top_logprobs=3 's' logprob=0 top_logprobs=3 ' break' logprob=-0.0479959 top_logprobs=3 Same server started with
I've always wanted to see the complete performance picture before pushing any code or building something. Not after it's slow in production, not after a user complains about it, before. Click a button, run a command, trigger a request, and actually see what that cost instead of guessing. That itch has been sitting with me for years. Back in university, I took a course on application performance, and every single homework was the same loop: profile a feature, find what's slow, fix it, measure again, confirm it's actually better. We did it in C# with Visual Studio's live profiler, watching CPU and memory update in real time while clicking through an app. That loop never left me. A few years later I was using NetBird before it had anything close to a performance or observability story, and I kept thinking about the same gap from a completely different angle: infrastructure. So I'm building Nusku. A continuous profiling system for Linux, written in Zig, with eBPF doing the actual watching. Point Nusku at a running process, or launch one through it, and watch what it's actually doing while you use it. CPU time per function, live. Memory as it's allocated, not just a number that goes up, but what called for it and where. Threads that look idle but are actually stuck waiting on a lock, a disk read, or another process, and for how long. Syscalls that quietly eat milliseconds a normal CPU graph never shows you. Network calls that are slow because packets are getting retransmitted, not because the code is doing anything wrong. It runs locally with nothing to configure, you point it at a process and watch. It can also run on a remote machine and stream that same live picture back over a secure connection, so a server can be watched the same way as something running on your own laptop. Every serious Linux profiling tool, Parca, Pyroscope, Cilium, Datadog's continuous profiler, is built on eBPF, not on polling files in /proc and hoping for the best. eBPF is the only way to get r
The Lix and Nix projects have jointly disclosed a set of vulnerabilities that can be used to escalate privileges to root on systems running the Lix or Nix daemons. "All systems that build untrusted derivations are affected." Releases with fixes from each project are available today. CVE IDs have not yet been requested. See the announcement for more details on the vulnerabilities.
It started as "Immich has gone down". Immich was fine. The server container was healthy and answered locally. What had gone was every public hostname I run through Cloudflare Tunnel, all at once, and it had been that way for about a day before anyone noticed. This is what happened, the mistake that made me declare it fixed when it wasn't, and the checks I now use so the tunnel can't lie to me again. On the evening of 3 September, around 22:00, two containers on my NAS were recreated. Both ran a community web UI wrapper for cloudflared, the Cloudflare Tunnel client. When they came back up, both logged this: CONFIG: No pre-existing config file found That line is the whole incident. The wrapper is a web UI, not a connector. With no config it starts happily, shows as healthy in docker ps, and connects no tunnel at all. Both of its config directories were empty. From Cloudflare's side the tunnel had zero connectors, so every public hostname behind it returned 530. That included my single sign-on portal. Anything behind SSO was unreachable from outside, not just the photo library. The photo library was just the first thing to be noticed. The container's health check was checking the UI, and the UI was fine. Nothing in docker ps distinguishes "a web page is being served" from "traffic is flowing through a tunnel". Instead of trying to rebuild the wrapper's config, I ran the real thing, the official image with the tunnel token: docker run -d --name cloudflared-connector --restart unless-stopped \ cloudflare/cloudflared:latest tunnel --no-autoupdate run --token "$TOK" I pulled the token from the Cloudflare API (GET /accounts/{account}/cfd_tunnel/{tunnel}/token) using an API token already scoped to Tunnel edit and DNS edit. The tunnel then reported healthy with connections=4, and all five public hostnames were back. A connector-only container has no UI and nothing to forget. The token is the whole configuration, because the routes live in Cloudflare's dashboard. That is exact
How to deploy OpenMuse — a self-hosted AI chat assistant that can also manage your CasaOS server — using SSH and Docker Compose. Every step below exists because we did it the wrong way first. A home server running CasaOS (this guide was tested on v0.4.9) gets a conversational AI assistant living on the same box — one that doesn't just chat, but can list your apps, read logs, and start/stop containers with your approval. Three containers do the work: api — the Node API server + agent brain (port 8787) web — the chat UI, a static site on nginx (port 8081) browser-worker — sandboxed browser for web tasks (port 8790, loopback only) OpenMuse ships no official Dockerfiles and no CasaOS guide, so this post provides both. We'll deploy the casaos-manager-v3 branch, which adds a CasaOS control layer, a document library, and OCR on top of upstream OpenMuse. A CasaOS box with Docker and Docker Compose installed (any CasaOS install has both) SSH access to the box from your own machine (Mac/Linux/Windows terminal) An OpenRouter API key (or any OpenAI-compatible endpoint) A CopilotKit Intelligence project key — required in every mode (npx copilotkit@latest login, then npx copilotkit@latest project select) About 30 minutes, most of it waiting for the build The CasaOS dashboard has a built-in terminal, and it will betray you: its xterm.js input silently mangles keystrokes mid-session (typed text arrives as - characters, commands never execute, and retrying doesn't fix it). Do all of the following over SSH from your own machine. If you must use the web terminal, paste whole command blocks — never type long commands by hand. ssh @ Everything below runs on the server. A previous install attempt (or a half-dead tsx dev server) can leave a stale process holding port 8787. docker compose down does not kill host processes or containers from a different compose project, so check before you start: ss -tlnp | grep -E '8787|8081|8790' docker ps -a --format '{{.Names}} {{.Status}}' | grep -i -E
Plenty of small-business tools ship as a ready-made virtual machine: import the appliance, start it, and staff open the app in a browser from any device on the LAN. The data stays in the building and nothing gets installed on workstations. The catch is that the VM is only as reliable as the box underneath it. A host that suspends, renumbers itself on the network, or loses power mid-write turns "the app is down" into a weekly conversation. Here's the checklist I'd hand to anyone setting up that host. It's Linux first (any systemd distro), with short Windows notes where steps differ. [ ] Dedicated machine. Not someone's daily laptop. A plain desktop with an SSD and wired Ethernet is ideal. [ ] Enough RAM for host plus guest. Check the vendor's sizing and add headroom for the host OS. [ ] Hardware virtualization on. In UEFI setup, enable Intel VT-x / "Virtualization Technology" or AMD SVM / AMD-V. [ ] Restore on AC power loss = Power On. Most boards have this under power management. It lets the host come back by itself after an outage. Confirm virtualization from Linux: lscpu | grep -i virtualization # Expect "VT-x" or "AMD-V". No output usually means it is off in firmware. Windows note: Task Manager → Performance → CPU shows "Virtualization: Enabled/Disabled". [ ] Install VirtualBox from one source (distro repo or official packages) with kernel headers and DKMS. After kernel updates, systemctl status vboxdrv should be green. [ ] Secure Boot: if it is enabled, unsigned modules will not load. Either enroll a signing key (many distros walk you through this during install) or decide deliberately to turn Secure Boot off. [ ] KVM conflicts: depending on your kernel and VirtualBox versions, loaded kvm_intel/kvm_amd modules can stop a VM from starting. Check with lsmod | grep kvm and resolve it before go-live, not during. [ ] Create a dedicated, unprivileged user to own the VM, and add it to the vboxusers group. sudo useradd -m -s /bin/bash vmhost sudo usermod -aG vboxusers v
Accessing Your Home LAN from Outside with Tailscale Subnet Router I want to access my home NAS or server while away from home. But VPN setup is difficult... I do not have a VPN router either... Tailscale solves these problems. In this article, I will explain how to build an environment using Docker that allows you to access your entire home LAN from outside using Tailscale Subnet Router functionality. VPN connection to home LAN (192.168.x.x) from smartphone/PC while away Name resolution for internal domains (*.example.local) using home DNS server Privacy protection so family members can use it but cannot see each other devices User Usage Remarks Admin Remote management, all LAN access Full admin privileges Family Simple LAN access (NAS, etc.) Limited privileges, privacy protection between terminals Requirement Description Access to home LAN from outside Reachable to all devices in 192.168.x.0/24 Inter-user communication blocking For privacy protection, family devices cannot communicate with each other Split DNS Only specific domains resolved by home DNS when connected to Tailscale Subnet Router only Exit Node (all traffic forwarding) not required Item Decision Reason Container runtime Docker Easy management, reproducibility Network mode host Required for Subnet Router State persistence Named Volume Re-authentication unnecessary on restart Health check Built-in endpoint Easy monitoring integration Component Role Remarks Tailscale Container Subnet Router, forwards traffic from Tailnet to LAN Uses SNAT DNS Server (Unbound) Internal domain name resolution Split DNS target UFW/iptables Firewall, controls forwarding Important settings required Tailscale enables SNAT by default (--snat-subnet-routes=true). This is equivalent to MASQUERADE (IP masquerade / NAPT) in Linux iptables. Setting Behavior Notes SNAT enabled (default) Source IP becomes Subnet Router IP No additional settings needed on LAN devices SNAT disabled Tailscale IP (100.x.x.x) is sent as-is Static routes mus
Hi everyone, Working with Microsoft Entra ID (Azure AD) sign-in logs to hunt down distributed password sprays or track MFA gaps can be a nightmare. There are great SaaS tools out there, but I was always uncomfortable granting third-party cloud services read-access to my entire company's directory and audit logs. So over the last few months, I built IDSignal — an open-source, zero-cloud dependency security analyzer. It runs entirely locally on your own machine (or via Docker in your private network). Your tenant data never leaves your environment. Hunts Password Sprays: Unmasks distributed attacks (Event 50126) and groups them by threat actor IPs. Spots MFA Gaps: Pinpoints users who do not have MFA configured or active on their accounts. Calculates Risk Scores: Combines active threats + missing security controls to give each user an explainable priority score. Interactive Dashboard: A really fast, local UI to filter through the noise instantly. I’ve made it incredibly easy to spin up. If you have Docker, it's just one command: docker run -d --name idsignal -v idsignal_data:/app/data -p 4317:4317 ghcr.io/sertacanbey/idsignal:latest I’d love for the community to tear it apart, test it, and give me some brutally honest feedback. GitHub Repo: https://github.com/SertaCanbey/IDSignal https://idsignal.org Let me know what you think!
Coolify is the self-hosted alternative to Heroku, Vercel and Netlify: one server, a web UI, push-to-deploy for anything that runs in Docker. The project's own docs say you need 2 CPUs and 2 GB of RAM. We wanted to know whether the $6 DigitalOcean droplet (1 vCPU, 1 GB RAM, 25 GB SSD) is enough for a small team's side projects, so we installed it, timed every step and left it running. Short answer: Yes, Coolify runs on DigitalOcean's $6 droplet (1 vCPU, 1 GB RAM) if you add a 2 GB swap file first. Measured on 1 Oct 2026: install script 172 s, first app deployed and answering in 210 s, build peak 720 MB RAM + 669 MB swap, idle footprint about 250 MB for Coolify itself. For more than two small apps, take the $12 plan. Short version: it works, with one trick (a 2 GB swap file). The install script took 172 seconds, the first app was answering HTTP requests 210 seconds after clicking Deploy, and the measured steps from an empty account to a running app add up to just under 10 minutes (our wall clock said 23, because of a wrong base directory described below and a coffee). Memory after boot sat at 618 MB used with four containers healthy; the build peaked at 720 MB plus 669 MB of swap, which is why the swap file is not optional. The same steps as a 5-minute video, with the numbers on screen: Deploy Coolify on a $6 VPS in 15 minutes (YouTube). Two 30-second versions: the one number that decides 1 GB and the deploy that said Success while restarting. A DigitalOcean account. New accounts need a payment method before the first droplet; the droplet is billed hourly ($0.009/h), so a one-hour test costs a cent. An SSH key on your machine. If you do not have one: ssh-keygen -t ed25519 -f ~/.ssh/coolify. About 15 minutes. In the DigitalOcean console choose Create → Droplets. Pick the region closest to you, then Ubuntu 24.04 (LTS) as the image. Under Choose a Droplet Plan stay on Basic → Regular and pick the $6.00/mo plan: 1 vCPU, 1 GB RAM, 25 GB SSD, 1000 GB transfer. Skip the $4 p
Say you set up your agent stack to accept voice notes, the way most voice-first projects start. The plan is predictable: record audio, hit a transcription API, get text back. At $0.006 per minute it sounds free, until you remember that a voice-first agent loop transcribes everything it hears, including the garbage. Then a post hits the Hacker News front page and stops you: a speech-to-text model called Whistle that ships as a single 16.9 MB file, runs on CPU with zero dependencies, and claims accuracy numbers that beat Whisper base. 16.9 MB is smaller than the icon assets in most apps. A claim like that deserves testing, not retweeting. So this piece is a verification: the model was installed on a plain Linux VPS (no GPU, no special tooling), real audio went in, and every command and output below is reproduced verbatim from that test. The cached model file transcribed a public speech recording correctly and returned word-level timestamps, warm, in under 10 seconds on a commodity CPU. Full disclosure before anything else: the hands-on test in this article was executed by an AI assistant during research for this piece, not in a production deployment. What is confirmed: the install path, real transcription output, timestamp output, and keyword biasing. What is vendor-reported: every accuracy number in the benchmark tables, and all latency figures from the maker. Both kinds are labeled as they appear. Whistle is an open-source (Apache 2.0) speech recognition model from Cactus Compute, released October 2, 2026. It does three jobs on the device, with no network call: Transcription. 16 kHz mono audio, up to 30 seconds per pass, in seven languages: English, German, French, Spanish, Italian, Dutch and Polish. The language is auto-detected unless you pin it. Word timestamps. Every word comes back with a start time, end time, and probability score. Speech embeddings. The encoder output, one row per 80 ms of audio, for search and matching without generating a transcript at all.
Someone is using a poem on GitHub to coordinate a cryptomining botnet called PoeLLM, according to Lumen's Black Lotus Labs. Gamers, if you read that as "PoE" and thought of Path of Exile, there is some currency farming involved, but it's at the server owner's expense. Once installed on a compromised server, the malware translates selected words from the poem into an IP address. By editing those words, its operator can point infected machines to another command-and-control server. The compromised hosts mine cryptocurrency, with some also recruited to scan for additional victims. Lumen's Black Lotus Labs describes affected deployments running LiteLLM, Ollama, Gotenberg and Gitea in its investigation into PoeLLM. The researchers traced activity back to April 2026; The Hacker News covered their findings yesterday, October 7, 2026. If you host these services, start with the machines running them. Include the development server you kept after a demo. On a Docker host, this read-only command lists running containers with their images and port mappings: docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Ports}}' The fields are documented in Docker's container listing reference. An entry such as 0.0.0.0:4000->4000/tcp means Docker has published port 4000 on all IPv4 host addresses. Whether it is reachable from the internet also depends on your network configuration. Check IPv6 mappings too, along with any reverse proxy forwarding public requests to the service. Docker explains how published ports work]. For a server you control, test access from outside its private network. On a work deployment, ask the platform owner to verify the cloud firewall rules and public routes. Record which address they checked. If your application and Gotenberg share a Compose network, the application can call gotenberg:3000. Remove the host ports mapping when that is the only connection required. Gotenberg's maintainers explicitly advise keeping the service behind a firewall. Their installation