惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

TaoSecurity Blog
TaoSecurity Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
F
Fortinet All Blogs
Cisco Talos Blog
Cisco Talos Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
Secure Thoughts
美团技术团队
雷峰网
雷峰网
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
C
CXSECURITY Database RSS Feed - CXSecurity.com
Engineering at Meta
Engineering at Meta
人人都是产品经理
人人都是产品经理
月光博客
月光博客
T
Tor Project blog
P
Privacy & Cybersecurity Law Blog
Recorded Future
Recorded Future
I
Intezer
博客园 - 【当耐特】
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
GbyAI
GbyAI
罗磊的独立博客
V
V2EX
Google DeepMind News
Google DeepMind News
D
DataBreaches.Net
Last Week in AI
Last Week in AI
T
Tailwind CSS Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
A
About on SuperTechFans
Scott Helme
Scott Helme
Vercel News
Vercel News
Spread Privacy
Spread Privacy
T
Threat Research - Cisco Blogs
Recent Announcements
Recent Announcements
Hacker News: Ask HN
Hacker News: Ask HN
C
CERT Recently Published Vulnerability Notes
G
Google Developers Blog
B
Blog
博客园 - 叶小钗
WordPress大学
WordPress大学
博客园 - 聂微东
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Jina AI
Jina AI
IT之家
IT之家
C
Cybersecurity and Infrastructure Security Agency CISA
P
Palo Alto Networks Blog
小众软件
小众软件
博客园 - Franky
Microsoft Azure Blog
Microsoft Azure Blog
AWS News Blog
AWS News Blog

Hacker News

Introducing Claude Opus 4.7 Qwen Studio The Future of Everything is Lies, I Guess: Where Do We Go From Here? GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis Moving a large-scale metrics pipeline from StatsD to OpenTelemetry / Prometheus GitHub - Nightmare-Eclipse/RedSun: The Red Sun vulnerability repository GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - macOS26/Agent: Any AI, replaces Claude Code, Cursor, OpenClaw. Over 18 LLM providers (Claude, OpenAI, Gemini, Ollama, Zai, HF, Qwen) wired into a native Mac app that writes code, builds Xcode projects, bumps versions, manages git, automates Safari, use AppleScript, JS or Accessibility, extend Agent! w/ MCP Servers, run tasks from your iPhone via Messages. YouTube now lets you turn off Shorts I Made a Terminal Pager Burgers | マクドナルド公式 Commands — HackerNews CLI documentation ChatGPT for Excel PiCore - Raspberry Pi Port of Tiny Core Linux Live Nation illegally monopolized ticketing market, jury finds Google Broke Its Promise to Me. Now ICE Has My Data. Founding Engineer at Adaptional | Y Combinator CRISPR takes important step toward silencing Down syndrome’s extra chromosome GitHub - saffron-health/libretto: The AI toolkit for building reliable browser automations US v. Heppner (S.D.N.Y. 2026) no attorney-client privilege for AI chats [pdf] Unexpected €54k billing spike in 13 hours: Firebase browser key without API restrictions used for Gemini requests Retrofitting JIT Compilers into C Interpreters IPv6 – Google The Accursèd Alphabetical Clock Cybersecurity Looks Like Proof of Work Now Fragments: April 14 Cal.com Goes Closed Source: Why AI Security Is Forcing Our Decision | Cal.com - Scheduling Software for Online Bookings Laravel raised money and now injects ads directly into your agent When moving fast, talking is the first thing to break Too much Discussion of the XOR swap trick – Heather Cafe Introduction to Spherical Harmonics for Graphics Programmers The Grand Line Building a Z-Machine in the worst possible language High-Level Rust: Getting 80% of the Benefits with 20% of the Pain GitHub - duguyue100/midnight-captain: Inspired by Midnight Commander, tailored to my taste. How to build a `git diff` driver · Jamie Tanna | Software Engineer Center for Responsible, Decentralized Intelligence at Berkeley The Local Universe’s Expansion Rate Is Clearer Than Ever, but Still Doesn’t Add Up - A new synthesis of astronomical measurements confirms a persistent mismatch that could point to physics beyond current models The air throughout our homes is infused with microplastics. But there are things you can do to breathe less of them The disturbing white paper Red Hat is trying to erase from the internet – OSnews The Future of Everything is Lies, I Guess: Annoyances ‘Abhorrent’: the inside story of the Polymarket gamblers betting millions on war Productive procrastination — Max van IJsselmuiden maps, territory and LMs 447 Terabytes per Square Centimetre at Zero Retention Energy: Non-Volatile Memory at the Atomic Scale on Fluorographane Show HN: Pardonned.com – A searchable database of US Pardons 20 Years on AWS and Never Not My Job The Seasons are Wrong Artemis II crew splashes down near San Diego after historic moon mission We gave an AI a 3 year retail lease in SF and asked it to make a profit | Andon Labs How a dancer with ALS used brainwaves to perform live On filing the corners off my MacBooks Installing every* Firefox extension OpenClaw’s memory is unreliable, and you don’t know when it will break Steve Blank Nowhere Is Safe Chimpanzees in Uganda locked in vicious 'civil war', say researchers watgo - a WebAssembly Toolkit for Go linux/Documentation/process/coding-assistants.rst at master · torvalds/linux GitHub - callumlocke/json-formatter: Makes JSON easy to read. Founding Product Engineer at Bild AI | Y Combinator A compelling title that is cryptic enough to get you to take action on it GitHub - Keychron/Keychron-Keyboards-Hardware-Design: Industrial design files for Keychron keyboards and mice. 100+ models with CAD assets in STEP, DXF, DWG, and PDF. Source-available, with commercial use allowed for original compatible accessories within the license terms. [ANNOUNCE] WireGuardNT v0.11 and WireGuard for Windows v0.6 Released 1D-Chess Helium Is Hard to Replace Cooperative Vectors Introduction | Evolve Keeping a Postgres queue healthy — PlanetScale Our response to the Axios developer tool compromise Do Americans read print books, e-books or audiobooks more? The Zettelkasten Method in Obsidian: A Practical Setup Guide Artemis II Is Competency Porn and We Are Starving For It WeakC4 Flight Viz — Cockpit View A Mexican surveillance giant you’ve never heard of is now watching the U.S. border Surelock: Deadlock-Free Mutexes for Rust RISC-V 101 – what is it and what does it mean for Canonical? | Ubuntu The Problem That Built an Industry How Much Linear Memory Access Is Enough? | Solidean Investigating Split Locks on x86-64 Simplest hash functions Sybilproof reputation mechanisms (2005) [pdf] What is a property? How Complex is my Code? Static code analysis in Kotlin — tools overview Toffoli gates are all you need PGLite evangelism dcmake: a new CMake debugger UI Clojure on Fennel part one: Persistent Data Structures Fragments: April 2 Python Release Python install manager 26.1 The Life and Death of the Book Review - Liberties Introducing Database Traffic Control — PlanetScale Bitcoin miners are losing $19,000 on every BTC produced as difficulty drops 7.8% God sleeps in the minerals Building slogbox Apple Silicon and Virtual Machines: Beating the 2 VM Limit Who was “Not Even Wrong” first? Pokemon Evolution Vs Darwinian Evolution The APL Programming Language Source Code
GitHub - Sessa93/remote-df: Run a remote Dwarf Fortress instance and connect to it using your browser!
2026-06-15 · via Hacker News

Play Dwarf Fortress (Classic or Steam edition) in a web browser with audio. DF runs as a Docker container on a remote x86-64 Linux host at full native speed, streamed to your browser over noVNC with audio via HTTP.

Classic Steam (Premium)
Classic title Steam title
Classic gameplay Steam gameplay

Architecture

Your machine                         Remote x86-64 Linux host (ssh <remote>)
┌──────────────────┐                 ┌──────────────────────────────────────────────────┐
│ Browser          │                 │ Docker container                                  │
│  noVNC <canvas> ─┼── SSH tunnel ──▶│  nginx :6080                                      │
│  <audio> src=    │   (loopback)    │   ├─ /          → custom index.html (VNC + audio) │
│  /audio          │                 │   ├─ /websockify → websockify → Xvnc :5900         │
│  localhost:6080  │                 │   ├─ /audio      → Icecast ◀─ ffmpeg (internal)    │
│                  │                 │   └─ /saves /backups /logs → browse/download       │
└──────────────────┘                 │  PulseAudio (virtual sink) ◀─ dwarfort             │
                                     │  saves → host dir (bind mount, on disk)            │
                                     │  backups → host dir (periodic save tarballs)       │
                                     └──────────────────────────────────────────────────┘

Nothing is exposed publicly: the container binds to 127.0.0.1, and you reach it through an SSH tunnel.

Prerequisites

  • A remote x86-64 Linux host you can SSH into (e.g. a VPS or cloud instance)
  • Docker installed on that host
  • SSH client on your local machine
  • A modern web browser

Quickstart (Classic Edition)

# 1. Deploy — syncs the build context and uses Docker Compose on the remote to
#    build + start the container (saves persist on disk under ~/remote-df/saves)
./scripts/deploy.sh <ssh-host>

# 2. Open an SSH tunnel and launch it in your browser
./scripts/connect.sh <ssh-host>
#    → http://localhost:6080/vnc.html?autoconnect=1&resize=scale
#    → Audio stream: http://localhost:8080

Docker Compose

./scripts/deploy.sh drives Compose on the remote for you. To run it by hand instead, do this on the remote host (loopback-only ports, auto-restart, and saves bind-mounted to a host directory on disk):

# Classic — build the image and run
docker compose up -d --build

# Steam — build on the host (SteamCMD needs native x86_64)
echo myuser > secrets/steam_user
echo mypass > secrets/steam_pass
echo ''     > secrets/steam_guard   # or the 2FA code if Steam Guard is on
docker compose up -d --build df-steam

Then tunnel in from your machine with ./scripts/connect.sh <host>. Override DF_VERSION, GEOM, WEB_PORT, VNC_PORT, or DF_SAVES_DIR (where saves live on disk, default ./saves) via the environment or a .env file.

Example: full classic deploy with Compose

# --- on the remote x86-64 host ---
git clone https://github.com/sessa93/remote-df.git && cd remote-df

# Optional: pin settings instead of passing them inline each time
cat > .env <<'EOF'
DF_VERSION=53_14
GEOM=1600x900
WEB_PORT=6080
DF_SAVES_DIR=./saves            # host dir for saves (created on first run)
EOF

docker compose up -d --build    # build the image and start the container
docker compose logs -f df       # watch DF / Xvnc / audio boot (Ctrl-C to detach)

# --- back on your local machine ---
./scripts/connect.sh my-vps     # SSH tunnel + open the browser
#   → http://localhost:6080/

Day-to-day:

docker compose ps               # is it up?
docker compose restart df       # bounce it
docker compose up -d --build    # rebuild (e.g. new DF_VERSION) and restart
docker compose down             # stop & remove (saves persist in the host saves dir)

Steam Edition

If you own Dwarf Fortress on Steam, you can use the premium version instead:

# Build on the remote host (SteamCMD needs native x86_64)
DF_EDITION=steam STEAM_USER=myuser STEAM_PASS=mypass ./scripts/deploy.sh <ssh-host>

# With Steam Guard 2FA:
DF_EDITION=steam STEAM_USER=myuser STEAM_PASS=mypass STEAM_GUARD=ABC123 ./scripts/deploy.sh <ssh-host>

Steam credentials are passed as Docker BuildKit secrets and never stored in the image.

DFHack

The classic edition includes DFHack (mod framework). DFHack is loaded via LD_PRELOAD to bypass the setarch call that requires SYS_ADMIN capability unavailable in Docker containers. The steam edition does not include DFHack.

CI / GitHub Actions

Workflow Trigger Description
build.yml Push to main Builds classic edition, pushes to GHCR
build-steam.yml Manual Builds steam edition (needs STEAM_USER/STEAM_PASS secrets)
deploy.yml Manual Deploys to a remote host via SSH (DEPLOY_SSH_KEY secret)

Images are published to ghcr.io/sessa93/remote-df with tags:

  • df-{VERSION}-classic, classic, latest (classic)
  • df-{VERSION}-steam, steam (steam)

Project Layout

Path Purpose
docker/Dockerfile Multi-stage amd64 image: custom SDL2 + DF + audio + Xvnc + noVNC
docker/start.sh Entrypoint: PulseAudio, Icecast, display stack, DF (auto-restart/pause), backups
docker/icecast.xml Icecast config: fans the ffmpeg audio source out to browser listeners
scripts/deploy.sh Sync build context + docker compose up --build on the remote (both editions)
docker-compose.yml Build/run both editions; saves bind-mounted to a host dir; loopback ports
scripts/connect.sh SSH tunnel (VNC + audio) + open browser (run from your machine)
df/g_src/ Open-source platform/render wrapper (from Bay 12)

How It Works

dwarfort is a graphical SDL2 program, so the container gives it a headless display: Xvnc (virtual X server + VNC, 1280×800) → DF renders into it using PRINT_MODE:2D software rendering (no GPU needed) → websockify/noVNC serves the VNC stream to the browser as a <canvas>. Keyboard and mouse flow back the same way.

Audio Streaming

A PulseAudio virtual null sink captures DF's audio output (via SDL_AUDIODRIVER=pulse). ffmpeg reads from the PulseAudio monitor source, encodes to Ogg/Opus at 96 kbps, and pushes it to an internal Icecast server as a source. nginx proxies the Icecast mount at /audio on the same port as noVNC, and the custom index.html landing page embeds an <audio src="/audio"> element — so video and audio share one browser tab with no extra ports. Icecast fans the stream out to many listeners and survives tab reloads/reconnects (ffmpeg's earlier one-client HTTP server would drop and 502 on reconnect). Latency is ~100-200 ms.

Save Backups & Browse/Download

A background loop tarballs the save dir to /backups every BACKUP_INTERVAL seconds (default 30 min), keeping the newest BACKUP_KEEP (default 48). /backups is bind-mounted to a host directory (DF_BACKUPS_DIR, default ~/remote-df/backups), so backups live on disk too. nginx serves three browse/download endpoints (linked from the landing page):

  • /backups/ — download a save tarball
  • /saves/ — browse the live save directory
  • /logs/ — view container logs (df.log, xvnc.log, audio.log, icecast.log, …)

Idle Auto-Pause

When no VNC client is connected for IDLE_GRACE seconds (default 30), dwarfort is paused with SIGSTOP to save CPU, and resumed with SIGCONT the moment a browser reconnects. Set DF_AUTOPAUSE=0 to keep the simulation running while you're disconnected (e.g. to let a fortress run overnight).

Health & Limits

The container declares a Docker healthcheck (HTTP probe on :6080) so docker compose ps and restart policies can tell when it's wedged, and resource limits (DF_CPUS, DF_MEMORY, plus a pid cap) so a runaway dwarfort can't take down the host.

Custom SDL2 Build

DF's bundled SDL2 reads mouse input via XInput2 raw events, which VNC-injected input does not produce — the cursor would never register. The Dockerfile builds SDL2 with SDL_X11_XINPUT=OFF so DF uses core X input instead, which VNC input generates correctly.

Persistent Saves

Saves are bind-mounted from a host directory on the remote (DF_SAVES_DIR, default ~/remote-df/saves) to DF v50's save location inside the container — /root/.local/share/Bay 12 Games/Dwarf Fortress/save (the XDG user-data dir, not the game folder's data/save). So worlds and fortresses live on disk, survive redeploys, and can be backed up or copied with ordinary file tools (no docker volume plumbing).

Configuration

Variable Default Description
GEOM 1280x800 Virtual display resolution
VNC_PORT 5900 VNC server port (internal)
WEB_PORT 6080 nginx port (noVNC + audio, tunneled to browser)
DF_VERSION 53_14 DF version (used in image tags and download URL)
DF_EDITION classic classic or steam
DF_SAVES_DIR ./saves Host dir bind-mounted to DF's save location
DF_BACKUPS_DIR ./backups Host dir for periodic save-backup tarballs
BACKUP_INTERVAL 1800 Seconds between save backups (0 disables)
BACKUP_KEEP 48 Number of backup tarballs to retain
DF_AUTOPAUSE 1 Pause DF when no client is connected (0 off)
IDLE_GRACE 30 Seconds with no clients before auto-pausing
DF_CPUS 2.0 CPU limit for the container
DF_MEMORY 3g Memory limit for the container

Security

The setup assumes a single user reaching it over an SSH tunnel, so the VNC server runs with no password and there's no TLS — which is fine over loopback + SSH. Do not publish the port directly. If you ever want others to reach it:

  1. Add a VNC password (x11vnc -rfbauth)
  2. Terminate TLS in front (e.g. Caddy or nginx)
  3. Open the firewall deliberately

License

This project's scripts, Dockerfile, and configuration are released under the MIT License.

Dwarf Fortress itself is copyright Tarn Adams / Bay 12 Games. The game binary and assets are not included in this repository — they are downloaded at build time. See Bay 12's site for terms.