Skip to content
    • About
    • Contact

/root

OpenZFS
  • FreeBSD 15.2 RC1

    November 28th, 2026

    https://www.freebsd.org/news/newsflash/#2026-11-28:1

  • My FreeBSD profile site

    November 28th, 2026

    https://wiki.freebsd.org/ChristosLongros

  • TrueNAS 27 Ships December 8th

    November 25th, 2026

    TrueNAS 27 Demo: https://demo.truenas.com/ui/dashboard

  • Claude Ship

    November 24th, 2026

    It can review PRs, fix them, and decide what’s ready to merge based on policies each team sets. Teams stay in control of where it runs and which changes need a person. The goal: ship code as fast as teams write it.

    https://claude.com/resources/articles/introducing-claude-ship

  • UniFi Network 11.1

    November 24th, 2026

    https://mailchi.mp/ui/introducing-unifi-network-111?e=c12994ecd6

  • Thunderbird 161.0

    November 24th, 2026

    What’s New

    1. Unread count badges are available on supported Linux taskbars

    What’s Changed

    1. Thundermail built-in add-on updated to v2.0.30
    2. OTR chat encryption is disabled by default for profiles that never used it
    https://www.thunderbird.net/en-US/thunderbird/161.0/releasenotes/?uri=/thunderbird/releasenotes/&locale=en-US&version=161.0&channel=release&os=WINNT&buildid=20261120171716
  • November 2026 stabilization week for FreeBSD

    November 23rd, 2026

    The tag main-stabweek-2026-Nov has been published at Gleb Smirnoff’s github repo.
    To connect this repo as an additional remote you need to run:

      git remote add glebius https://github.com/glebius/FreeBSD

    Once remote is configured, to checkout the tag run:

      git fetch glebius –tags
      git checkout main-stabweek-2026-Nov

    If you want to use only the official FreeBSD repo, then update to
    the revision:

      git pull
      git checkout ced5806515aa

  • Package and Port cache on a NAS for Arch Linux and FreeBSD

    November 22nd, 2026

    Two of my machines run Arch Linux: my laptop and my main desktop. The desktop is a dual-boot system, with one SSD for Arch Linux and a second one for FreeBSD 16-CURRENT.

    My home server is an Aoostar WTR Max running TrueNAS. Its data pool is a five-disk RAIDZ2, and the apps live on a separate mirror of two NVMe SSDs. Since late October the NAS also caches packages for the other machines: it keeps a copy of every package one of them has requested and serves later requests from the LAN.

    The setup consists of two small containers on TrueNAS: pacoloco for pacman, and nginx with proxy_cache for FreeBSD’s pkg. This post documents both, including the client configuration and troubleshooting.

    Diagram of the package cache: Arch Linux and FreeBSD clients fetch from pacoloco and nginx on the NAS, which contact the upstream mirrors only on a cache miss

    Reasoning

    A caching proxy stores only what the clients ask for. After four weeks the Arch cache holds 2.7 GB and the FreeBSD cache 18 GB. A full mirror needs many times that space and a regular rsync run, and most of it would never be installed here.

    The cache does not weaken package verification. pacman still checks package signatures against its keyring, and pkg still verifies the signed repository catalogue and the checksum of every package. The NAS only stores files that upstream has already signed, so plain HTTP inside the LAN is sufficient.

    Arch Linux: pacoloco

    pacoloco is a caching proxy written for pacman repositories. It knows that database files change and package files do not, and it can refresh the packages it has already cached before a client asks for the new version.

    The configuration file:

    cache_dir: /var/cache/pacoloco
    port: 9129
    download_timeout: 3600
    purge_files_after: 2592000 # drop files nobody fetched for 30 days
    repos:
    archlinux:
    urls:
    # list two or three mirrors close to you first
    - https://geo.mirror.pkgbuild.com
    bioarchlinux:
    urls:
    - https://repo.bioarchlinux.org
    prefetch:
    cron: 0 0 4 * * * * # refresh cached packages nightly at 04:00
    ttl_unaccessed_in_days: 30
    ttl_unupdated_in_days: 200

    Each repository takes a list of upstream mirrors, which pacoloco tries in order. The prefetch job runs at 04:00 and downloads new versions of packages that are already in the cache, so a morning pacman -Syu is usually served entirely from the NAS.

    On TrueNAS the container runs as a custom app with this compose definition. The paths under /mnt/tank/apps are examples and stand for a dataset on your own pool:

    services:
    pacoloco:
    image: ghcr.io/anatol/pacoloco:1.9
    restart: unless-stopped
    ports:
    - "9129:9129"
    volumes:
    - /mnt/tank/apps/pacoloco/pacoloco.yaml:/etc/pacoloco.yaml:ro
    - /mnt/tank/apps/pacoloco/cache:/var/cache/pacoloco

    The image runs as UID and GID 65532. The cache directory must belong to that user, otherwise every download fails with “permission denied”:

    chown -R 65532:65532 /mnt/tank/apps/pacoloco/cache

    Client configuration

    In /etc/pacman.conf the NAS is listed first in every repository, ahead of the regular mirrorlist. nas.lan stands for the hostname or IP address of the NAS:

    [core]
    Server = http://nas.lan:9129/repo/archlinux/$repo/os/$arch
    Include = /etc/pacman.d/mirrorlist
    [extra]
    Server = http://nas.lan:9129/repo/archlinux/$repo/os/$arch
    Include = /etc/pacman.d/mirrorlist
    [bioarchlinux]
    Server = http://nas.lan:9129/repo/bioarchlinux/$arch

    I put the line into pacman.conf and not into the mirrorlist for two reasons. A mirror ranking script rewrites the mirrorlist and would remove it. And with the Include line still in place, pacman falls back to the public mirrors when the NAS is unreachable, which matters for a laptop that leaves the house.

    pacman -Sp linux prints the URL pacman would use and is a quick way to confirm that requests go to port 9129.

    FreeBSD: nginx as a caching proxy

    I am not aware of a pacoloco equivalent for pkg, but one is not needed. A FreeBSD package repository is a tree of static files, and package files are never rewritten under the same name. nginx can cache that with a short configuration:

    proxy_cache_path /var/cache/nginx/pkg levels=1:2 keys_zone=pkg:50m
    max_size=150g inactive=60d use_temp_path=off;
    server {
    listen 80;
    server_name _;
    proxy_cache pkg;
    proxy_cache_lock on;
    proxy_cache_use_stale error timeout updating http_502 http_503 http_504;
    proxy_ssl_server_name on;
    proxy_set_header Host pkg.freebsd.org;
    proxy_http_version 1.1;
    # pkg.freebsd.org sends no-cache on everything; packages are still signed
    # and verified by pkg, so caching them here is safe.
    proxy_ignore_headers Cache-Control Expires Set-Cookie;
    proxy_hide_header X-Cache;
    proxy_hide_header X-Cache-Hits;
    add_header X-Pkgcache $upstream_cache_status always;
    # Catalogues change with every repo build: keep them only briefly.
    location ~ (/Latest/|/(meta\.conf|meta\.(txz|tzst)|packagesite\.[a-z]+|data\.[a-z]+|filesite\.[a-z]+|digests\.[a-z]+)$) {
    proxy_cache_valid 200 10m;
    proxy_pass https://pkg.freebsd.org;
    }
    # Package files are never rewritten under the same name.
    location / {
    proxy_cache_valid 200 60d;
    proxy_cache_valid 404 1m;
    proxy_pass https://pkg.freebsd.org;
    }
    }

    Three details deserve an explanation.

    The upstream forbids caching. pkg.freebsd.org answers with Cache-Control: private, no-cache. Without proxy_ignore_headers nginx obeys that header and stores nothing, and the proxy appears to work while every request is a miss.

    Catalogues and packages need different lifetimes. The catalogue files (meta.conf, packagesite, data) are replaced by every repository build. They are cached for ten minutes, long enough for several machines to update in a row and short enough that nobody works with an old catalogue. Everything else is kept for 60 days.

    proxy_cache_lock avoids duplicate downloads. When two machines request the same uncached file at the same moment, only one request goes upstream and the other waits for the result.

    The X-Pkgcache header reports what the cache did with a request:

    $ curl -sI http://nas.lan:9130/FreeBSD:16:amd64/latest/meta.conf | grep -i pkgcache
    X-Pkgcache: HIT

    Client configuration

    The override goes into /usr/local/etc/pkg/repos/FreeBSD.conf. It only replaces the URL. The signature settings are inherited from /etc/pkg/FreeBSD.conf.

    FreeBSD-ports: {
    url: "http://nas.lan:9130/${ABI}/latest",
    mirror_type: "none"
    }
    FreeBSD-ports-kmods: {
    url: "http://nas.lan:9130/${ABI}/kmods_latest",
    mirror_type: "none"
    }
    FreeBSD-base: {
    url: "http://nas.lan:9130/${ABI}/base_latest",
    mirror_type: "none"
    }

    The repository names and paths must match the ones in /etc/pkg/FreeBSD.conf of the system in question. The ones above are from a 16-CURRENT machine with pkgbase. A release names its kmods and base paths differently, and older systems have a single repository called FreeBSD. mirror_type has to be "none" because the stock configuration sets it to srv, and an SRV lookup cannot work for the NAS.

    After the change, pkg update -f fetches all catalogues through the cache.

    Prefetching for pkg

    nginx has no notion of package versions, so I added a small sidecar container to the same app. It runs a Python script from cron at 04:30. The script reads the cache keys of the stored files to learn which packages the clients use, looks up the current version of each one in packagesite, and requests the new files through the proxy. It never deletes anything; expiry stays with nginx.

    services:
    pkgcache:
    image: nginx:1.30.6-alpine
    restart: unless-stopped
    ports:
    - "9130:80"
    volumes:
    - /mnt/tank/apps/pkgcache/pkgcache.conf:/etc/nginx/conf.d/default.conf:ro
    - /mnt/tank/apps/pkgcache/cache:/var/cache/nginx/pkg
    prefetch:
    image: alpine:3.22
    restart: unless-stopped
    depends_on:
    - pkgcache
    environment:
    TZ: Etc/UTC # set your own time zone
    command: >-
    sh -c "apk add --no-cache python3 tar zstd tzdata >/dev/null &&
    echo '30 4 * * * python3 /pkg-prefetch.py >> /log/pkg-prefetch.log 2>&1' > /etc/crontabs/root &&
    exec crond -f -l 8"
    volumes:
    - /mnt/tank/apps/pkgcache/pkg-prefetch.py:/pkg-prefetch.py:ro
    - /mnt/tank/apps/pkgcache/cache:/cache:ro
    - /mnt/tank/apps/pkgcache/log:/log

    The sidecar exists because the TrueNAS host has no zstd, which is needed to unpack the catalogue.

    Results

    The first pkg upgrade through the cache covered 51 packages and 839 MiB, including a new kernel. A later request for the same kernel package was answered with X-Pkgcache: HIT.

    The difference is largest when the upstream is slow. On one evening in November, pkg.freebsd.org delivered a test file at 1.8 MB/s, while the same file came from the cache at 111 MB/s. That was a single measurement of a 10 MB file and not a benchmark, but it describes the experience well: a miss is as slow as the upstream happens to be, and a hit is as fast as the LAN.

    Notes

    • The cache directories do not need a backup. Their content can be downloaded again at any time.
    • The two caches are independent. Either one can be removed without affecting the other, and removing the Server line or the override file returns a client to the public mirrors.
    • A cache serves only what it has seen. A machine with an unusual package set gains little on its first update and more on every later one.
  • November 22nd, 2026
  • Riemann Hypothesis proof verification with con-leche/Lean in FreeBSD

    November 21st, 2026

    Verifying the Riemann Hypothesis proof with con-leche/Lean in about an hour on an AMD Ryzen 9900X CPU.

    Operating system: FreeBSD 16-CURRENT.

    Requirements: I built the Lean 4.36.0 package from source from the FreeBSD ports tree and installed it with pkg add.

    I downloaded the official .zst files (7.7 GB for the solution, 47 MB for the challenge), decompressed them to a 61.6 GB large file and verified them with sha256. Then I built the con-leche tool locally and ran the comparison test.

    The limiting factor on my system was memory (64 GB RAM), so during the test I had to add swap on ZFS, using swap volumes of up to 96 GB.

    Result:
    1,468,418 declarations accepted, and all five theorems, including riemannHypothesis, “justified by the solution”.

    Links:
    Verification page and downloads: math.mit.edu/~drew/grh/
    Announcement: alpo.ge/remark.pdf
    Proof source: github.com/Deicyde/riemann-hypothesis
    con-leche checker: github.com/leanprover/con-leche
    Lean: lean-lang.org
    FreeBSD port: freshports.org/math/lean4

  • Synology Releases Critical Security Update

    November 21st, 2026

    Update your NAS now!!!

    “Synology today released critical security updates for multiple products following nginx’s recent release of its patch for the NGINX2Root vulnerabilities.”

    https://www.synology.com/en-us/company/news/article/NGINX/Synology%20Releases%20Critical%20Security%20Updates

  • SHA256 37 step collision

    November 20th, 2026

    https://x.com/omergoldz/status/2117314416299659735?a=5v3ijBI85YGFxPzrpsc&s=09

  • KDE switches to Kwi from Konsole

    November 20th, 2026

    RIP Konsole.

    Kwi offers:

    1. UI lift-up to the latest KDE HIG
    2. Automatic sync to the system color scheme
    3. 3x–35x faster overall performance, depending on the benchmark
    4. GPU-accelerated rendering via Vulkan or OpenGL

    https://blogs.kde.org/2026/11/01/introducing-kwi

  • FreeBSD 15.2 BETA3 is coming …

    November 19th, 2026

    Changes since BETA 2:

    • pkg: Switch to per-minor kmods repository (cperciva)
    • amd64/vmm: Don’t advertise AMD PerfMonV2 or performance counters (christos)
    • tests/ip_mroute: Use a router address as the IPv4 RP (olivier / markj)
    • libc: Export timespec_getres(3) and add tests (kfv)
    • zfs: Fix direct reads of blocks pending free (rmoeller)
    • zfs dbuf: restore BP_IS_HOLE() recheck after dnode_block_freed() (rmoeller)
    • zfs: Fix double free when cloning a block with a pending free (rmoeller)
    • llvm: [SLPVectorizer] Check std::optional coming out of getPointersDiff (pkubaj)
    • ktls: Check the record type message holds its byte (olivier / markj)
    • linux: do not truncate the listxattr() size (nprice / markj)
    • powerpc/pmap: Use dcbz to zero pages in the radix pmap (pkubaj)
    • extattr_list*: avoid panic with absurd buffer lengths(brooks)
    • modstat fixes (brooks)
    • tcp: address PR295870 (rscheff)
    • krb5: Import MIT 1.22.3 (cy)
    • ctld: Fix namespace IDs for exported NVMe namespaces (jhb)
    • acpi_pci_link: Handle IRQ values > 255 (jhb / cperciva)
    • FreeBSD-SA-26:78 – FreeBSD-SA-26:94 (secteam)

    The 15.2-RELEASE cycle schedule as it stands now is:

    ports quarterly branch: October 1, 2026
    reminder email: October 9, 2026
    stable/15 slush: October 23, 2026
    doc/ tree slush: October 30, 2026
    releng/15.2 branch: November 6, 2026
    BETA1 build starts: November 6, 2026
    BETA2 build starts: November 13, 2026
    doc/ tree tag: November 13, 2026
    <<< WE ARE HERE >>>
    BETA3 build starts: November 20, 2026
    ports package builds: TBD (before November 27)
    RC1 build starts: November 27, 2026
    RELEASE build starts: December 4, 2026
    RELEASE announcement: December 8, 2026
    15.1-RELEASE EoL: March 31, 2027
    15.2-RELEASE EoL: September 30, 2027
    Branch EoL: December 31, 2029

  • FSRS 7 is coming!

    November 15th, 2026
    I wrote an article about FSRS-7 + yapping about it and about other algorithms
    byu/ClarityInMadness inAnki
1 2 3 … 155
Next Page→

Blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
Loading Comments...
  • Subscribe Subscribed
    /root

    Have a WordPress.com account? Log in now.

  • /root
    View site in Reader
    Manage subscriptionsSign upLog in
    Report this content
    Collapse this bar