# A tiny fake uname call gets Zed's remote server running on FreeBSD

Original title: Lying to Zed to get its remote server running on FreeBSD

> Hacker News story 50491295 · language: en · submitted 2026-11-13
> Web version: https://zeli.app/story/50491295
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 36 · by [arch1e](<https://news.ycombinator.com/user?id=arch1e>) · 💬 9
[original](<https://hayzam.com/blog/03-lying-to-zeds-remote-editor/>) · [HN discussion](<https://news.ycombinator.com/item?id=50491295>)

## Summary

Zed has no FreeBSD remote server, so Hayzam spoofed the platform string with a small uname wrapper, letting FreeBSD's Linuxulator run the Linux build. That exposed a kernel regression: a February 2026 NFS fix made the Linux getdents path over-read its buffer, so Zed saw empty folders or silently lost files. His patch, now in FreeBSD 15.2, fixes both getdents and getdents64.

## Key quote

> When I tried the quiet way, 112 of my 1,002 files vanished (from the listing) with no warning. A loud error beats a quiet loss I'm pretty sure.

## HN discussion (9 comments)

### [kodoman](<https://news.ycombinator.com/item?id=50493796>)

> Remote editing can be done without special servers, just ssh. This is good work and quicker but mostly I don't need that performance and just being able to use ssh is nicer.

### [eddythompson80](<https://news.ycombinator.com/item?id=50492384>)

> Is there some more work needed for the remote server to just compile for FreeBSD? It seems for the editor itself only audio calls (wtf?) don’t work on FreeBSD
>
> https://zed.dev/docs/development/freebsd
>
> Edit: FWIW, it doesn't really build on freebsd

### [mattanimation](<https://news.ycombinator.com/item?id=50493885>)

> "Been using VSCode since I was 16"... Dear Lord I'm old.

---

## Cite

- Page: https://zeli.app/story/50491295
- Date: 2026-11-13
- Source: hayzam.com (https://hayzam.com/blog/03-lying-to-zeds-remote-editor/)
- Hacker News: https://news.ycombinator.com/item?id=50491295

## Other languages

- zh: https://zeli.app/zh/story/50491295 · markdown: https://zeli.app/zh/story/50491295.md
- ja: https://zeli.app/ja/story/50491295 · markdown: https://zeli.app/ja/story/50491295.md
- ko: https://zeli.app/ko/story/50491295 · markdown: https://zeli.app/ko/story/50491295.md
- de: https://zeli.app/de/story/50491295 · markdown: https://zeli.app/de/story/50491295.md
- es: https://zeli.app/es/story/50491295 · markdown: https://zeli.app/es/story/50491295.md
- ru: https://zeli.app/ru/story/50491295 · markdown: https://zeli.app/ru/story/50491295.md
