"Oopsies " FreeBSD Devs Say There's Still GPL in the Kernel2 months agohttps://fossforce.com/2026/07/oopsies-freebsd-devs-say-theres-still-gpl-in-the-k...FreeBSD 认为它已经移除了所有 GPL 代码,但在内核中遗漏了一些残留。剩余的 GPL 代码包括来自 Linux 内核中用于高通 SoC 的头文件以及设备树中的 GPLv2 片段。大多数 GPL 部分也包含 BSD 许可,因此它们可能不算纯粹的 GPL。作者觉得人们努力避免 copyleft 很有趣,并将其与鲍尔默领导下的微软进行比较。
Time Machine inside a FreeBSD jail2 months agohttps://it-notes.dragas.net/2026/01/28/time-machine-freebsd-jail/The author helps clients manage macOS backups using FreeBSD servers.The process uses BastilleBSD to create a jail (VNET or inherit) for the Time Machine service.A ZFS dataset is created with quotas and mounted into the jail.Samba is installed and configured with Fruit extensions to act as a Time Machine target.Users are added as system users and Samba users, with proper directory permissions.Services (dbus, avahi-daemon, samba_server) are enabled and started.Backups can be encrypted for security.
Why I Love FreeBSD2 months agohttps://it-notes.dragas.net/2026/03/16/why-i-love-freebsd/2002年,《FreeBSD手册》以其完整性、准确性和更新及时的文档给作者留下了深刻印象,这与碎片化的Linux文档形成鲜明对比。在相同硬件上,FreeBSD相比Linux表现出更稳定、更高性能和更灵敏的特点,能够从容处理编译负载。手册教授了系统化的方法:先理解再行动,其基础在24年后依然适用。FreeBSD优先考虑渐进式演进而非革命性变革,确保生产环境的长期稳定性和可预测性。作者珍视FreeBSD的可靠特性,如jails、ZFS、启动环境和bhyve,这些功能均为原生且高效。FreeBSD社区由真诚的热情、专业能力以及服务用户而非追逐热点的专注精神所驱动。FreeBSD始终践行其座右铭‘服务的力量’,数十年来保持高效、强大且安全可靠。
How to install FreeBSD on providers that don't support it with mfsBSD2 months agohttps://it-notes.dragas.net/2025/07/02/install_freebsd_providers_mfsbsd/FreeBSD is a powerful OS offering service isolation via jails and easy snapshots with ZFS.Many providers no longer support FreeBSD due to Linux dominance, causing issues for diverse OS usage.mfsBSD is a tool that creates a bootable image loaded entirely into memory, supporting both UEFI and traditional boot.mfsBSD enables installation via SSH without needing a console by obtaining an IP via DHCP and opening an SSH server.To install, boot the server in Linux rescue mode, download and write the mfsBSD image to disk using dd, then reboot.After reboot, connect via SSH as root with password 'mfsroot', change the password immediately, and run 'bsdinstall' for standard installation.
New Article on BSD Cafe Journal: WordPress on FreeBSD with BastilleBSD2 months agohttps://it-notes.dragas.net/2025/07/21/new-article-wordpress-on-freebsd-bastille...作者在BSD Cafe Journal上发表了一篇新文章“在FreeBSD上使用BastilleBSD运行WordPress”。该文章将BastilleBSD介绍为使用jail在FreeBSD上运行WordPress的安全替代方案,以替代Linux/Docker。作者正在将技术内容扩展到BSD Cafe Journal,这是一个与BSD相关内容的平台。个人博客仍是主要平台;所有新文章都会在那里发布和链接。
Make Your Own Backup System – Part 2: Forging the FreeBSD Backup Stronghold2 months agohttps://it-notes.dragas.net/2025/07/29/make-your-own-backup-system-part-2-forgin...FreeBSD 是备份服务器的首选操作系统,因为它支持通过 jail 和虚拟机隔离服务,而 ZFS 提供了灵活性和数据完整性。备份服务器应强化安全性,加密(使用 GELI 或 ZFS 原生加密),并理想情况下仅通过 VPN 或局域网访问。两种主要备份策略:针对 ZFS 系统的 zfs-autobackup(拉取型)和针对非 ZFS 系统的 BorgBackup(推送型),每个服务器使用单独的 jail 进行隔离。Proxmox Backup Server 可以在虚拟机中运行,数据存储在 Minio jail 中,利用主机 ZFS 池上的 S3 兼容存储。备份服务器上的本地快照(使用 ZFS)可以提供针对勒索软件或恶意删除备份的保护。同时维护外部(不同数据中心)和内部(本地)备份副本至关重要,且应独立进行备份以避免问题传播。建议备份服务器使用磁盘冗余(镜像、RaidZ),因为备份数据与生产数据同等重要。
FreeBSD vs. SmartOS: Who's Faster for Jails, Zones, and bhyve VMs?2 months agohttps://it-notes.dragas.net/2025/09/19/freebsd-vs-smartos-whos-faster-for-jails-...Benchmarks reflect specific hardware and workloads, not universally applicable results.A PCEngines APU running Proxmox failed after seven years due to power surges, prompting a replacement with an Intel N150 MiniPC.The author tested multiple virtualization options on the N150 and an i7-7500U for comparison.OS-level containers (jails and zones) showed negligible CPU overhead, near bare-metal performance.Memory benchmarks revealed significant differences: bhyve on i7 had 0.52% overhead, while on N150 it was 9%, likely due to missing optimizations.SmartOS native and LX zones delivered top memory performance, beating FreeBSD bare metal by up to 25%.Legacy KVM on SmartOS underperformed severely, making bhyve the preferred choice.FreeBSD demonstrated superior bhyve HVM performance on mature hardware, with near-zero overhead.The final recommendation depends on workload: SmartOS for container speed and Linux flexibility, FreeBSD for pure HVM performance.bhyve emerged as the key technology for the client's new server.
Monitor your devices with LibreNMS on FreeBSD2 months agohttps://it-notes.dragas.net/2026/05/07/monitor-your-services-with-librenms-on-fr...LibreNMS 是一款轻量级的监控替代方案,可替代 Zabbix,处理带警报、数据和图表的 SNMP 设备。本安装指南针对 FreeBSD 15.0-RELEASE,使用软件包(nginx、php-fpm、MySQL 8.4)进行安装,不涉及 HTTPS 或反向代理。MySQL 在首次启动前需设置 `innodb_file_per_table=1` 和 `lower_case_table_names=0`。php-fpm 配置为使用由 www 用户拥有的 Unix 套接字,nginx 从 `/usr/local/www/librenms/html` 提供 LibreNMS 服务。FreeBSD 上的 LibreNMS 软件包已包含合理的权限设置;仅需手动编辑 `.env` 文件以配置数据库凭据和 `INSTALL=true` 标志。Web 安装程序完成后,必须从 `.env` 文件中删除 `INSTALL=true` 行以保证安全。专用 rc 服务(`librenms`)负责运行轮询调度器,无需使用 cron 条目。通过 `validate.php` 进行的验证可能显示瞬态调度器警告,这些警告会在调度器稳定后消失。
FreeBSD ports frozen after someone commits the 150MB Linux Copilot binary2 months agohttps://www.osnews.com/story/145593/freebsd-ports-frozen-after-someone-commits-t...FreeBSD project froze its ports repository for over 48 hours after a 150MB binary file was committed.The commit caused GitHub mirroring to fail due to GitHub's 100MB file size limit and introduced questionable licensing.The binary is the entire github-copilot-cli Linux binary, committed accidentally by the port maintainer.The FreeBSD port is not a native port but a wrapper to run the Linux binary via Linuxulator.No security compromise was detected; users' systems are not at risk.The FreeBSD team is rolling back the commit, fixing the issue, and investigating how it happened.The ports tree remains frozen at the time of writing.
FreeBSD Laptop Support Continues Improving with WiFi, GPU and Audio Driver Work2 months agohttps://www.phoronix.com/news/FreeBSD-Laptops-June-2026FreeBSD基金会的笔记本电脑支持与可用性项目获得了超过75万美元的资金,旨在改善FreeBSD在笔记本电脑上的使用体验。现代电源管理(如S0ix)是重点之一,目标是在相关笔记本电脑型号上实现至少8小时的活跃使用时间。内核调度器正进行优化,以更好地支持混合处理器中的性能和节能核心。来自Linux内核的开源图形驱动正在更新,Linux 6.13和6.14 DRM状态的移植正在进行审查。目前支持三款WiFi 6驱动:Intel IWLWIFI、Realtek RTW89和MediaTek MT76。音频驱动支持正在增强,并利用GPIO中断实现低延迟触摸板处理。笔记本电脑可用性方面的进展(包括电源、图形、WiFi和触摸板的改进)在月度状态报告中有详细说明。
FreeBSD 16 Retires the Last of Its GPL Code from Its Base System2 months agohttps://www.phoronix.com/news/FreeBSD-16-Goes-GPL-FreeFreeBSD 16 源码树已从基础系统中移除最后一项基于 GNU GPL 许可的代码——dialog 工具。FreeBSD 安装程序已改用 bsddialog,而 dialog 的最后一个用户 dpv 也已退役。这项变更在 2 月提交议题后已合并至源码树,标志着 GNU 子树的彻底退役。FreeBSD 16.0 预计将于 2027 年 12 月发布。
Bootstrapping GDC with DMD2 months agohttps://briancallahan.net/blog/20260713.htmlFreeBSD缺少GDC软件包;通过一个封装程序,可以使用DMD引导GDC。GDC从GCC 12开始用D语言编写;DMD可以通过封装程序进行标志翻译来引导stage1 GDC。该封装程序gdc-wrapper将GCC风格的标志转换为DMD可识别的格式,从而支持在FreeBSD和其他系统上构建GDC。
FreeBSD 16 removes last GPL-licensed software, a first among *BSDs2 months agohttps://old.reddit.com/r/freebsd/comments/1uwi51j/freebsd_16_removes_last_gpllic...FreeBSD已在16-CURRENT版本中从其基础系统中移除了最后一项采用GPL许可证的软件,淘汰了整个GNU子系统。此次移除包括用bsddialog替代dialog工具,这标志着主流BSD系统在实现完全去GPL化进程中取得重要里程碑。OpenBSD历史上仍包含部分GPL组件但致力于逐步替换;NetBSD承认在移除GPL软件方面存在客观限制。FreeBSD此举被视为迈向软件自由的重要突破,使其在主流BSD发行版中脱颖而出,受到社区广泛赞誉。这一变革显著体现了BSD社区持续减少对GPL授权工具依赖的不懈努力,具有重要的示范意义。
GitLab on FreeBSD2 months agohttps://vermaden.wordpress.com/2026/07/09/gitlab-on-freebsd/使用带有 FreeBSD-15.1-RELEASE 镜像的 Bhyve 虚拟机,在 FreeBSD 上安装并设置 GitLab 服务器。配置 PostgreSQL 数据库,包含必要的扩展和调整连接限制,然后设置 Redis 的套接字权限和组访问。安装并配置 GitLab,设置特定的工作进程参数、全局 Git 配置、资产编译,并与 Nginx 集成以实现 Web 访问。通过生成 GitLab 密钥、启用服务并使用 root 账户访问 Web 界面,完成最终设置。考虑其他步骤,例如为 Nginx 添加 HTTPS 证书以实现安全访问。
Moving to FreeBSD from Linux2 months agohttps://kuon.ch/post/2026-07-02-moving-freebsd/作者从长期使用Mac OS(包括从Mac SE/30到Mac Pro的多款机型)转向了黑苹果(Hackintosh),随后又改用Windows。在使用Linux(Arch Linux搭配Sway)近十年后,作者因系统频繁崩溃及systemd相关问题感到沮丧。在网络工作期间,作者部署了OpenBSD和FreeBSD机器,由于易于控制,逐渐喜欢上了BSD系统。一次Linux内核更新后键盘故障,促使作者转向FreeBSD,因其端口树(ports tree)选择了该系统,最终成功安装并配置完成。使用六个月后,FreeBSD运行良好,仅存在一些小缺点,例如OBS中无浏览器源、不支持AnyDesk/RustDesk,但总体体验积极。
FreeBSD ate my RAM3 months agohttps://crocidb.com/post/freebsd-ate-my-ram/由于操作系统采用磁盘缓存等机制将数据缓存在RAM中以提升性能,这些缓存可在需要时释放,因此内存使用情况的报告较为复杂。虚拟内存系统将RAM页面管理在不同的队列中(如活动、非活动、待清理、固定、空闲),这使得准确定义'已用'与'空闲'内存变得困难。fastfetch、btop和htop等工具采用不同的启发式算法报告内存使用情况,导致显示数值存在差异。btop在FreeBSD上存在一些缺陷,包括32位变量导致的整数溢出问题,以及因使用过时的sysctl参数而报告错误的缓存数据。btop和htop已实施修复,以正确计算ZFS ARC缓存和文件系统缓冲区,从而提高了内存监控的准确性。作者为开源项目贡献了补丁,突显了深入理解操作系统内部机制对于精确系统监控的重要性。