<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>VerifyBench</title>
        <link>https://verifybench.top/</link>
        <description>Recent content on VerifyBench</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-us</language>
        <lastBuildDate>Mon, 26 Oct 2026 13:49:37 +0800</lastBuildDate><atom:link href="https://verifybench.top/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>KVM 切走就休眠？用 EDID 注入: Keeping Linux Awake When Switching Between Two Machines</title>
            <link>https://verifybench.top/it-software/operating/kvm-edid-fix/</link>
            <pubDate>Mon, 26 Oct 2026 13:49:37 +0800</pubDate>
            <guid>https://verifybench.top/it-software/operating/kvm-edid-fix/</guid>
            <description>&lt;h2 id=&#34;办公场景双主机一套键鼠的问题office-scenario-and-kvm-one-keyboard-and-mouse-set-for-two-hosts&#34;&gt;办公场景双主机一套键鼠的问题Office Scenario and KVM: One Keyboard and Mouse Set for Two Hosts&#xA;&lt;/h2&gt;&lt;p&gt;At the office I have a laptop (Linux Mint 22.3, Lenovo V14 G5 IRL) and a desktop workstation (Windows), each with its own monitor and a set of keyboard/mouse. My work requires both machines — basic tasks on Linux, while document formatting and Comsol&amp;rsquo;s GUI need the Windows workstation&amp;rsquo;s performance. Running between two desks was annoying, so I tried networking them so some operations could be done from one host, but I still had to switch desks a lot.&lt;/p&gt;&#xA;&lt;p&gt;在公司，我有一个笔记本（Linux Mint 22.3, Lenovo V14 G5 IRL）和一个台式工作站（Windows），每个都配备一个显示屏和一套键盘鼠标。我的工作需要同时用到这两个电脑，比如一些基本的工作可以在Linux上完成，而修改文档格式、使用Comsol图形化界面则需要用到Windows工作站的性能。我在两个工位之间来回跑很麻烦，我试图接网线让一些操作能在一个主机上完成，但很多时候还是需要换工位完成。&lt;/p&gt;&#xA;&lt;p&gt;The ideal scenario is using just one monitor and switching the displayed content on it, sharing one set of keyboard and mouse. I first thought of an HDMI switch, but that doesn&amp;rsquo;t solve the shared keyboard/mouse problem. Then the internet recommended KVM to me, and I immediately felt it was what I needed. I bought a SGEYR KVM (from Xianyu, 40 CNY). It connects two hosts via HDMI cables, then connects to the monitor with another HDMI cable — same as an HDMI switch. Additionally, it connects to both hosts via USB and applies the keyboard/mouse plugged into it to whichever host is active.&lt;/p&gt;&#xA;&lt;p&gt;最好的情况是我只用一个显示屏，可以在上面切换显示内容，共用一套键盘鼠标。我一开始想到了HDMI切换器，但是它无法解决共用一套键鼠的问题。后来网络给我推送了KVM，我直觉地感到这就是我要的东西，我购买了一个SGEYR的KVM（闲鱼上买的，40￥），它能通过HDMI线连接两个主机，再用一根HDMI线连接到显示屏，这部分和HDMI切换器是一样的，进一步地，它还能分别通过USB连接到两个主机，把插在自身上的键盘鼠标应用到上面。&lt;/p&gt;&#xA;&lt;p&gt;The desktop workstation&amp;rsquo;s original monitor stays connected. Both hosts connect to the original laptop monitor through the KVM switch. Problem: since the desktop monitor remains, switching to the workstation is fine, but then Linux goes to sleep. Switching back, keyboard and mouse are also dead — I have to open the laptop lid to wake it up. This is because my old-style KVM doesn&amp;rsquo;t have the feature of simulating a monitor that&amp;rsquo;s never unplugged. I didn&amp;rsquo;t want to tinker with hardware anymore; this must be solvable with software. My goal was to keep Linux running when the KVM switches away. So I had AI research GitHub repos, found the twshield/Fedora-EDID-KVM-config project, and finally solved the problem.&lt;/p&gt;&#xA;&lt;p&gt;台式工作站原本的屏幕仍然保留，两个主机都通过KVM切换器连接到原先笔记本的那个显示屏上。结果出现了问题，因为台式机工作站屏幕保留了，每次切换到工作站都没事，但是这时候Linux却陷入了休眠，再切回去键盘和鼠标也都瘫痪了，还得再打开笔记本合盖唤醒。这是因为我用的是老式KVM，不具备模拟显示屏没有拔出的功能。我不想再折腾硬件了，这个肯定可以通过软件解决，我的目的就是能让KVM切换回Linux时其仍在保持运行。所以我让AI调研了Github仓库，找到了twshield/Fedora-EDID-KVM-config这个项目，并最终解决了这个问题。&lt;/p&gt;&#xA;&lt;p&gt;The core dependencies are &lt;strong&gt;&lt;code&gt;initramfs-tools&lt;/code&gt; + &lt;code&gt;update-grub&lt;/code&gt; (Debian/Ubuntu GRUB wrapper) + systemd-logind drop-in&lt;/strong&gt;. Any distro that has all three can basically &amp;ldquo;rename the connector and go&amp;rdquo;; ones that don&amp;rsquo;t need the corresponding component commands replaced.&lt;/p&gt;&#xA;&lt;p&gt;核心依赖是 &lt;strong&gt;&lt;code&gt;initramfs-tools&lt;/code&gt; + &lt;code&gt;update-grub&lt;/code&gt;（Debian/Ubuntu 系的 GRUB 封装）+ systemd-logind drop-in&lt;/strong&gt;。凡是同时具备这三件套的发行版，基本可以&amp;quot;改个连接器名字直接用&amp;quot;；不具备的，需要替换对应的组件命令。&lt;/p&gt;&#xA;&lt;h2 id=&#34;不同linux发行版适配adapting-to-different-linux-distributions&#34;&gt;不同Linux发行版适配Adapting to Different Linux Distributions&#xA;&lt;/h2&gt;&lt;p&gt;Besides Linux Mint, the following distros use &lt;code&gt;initramfs-tools&lt;/code&gt; and &lt;code&gt;update-grub&lt;/code&gt; by default, and the logind &lt;code&gt;HandleLidSwitch*&lt;/code&gt; drop-in mechanism is identical:&lt;/p&gt;&#xA;&lt;p&gt;除了 Linux Mint，以下发行版默认使用 &lt;code&gt;initramfs-tools&lt;/code&gt; 和 &lt;code&gt;update-grub&lt;/code&gt;，logind 的 &lt;code&gt;HandleLidSwitch*&lt;/code&gt; drop-in 机制也完全一致：&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Debian&lt;/strong&gt; (default initramfs generator is &lt;code&gt;initramfs-tools&lt;/code&gt;, &lt;code&gt;update-grub&lt;/code&gt; is Debian&amp;rsquo;s GRUB wrapper)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Ubuntu&lt;/strong&gt; (before 25.10, &lt;code&gt;initramfs-tools&lt;/code&gt; + &lt;code&gt;update-grub&lt;/code&gt; is the standard combo)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Pop!_OS&lt;/strong&gt; (based on Ubuntu, explicitly depends on &lt;code&gt;initramfs-tools&lt;/code&gt;)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Zorin OS&lt;/strong&gt; (based on Ubuntu, uses &lt;code&gt;initramfs-tools&lt;/code&gt; and &lt;code&gt;update-initramfs -u&lt;/code&gt;)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;elementary OS&lt;/strong&gt; (based on Ubuntu, uses &lt;code&gt;initramfs-tools&lt;/code&gt;)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;KDE neon&lt;/strong&gt;, &lt;strong&gt;Deepin&lt;/strong&gt;, and other Ubuntu/Debian derivatives — as long as they haven&amp;rsquo;t swapped the initramfs generator.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Debian&lt;/strong&gt;（默认 initramfs 生成器就是 &lt;code&gt;initramfs-tools&lt;/code&gt;，&lt;code&gt;update-grub&lt;/code&gt; 是 Debian 的 GRUB 封装命令）&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Ubuntu&lt;/strong&gt;（25.10 之前，&lt;code&gt;initramfs-tools&lt;/code&gt; + &lt;code&gt;update-grub&lt;/code&gt; 是标准组合）&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Pop!_OS&lt;/strong&gt;（基于 Ubuntu，明确依赖 &lt;code&gt;initramfs-tools&lt;/code&gt;）&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Zorin OS&lt;/strong&gt;（基于 Ubuntu，使用 &lt;code&gt;initramfs-tools&lt;/code&gt; 和 &lt;code&gt;update-initramfs -u&lt;/code&gt;）&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;elementary OS&lt;/strong&gt;（基于 Ubuntu，使用 &lt;code&gt;initramfs-tools&lt;/code&gt;）&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;KDE neon&lt;/strong&gt;、&lt;strong&gt;Deepin&lt;/strong&gt; 等 Ubuntu/Debian 衍生版，只要它们没有擅自替换 initramfs 生成器，基本同理。&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Only watch out for the &lt;strong&gt;connector name&lt;/strong&gt; (&lt;code&gt;HDMI-A-1&lt;/code&gt; is common on Intel/AMD drivers, but check the actual name under &lt;code&gt;/sys/class/drm/&lt;/code&gt;) and &lt;strong&gt;whether the desktop environment overrides logind&lt;/strong&gt;. If Cinnamon/GNOME/KDE&amp;rsquo;s own power manager has its own lid-close policy, the &lt;code&gt;logind.conf.d&lt;/code&gt; drop-in might be overridden — also check in desktop settings.&lt;/p&gt;&#xA;&lt;p&gt;需要注意的只是 &lt;strong&gt;连接器名&lt;/strong&gt;（&lt;code&gt;HDMI-A-1&lt;/code&gt; 在 Intel/AMD 驱动下常见，但具体要按 &lt;code&gt;/sys/class/drm/&lt;/code&gt; 里的实际名字改）和 &lt;strong&gt;桌面环境是否覆盖 logind&lt;/strong&gt;。如果 Cinnamon/GNOME/KDE 自己的电源管理器另有合盖策略，&lt;code&gt;logind.conf.d&lt;/code&gt; 的 drop-in 可能被上层覆盖，需要同时在桌面设置里确认。&lt;/p&gt;&#xA;&lt;p&gt;The following distros also use systemd-logind and the &lt;code&gt;/etc/default/grub&lt;/code&gt; + &lt;code&gt;grub*-mkconfig&lt;/code&gt; kernel parameter injection logic is the same, but the &lt;strong&gt;initramfs generator is NOT &lt;code&gt;initramfs-tools&lt;/code&gt;&lt;/strong&gt; — your &lt;code&gt;/etc/initramfs-tools/hooks/edid&lt;/code&gt; won&amp;rsquo;t work, and &lt;code&gt;update-initramfs -u&lt;/code&gt; doesn&amp;rsquo;t exist:&lt;/p&gt;&#xA;&lt;p&gt;以下发行版也用 systemd-logind，&lt;code&gt;/etc/default/grub&lt;/code&gt; + &lt;code&gt;grub*-mkconfig&lt;/code&gt; 的内核参数注入逻辑也通用，但 &lt;strong&gt;initramfs 生成器不是 &lt;code&gt;initramfs-tools&lt;/code&gt;&lt;/strong&gt;，你的 &lt;code&gt;/etc/initramfs-tools/hooks/edid&lt;/code&gt; 不会生效，&lt;code&gt;update-initramfs -u&lt;/code&gt; 也不存在：&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Arch Linux / EndeavourOS / Manjaro / CachyOS / Garuda&lt;/strong&gt;: default initramfs generator is &lt;strong&gt;&lt;code&gt;mkinitcpio&lt;/code&gt;&lt;/strong&gt;. To put EDID into initramfs, add &lt;code&gt;/lib/firmware/edid/lecoo-m2721u.bin&lt;/code&gt; to &lt;code&gt;FILES=(...)&lt;/code&gt; in &lt;code&gt;/etc/mkinitcpio.conf&lt;/code&gt;, then run &lt;code&gt;sudo mkinitcpio -P&lt;/code&gt;. For GRUB, Arch family typically uses &lt;code&gt;grub-mkconfig -o /boot/grub/grub.cfg&lt;/code&gt;; &lt;code&gt;update-grub&lt;/code&gt; may not exist.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Fedora / RHEL family&lt;/strong&gt;: use dracut. Write &lt;code&gt;install_items+=&amp;quot; /lib/firmware/edid/lecoo-m2721u.bin &amp;quot;&lt;/code&gt; in &lt;code&gt;/etc/dracut.conf.d/&lt;/code&gt;, then &lt;code&gt;dracut -f&lt;/code&gt;. GRUB uses &lt;code&gt;grub2-mkconfig -o /boot/grub2/grub.cfg&lt;/code&gt;, not &lt;code&gt;update-grub&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;openSUSE&lt;/strong&gt;: modern versions use dracut underneath (&lt;code&gt;mkinitrd&lt;/code&gt; is actually a dracut wrapper). GRUB uses &lt;code&gt;grub2-mkconfig -o /boot/grub2/grub.cfg&lt;/code&gt;. The &lt;code&gt;HandleLidSwitch*&lt;/code&gt; logind settings work the same. Just replace the initramfs step with dracut/mkinitrd syntax.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Arch Linux / EndeavourOS / Manjaro / CachyOS / Garuda&lt;/strong&gt;：默认 initramfs 生成器是 &lt;strong&gt;&lt;code&gt;mkinitcpio&lt;/code&gt;&lt;/strong&gt;。要把 EDID 放进 initramfs，在 &lt;code&gt;/etc/mkinitcpio.conf&lt;/code&gt; 的 &lt;code&gt;FILES=(...)&lt;/code&gt; 里加入 &lt;code&gt;/lib/firmware/edid/lecoo-m2721u.bin&lt;/code&gt;，然后运行 &lt;code&gt;sudo mkinitcpio -P&lt;/code&gt;。GRUB 用 &lt;code&gt;grub-mkconfig -o /boot/grub/grub.cfg&lt;/code&gt;。&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Fedora / RHEL 系&lt;/strong&gt;：用 &lt;code&gt;/etc/dracut.conf.d/&lt;/code&gt; 写 &lt;code&gt;install_items+=&amp;quot; /lib/firmware/edid/lecoo-m2721u.bin &amp;quot;&lt;/code&gt;，然后 &lt;code&gt;dracut -f&lt;/code&gt;。GRUB 用 &lt;code&gt;grub2-mkconfig -o /boot/grub2/grub.cfg&lt;/code&gt;。&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;openSUSE&lt;/strong&gt;：底层使用 dracut，GRUB 用 &lt;code&gt;grub2-mkconfig -o /boot/grub2/grub.cfg&lt;/code&gt;。&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Starting from &lt;strong&gt;Ubuntu 25.10 (Questing Quokka)&lt;/strong&gt;, Canonical uses &lt;strong&gt;dracut&lt;/strong&gt; instead of &lt;code&gt;initramfs-tools&lt;/code&gt; by default. Your &lt;code&gt;initramfs-tools&lt;/code&gt; hook and &lt;code&gt;update-initramfs -u&lt;/code&gt; will no longer work — migrate to dracut&amp;rsquo;s &lt;code&gt;install_items+&lt;/code&gt; syntax. Mint based on Ubuntu 25.10+ will also be affected.&lt;/p&gt;&#xA;&lt;p&gt;从 &lt;strong&gt;Ubuntu 25.10（Questing Quokka）&lt;/strong&gt; 开始，Canonical 默认使用 &lt;strong&gt;dracut&lt;/strong&gt; 替代 &lt;code&gt;initramfs-tools&lt;/code&gt;。你的 &lt;code&gt;initramfs-tools&lt;/code&gt; hook 和 &lt;code&gt;update-initramfs -u&lt;/code&gt; 将不再适用，需要迁移到 dracut 的 &lt;code&gt;install_items+&lt;/code&gt; 写法。Mint 如果未来基于 Ubuntu 25.10+，也会受影响。&lt;/p&gt;&#xA;&lt;h2 id=&#34;kvm切换的机制how-kvm-switching-works&#34;&gt;KVM切换的机制How KVM Switching Works&#xA;&lt;/h2&gt;&lt;p&gt;DP (DisplayPort) and HDMI connect the host electrically via differential signals. The host reads the HPD (Hot Plug Detect) signal line to determine if a monitor is connected, and reads the DDC channel (Display Data Channel) for the monitor&amp;rsquo;s supported resolution, timing, and color info (EDID — Extended Display Identification Data). DP uses I²C over AUX. The kernel interprets this display connection state, which then affects power decisions (is there an external monitor, or should it sleep?).&lt;/p&gt;&#xA;&lt;p&gt;先来说说为什么会导致休眠。硬件上，DP（Display Port）和HDMI（High-Definition Multimedia Interface）通过差分信号电气连接主机，主机通过读取HPD（Hot Plug Detect）这根信号线来确定是否有显示屏接入，通过DDC通道（Display Data Channel）读取这个显示屏支持什么分辨率、时序和色彩等（EDID, Extended Display Identification Data），其中DP线是走AUX上的I²C。这个信号需要内核来理解显示连接状态，然后影响到了电源决策（到底是有外接显示器还是休眠）。&lt;/p&gt;&#xA;&lt;p&gt;What a KVM does is independently control each host&amp;rsquo;s HPD pull-up path. Old-style KVMs, when switching hosts, simply disconnect HPD and don&amp;rsquo;t maintain EDID — the host still concludes the monitor is unplugged. Newer KVMs have an internal EDID store that continues to respond to EDID reads, making the host think the monitor is still present (just not refreshing the display — HPD is disconnected). Once HPD goes low and EDID can&amp;rsquo;t be read, the kernel tells userspace &amp;ldquo;external monitor disappeared,&amp;rdquo; and the lid-close policy triggers sleep.&lt;/p&gt;&#xA;&lt;p&gt;而KVM做的是，独立控制每个主机HPD的上拉通路，老式KVM切换主机时，直接断开HPD，也不维持EDID，仍然会导致主机判定显示器已经断开，而新的KVM则内部有独立的EDID存储器，会继续应答EDID的读取，使主机认为显示器仍然在场，只是画面不刷新了（HPD断开）。一旦HPD被拉低，而EDID又读取不到，kernel就告诉用户空间&amp;quot;外接显示屏消失了&amp;quot;，合盖策略随即变成休眠。&lt;/p&gt;&#xA;&lt;p&gt;One fix is to change the lid-close policy directly (&lt;code&gt;HandleLidSwitchDocked=ignore&lt;/code&gt;), preventing userspace from changing behavior just because the external screen disappeared. But after EDID is gone the display environment changes, and the desktop compositor rearranges windows anyway.&lt;/p&gt;&#xA;&lt;p&gt;有一种解决方法就是直接改变合盖策略（&lt;code&gt;HandleLidSwitchDocked=ignore&lt;/code&gt;），让用户空间不因为外界屏幕没了就改变合盖策略。问题是EDID没了之后显示环境变了，桌面合成器也跟着重新排列窗口了。&lt;/p&gt;&#xA;&lt;p&gt;USB 2.0 keyboard/mouse use D+/D- differential signal lines. The host identifies devices through level changes and differential handshakes on D+/D-, reads descriptors, configures them as HID devices, and grants wake permission. Then during system suspend, it can send resume signals via D+/D-, report to the host controller, and the kernel restores the system.&lt;/p&gt;&#xA;&lt;p&gt;再来说说为什么休眠之后不能再用KVM连接的键盘鼠标来唤醒。USB 2.0的键盘鼠标走的是D+/D-差分信号线，主机通过D+/D-上的电平变化和差分握手识别设备，读取描述符，并将其配置为一个HID设备，然后给它唤醒权限，之后系统suspend时即可通过D+/D-发出resume状态，上报到主机控制器再由内核恢复系统。&lt;/p&gt;&#xA;&lt;p&gt;Newer KVMs have USB virtualization that maintains virtual keyboard/mouse on the host port continuously, so the host still has a wake-capable HID device during sleep. But old-style KVMs physically disconnect the keyboard&amp;rsquo;s D+/D- from the switched-away host when switching — for the laptop that was switched away, the USB device is unplugged, the HID device is gone, and the wake permission is lost. Result: keyboard/mouse are no longer on the USB bus and the system sleeps. Even though physically connected, the host thinks there are no present keyboard/mouse and no usable external wake source.&lt;/p&gt;&#xA;&lt;p&gt;新的KVM里有USB虚拟化，会持续在主机端口上维持虚拟键鼠，让主机在休眠时仍有可唤醒的HID设备。但是老式KVM切换主机时，把键盘的D+/D-从被切走的主机上物理断开，去接通另一台主机了，这时候对于切走的笔记本，USB设备被拔除了，HID设备也没有了，唤醒权限也丢失了。结果是键盘鼠标已经不再USB总线上就陷入休眠了。即便物理上连接着，但是主机觉得已经没有在场的鼠标键盘和可用的外部唤醒源了。&lt;/p&gt;&#xA;&lt;h2 id=&#34;fedora-edid-kvm-config的解决方案the-fedora-edid-kvm-config-solution&#34;&gt;Fedora-EDID-KVM-config的解决方案The Fedora-EDID-KVM-config Solution&#xA;&lt;/h2&gt;&lt;p&gt;I want the KVM switch-away machine to keep running in the background. Solving the sleep-on-switch problem naturally solves the can&amp;rsquo;t-wake problem too. The twshield/Fedora-EDID-KVM-config project feeds a pre-prepared EDID to the DRM subsystem (Direct Rendering Manager) via kernel parameter (&lt;code&gt;drm.edid_firmware=&lt;/code&gt;) on Fedora, making the kernel always think the monitor is present.&lt;/p&gt;&#xA;&lt;p&gt;我希望切走KVM后后台仍然运行，因此应该解决切走导致休眠，切走无法唤醒的问题也就自然消解了。twshield/Fedora-EDID-KVM-config这个项目就是在Fedora系统上，通过内核参数（&lt;code&gt;drm.edid_firmware=&lt;/code&gt;）把一份预先准备好的EDID&amp;quot;喂&amp;quot;给DRM子系统（Direct Rendering Manager），始终认为显示器在场。&lt;/p&gt;&#xA;&lt;p&gt;The boot chain is: power on → firmware (BIOS/UEFI) → GRUB → Linux kernel → initramfs → root filesystem → userspace (systemd, logind, desktop).&lt;/p&gt;&#xA;&lt;p&gt;启动链条是这样的：上电 → 固件（BIOS/UEFI）→ GRUB → Linux 内核 → initramfs → 根文件系统 → 用户态（systemd、logind、桌面）。&lt;/p&gt;&#xA;&lt;p&gt;So the main task is to modify the file&amp;rsquo;s parameters that GRUB passes to the Linux kernel. This file is generated from a template, so ultimately we modify the GRUB template and regenerate the config file — after reboot, the kernel re-reads it.&lt;/p&gt;&#xA;&lt;p&gt;所以主要做的是，修改GRUB传给Linux内核的文件内的参数，而这个是通过读取文件完成的，这个文件又是通过模板生成的，最终需要修改GRUB中的模板，重新生成配置文件，这样重启后内核就会重新读取了。&lt;/p&gt;&#xA;&lt;h3 id=&#34;step-by-step-on-linux-mint&#34;&gt;Step-by-Step on Linux Mint&#xA;&lt;/h3&gt;&lt;p&gt;I&amp;rsquo;m using Linux Mint, which is the same as Fedora in this part. First, read the EDID and save it to &lt;code&gt;/tmp/edid-work/monitor.bin&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;p&gt;我使用的是Linux Mint，在这部分和Fedora是一样的，因此只需要读取EDID并保存在&lt;code&gt;/tmp/edid-work/monitor.bin&lt;/code&gt;：&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo -n true 2&amp;gt;&amp;amp;1; echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;sudo_exit=&lt;/span&gt;$?&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;; ls -l /sys/class/drm/card1-HDMI-A-1/edid; mkdir -p /tmp/edid-work &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt; cat /sys/class/drm/card1-HDMI-A-1/edid &amp;gt; /tmp/edid-work/monitor.bin &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt; wc -c /tmp/edid-work/monitor.bin &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt; xxd /tmp/edid-work/monitor.bin | head -5&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Verify and read the EDID — the monitor is LECOO M2721U, optimal resolution 3840x2160:&lt;/p&gt;&#xA;&lt;p&gt;验证和读取EDID，显示屏是LECOO M2721U，最佳分辨率是3840x2160：&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;python3 &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;PY&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;import&lt;/span&gt; struct&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;edid&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;open(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;/tmp/edid-work/monitor.bin&amp;#39;&lt;/span&gt;,&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;rb&amp;#39;&lt;/span&gt;)&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;read()&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;print(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;header_ok&amp;#39;&lt;/span&gt;, edid[:&lt;span style=&#34;color:#ae81ff&#34;&gt;8&lt;/span&gt;]&lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;b&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;\x00\xff\xff\xff\xff\xff\xff\x00&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mfg&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;struct&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;unpack(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&amp;gt;H&amp;#39;&lt;/span&gt;, edid[&lt;span style=&#34;color:#ae81ff&#34;&gt;8&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;10&lt;/span&gt;])[&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;c1&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;chr(((mfg&lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;10&lt;/span&gt;)&lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0x1f&lt;/span&gt;)&lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;64&lt;/span&gt;); c2&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;chr(((mfg&lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;5&lt;/span&gt;)&lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0x1f&lt;/span&gt;)&lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;64&lt;/span&gt;); c3&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;chr((mfg&lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0x1f&lt;/span&gt;)&lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;64&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;print(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;manufacturer&amp;#39;&lt;/span&gt;, c1&lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt;c2&lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt;c3)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;print(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;product&amp;#39;&lt;/span&gt;, hex(struct&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;unpack(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&amp;lt;H&amp;#39;&lt;/span&gt;, edid[&lt;span style=&#34;color:#ae81ff&#34;&gt;10&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;12&lt;/span&gt;])[&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;]))&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;print(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;serial&amp;#39;&lt;/span&gt;, hex(struct&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;unpack(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&amp;lt;I&amp;#39;&lt;/span&gt;, edid[&lt;span style=&#34;color:#ae81ff&#34;&gt;12&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;16&lt;/span&gt;])[&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;]))&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; i &lt;span style=&#34;color:#f92672&#34;&gt;in&lt;/span&gt; range(&lt;span style=&#34;color:#ae81ff&#34;&gt;4&lt;/span&gt;):&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    off&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;54&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt;i&lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;18&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    blk&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;edid[off:off&lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;18&lt;/span&gt;]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; blk[&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;]&lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt; blk[&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;]&lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt; blk[&lt;span style=&#34;color:#ae81ff&#34;&gt;3&lt;/span&gt;]&lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0xfc&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        print(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;monitor_name&amp;#39;&lt;/span&gt;, blk[&lt;span style=&#34;color:#ae81ff&#34;&gt;5&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;18&lt;/span&gt;]&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;split(&lt;span style=&#34;color:#e6db74&#34;&gt;b&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;\n&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&lt;/span&gt;)[&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;]&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;decode(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;ascii&amp;#39;&lt;/span&gt;,&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;replace&amp;#39;&lt;/span&gt;)&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;strip())&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; blk[&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;]&lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt; blk[&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;]&lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt; blk[&lt;span style=&#34;color:#ae81ff&#34;&gt;3&lt;/span&gt;]&lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0xff&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        print(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;serial_str&amp;#39;&lt;/span&gt;, blk[&lt;span style=&#34;color:#ae81ff&#34;&gt;5&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;18&lt;/span&gt;]&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;split(&lt;span style=&#34;color:#e6db74&#34;&gt;b&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;\n&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&lt;/span&gt;)[&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;]&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;decode(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;ascii&amp;#39;&lt;/span&gt;,&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;replace&amp;#39;&lt;/span&gt;)&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;strip())&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;print(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;checksum_ok&amp;#39;&lt;/span&gt;, sum(edid[:&lt;span style=&#34;color:#ae81ff&#34;&gt;128&lt;/span&gt;])&lt;span style=&#34;color:#f92672&#34;&gt;%&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;256&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;ext_blocks&amp;#39;&lt;/span&gt;, edid[&lt;span style=&#34;color:#ae81ff&#34;&gt;126&lt;/span&gt;])&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; len(edid)&lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;256&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    print(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;ext_checksum_ok&amp;#39;&lt;/span&gt;, sum(edid[&lt;span style=&#34;color:#ae81ff&#34;&gt;128&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;256&lt;/span&gt;])&lt;span style=&#34;color:#f92672&#34;&gt;%&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;256&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;dtd&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;edid[&lt;span style=&#34;color:#ae81ff&#34;&gt;54&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;72&lt;/span&gt;]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; dtd[&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;] &lt;span style=&#34;color:#f92672&#34;&gt;or&lt;/span&gt; dtd[&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;]:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    hactive&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;dtd[&lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt;]&lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt;((dtd[&lt;span style=&#34;color:#ae81ff&#34;&gt;4&lt;/span&gt;]&lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0xf0&lt;/span&gt;)&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;4&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    vactive&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;dtd[&lt;span style=&#34;color:#ae81ff&#34;&gt;5&lt;/span&gt;]&lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt;((dtd[&lt;span style=&#34;color:#ae81ff&#34;&gt;7&lt;/span&gt;]&lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0xf0&lt;/span&gt;)&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;4&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    print(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;preferred_mode&amp;#39;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;f&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;{&lt;/span&gt;hactive&lt;span style=&#34;color:#e6db74&#34;&gt;}&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;x&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;{&lt;/span&gt;vactive&lt;span style=&#34;color:#e6db74&#34;&gt;}&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;PY&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# header_ok True&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# manufacturer LEC&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# product 0x2757&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# serial 0x1010101&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# monitor_name LECOO M2721U&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# serial_str GE1DR108&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# checksum_ok True ext_blocks 1&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# ext_checksum_ok True&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# preferred_mode 3840x2160&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The monitor is LECOO M2721U (3840x2160). Now write the install script: EDID firmware + kernel parameters + disable lid-close sleep.&lt;/p&gt;&#xA;&lt;p&gt;显示器是 LECOO M2721U（3840x2160）。接下来写安装脚本：EDID 固件 + 内核参数 + 禁止合盖休眠。&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;#!/bin/bash&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# EDID + KVM keep-alive setup for Linux Mint (adapted from Fedora-EDID-KVM-config)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;set -euo pipefail&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;EDID_SRC&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;/tmp/edid-work/monitor.bin&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;EDID_NAME&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;lecoo-m2721u.bin&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;EDID_DIR&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;/lib/firmware/edid&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;EDID_PATH&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;${&lt;/span&gt;EDID_DIR&lt;span style=&#34;color:#e6db74&#34;&gt;}&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;/&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;${&lt;/span&gt;EDID_NAME&lt;span style=&#34;color:#e6db74&#34;&gt;}&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;CONNECTOR&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;HDMI-A-1&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;VIDEO_MODE&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;3840x2160@60e&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;==&amp;gt; 1. Install EDID firmware&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mkdir -p &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$EDID_DIR&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cp &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$EDID_SRC&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$EDID_PATH&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;chmod &lt;span style=&#34;color:#ae81ff&#34;&gt;644&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$EDID_PATH&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;    installed: &lt;/span&gt;$EDID_PATH&lt;span style=&#34;color:#e6db74&#34;&gt; (&lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;$(&lt;/span&gt;wc -c &amp;lt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$EDID_PATH&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;)&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt; bytes)&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;==&amp;gt; 2. Initramfs hook (Ubuntu/Mint uses initramfs-tools, not dracut)&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cat &amp;gt; /etc/initramfs-tools/hooks/edid &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;lt;&amp;lt;&amp;#39;HOOK&amp;#39;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;#!/bin/sh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;PREREQ=&amp;#34;&amp;#34;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;prereqs() { echo &amp;#34;$PREREQ&amp;#34;; }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;case &amp;#34;$1&amp;#34; in&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;  prereqs) prereqs; exit 0 ;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;esac&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;. /usr/share/initramfs-tools/hook-functions&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;if [ -d /lib/firmware/edid ]; then&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;  mkdir -p &amp;#34;${DESTDIR}/lib/firmware/edid&amp;#34;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;  cp -a /lib/firmware/edid/. &amp;#34;${DESTDIR}/lib/firmware/edid/&amp;#34;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;fi&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;exit 0&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;HOOK&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;chmod &lt;span style=&#34;color:#ae81ff&#34;&gt;755&lt;/span&gt; /etc/initramfs-tools/hooks/edid&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;    hook: /etc/initramfs-tools/hooks/edid&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;==&amp;gt; 3. GRUB kernel parameters&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;[&lt;/span&gt; ! -f /etc/default/grub.bak-edid-kvm &lt;span style=&#34;color:#f92672&#34;&gt;]&lt;/span&gt;; &lt;span style=&#34;color:#66d9ef&#34;&gt;then&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  cp /etc/default/grub /etc/default/grub.bak-edid-kvm&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;    backup: /etc/default/grub.bak-edid-kvm&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;fi&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;python3 - &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;lt;&amp;lt;&amp;#39;PY&amp;#39;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;from pathlib import Path&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;p = Path(&amp;#34;/etc/default/grub&amp;#34;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;text = p.read_text()&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;add = &amp;#34;video=HDMI-A-1:3840x2160@60e drm.edid_firmware=HDMI-A-1:edid/lecoo-m2721u.bin&amp;#34;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;out = []&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;done = False&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;for line in text.splitlines():&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    if line.startswith(&amp;#34;GRUB_CMDLINE_LINUX_DEFAULT=&amp;#34;):&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;        if &amp;#34;drm.edid_firmware&amp;#34; in line:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;            done = True&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;            out.append(line)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;            continue&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;        inner = line.split(&amp;#34;=&amp;#34;, 1)[1].strip().strip(&amp;#39;&amp;#34;&amp;#39;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;        new = f&amp;#39;{inner} {add}&amp;#39;.strip()&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;        out.append(f&amp;#39;GRUB_CMDLINE_LINUX_DEFAULT=&amp;#34;{new}&amp;#34;&amp;#39;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;        done = True&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    else:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;        out.append(line)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;if not done:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    out.append(f&amp;#39;GRUB_CMDLINE_LINUX_DEFAULT=&amp;#34;quiet splash {add}&amp;#34;&amp;#39;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;p.write_text(&amp;#34;\n&amp;#34;.join(out) + &amp;#34;\n&amp;#34;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;print(&amp;#34;    updated GRUB_CMDLINE_LINUX_DEFAULT&amp;#34;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;PY&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;==&amp;gt; 4. logind: never suspend on lid close (KVM undock while lid closed)&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mkdir -p /etc/systemd/logind.conf.d&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cat &amp;gt; /etc/systemd/logind.conf.d/kvm-lid.conf &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;lt;&amp;lt;&amp;#39;LOGIND&amp;#39;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;[Login]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;HandleLidSwitch=ignore&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;HandleLidSwitchExternalPower=ignore&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;HandleLidSwitchDocked=ignore&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;LOGIND&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;    drop-in: /etc/systemd/logind.conf.d/kvm-lid.conf&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;==&amp;gt; 5. Rebuild initramfs + GRUB&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;update-initramfs -u -k &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;$(&lt;/span&gt;uname -r&lt;span style=&#34;color:#66d9ef&#34;&gt;)&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;update-grub&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;echo&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Done. Please REBOOT for kernel parameters + EDID to take effect.&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;After reboot verify with:&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;  cat /proc/cmdline&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;  dmesg | grep -i edid&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;  for d in /sys/class/drm/card1-*/; do echo \$(basename \$d) \$(cat \$d/status); done&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
        </item><item>
            <title>Why Build Your Own Blog? Reflections on Writing, Attention Economy, and Power Structures | 为何要建自己的博客</title>
            <link>https://verifybench.top/culture-entertainment/philosophy/a-think-of-blogs/</link>
            <pubDate>Fri, 16 Oct 2026 10:51:59 +0800</pubDate>
            <guid>https://verifybench.top/culture-entertainment/philosophy/a-think-of-blogs/</guid>
            <description>&lt;h2 id=&#34;why-and-how-to-think-and-write&#34;&gt;Why and How to Think and Write?&#xA;&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;I have been thinking: why do I have this desire and vital urge to own my own domain name? Why must I build this website?&lt;/strong&gt; Some say that writing is thinking itself. So I want to honestly present my thinking here, and write this question out. I believe writing should be done in one continuous flow, not constantly adding things — that only rusts the mind. So I try to finish this essay in my own language first, then supplement the parts that are poorly written later. This is a way to show one&amp;rsquo;s train of thought and taste even on a screen where deletion and replacement leave no trace. (So far I haven&amp;rsquo;t found a better way. For content with sources, I will first restate it completely in my own words to ensure the flow of thought comes coherently from my mind, then attach the original text so everyone can see where my restatement deviates. The same applies to the rest of this piece.)&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;我一直在思考，为什么我有拥有自己的域名的渴望和生命冲动，我为什么非要建这个网站呢？&lt;/strong&gt; 有人说，写作就是思考本身。所以，我希望在这里诚实地呈现自己的思维，把这个问题写出来。我认为写作应该是一气呵成的事情，而非不断地加入一些东西，那只会让思维生锈。所以我尽量用自己的语言写完这篇文章，之后再对文中写的不好的地方进行补充。这是一种能够在删除和替换都不会留下痕迹的屏幕上，仍然显示出思路和品味的方式。（目前我也没有找到更好的方式。对于有出处的内容，我会先保持自己完全复述一遍，确保思路是从我的脑子中连贯地流淌出来的，然后再附上原文让大家看到哪里复述的有偏差。后面的内容也是如此。）&lt;/p&gt;&#xA;&lt;p&gt;I once watched a video on Bilibili. A girl graduated from a 985 university and, through her parents&amp;rsquo; connections, got a teaching job at a vocational college. In the current economic climate, this was a very good job. Everyone at the school was friendly, and her parents felt they no longer had to worry about her.&lt;/p&gt;&#xA;&lt;p&gt;我曾经在B站上看过一个视频。一个女生在985大学本科毕业，托父母的关系找了个大专学校当老师的工作，在目前的经济局势下，这是一份很好的工作。学校里的大家很友好，父母觉得终于不用为她再担心了。&lt;/p&gt;&#xA;&lt;p&gt;After she arrived at the school and completed the handover ceremony, she felt that everyone seemed to look down on her. At first she could barely manage the onboarding procedures, but gradually she wanted more and more to escape this place. No one knew what was going on — the school just kept running as usual. She went home at night and told her parents she didn&amp;rsquo;t want to go to work the next day. Her parents knew their daughter was a sensitive child. So they arranged things with the principal, and the next day brought their daughter to the workplace together. The principal smiled warmly and told her she could choose any position she liked, and the employees at every position smiled at her friendly.&lt;/p&gt;&#xA;&lt;p&gt;她到了学校里，完成了交接仪式之后，却觉得每个人都好像看不起她。一开始她还能勉强完成入职的手续，到后面她越发地想要逃离这个地方。没有人知道这是怎么回事，学校只是照常在运转着。她晚上回到家，告诉父母自己第二天不想去上班了。父母非常了解自己的女儿是一个娇气的孩子。于是他们和校长打好招呼，第二天带着女儿一起来到上班的地方。校长温和友善地笑着，并告诉她可以选择任何她喜欢的职位，每个职位的地方的员工都对她友好地微笑着。&lt;/p&gt;&#xA;&lt;p&gt;But she ultimately gave up this job.&lt;/p&gt;&#xA;&lt;p&gt;但是她最终还是放弃了这份工作。&lt;/p&gt;&#xA;&lt;p&gt;The uploader was talking about explaining social difficulties from a physiological perspective, but I saw something different. This is not a physiological problem — it is a structural problem. This story doesn&amp;rsquo;t match people&amp;rsquo;s expectations, yet it happens in many places. I have felt countless times that I face the same situation. I refuse to simply dismiss my discomfort as being &amp;ldquo;too sensitive.&amp;rdquo; There are many words for this predicament: executive dysfunction, imposter syndrome.&lt;/p&gt;&#xA;&lt;p&gt;这个up主讲的是从生理上解释社交障碍，但我却看到了不一样的东西，这不是一个生理问题，而是一个结构性问题。这个故事不符合大家的想象，但是它却在很多地方真实发生着。我有无数次感到我面临相同的处境。我不愿意简单用娇气掩盖我感受到的不适。有很多词汇形容这个处境，比如说启动困难，比如说冒名顶替综合征。&lt;/p&gt;&#xA;&lt;p&gt;But I don&amp;rsquo;t want to stop there. I never encounter this when I&amp;rsquo;m alone — it only happens in specific situations. I try to articulate why, rather than just describe what I feel. This is not a personal problem; it is a collective problem.&lt;/p&gt;&#xA;&lt;p&gt;但我不想止步于此，我在自己独处的时候从未遇到这种情况，它只在特定情况下发生。我试图说出来为什么，而不是感受到了什么。这不是个人的问题，而是群体的问题。&lt;/p&gt;&#xA;&lt;h2 id=&#34;emergence-and-death-under-simple-rules&#34;&gt;Emergence and Death Under Simple Rules&#xA;&lt;/h2&gt;&lt;p&gt;Ants are the classic animal studied in collective behavior research. Ant colony optimization works the same way: if an ant finds a target, it leaves pheromones along the path, and subsequent ants follow the pheromones to the target. Eventually the pheromone trail on this path grows stronger and stronger. &lt;strong&gt;A simple rule gives rise to disciplined large-scale behavior.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;蚂蚁是群体行为研究中选择的典型动物。蚁群算法也是如此，一个蚂蚁如果找到了目标，它就会沿途留下信息素，而后面的蚂蚁则会顺着信息素继续找到目标，最终这条道路上的信息素越来越浓。&lt;strong&gt;一个简单的规则却涌现出了有纪律的大规模行为。&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;However, emergence governed by simple rules can sometimes fall into a death spiral.&lt;/strong&gt; If an ant leaves pheromones along a closed loop, subsequent ants will keep repeating the loop. They begin circling without knowing where the endpoint is, and only when exhausted might they break the cycle.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;然而简单规则支配的涌现现象，有时候可能陷入死亡漩涡。&lt;/strong&gt; 如果一只蚂蚁留下了路径闭环的信息素，后面的蚂蚁则会继续重复，它们开始绕圈而完全不知道终点在哪了，最后体力耗尽才可能打破这个循环。&lt;/p&gt;&#xA;&lt;p&gt;The girl in the video — I have felt what she felt. Standing at the entrance of a building, I saw the thick pheromones inside, but didn&amp;rsquo;t know whether they led to truth or to a death spiral. Her instincts told her this was the best choice. But was it really?&lt;/p&gt;&#xA;&lt;p&gt;视频中的那个女生，我体会过和她一样的心情。站在一座建筑的门口，我看到了里面浓郁的信息素，却不知道那是通往真理的路径，还是一个死亡漩涡。信息素本能地告诉她，这就是最好的选择。但是，真的如此吗？&lt;/p&gt;&#xA;&lt;p&gt;This is not just fear of stepping into a living world — it is a fear of the unknown structure of power. We were never taught how power structures grow. All the content in textbooks is pre-established pheromones, pre-established truth. Has anyone looked up to see the vast number of people busying about within it? Haruhi Suzumiya chose to live distinctively after realizing how many people exist in the world. I want to analyze why power structures make so many people appear lifeless and ordinary. This is a challenge to the vulgar world.&lt;/p&gt;&#xA;&lt;p&gt;这不仅仅是不敢迈入一个活的世界，更是对权力结构的未知恐惧。我们从未被教导过权力结构是如何长出来的，所有课本上的内容都是既定的信息素、既定的真理，是否有人抬头看一看，世界上这么多人在其中忙碌的样子呢？凉宫春日意识到了世界上有许多人后选择了活得个性，我则要分析权力结构为什么会让那么多人看起来了无生机和普通。这是对庸俗的世界发起的挑战。&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-power-law-of-attention&#34;&gt;The Power Law of Attention&#xA;&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;Data shows that the world&amp;rsquo;s attention follows a 1-9-90 pattern. Using community structure as an analogy: 1% of people capture the vast majority of attention, 9% may be project participants, and the remaining 90% are visitors. When you stand at the homepage of a forum, have you considered this cruel question?&lt;/strong&gt; 99% of newcomers will never become the 1% of &amp;ldquo;prestigious figures&amp;rdquo; in their lifetime. Many are told that if they actively participate, contribute to projects, and consistently publish content, they will gradually become well-known. Yet GitHub data shows that very few even reach the 9% tier.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;数据显示，世界的注意力集中模式为1-9-90，用社群的结构来类比，即1%的人占据着大量的注意力，而9%的人可能是项目的参与者，剩下90%的人都是访客。当你站在一个论坛的首页时，你是否想过这个残酷的问题？&lt;/strong&gt; 99%的新人这辈子也不会成为那1%的&amp;quot;威望人士&amp;quot;。许多人被告知，只要积极参与维护项目，持续发布自己的内容，就能逐渐变得知名。然而Github的数据却显示，能爬到9%那一层的人都很少。&lt;/p&gt;&#xA;&lt;p&gt;Is the open-source community really a flat organization? Are you really going to choose a place like this? You might say there&amp;rsquo;s no better alternative right now, so just go with it — but you cannot escape this inner interrogation.&lt;/p&gt;&#xA;&lt;p&gt;开源社区真的是平级的组织架构吗？你真的要选择一个这样的地方吗？你可能说，目前也没有其他更好地选择了，就这个吧，但你无法逃过这场内心的诘问。&lt;/p&gt;&#xA;&lt;p&gt;Why does this happen? It&amp;rsquo;s like ant pheromones. Everyone who comes to a community first looks for the people who are already noticed and imitates them (forking projects, etc.). Attention keeps accumulating on those who are already attended to, eventually producing a power-law relationship between proportion and attention. A novice will most likely always be a novice. And the veterans will remain in their positions.&lt;/p&gt;&#xA;&lt;p&gt;为什么事情会变成这样呢？这和蚂蚁的信息素很像，每个来到社群的人，都会首先寻找被社群所关注的人并效仿他（比如说复刻项目等等）。于是注意力不断地在被关注的人身上聚集，最终造成了占比和关注呈幂数关系的结果。菜鸟小白大概率永远是菜鸟小白。而老人或者经验丰富者则永远还在那个位置。&lt;/p&gt;&#xA;&lt;p&gt;In this process, many people serve as &amp;ldquo;bridges&amp;rdquo; — connecting nodes. Once occupying this position, others will step on their shoulders to continue moving back and forth. Their identity becomes indispensable — not because they are irreplaceable, but because the position is irreplaceable. Once in this position, it self-reinforces, and newcomers find no place left. (See the section on Position Fixation below.)&lt;/p&gt;&#xA;&lt;p&gt;在这个过程中，有很多人充当了bridge（桥梁，或者说连接节点）的结构。占据了这个位置之后别人就会踩着他的肩膀继续在上面来回，他的身份也因此变得不可或缺起来。并不是因为他是不可缺少的，而是他的位置是不可缺少的。一旦到了这个位置上，它就开始自我强化，而后来者已经没有位置了。（详细见后面的位置的固化部分）&lt;/p&gt;&#xA;&lt;p&gt;People chose attention, just as ants chose pheromones as a tool. &lt;strong&gt;Conversely, pheromones also changed the ants&amp;rsquo; behavior — the ants became tools of the pheromone mechanism.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;人们选择了注意力，就像蚂蚁选择了信息素这个工具一样。&lt;strong&gt;相反地，信息素也改变了蚂蚁的行为方式，蚂蚁成了信息素机制的工具。&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The attention mechanism affects the power structure of communities. This has been happening long before algorithmic feeds existed. Algorithms merely amplify the attention mechanism to an extreme.&lt;/p&gt;&#xA;&lt;p&gt;注意力机制影响了社群的权力结构。这件事在算法推送出现之前就持续存在着。而算法，只不过是对注意力机制的极大加剧。&lt;/p&gt;&#xA;&lt;h2 id=&#34;scarcity-and-politics&#34;&gt;Scarcity and Politics&#xA;&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;Why does the attention mechanism exist?&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;为什么会有注意力机制？&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;An ant finds food and leaves pheromones to bring more ants in — this is a positive feedback loop for the group. At first, everything is fine. People pursue scarce things, then many flood into the field until it&amp;rsquo;s no longer scarce, and then they turn their attention elsewhere.&lt;/p&gt;&#xA;&lt;p&gt;一只蚂蚁找到了食物，它留下信息素让更多的蚂蚁进入，这是一个群体的正反馈循环，一开始一切都很好。人们追求稀缺的事物，然后许多人涌入这个领域，直到它变得不再稀缺了，于是人们开始把目光转向其他地方。&lt;/p&gt;&#xA;&lt;p&gt;For ants looking for food, continuously searching isn&amp;rsquo;t a bad thing (aside from death spirals). But for humans, this produces politics.&lt;/p&gt;&#xA;&lt;p&gt;对于寻找食物的蚂蚁来说，除了陷入死循环之外，一直找食物并不是坏事。但是对于人类来说，这却产生了政治。&lt;/p&gt;&#xA;&lt;p&gt;People pursue things without initially knowing what is scarce, nor do they compulsively allocate resources toward scarcity. Pursuing something arises from need. But when this pattern is recognized and organized top-down, scarcity is manufactured. People no longer do things out of need — they pursue scarcity.&lt;/p&gt;&#xA;&lt;p&gt;人们追求事物，一开始并不知道什么是稀缺，也不会强迫性地把资源分配到稀缺上。追求一件事是出于需要。然而当这个模式被辨认，并被自上而下地组织时，稀缺被制造了。人们不是出于需要做事，而是去追求稀缺。&lt;/p&gt;&#xA;&lt;p&gt;Then comes the spinning: HiFi for the sake of HiFi, like the ants&amp;rsquo; death spiral. Then comes the periodic collapse of capital, because scarcity inevitably disappears. There is a compulsive love of novelty here. This is a political race. People shift from blindly satisfying needs to blindly competing politically.&lt;/p&gt;&#xA;&lt;p&gt;于是出现了打转，为了HIFI而HIFI，就像蚂蚁的死亡漩涡。于是出现了资本的周期性崩溃，因为稀缺一定会消失。这里面存在一个强迫性的喜新厌旧。这是一场政治竞赛。人们从盲目地满足需要，转变为盲目地政治竞赛。&lt;/p&gt;&#xA;&lt;h2 id=&#34;naked-in-this-world&#34;&gt;Naked in This World&#xA;&lt;/h2&gt;&lt;p&gt;Husserl once criticized the tendency of mathematics to devour everything. Initially, scarcity existed because things were important — just as mathematics requires intelligence to abstract and model. At that time, math and language weren&amp;rsquo;t very different; both had anchors leading back to intuition. But as mathematics was continually emphasized, it became a political orthodoxy. People no longer did things out of need — they pursued scarcity. Mathematics thus developed a tendency to devour everything.&lt;/p&gt;&#xA;&lt;p&gt;胡塞尔曾经批判了数学吞噬一切的趋势。最初稀缺是因为重要，就像数学本身是需要智力才能抽象建模出来的。那时候数学和语言差别不大，它们都有能回到直观的锚点。但是当数学不断地被强调，它成为了一种政治正确。人们不是出于需要做事，而是去追求稀缺。数学于是有了吞噬一切的趋势。&lt;/p&gt;&#xA;&lt;p&gt;This compulsive drive to devour cannot be broken from the outside — it is an ever-escalating epic.&lt;/p&gt;&#xA;&lt;p&gt;这个一定要吞噬的强迫性无法从外部被打破，它是一场愈演愈烈的史书。&lt;/p&gt;&#xA;&lt;p&gt;Gödel&amp;rsquo;s incompleteness theorems broke it from within. Someone finally opened their eyes in the whirlpool and realized there is structural absurdity here.&lt;/p&gt;&#xA;&lt;p&gt;哥德尔不完备定理从内部打破了它。（感兴趣的朋友可以自行去了解一下。）有人，也终于开始在漩涡中睁开眼睛，意识到这里存在结构性的荒谬。&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;When someone opens their eyes and discovers that everyone&amp;rsquo;s confusion and anxiety is a structural problem, they realize they are already naked in this world. This is an ontological question: To be, or not to be. Step into this river a second time.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;当有人睁开双眼，发现所有人的迷茫和焦虑是一个结构性问题时。他会意识到自己已经赤裸裸地在这世界上了，这是一个存在论问题：To be, or not to be. 第二次迈入这条河流吧。&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Some open their eyes in the whirlpool but constantly preserve their own judgment. They use willpower against the noise of the crowd, choosing what is truly valuable in the waves of capital. They preserve negative judgment.&lt;/p&gt;&#xA;&lt;p&gt;有的人在漩涡睁开眼，但时刻都保留着自己的判断，他们用意志对抗乌合之众的嘈杂，在资本的浪潮中选择真正有价值的东西。保留否定性的判断。&lt;/p&gt;&#xA;&lt;p&gt;Others choose to start fresh — refusing to share the risk of death in absurd pheromones. They decide to build their own websites, their own organizations, their own lives, ensuring everything avoids becoming absurd through pheromone intermediaries. They construct ideas in their own minds rather than outsourcing to AI. The attention mechanism and algorithmic feeds have changed their lives. So they choose personal blogs, non-AI, non-automation for a second time — to reshape their own world. Humans need not be enslaved by politics; humans can also manipulate politics.&lt;/p&gt;&#xA;&lt;p&gt;有的人则选择另起炉灶，拒绝在荒谬的信息素中共同承担死亡的风险，他们决定建立自己的网站、自己的组织、自己的生活，确保一切都未经过信息素的转手而变得荒谬，他们尽可能地在脑中构建想法而非外包给AI。选择注意力机制、算法推送改变了他们的生活。于是他们第二次选择个人博客、非AI、非自动化，也能够重新塑造自己的世界。人并不是只能被政治奴役的，人反过来也要操纵政治。&lt;/p&gt;&#xA;&lt;p&gt;I think this is why I have the urge to build a website.&lt;/p&gt;&#xA;&lt;p&gt;我想这就是为什么我有建网站的冲动的原因。&lt;/p&gt;&#xA;&lt;h2 id=&#34;reflection&#34;&gt;Reflection&#xA;&lt;/h2&gt;&lt;p&gt;One must sustain the habit of reflection to avoid falling into positive feedback loops. At the same time, one must affirm the actual needs of present life, so as not to reject all positive feedback.&lt;/p&gt;&#xA;&lt;p&gt;人要持续有反思的习惯，才能避免陷入正反馈的循环。于此同时人也要有对当下生活实际需求的肯定，才不至于否定所有的正反馈。&lt;/p&gt;&#xA;&lt;h2 id=&#34;supplements-with-deepseeks-help&#34;&gt;Supplements (with DeepSeek&amp;rsquo;s help)&#xA;&lt;/h2&gt;&lt;h3 id=&#34;power-law&#34;&gt;Power Law&#xA;&lt;/h3&gt;&lt;p&gt;In 2003, the blogosphere had no recommendation algorithms. Blogs linked to each other through blogrolls, and readers discovered new blogs through links. On the surface this was a completely free, decentralized market. But Shirky found that the top 12 blogs accounted for only 12% of the sample, yet received 50% of inbound links — a few blogs were heavily cited while most were virtually ignored.&lt;/p&gt;&#xA;&lt;p&gt;2003年的博客圈还没有推荐算法，博客通过博客roll互相链接，读者通过链接发现新博客。表面上这是一个完全自由、去中心化的市场。但Shirky发现，排名前12的博客仅占样本总量的12%，却获得了50%的入站链接——少数博客被大量引用，而大多数博客几乎无人问津。&lt;/p&gt;&#xA;&lt;p&gt;Shirky divided the blogosphere into three tiers: A-list (like radio stations, distributing content but not engaging in conversation), Classical blogs (a few writing for a medium-sized audience with relatively invested relationships), and Conversational blogs (writing for friends and colleagues, small but highly engaged audiences).&lt;/p&gt;&#xA;&lt;p&gt;Shirky据此将博客圈分为三层：A-list（像广播电台，分发内容但不参与对话）、Classical blogs（少数人写给中等规模受众，有相对投入的关系）、以及Conversational blogs（写给朋友和同事，受众小而高度参与）。&lt;/p&gt;&#xA;&lt;p&gt;Shirky argued: when new bloggers enter the blogosphere, they are influenced by predecessors and their linking choices. They reference these recommendations, making already heavily-linked blogs stronger (in Google ranking, fame, and popularity), while making it increasingly difficult for newcomers to gain prominent blog status.&lt;/p&gt;&#xA;&lt;p&gt;Shirky认为：当新博主进入博客圈时，他们会受到前辈及其链接选择的影响。他们参考这些推荐，于是让已经被大量链接的博客变得更强（在Google排名、知名度和流行度方面），同时让新人越来越难获得更显眼的博客地位。&lt;/p&gt;&#xA;&lt;p&gt;As option diversity increases, the larger the system, the greater the gap between #1 and the median. This completely defies our statistical intuition. We think more choices mean fairer distribution, but the opposite is true: more choices mean more extreme concentration.&lt;/p&gt;&#xA;&lt;p&gt;当选项的多样性增加时，系统规模越大，#1与中位数的差距就越大。这完全违背了我们的统计直觉。我们以为更多的选择意味着更公平的分配，但事实恰恰相反：更多的选择意味着更极端的集中。&lt;/p&gt;&#xA;&lt;p&gt;Between 2004 and 2005, the German blogosphere experienced a &amp;ldquo;regime change&amp;rdquo; — previously heavily-linked blogs like ITW, Schockwellenreiter, and Plasticthinking were forced to cede dominance to newcomers like Lawblog, Bildblog, and Spreeblick. Mobility does exist.&lt;/p&gt;&#xA;&lt;p&gt;2004到2005年间，德国博客圈发生过一次&amp;quot;改朝换代&amp;quot;——此前被大量链接的ITW、Schockwellenreiter、Plasticthinking等博客，被迫将主导地位让给了Lawblog、Bildblog、Spreeblick等新博客。流动性是存在的。&lt;/p&gt;&#xA;&lt;p&gt;Algorithms changed all this. You see a blog not because &amp;ldquo;many people linked to it&amp;rdquo; but because &amp;ldquo;the algorithm decided to show it to you.&amp;rdquo; This process is invisible, unnegotiable, frictionless.&lt;/p&gt;&#xA;&lt;p&gt;算法改变了这一切。你不再是因为&amp;quot;很多人链接了这篇博客&amp;quot;而看到它，而是因为&amp;quot;算法决定让你看到它&amp;quot;。这个过程是不可见的、不可协商的、没有摩擦的。&lt;/p&gt;&#xA;&lt;p&gt;A study of the Patreon platform showed that algorithmic attention allocation follows a &amp;ldquo;rich-get-richer&amp;rdquo; dynamic: each new click or view is more likely to flow to creators who already have high visibility. Platform algorithms trade off between &amp;ldquo;exploration&amp;rdquo; (randomly showing less-known creators) and &amp;ldquo;exploitation&amp;rdquo; (reinforcing existing winners). When algorithms favor &amp;ldquo;exploitation,&amp;rdquo; the power-law curve becomes extremely steep.&lt;/p&gt;&#xA;&lt;p&gt;一项关于Patreon平台的研究显示，算法化的注意力分配遵循一个&amp;quot;富者愈富&amp;quot;的动力学：每次新的点击或浏览，更可能流向那些已经拥有大量可见度的创作者。平台算法在&amp;quot;探索&amp;quot;（随机展示不太知名的创作者）和&amp;quot;利用&amp;quot;（强化已有赢家）之间进行权衡。当算法偏向&amp;quot;利用&amp;quot;时，幂律曲线会变得极其陡峭。&lt;/p&gt;&#xA;&lt;p&gt;Algorithms compress what once took years to form into attention concentration — days or even hours. They turn socially-mediated positive feedback (which had some mobility) into rigid, invisible, unnegotiable technical positive feedback.&lt;/p&gt;&#xA;&lt;p&gt;算法把原本需要数年才能形成的注意力集中，压缩到数天甚至数小时。它把原本还有一定流动性的社会性正反馈，变成了刚性的、不可见的、不可协商的技术性正反馈。&lt;/p&gt;&#xA;&lt;p&gt;The blogosphere&amp;rsquo;s power law is &amp;ldquo;naturally emergent.&amp;rdquo; Can the open-source community — a system that claims to be merit-based and contribution-scaled — avoid the power law?&lt;/p&gt;&#xA;&lt;p&gt;博客圈的幂律是&amp;quot;自然涌现&amp;quot;的，开源社区，一个声称以功绩为基础、以贡献为尺度的系统，是否能够避免幂律？&lt;/p&gt;&#xA;&lt;p&gt;An analysis of 263 Apache Software Foundation projects found that despite open-source development being described as collaborative, it primarily relies on highly individualized, non-collaborative contributions. Contributor engagement also follows a power-law distribution.&lt;/p&gt;&#xA;&lt;p&gt;一项对263个Apache软件基金会项目的分析发现，尽管开源开发通常被描述为协作性的，但它实际上主要依赖于高度个人化的、非协作性的贡献。贡献者的参与度也遵循幂律分布。&lt;/p&gt;&#xA;&lt;p&gt;Open-source communities typically follow the &amp;ldquo;1-9-90&amp;rdquo; rule: 1% do most of the work, 9% do a little, 90% just use it. But this rule actually underestimates the degree of inequality. In highly active projects, the top 1% of contributors may control a disproportionately large share of network influence.&lt;/p&gt;&#xA;&lt;p&gt;开源社区通常遵循&amp;quot;1-9-90&amp;quot;规则：1%的人做大部分工作，9%的人做少量工作，90%的人只是使用。但这个规则实际上低估了不平等的程度。在高度活跃的项目中，前1%的贡献者可能控制了网络中相当大部分的影响力。&lt;/p&gt;&#xA;&lt;p&gt;More critical is the power structure. Open-source communities have a &amp;ldquo;decentralized&amp;rdquo; ideology: anyone who can contribute gains corresponding status. But in reality, core contributors occupy &amp;ldquo;bridge&amp;rdquo; positions in the network — connecting different sub-communities, tech stacks, and decision circles. Removing one &amp;ldquo;bridge&amp;rdquo; contributor has a disproportionately large impact on network cohesion.&lt;/p&gt;&#xA;&lt;p&gt;更关键的是权力结构。开源社区有一种&amp;quot;去中心化&amp;quot;的意识形态：任何人只要能做出贡献，就能获得相应的地位。但现实是，核心贡献者占据了网络中的&amp;quot;桥梁&amp;quot;位置——他们连接着不同的子社区、不同的技术栈、不同的决策圈。移除一个&amp;quot;桥梁&amp;quot;贡献者，会对网络凝聚力产生不成比例的巨大影响。&lt;/p&gt;&#xA;&lt;p&gt;This reveals a deeper problem: in open-source communities, power lies not in how much code you write, but in your position in the network topology. This is structural power — a few people gain leverage over the entire system by occupying critical connection points. This is isomorphic to the blogosphere&amp;rsquo;s A-list structure: A-list bloggers link to each other, forming a closed citation loop, while ordinary bloggers can only look up.&lt;/p&gt;&#xA;&lt;p&gt;这揭示了一个更深层的问题：在开源社区中，权力不在于你写了多少代码，而在于你在网络拓扑中的位置。这是一种结构性的权力，少数人因为占据了关键连接点，而获得了对整个系统的杠杆。这与博客圈的A-list结构是同构的：A-list博主互相链接，形成一个封闭的引用循环，而普通博主只能仰望。&lt;/p&gt;&#xA;&lt;p&gt;This means there is always a mechanism that converts naturally emergent scarcity into institutional scarcity. Ant pheromones are natural, but algorithmic weights are man-made. Blogrolls are visible, but recommendation systems are invisible. Thank-counts are debatable, but gold&amp;rsquo;s scarcity was once unquestionable (the gold standard).&lt;/p&gt;&#xA;&lt;p&gt;这意味着，总有一种机制，把自然涌现的稀缺性，固化为制度性的稀缺性的。蚂蚁的信息素是自然的，但算法的权重是人造的。博客roll是可见的，但推荐系统是不可见的。感谢数是可质疑的，但黄金的稀缺性曾经是不可质疑的（金本位制度）。&lt;/p&gt;&#xA;&lt;p&gt;Polanyi would say this is the essence of &amp;ldquo;disembedding&amp;rdquo;: disguising man-made scarcity that serves specific power structures as natural, inevitable &amp;ldquo;laws.&amp;rdquo; The gold standard deified gold&amp;rsquo;s scarcity; algorithms naturalize &amp;ldquo;what the algorithm thinks is important.&amp;rdquo;&lt;/p&gt;&#xA;&lt;p&gt;波兰尼会说，这就是&amp;quot;脱嵌&amp;quot;的本质：把人为的、服务于特定权力结构的稀缺性，伪装成自然的、不可避免的&amp;quot;规律&amp;quot;。金本位把黄金的稀缺性神化，算法把&amp;quot;算法认为重要的东西&amp;quot;自然化。&lt;/p&gt;&#xA;&lt;h3 id=&#34;position-fixation&#34;&gt;Position Fixation&#xA;&lt;/h3&gt;&lt;h4 id=&#34;1-network-topology-lock-in-bridges-cannot-be-removed&#34;&gt;1. Network Topology Lock-in: Bridges Cannot Be Removed&#xA;&lt;/h4&gt;&lt;p&gt;OSS research finds that core contributors occupy &amp;ldquo;bridge&amp;rdquo; positions — connecting different sub-communities, tech stacks, and decision circles. Removing a bridge contributor has a disproportionately large impact on network cohesion.&lt;/p&gt;&#xA;&lt;p&gt;OSS研究发现：核心贡献者占据网络中的&amp;quot;桥梁&amp;quot;位置——他们连接不同的子社区、技术栈和决策圈。移除一个桥梁贡献者，会对网络凝聚力产生不成比例的巨大影响。&lt;/p&gt;&#xA;&lt;p&gt;This means the system does not allow bridges to be removed — not because bridges are irreplaceable, but because the cost of removal is too high. The system actively protects bridges, giving them more resources, attention, and legitimacy. Bridges become more stable as a result.&lt;/p&gt;&#xA;&lt;p&gt;这意味着系统不允许桥梁被移除。不是因为桥梁不可替代，而是因为移除它的代价太高。系统会主动保护桥梁，给它更多资源、注意力和合法性。桥梁因此变得更稳固。&lt;/p&gt;&#xA;&lt;p&gt;A person occupies a critical position, and the system, for its own stability, must maintain him. His power comes not from his ability but from the system&amp;rsquo;s dependence on the position.&lt;/p&gt;&#xA;&lt;p&gt;一个人占据了关键位置，系统为了自身稳定，必须维持他。他的权力不来自他的能力，来自系统对位置的依赖。&lt;/p&gt;&#xA;&lt;h4 id=&#34;2-attention-lock-in-the-accumulation-of-social-pheromones&#34;&gt;2. Attention Lock-in: The Accumulation of Social Pheromones&#xA;&lt;/h4&gt;&lt;p&gt;In the pre-platform era without algorithms, attention lock-in relied on reply counts, likes, links, and citations. These are observable public signals. Humans are cognitive misers and tend to process pre-filtered information.&lt;/p&gt;&#xA;&lt;p&gt;在没有算法的前平台时代，注意力锁定靠回复数、点赞数、链接数、引用数。这些东西是可观测的公共信号，人类认知吝啬，倾向于处理已经被筛选过的信息。&lt;/p&gt;&#xA;&lt;p&gt;You see a post with 200 replies — you&amp;rsquo;re more likely to click. This isn&amp;rsquo;t algorithm; it&amp;rsquo;s social positive feedback. It&amp;rsquo;s older than algorithms, more hidden, harder to question.&lt;/p&gt;&#xA;&lt;p&gt;你看到一条帖子有200条回复，你更可能点进去。这不是算法，这是社会性正反馈。它比算法更古老，更隐蔽，更难质疑。&lt;/p&gt;&#xA;&lt;p&gt;The second layer of attention lock-in: those who are seen become more easily seen. Attention is not allocated to &amp;ldquo;the best content&amp;rdquo; but to &amp;ldquo;positions that have already received attention.&amp;rdquo;&lt;/p&gt;&#xA;&lt;p&gt;注意力的第二重锁定：被看见的人因为被看见而更容易被看见。注意力不是分配给&amp;quot;最好的内容&amp;quot;，而是分配给&amp;quot;已经被分配了注意力的位置&amp;quot;。&lt;/p&gt;&#xA;&lt;h4 id=&#34;3-institutional-lock-in-metrics-are-power&#34;&gt;3. Institutional Lock-in: Metrics Are Power&#xA;&lt;/h4&gt;&lt;p&gt;The EEVblog &amp;ldquo;Thank&amp;rdquo; button launched in 2015. The moment it existed, it created a new, comparable scarcity symbol. Some users got high thank ratios from posting photos; others with technical analysis got low ratios.&lt;/p&gt;&#xA;&lt;p&gt;EEVblog的&amp;quot;感谢&amp;quot;按钮在2015年推出。它一推出，就创造了一种新的、可比较的稀缺性符号。某些用户因为发布图片而获得高感谢比，另一些用户却因技术分析而感谢比偏低。&lt;/p&gt;&#xA;&lt;p&gt;The problem isn&amp;rsquo;t whether thank-counts are &amp;ldquo;accurate.&amp;rdquo; The problem is that once the button exists, it becomes the standard for measuring contributions. People no longer ask &amp;ldquo;did this person help me&amp;rdquo; but &amp;ldquo;what is this person&amp;rsquo;s thank-count.&amp;rdquo; Metrics become targets; targets become power.&lt;/p&gt;&#xA;&lt;p&gt;问题不在于感谢数是否&amp;quot;准确&amp;quot;。问题在于感谢按钮一旦存在，就变成了衡量贡献的标准。人们不再问&amp;quot;这个人是否帮到了我&amp;quot;，而是问&amp;quot;这个人的感谢数是多少&amp;quot;。度量衡变成了目标，目标变成了权力。&lt;/p&gt;&#xA;&lt;p&gt;This is the third layer of lock-in: institutionalization. The gold standard institutionalized gold&amp;rsquo;s scarcity; degree systems institutionalized educational capital; platform verification institutionalized attention. Once institutionalized, positions detach from concrete performance and become &lt;strong&gt;inheritable, transferable, defensible assets&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;这是位置的第三重锁定：制度化。金本位把黄金的稀缺性制度化，学位制度把教育资本制度化，平台认证把注意力制度化。一旦制度化，位置就脱离了具体表现，变成了&lt;strong&gt;可继承、可传递、可防御的资产&lt;/strong&gt;。&lt;/p&gt;&#xA;&lt;h4 id=&#34;4-inheritance-of-the-1-bourdieus-capital-reproduction&#34;&gt;4. Inheritance of the 1%: Bourdieu&amp;rsquo;s Capital Reproduction&#xA;&lt;/h4&gt;&lt;p&gt;Bourdieu argued: capital isn&amp;rsquo;t just money. Capital has three basic forms — economic capital, cultural capital, social capital. These three forms interconvert. The 1% remain 1% because they monopolize the channels of capital conversion.&lt;/p&gt;&#xA;&lt;p&gt;布迪厄认为：资本不只是钱。资本有三种基本形态——经济资本、文化资本、社会资本。这三种资本可以相互转化。1%之所以永远是1%，是因为他们垄断了资本转化的通道。&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Economic capital can buy education (cultural capital), education can yield high-paying jobs (economic capital), high-paying jobs accumulate networks (social capital), and networks bring investment opportunities (economic capital).&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;经济资本可以买教育（文化资本），教育可以换高薪工作（经济资本），高薪工作又可以积累人脉（社会资本），人脉则带来投资机会（经济资本）。&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;This cycle requires no conspiracy. It only requires position: stand at the node of capital conversion, and the channel automatically delivers capital to your hands.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;这个循环不需要任何阴谋。它只需要位置：你站在资本转化通道的节点上，通道就会自动把资本送到你手里。&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Bourdieu called this mechanism social reproduction: without external intervention, the system automatically concentrates resources on positions that already hold resources.&lt;/p&gt;&#xA;&lt;p&gt;布迪厄把这种机制叫社会再生产：系统在没有外部干预的情况下，会自动把资源集中到已经拥有资源的位置上。&lt;/p&gt;&#xA;&lt;p&gt;This is why &amp;ldquo;hard work brings success&amp;rdquo; is an illusion. Effort is necessary but not sufficient. The 1% don&amp;rsquo;t necessarily work harder than the 99%, but they stand in positions where effort more easily converts to reward.&lt;/p&gt;&#xA;&lt;p&gt;这就是为什么&amp;quot;努力就能成功&amp;quot;是一个幻觉。努力是必要条件，但不是充分条件。1%的人不一定比99%的人更努力，但他们站在努力更容易转化为回报的位置上。&lt;/p&gt;&#xA;&lt;h3 id=&#34;politics&#34;&gt;Politics&#xA;&lt;/h3&gt;&lt;p&gt;Life on platforms is inherently political life. You&amp;rsquo;re not writing — you&amp;rsquo;re campaigning. Every post is a vote solicitation, every interaction is alliance-building, every silence is a loss of standing.&lt;/p&gt;&#xA;&lt;p&gt;平台上的生活，本质上是一种政治生活。你不是在写作，你是在竞选。每一次发帖都是一次拉票，每一次互动都是一次联盟建设，每一次沉默都是一次失势。&lt;/p&gt;&#xA;&lt;p&gt;Medium author Veronica Llorca-Smith published 629 articles in two years, accumulated 6,100 followers, and received 7,737 responses. Then she stopped. She wrote: &amp;ldquo;The rules changed, and nobody told me what the rules were.&amp;rdquo; Recommendation programs were canceled, the Boost program introduced dual manual gates, algorithms were opaque, bot comments flooded in. She invested everything in the platform&amp;rsquo;s political game, only to find the rules themselves could be changed at any time by others.&lt;/p&gt;&#xA;&lt;p&gt;Medium作者Veronica Llorca-Smith在两年内发了629篇文章，积累了6100粉丝，获得7737条回应。然后她停更了。她写道&amp;quot;规则变了，而且没人告诉我规则是什么&amp;quot;：推荐计划取消，Boost计划引入双重人工门禁，算法不透明，机器人评论泛滥。她在平台的政治游戏中投入了全部，最后发现游戏规则本身是别人随时可以修改的。&lt;/p&gt;&#xA;&lt;p&gt;Andrew Chen saw this trend in 2013. He said integrated feed platforms defeated independent blog networks because users want to &amp;ldquo;follow, read, create on one site.&amp;rdquo; Convenience beat autonomy. But the cost of convenience: everything about you becomes part of platform politics. Whether your article is good depends on whether it &amp;ldquo;performs well&amp;rdquo; — click rate, dwell time, engagement rate, shares.&lt;/p&gt;&#xA;&lt;p&gt;Andrew Chen在2013年看到了这个趋势。他说，一体化信息流平台之所以击败独立博客网络，是因为用户要&amp;quot;关注、阅读、创作在同一站点&amp;quot;。便利性战胜了自主性。但便利性的代价是：你的一切都变成了平台政治的一部分。你的文章好不好，变得取决于它是否&amp;quot;表现好&amp;quot;——点击率、停留时间、互动率、转发量。&lt;/p&gt;&#xA;&lt;p&gt;Platform politics is an endless campaign. You&amp;rsquo;re always chasing the next exposure, always anxious whether the algorithm favors you, always comparing your numbers with others. You&amp;rsquo;re not writing — you&amp;rsquo;re being ruled by algorithms.&lt;/p&gt;&#xA;&lt;p&gt;平台的政治是永不停歇的竞选。你永远在争取下一次曝光，永远在焦虑算法是否垂青你，永远在比较自己和别人的数据。你不是在写作，你是在被算法统治。&lt;/p&gt;&#xA;&lt;p&gt;Self-hosted blogs have a rhythm of accumulation. A blog post&amp;rsquo;s lifespan isn&amp;rsquo;t hours but years. Koos Looijesteijn found that social media rewards &amp;ldquo;a big wave of brief user attention,&amp;rdquo; while blog posts &amp;ldquo;are still found by readers years after I publish them.&amp;rdquo; Pam Penick has written her gardening blog for 19 years — she says the blog is her memory. Carol Michel has written for over 20 years — she continues because she &amp;ldquo;still loves writing about gardening,&amp;rdquo; not because anyone is watching.&lt;/p&gt;&#xA;&lt;p&gt;自建博客的节奏是沉淀。博客文章的生命周期不是几小时，而是几年。Koos Looijesteijn发现，社交媒体的奖励是&amp;quot;一大波但短暂的用户注意力&amp;quot;，而博客文章&amp;quot;在我发布几年后仍被读者找到&amp;quot;。Pam Penick的园艺博客写了19年，她说博客是她的记忆——&amp;ldquo;每周至少有一次，我会翻出旧博客文章来回忆某个花园的细节&amp;rdquo;。Carol Michel写了20多年，她说她继续写是因为&amp;quot;仍然热爱写园艺&amp;quot;，而不是因为有人看。&lt;/p&gt;&#xA;&lt;p&gt;jMatsuzaki has run a personal blog for over 10 years with 1,700+ posts. He positions the blog as the &amp;ldquo;home&amp;rdquo; for all other media (SNS, audio, video). SNS is the entrance; the blog is the base. He&amp;rsquo;s blunt: &amp;ldquo;The central medium of activity should depend as little on others as possible.&amp;rdquo; He chose WordPress with an independent domain not for technical preference, but because he didn&amp;rsquo;t want platform politics to dictate what he could say or keep.&lt;/p&gt;&#xA;&lt;p&gt;jMatsuzaki运营个人博客超过10年、1700多篇文章。他把博客定位为所有其他媒体（SNS、音频、视频）的&amp;quot;家&amp;quot;。SNS是入口，博客是基地。他说得直白：&amp;ldquo;活动轴心的媒体应该尽可能不依赖他人&amp;rdquo;。他选择WordPress加独立域名，不是因为技术偏好，而是因为不想让平台的政治决定他能说什么、能留什么。&lt;/p&gt;&#xA;&lt;p&gt;What can&amp;rsquo;t platform politics — status, influence, attention, algorithm games — replace?&lt;/p&gt;&#xA;&lt;p&gt;平台的政治——地位、影响力、关注度、算法游戏——不能取代什么？&lt;/p&gt;&#xA;&lt;p&gt;It cannot replace self-discovery. Ruan Yifeng said after three years of blogging: &amp;ldquo;As you write, your self becomes clearer and clearer.&amp;rdquo; This cannot be accomplished in the noise of social media. The social media you is fragmented, performative, algorithmically amplified. The blog you is written, organized, settled. Stephen Heard wrote a post titled &amp;ldquo;I Write Because I Want to Know What I&amp;rsquo;m Thinking.&amp;rdquo; On platforms, this is impossible to say — platforms don&amp;rsquo;t care what you think, only what you share.&lt;/p&gt;&#xA;&lt;p&gt;不能取代自我发现。阮一峰写博客三年后说：&amp;ldquo;写着写着，你的自我会变得越来越清晰。&amp;ldquo;这不是在社交媒体的喧嚣中能完成的事。社交媒体的你是碎片化的、表演性的、被算法放大的。博客的你是被书写的、被整理的、被沉淀的。Stephen Heard写了一篇博文叫《我写作，因为我想知道我在想什么》。这句话在平台上是不可能说出来的，因为平台不关心你在想什么，只关心你转发什么。&lt;/p&gt;&#xA;&lt;p&gt;It cannot replace ownership of thought. Maggie Appleton put it clearly: independent ownership means your writing &amp;ldquo;cannot live on Facebook, LinkedIn, Twitter, Instagram, or Medium&amp;rsquo;s servers.&amp;rdquo; &amp;ldquo;If any of these services goes down, your writing goes down with it.&amp;rdquo; Aaron Hertzmann rejected Medium and Substack because &amp;ldquo;my content would be locked in their sites — who knows when their business model will change.&amp;rdquo; Politics cannot replace ownership. The influence you accumulate on platforms is essentially rented. Only a blog — your own domain, your own archive, your own URLs — is yours.&lt;/p&gt;&#xA;&lt;p&gt;不能取代思想的所有权。Maggie Appleton说得很清楚：独立所有权意味着你的写作&amp;quot;不能活在Facebook、LinkedIn、Twitter、Instagram或Medium的服务器上&amp;rdquo;，&amp;ldquo;如果这些服务中的任何一个倒下，你的写作和创造也随之沉没&amp;rdquo;。Aaron Hertzmann拒绝Medium和Substack，因为&amp;quot;我的内容会被锁在他们的网站里，谁知道他们的商业模式什么时候也会变&amp;rdquo;。政治不能取代所有权。你在平台上积累的影响力，本质上是租来的。只有博客——自己的域名、自己的存档、自己的URL——是你自己的。&lt;/p&gt;&#xA;&lt;p&gt;It cannot replace the life-world. Husserl criticized how mathematicization made humanity forget the life-world. Platform politics makes writers forget writing itself. You no longer care whether you&amp;rsquo;ve truly thought things through — only whether your engagement rate is high enough. You no longer care whether you&amp;rsquo;ve helped a specific person — only whether your follower count is growing. You no longer care whether your words are sincere — only whether they &amp;ldquo;perform well.&amp;rdquo; Returning to a self-hosted blog is a return to the life-world: back to the simplest joy of writing, the most authentic impulse to express, the quiet of talking with yourself and a few readers.&lt;/p&gt;&#xA;&lt;p&gt;不能取代生活世界。胡塞尔批判数学化让人类遗忘生活世界。平台政治让写作者遗忘写作本身。你不再关心你是否真的想清楚了，只关心你的互动率是否够高。你不再关心你是否帮到了某个具体的人，只关心你的粉丝数是否在增长。你不再关心你的文字是否真诚，只关心它们是否&amp;quot;表现好&amp;quot;。自建博客的回归，是一种生活世界的回归：我回到写作最朴素的快乐，回到表达最本真的冲动，回到与自己对话、与少数读者对话的宁静。&lt;/p&gt;&#xA;&lt;p&gt;Giles Thomas had a blog post hit the HN front page — 35,000 visits in one day. But his About page got fewer than 300 clicks. He could have leveraged that opportunity to build a &amp;ldquo;personal brand,&amp;rdquo; become a bridge. He didn&amp;rsquo;t. He kept writing what he wanted, kept building PythonAnywhere, kept the blog as &amp;ldquo;lasting proof of learning and thinking&amp;rdquo; rather than a traffic machine.&lt;/p&gt;&#xA;&lt;p&gt;Giles Thomas有篇博客上了HN首页，一天35000访问。但About页只有不到300次点击。他完全可以趁那个机会运营自己的&amp;quot;个人品牌&amp;quot;，把自己变成桥梁。他没有。他继续写他想写的东西，继续做他的PythonAnywhere，继续把博客当作&amp;quot;学习和思考的持久证明&amp;quot;，而不是流量机器。&lt;/p&gt;&#xA;&lt;p&gt;Koos Looijesteijn had a joke tweet get 30,000+ impressions and 900+ likes. He said: &amp;ldquo;I&amp;rsquo;ve forgotten what it was, and I think those 30,000 people have too.&amp;rdquo; But his blog posts &amp;ldquo;are still found by readers years after I publish them.&amp;rdquo; He chose blogging not because it&amp;rsquo;s more &amp;ldquo;effective&amp;rdquo; but because it isn&amp;rsquo;t defined by politics. The tweet&amp;rsquo;s 30,000 impressions was a pheromone spiral; the blog&amp;rsquo;s long-term findability is accumulation.&lt;/p&gt;&#xA;&lt;p&gt;Koos Looijesteijn在推特上一条玩笑推获得了30000+曝光和900+点赞。他说：&amp;ldquo;我忘了它是什么，我觉得那30000人也不记得了。&amp;ldquo;而他的博客文章，&amp;ldquo;在我发布几年后仍被读者找到&amp;rdquo;。他选择博客，不是因为它更&amp;quot;有效&amp;rdquo;，而是因为它不被政治定义。推特的30000曝光是信息素螺旋，博客的长期被找到是沉淀。&lt;/p&gt;&#xA;&lt;p&gt;Erasing the bridge is refusing to be defined by position. You no longer pursue becoming that &amp;ldquo;irreplaceable&amp;rdquo; node. You return to a simpler stance: a writer, a thinker, someone who builds real connections with a few readers.&lt;/p&gt;&#xA;&lt;p&gt;抹去桥梁，就是拒绝被位置定义。你不再追求成为那个&amp;quot;不可替代&amp;quot;的节点，你回到一个更朴素的位置：一个写作者，一个思考者，一个与少数读者建立真实联系的人。&lt;/p&gt;&#xA;&lt;h3 id=&#34;is-this-rational&#34;&gt;Is This &amp;ldquo;Rational&amp;rdquo;?&#xA;&lt;/h3&gt;&lt;p&gt;If rational means &amp;ldquo;making optimal choices within the established system,&amp;rdquo; then returning to blogging is not rational. Because within the established system, platforms are the optimal choice. Platforms have traffic, feedback, monetization paths. Blogs have nothing.&lt;/p&gt;&#xA;&lt;p&gt;如果理智意味着&amp;quot;在既定系统中做出最优选择&amp;rdquo;，那么回归博客不是理智的。因为在既定系统中，平台才是最优选择。平台有流量、有反馈、有变现路径。博客什么都没有。&lt;/p&gt;&#xA;&lt;p&gt;But if rational means seeing the system&amp;rsquo;s limitations and choosing not to be defined by it, then returning to blogging is rational. It sees the limits of emergence: systems produce hierarchies, hierarchies produce bridges, bridges are bound by positions, positions create death spirals. It sees the reverse-definition of tools: you choose acceleration, acceleration defines you; you choose precision, precision defines you; you choose expansion, expansion defines you.&lt;/p&gt;&#xA;&lt;p&gt;但如果理智意味着看清系统的局限，并选择不被系统定义，那么回归博客是理智的。它看清了涌现的局限：系统会产生层级，层级会产生桥梁，桥梁会被位置束缚，位置会制造死亡螺旋。它看清了工具的反向定义：你选择了加速，加速就定义了你；你选择了精确，精确就定义了你；你选择了扩张，扩张就定义了你。&lt;/p&gt;&#xA;&lt;p&gt;Returning to blogging is choosing a mode of existence not defined by acceleration, precision, or expansion.&lt;/p&gt;&#xA;&lt;p&gt;回归博客，是选择一种不被加速、不被精确、不被扩张定义的存在方式。&lt;/p&gt;&#xA;&lt;p&gt;This is not anti-technology. This is an ethical turn in technology use. You still use software, but no longer let software&amp;rsquo;s purposes define yours. You still use mathematical form, but no longer let formal completeness define your expression. You still live in a world of capital, but no longer let capital&amp;rsquo;s multiplication define your worth.&lt;/p&gt;&#xA;&lt;p&gt;这不是反技术。这是技术使用的伦理转向。你仍然用软件，但你不再让软件的目的定义你的目的。你仍然用数学的形式，但你不再让形式的完备定义你的表达。你仍然生活在资本的世界里，但你不再让资本的增殖定义你的价值。&lt;/p&gt;&#xA;&lt;p&gt;Politics cannot replace everything. Because after all the politics — all the campaigning, games, algorithm plays — one question remains: Who are you? What do you truly want to say?&lt;/p&gt;&#xA;&lt;p&gt;政治不能取代一切。因为在所有政治之后，在所有竞选、博弈、算法游戏之后，仍然存在一个问题：你是谁？你真正想说什么？&lt;/p&gt;&#xA;&lt;p&gt;This question can only be answered in a blog. Not because it&amp;rsquo;s superior, but because it&amp;rsquo;s quieter. Quiet enough to hear your own voice — not the algorithm&amp;rsquo;s.&lt;/p&gt;&#xA;&lt;p&gt;这个问题只能在博客里回答。不是因为它更高级，而是因为它更安静。安静到你能听见自己的声音，而不是算法的声音。&lt;/p&gt;&#xA;&lt;h2 id=&#34;afterword&#34;&gt;Afterword&#xA;&lt;/h2&gt;&lt;p&gt;The video mentioned at the beginning: 【人际适应困难的真正原因】 &lt;a class=&#34;link&#34; href=&#34;https://www.bilibili.com/video/BV14nYT6mE56/?share_source=copy_web&amp;amp;vd_source=5b82f3b5df0935ada1945cac45d85956&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.bilibili.com/video/BV14nYT6mE56/?share_source=copy_web&amp;vd_source=5b82f3b5df0935ada1945cac45d85956&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;一开始提到的视频网站：【人际适应困难的真正原因】 &lt;a class=&#34;link&#34; href=&#34;https://www.bilibili.com/video/BV14nYT6mE56/?share_source=copy_web&amp;amp;vd_source=5b82f3b5df0935ada1945cac45d85956%60%60&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.bilibili.com/video/BV14nYT6mE56/?share_source=copy_web&amp;vd_source=5b82f3b5df0935ada1945cac45d85956``&lt;/a&gt;&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Hugo &#43; Waline &#43; Vercel Comment System &amp; Google Fonts Optimization</title>
            <link>https://verifybench.top/it-software/web/web-construction/</link>
            <pubDate>Thu, 15 Oct 2026 09:56:15 +0800</pubDate>
            <guid>https://verifybench.top/it-software/web/web-construction/</guid>
            <description>&lt;h1 id=&#34;improving-the-blog-website&#34;&gt;Improving the Blog Website&#xA;&lt;/h1&gt;&lt;p&gt;After finishing the initial blog setup, I couldn&amp;rsquo;t wait to push this site into the internet world. For me, most information comes from search engines. I&amp;rsquo;ve seen many excellent websites that brought me endless help — platforms like &lt;a class=&#34;link&#34; href=&#34;https://z-lib.pub/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Zlibrary&lt;/a&gt; and &lt;a class=&#34;link&#34; href=&#34;https://rutracker.org&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;rutracker.org&lt;/a&gt; gave me a lot of assistance. Right after I was freed from the college entrance exam, I quickly came into contact with AI, a powerful tool that co-works with people to some extent — in my mind it counts as an intelligent search engine (thanks to AI vendors for free consumer access).&lt;/p&gt;&#xA;&lt;p&gt;在我完成前面的博客建立之后，我迫不及待地准备将这个网站推送到互联网世界里。对我来说，信息的获取大多数都是从搜索引擎中来的。我见过很多优秀的网站，为我带来了不尽的帮助，比如说&lt;a class=&#34;link&#34; href=&#34;Zlibrary&#34; &gt;https://z-lib.pub/&lt;/a&gt; &lt;a class=&#34;link&#34; href=&#34;https://rutracker.org&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;rutracker.org&lt;/a&gt; 等等平台都给了我很多的帮助。在我刚刚从高考解脱出来之后，我很快地又接触到了AI这一强大的工具，它一定程度上与人co-work，在我心中称得上一个智能搜索引擎（感谢AI厂商们的C端免费使用）。&lt;/p&gt;&#xA;&lt;p&gt;My youth never saw much in the way of clubs or communities — that&amp;rsquo;s a regret. I tend to gather what I need from a wide range of information rather than joining groups. Now the urge to join a community is growing stronger, yet I don&amp;rsquo;t know where to start. Building this website is my first step in leaving a mark of my own. Because of work and personal inertia, I can&amp;rsquo;t frequently contribute to others&amp;rsquo; projects in the community, but I want to give myself a chance to maintain my own site.&lt;/p&gt;&#xA;&lt;p&gt;我的青春没有见到什么社团和集体，这是一个遗憾，我也倾向于从广泛的信息中获取自己想要的内容，而非加入社群，现在加入社群的想法日益强烈，我却不知从何开始。建立这个网站是我留下自己印记的第一步，因为工作时间的挤占和个人的惯性，我无法频繁地在社区中为他人的项目做出贡献，但我希望给自己一个机会来维护自己的网站。&lt;/p&gt;&#xA;&lt;p&gt;Has this brought me closer to what I want, or further away? I can&amp;rsquo;t say. Deep reflections on this I&amp;rsquo;ll put in the culture section of verifybench.&lt;/p&gt;&#xA;&lt;p&gt;这离我想要的变得更近了还是更远了？我不得而知，关于这部分的深入思考我将放在verifybench的culture栏中。&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-idea-born-from-ad-promotion-killed-by-registration&#34;&gt;The Idea Born from Ad Promotion, Killed by Registration&#xA;&lt;/h2&gt;&lt;p&gt;At first I had no awareness that websites needed to be submitted to search engines — I thought search engines could just find them on their own. The idea came to me while referencing a site I knew: &lt;a class=&#34;link&#34; href=&#34;https://www.plcjs.net/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.plcjs.net/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;我一开始没有把网站推送到搜素引擎中的意识，我还以为搜索引擎本来就可以搜到。产生这个想法是因为我在制作博客的时候参考了一个我了解的网站：&lt;a class=&#34;link&#34; href=&#34;&#34; &gt;https://www.plcjs.net/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;In that site&amp;rsquo;s privacy policy, I noticed the cookies and third-party services section mentioned Google AdSense (ad delivery) and analytics. I quickly realized this was a way for websites to earn money. I asked DeepSeek, and it told me Google tracks page views and pushes ads based on that to calculate revenue. I realized that if I don&amp;rsquo;t set up Google AdSense, there definitely won&amp;rsquo;t be ads pushed to my site (unless I&amp;rsquo;ve already become a huge portal).&lt;/p&gt;&#xA;&lt;p&gt;在这个网站的隐私政策中，我注意到Cookie与第三方服务中提到，本站接入了Google AdSense（广告推送）和统计分析服务。很快地，我意识到这是网站能够盈利的一种方式，我询问deepseek，它告诉我Google会统计分析网页的浏览情况并由此推送广告和计算收益。我意识到如果我不设置Google AdSense，那也肯定不会有广告推送到我的网站上（除非我已经自成门户并且规模庞大）&lt;/p&gt;&#xA;&lt;p&gt;Once I had this awareness, I naturally thought about how to get my site noticed. I asked DeepSeek (unfortunately its server crashed on the morning of 2026-10-15 — I was already eager to learn more about other people on the internet). Anyway, it recommended an article from Juejin, but I lost my browsing history.&lt;/p&gt;&#xA;&lt;p&gt;当我有了这个意识之后，自然地就想到了如何能让我的网站被浏览到。我询问deepseek（很不幸地是它在26.10.15早上服务器崩溃了，我已经迫不及待地想要了解更多互联网上的其他人了），总之它给我推送了一篇稀土掘金的内容，但是我遗失了浏览记录。&lt;/p&gt;&#xA;&lt;p&gt;But when I thought about not having an ICP registration, my head started to ache. I didn&amp;rsquo;t buy the domain from a domestic registrar, nor is it hosted on a domestic server. A wave of cold feet surged up inside me, and amid a chorus of self-mockery I vanished.&lt;/p&gt;&#xA;&lt;p&gt;但是我一想到我的网站没有ICP备案就感到一阵头疼，我又不是境内注册商里购买的，又不是境内服务器托管的，我的内心涌起一阵退堂鼓然后在一阵嘲笑声中我消失了。&lt;/p&gt;&#xA;&lt;h2 id=&#34;building-the-blog-layout&#34;&gt;Building the Blog Layout&#xA;&lt;/h2&gt;&lt;p&gt;The second reason for cold feet was that Baidu&amp;rsquo;s webmaster platform asked me to choose website categories, but I had no idea what my site actually was. Once again I faced the identity problem bare and didn&amp;rsquo;t know where to start. I wanted to find a model website and imitate it.&lt;/p&gt;&#xA;&lt;p&gt;退堂鼓还有第二个原因，是百度的站长平台要我选择自己的网站标签，但我不知道自己的网站到底算什么，我再一次赤裸地面对了身份认同问题而不知从何下手。我想给自己找一个模范网站并效仿它。&lt;/p&gt;&#xA;&lt;p&gt;I chose &lt;a class=&#34;link&#34; href=&#34;https://rutracker.org&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;rutracker.org&lt;/a&gt;, because it gives me a feeling of being comprehensive, well-organized, reliable, and open. I&amp;rsquo;m actually a mechatronics engineering student — my undergraduate coursework covers a very wide range: mechanical, automatic control, electronics, and some introductory electrical engineering. So unlike the many software engineers who blog (forgive me for not knowing what to call you), I want my site to have a down-to-earth side.&lt;/p&gt;&#xA;&lt;p&gt;我选择的就是&lt;a class=&#34;link&#34; href=&#34;https://rutracker.org&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;rutracker.org&lt;/a&gt;这个网站，因为我觉得它给我一种全面、规范可靠又开放的感觉。我实际上是机电工程相关的学生，本科学的内容非常杂乱，机械、自动控制、电子和电气的一些入门知识等，所以说不同于大量做博客的软件工程师们（原谅我不知道该怎么称呼你们），我希望我的网站中有现实的一面。&lt;/p&gt;&#xA;&lt;p&gt;Using Mimocode to help me make multiple revisions (because I didn&amp;rsquo;t want to spend too much time on layout and learning conventions), I settled on the current layout: entering the site shows Recent Posts, the sidebar has category sections, the footer has my contact info, and standard things like privacy policy. It looks pretty much like most people&amp;rsquo;s blogs — the only difference is my categories look very unlike a software engineer&amp;rsquo;s.&lt;/p&gt;&#xA;&lt;p&gt;利用Mimocode帮助我进行多次修改（因为我也没想花费太多时间在确定版式还有学习它的规范上），我确定了现在的布局，进去直接现实Rencent Posts，左侧是分栏，底部有我的联系方式，还有隐私政策等常规网站所包含的内容。这看起来和大多数人的博客都差不多，唯一不同的是我的分类看起来很不像是软件工程师。&lt;/p&gt;&#xA;&lt;p&gt;After that I decided to make it look more like a proper website — added some &amp;ldquo;brand messaging&amp;rdquo;, added a simple favicon as a logo (at first I didn&amp;rsquo;t understand why my site only had text in the tab bar without that little icon). Of course, I think a comment system is essential too. But when I saw GitHub I backed down again. I wanted something that could let most people who aren&amp;rsquo;t as familiar with GitHub as I am leave comments and stay in touch.&lt;/p&gt;&#xA;&lt;p&gt;在这之后我决定让它看起来更像一个网站——加上一些&amp;quot;品牌宣言&amp;quot;，加入一个简单的favicon作为logo（一开始我也不知道为什么我的网站在标签栏只有文字而没有那个小标识），当然我认为评论功能也是必不可少的，但我一看到Github就又打退堂鼓了，我想弄一个能让大多数像我这样不那么了解Github的人也能在我的网站下评论和保持联系。&lt;/p&gt;&#xA;&lt;p&gt;PS: Although I soon discovered it was because I was unwilling to pay for frequent VPN use and would get a headache looking at GitHub&amp;rsquo;s dark English interface. After using &lt;a class=&#34;link&#34; href=&#34;https://github.com/maboloshi/github-chinese&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;github-chinese&lt;/a&gt;, the language barrier problem was solved.&lt;/p&gt;&#xA;&lt;p&gt;PS：虽然我很快发现是因为我不愿意为频繁VPN支付费用，也看到Github的深色英文界面就头疼，在使用&lt;a class=&#34;link&#34; href=&#34;https://github.com/maboloshi/github-chinese&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/maboloshi/github-chinese&lt;/a&gt;这个项目之后，我便解决了语言不通的问题。&lt;/p&gt;&#xA;&lt;h2 id=&#34;comment-system&#34;&gt;Comment System&#xA;&lt;/h2&gt;&lt;p&gt;I didn&amp;rsquo;t plan to set up a server at the start of building the site, nor did I want to over-rely on GitHub. Although I&amp;rsquo;d wonder if this meant completely distancing myself from the blogosphere, I could only tell myself to publish enough useful content first. I did a quick search and decided to use Vercel for hosting. At first I wanted Twikoo — I copied Twikoo&amp;rsquo;s GitHub repo link into Vercel, but during cloning it showed that Twikoo v2&amp;rsquo;s official monorepo requires Node.js &amp;gt;=26, while Vercel supports up to 24. To continue using it, I&amp;rsquo;d have to separately modify my fork&amp;rsquo;s package.json. I didn&amp;rsquo;t know what consequences that would have, so I switched to Waline.&lt;/p&gt;&#xA;&lt;p&gt;我不打算在网站的建立之初就弄一个服务器，也不想过度一来Github，虽然我也会怀疑是否这样就彻底远离Blogs圈子了，我只能告诉自己先在这上面发布足够有用的内容。我简单搜索了一下，决定用 Vercel 托管，一开始我打算用Twikoo，我把Twikoo的Github仓库链接复制到Vercel里面，但是cloning的时候显示 Twikoo v2 官方 monorepo 要求 Node.js &amp;gt;=26，Vercel 最高只支持 24，如果想继续用要单独修改我的 fork 的 package.json。我不知道修改这东西会有什么后果，所以我就换了Waline服务端。&lt;/p&gt;&#xA;&lt;p&gt;Turns out I hit a similar problem: Waline v1.41.5 had a dependency compatibility issue — html-encoding-sniffer used require() to load an ESM module, which new Node.js doesn&amp;rsquo;t allow. But I found a one-click deploy and complete tutorial for an older version on Waline&amp;rsquo;s official site at &lt;a class=&#34;link&#34; href=&#34;https://waline.js.org/guide/deploy/vercel.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;waline.js.org&lt;/a&gt;. Along the way I also discovered it uses Neon as the database, and the whole process ran through.&lt;/p&gt;&#xA;&lt;p&gt;结果还是遇到相似的问题了，Waline v1.41.5 的依赖兼容性问题：html-encoding-sniffer 用了 require() 加载 ESM 模块，新版 Node.js 不允许。但是我在Waline的官网上找到了旧版本的一键部署和完整教程&lt;a class=&#34;link&#34; href=&#34;https://waline.js.org/guide/deploy/vercel.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://waline.js.org/guide/deploy/vercel.html&lt;/a&gt;，顺带还发现它选择用Neon做数据库，整个流程都跑通了。&lt;/p&gt;&#xA;&lt;p&gt;Finally the comment system was successfully set up. Just a nickname, email, and website link is enough to leave a comment.&lt;/p&gt;&#xA;&lt;p&gt;最终成功完成了评论系统的建立，仅需要昵称、邮箱和网站链接就可以留下评论。&lt;/p&gt;&#xA;&lt;h2 id=&#34;resource-submission-and-peripheral-optimization&#34;&gt;Resource Submission and Peripheral Optimization&#xA;&lt;/h2&gt;&lt;h3 id=&#34;search-engine-resource-submission&#34;&gt;Search Engine Resource Submission&#xA;&lt;/h3&gt;&lt;p&gt;This &lt;a class=&#34;link&#34; href=&#34;https://zhuanlan.zhihu.com/p/81652862330&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Zhihu tutorial&lt;/a&gt; explains how to submit your resources to Baidu, Google, and Bing. I followed the steps one by one and quickly completed website submission to Google, Bing, and Baidu search engines.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://zhuanlan.zhihu.com/p/81652862330&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://zhuanlan.zhihu.com/p/81652862330&lt;/a&gt;在这篇教程中提到了如何去百度、Google、Bing这三个搜索引擎中推送自己的资源。我按照步骤一步步来，很快完成了网站提交至Google、Bing和百度搜索引擎。&lt;/p&gt;&#xA;&lt;h3 id=&#34;speed-optimization&#34;&gt;Speed Optimization&#xA;&lt;/h3&gt;&lt;p&gt;The site loaded slowly, but my site didn&amp;rsquo;t really have much in it. At first I wanted to make a loading screen so visitors would have more patience waiting (what a patient webmaster I am). So I told the AI I wanted a page showing roughly how much loading time was left. MimoCode told me it would display: &amp;ldquo;First visit needs to load resources, takes 3-8s.&amp;rdquo; I was confused — what resources do I need to load? Isn&amp;rsquo;t there just the one HelloWorld post?&lt;/p&gt;&#xA;&lt;p&gt;网站的打开速度很慢，但我的网站里其实根本没什么东西，一开始我希望写一个加载界面让访客能有更多耐心等待网页打开（我真是一个很有耐心的站主啊），于是我和AI说要增加一个显示加载时间大概还有多久的页面。MimoCode告诉我会在加载页面显示：首次启动需要加载资源，需要3-8s。我感到很困惑，我有什么资源需要加载吗……整个网站上不就只有HelloWorld的那一篇吗。&lt;/p&gt;&#xA;&lt;p&gt;So I asked it to dig deeper. It turned out the Stack theme uses Google Fonts (fonts.googleapis.com + fonts.gstatic.com), which loads very slowly in China&amp;rsquo;s network environment. During further investigation it also found that the Waline comment system&amp;rsquo;s emoji (your-waline.vercel.app) might be affected by network issues too. So both were switched to domestic mirrors, greatly speeding up page load times.&lt;/p&gt;&#xA;&lt;p&gt;于是我让他进一步分析原因，了解到Stack这个主题里面用了Google Fonts (fonts.googleapis.com + fonts.gstatic.com)，而这个在中国网络环境下加载的很慢，并在继续排查的过程中发现your-waline.vercel.app这个评论系统的表情可能也会受到网络影响，于是把这两个都换成国内的镜像，极大地加快了网页的打开速度。&lt;/p&gt;&#xA;&lt;h3 id=&#34;blogroll-links&#34;&gt;Blogroll Links&#xA;&lt;/h3&gt;&lt;p&gt;While searching about building websites, I discovered many blog sites that — miraculously — like me, first shared their entire site-building experience (suddenly I feel so unremarkable&amp;hellip;). Their blogs seem to follow a programmer&amp;rsquo;s way of thinking: they don&amp;rsquo;t call it &amp;ldquo;Recent Posts&amp;rdquo; but &amp;ldquo;Archive&amp;rdquo;, don&amp;rsquo;t use categories but &amp;ldquo;tags&amp;rdquo;. Though I don&amp;rsquo;t quite understand all of this, their blogroll links are something I really want to learn from.&lt;/p&gt;&#xA;&lt;p&gt;我在搜索建立网站的过程中，发现有好多Blogs网站，他们竟然奇迹般地和我一样，也先是分享自己建站的整个经历（突然感觉我变得平平无奇了呢……）。他们的博客似乎遵循一套程序员的思路，大家不叫Recent Posts，而是叫Archive，不用分类，而是用tags，虽然这些我都不是特别看懂，但是大家的友情外链是我非常想要学习的。&lt;/p&gt;&#xA;&lt;p&gt;The first one is the amazing Moe ICP registration at &lt;a class=&#34;link&#34; href=&#34;https://icp.gov.moe/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;icp.gov.moe&lt;/a&gt;. When I was feeling insecure about not having ICP registration, I suddenly saw a Moe ICP on someone else&amp;rsquo;s blog — wow, I want one too! I quickly picked an ICP number: 20267654. It&amp;rsquo;s quite a nice number and I&amp;rsquo;m satisfied, though I should publish more useful content to make the site valuable.&lt;/p&gt;&#xA;&lt;p&gt;第一个是神奇的萌国ICP备案&lt;a class=&#34;link&#34; href=&#34;https://icp.gov.moe/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://icp.gov.moe/&lt;/a&gt;，我因为没有ICP备案感到一阵自卑的时候，突然在别人的Blogs上看到了一个萌ICP，哇，我也想要这个。我很快在里面挑选了一个ICP号：20267654，这个号也算是一个靓号，我很满意，不过我得多发点有用的内容，促使网站变得有价值了。&lt;/p&gt;&#xA;&lt;p&gt;Next there&amp;rsquo;s &lt;a class=&#34;link&#34; href=&#34;https://www.travellings.cn/docs/join&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Travellings&lt;/a&gt;, but currently my site doesn&amp;rsquo;t have enough content to apply. I suppressed the urge to join these people and decided to continue improving the site&amp;rsquo;s content first, hoping it can be found by more searches. Otherwise I could waste a lot of time just on site architecture.&lt;/p&gt;&#xA;&lt;p&gt;后面就是一些&lt;a class=&#34;link&#34; href=&#34;https://www.travellings.cn/docs/join&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.travellings.cn/docs/join&lt;/a&gt;，但是目前本站的内容还没有到申请的数量，我压抑了自己加入这一批人的欲望，决定先继续完善网站的内容，以期能被更多搜索到，否则光是在网站的架构上我就能浪费不少时间。&lt;/p&gt;&#xA;&lt;h2 id=&#34;finally&#34;&gt;Finally&#xA;&lt;/h2&gt;&lt;p&gt;From this post onward, the site&amp;rsquo;s comment system is live. Friends who&amp;rsquo;ve read this far, could you help test the comment system on this site?&lt;/p&gt;&#xA;&lt;p&gt;从这篇推送之后就可以使用网站的评论系统了，浏览到这里的朋友可以帮忙测试一下本网站的评论系统吗～？&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Hugo &#43; Cloudflare Pages Blog Setup: Spaceship to Deployment</title>
            <link>https://verifybench.top/it-software/web/hello-world/</link>
            <pubDate>Wed, 14 Oct 2026 09:47:17 +0800</pubDate>
            <guid>https://verifybench.top/it-software/web/hello-world/</guid>
            <description>&lt;h1 id=&#34;hello-world&#34;&gt;Hello World!&#xA;&lt;/h1&gt;&lt;p&gt;I purchased this domain on Spaceship and bound DNS through Cloudflare. As someone who just stepped out of campus, doing all this felt like an 80-year-old looking up words in a dictionary to write a novel. I encountered many unfamiliar terms and processes along the way, and with the help of AI I resolved them one by one — and here I issue my Hello World.&lt;/p&gt;&#xA;&lt;p&gt;我在Spaceship网站上购买了这个域名，并且通过cloudflare进行了DNS的绑定。当我刚刚迈出校园，做这一切的时候，我觉得我就像是新闻里80岁翻字典写小说的老人。在这个过程中我遇到许多问题，陌生的术语和流程，在AI的帮助下我都一一解决，并且在这里发出Hello World的一声。&lt;/p&gt;&#xA;&lt;h2 id=&#34;tech-stack&#34;&gt;Tech Stack&#xA;&lt;/h2&gt;&lt;p&gt;Domain registrar: Spaceship (254.68 CNY)&lt;br&gt;&#xA;DNS: Cloudflare (0 CNY)&lt;br&gt;&#xA;Static hosting: Cloudflare (0 CNY)&lt;br&gt;&#xA;Git: Local repository (0 CNY)&lt;br&gt;&#xA;Static site generator: Hugo (0 CNY)&lt;br&gt;&#xA;OS: Linux Mint 22.3&lt;br&gt;&#xA;Kernel: Linux 7.0.0-38-generic&lt;br&gt;&#xA;Architecture: x86-64&lt;/p&gt;&#xA;&lt;p&gt;购买域名（域名注册商）：Spaceship（254.68￥）&lt;br&gt;&#xA;DNS：Cloudflare（0￥）&lt;br&gt;&#xA;静态推送：Cloudflare（0￥）&lt;br&gt;&#xA;git：本地仓库（0￥）&lt;br&gt;&#xA;静态网站生成器：Hugo（0￥）&lt;br&gt;&#xA;操作系统: Linux Mint 22.3&lt;br&gt;&#xA;内核: Linux 7.0.0-38-generic&lt;br&gt;&#xA;架构: x86-64&lt;/p&gt;&#xA;&lt;h2 id=&#34;process-log&#34;&gt;Process Log&#xA;&lt;/h2&gt;&lt;h3 id=&#34;domain-purchase&#34;&gt;Domain Purchase&#xA;&lt;/h3&gt;&lt;p&gt;I searched for the domain &amp;ldquo;verifybench&amp;rdquo; on Spaceship and chose the cheapest price. After browsing through many options, I settled on the cheapest .top domain — only 254.68 CNY for ten years. At first I thought that was enough, but I realized I had only bought the name itself without any pointer (like buying a road sign without knowing where to plant it).&lt;/p&gt;&#xA;&lt;p&gt;我从Spaceship上搜索&amp;quot;verifybench&amp;quot;这个域名，并且选择最便宜的价格，翻阅了大量的可选域名之后，我选择了最便宜的.top域名，这个域名十年仅需254.68￥，一开始我觉得这样就够了，但是我意识到我仅仅是买了一个域名（名字本身），它还没有一个指向（就像是我买了一块路牌，但是我还不知道把它插在哪里）。&lt;/p&gt;&#xA;&lt;h3 id=&#34;dns-configuration&#34;&gt;DNS Configuration&#xA;&lt;/h3&gt;&lt;p&gt;Following AI guidance, I went to Cloudflare. Since all the sites were in English, finding things was a bit tough. Luckily I landed directly on the dashboard, otherwise I would have been confused for a while. I tried searching for &amp;ldquo;Add site&amp;rdquo; and similar terms but none matched. Eventually I found &amp;ldquo;Add Domain&amp;rdquo; and entered my domain (be careful not to mistype, or you have to redo it).&lt;/p&gt;&#xA;&lt;p&gt;后面我在AI的指引下来到Cloudflare网站，因为都是英文网站所以找东西对我来说有点吃力。不过我幸运地直接进入了dashboard界面，要不然肯定还会懵逼一会。首先是添加域名，我试着搜索Add site等，都不太对。直到我发现Add Domain，输入了我的网站域名（注意别输错了，要不还得重新弄一遍）。&lt;/p&gt;&#xA;&lt;p&gt;选择免费的套餐即可，之后会扫描现有的DNS记录，对我来说这是一个新的网站，之前的DNS我都将其删除了，之后Cloudflare提供了两个名称服务器（NS地址），对于所有的免费套餐来说应该都是一样的：&lt;/p&gt;&#xA;&lt;p&gt;Choose the free plan. It then scans existing DNS records — for me this was a brand new site so I deleted all previous DNS entries. Cloudflare then provides two nameservers (NS addresses), which are the same for all free plans:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;aria.ns.cloudflare.com&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;sonny.ns.cloudflare.com&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;After adding verifybench.top, I needed to go back to the registrar Spaceship to bind the DNS. The DNS binding is in the Domain Manage interface, which took me a while to find. With the help of the interface AI I found it at &lt;a class=&#34;link&#34; href=&#34;https://www.spaceship.com/launchpad/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.spaceship.com/launchpad/&lt;/a&gt; — then Domain Manage, click the domain, and modify under &amp;ldquo;Nameservers &amp;amp; DNS&amp;rdquo;. DNSSEC is generally off by default so you can ignore it.&lt;/p&gt;&#xA;&lt;p&gt;将verifybench.top这个网站加入之后就要回到域名注册商Spaceship处绑定DNS。绑定DNS需要到Domain Manage的界面，但是这个界面我有点挠头不知道在哪，之后借助界面AI的力量发现在https://www.spaceship.com/launchpad/这里面，然后进入Domain Manage，点击域名，然后Nameservers &amp;amp; DNS中修改即可，一般来说都是默认关闭 DNSSEC的，不用考虑这个。&lt;/p&gt;&#xA;&lt;h3 id=&#34;website-deployment&#34;&gt;Website Deployment&#xA;&lt;/h3&gt;&lt;p&gt;For deploying a static site, Cloudflare offers Compute: Workers &amp;amp; Pages. There are two modes. The default is Workers — at first I didn&amp;rsquo;t notice and just uploaded index.html (a web page AI generated for me earlier). Make sure to select Pages below, then upload the index.html file or a folder with index.html at its root.&lt;/p&gt;&#xA;&lt;p&gt;对于部署静态网站来说，Cloudflare里面提供了Compute: Workers &amp;amp; Pages，在这里可以选择两种模式部署。默认界面是Workers，一开始我没注意看就直接上传了index.html（这是一个我之前让ai帮忙生成的网页文件），要注意在下方选择Pages，然后再上传index.html文档或者一级目录下有index.html的文件夹。&lt;/p&gt;&#xA;&lt;p&gt;A .dev-suffixed URL is generated where you can browse the index.html. But I hit a 404 error at first. After investigation I learned that Cloudflare sets access restrictions by default. If you want anyone to access it, you need to remove the Access protection.&lt;/p&gt;&#xA;&lt;p&gt;之后会生成一个.dev后缀的网站，能够浏览这个index.html。但是当时我遇到了404错误，经过一番查找之后得知，是因为Cloudflare默认设置了访问权限，如果你希望任何人都能访问，需要移除那个 Access 保护。&lt;/p&gt;&#xA;&lt;p&gt;So go back to the Cloudflare dashboard, find Zero Trust, purchase the free plan (I was puzzled why &amp;ldquo;free&amp;rdquo; still required PayPal). Then delete the existing protection and the .dev site becomes accessible — this is the test development page.&lt;/p&gt;&#xA;&lt;p&gt;所以回到Cloudflare的dashboard界面，找到Zero Trust并进入，购买它的免费套餐（虽然我也很疑惑为什么免费还要用Paypal支付），进入之后Delete已有的那个保护，就发现可以正常进入.dev后缀的网站了，这就是测试开发页。&lt;/p&gt;&#xA;&lt;h3 id=&#34;domain-binding&#34;&gt;Domain Binding&#xA;&lt;/h3&gt;&lt;p&gt;To bind the test page to your own domain: go to Workers &amp;amp; Pages, enter the project, go to Custom Domains, and add &lt;code&gt;verifybench.top&lt;/code&gt; and &lt;code&gt;www.verifybench.top&lt;/code&gt;. Then the site is accessible via both domains.&lt;/p&gt;&#xA;&lt;p&gt;但是要把测试开发页同自己的域名绑定到一起还需要一步，项目和域名之间是一对多的映射，即一个域名只能被分配一个项目，而一个项目可以分配多个域名。到Workers &amp;amp; Pages界面并进入该项目，进入Custom domains添加上&lt;code&gt;verifybench.top&lt;/code&gt;和&lt;code&gt;www.verifybench.top&lt;/code&gt;，就可以通过这两个域名来访问网站了。&lt;/p&gt;&#xA;&lt;h3 id=&#34;site-generation&#34;&gt;Site Generation&#xA;&lt;/h3&gt;&lt;h4 id=&#34;hugo-installation&#34;&gt;Hugo Installation&#xA;&lt;/h4&gt;&lt;p&gt;We were using a pre-made HTML file, but normally you can publish a website by editing Markdown files. So let&amp;rsquo;s install Hugo and use it to publish.&lt;/p&gt;&#xA;&lt;p&gt;现在我们是使用了现成的html文件，但通常是可以通过编辑Markdown文件来发布网站的。所以说安装hugo，并利用hugo进行网站的发布。&lt;/p&gt;&#xA;&lt;p&gt;Set up network with Clash iKuuu. &lt;a class=&#34;link&#34; href=&#34;https://ikuuu.win/user&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;iKuuuVPN latest domain 2026-09-11&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;用Clash iKuuu进行网络的配置，&lt;a class=&#34;link&#34; href=&#34;https://ikuuu.win/user&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;iKuuuVPN最新域名 2026-09-11&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Clash for Linux&amp;rsquo;s virtual NIC (TUN) seems to have issues, so I configured temporary environment variables in the terminal:&lt;/p&gt;&#xA;&lt;p&gt;Clash for Linux的虚拟网卡（TUN）功能似乎有些问题，因此我选择在终端里配置临时环境变量&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;export http_proxy=&amp;#34;http://127.0.0.1:7890&amp;#34;  &#xA;export https_proxy=&amp;#34;http://127.0.0.1:7890&amp;#34;  &#xA;export all_proxy=&amp;#34;http://127.0.0.1:7890&amp;#34;  &#xA;git config --global http.https://github.com.proxy http://127.0.0.1:7890&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;First run the nvm install script: &lt;code&gt;curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;先运行nvm安装脚本：&lt;code&gt;curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then make nvm active in the current terminal:&lt;/p&gt;&#xA;&lt;p&gt;按照提示让nvm在当前终端生效：&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;export NVM_DIR=&amp;#34;$HOME/.nvm&amp;#34;&#xA;[ -s &amp;#34;$NVM_DIR/nvm.sh&amp;#34; ] &amp;amp;&amp;amp; \. &amp;#34;$NVM_DIR/nvm.sh&amp;#34;&#xA;[ -s &amp;#34;$NVM_DIR/bash_completion&amp;#34; ] &amp;amp;&amp;amp; \. &amp;#34;$NVM_DIR/bash_completion&amp;#34;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then install Node.js: &lt;code&gt;nvm install --lts&lt;/code&gt; and set as default &lt;code&gt;nvm alias default node&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;然后安装Node.js：&lt;code&gt;nvm install --lts&lt;/code&gt;并设为默认&lt;code&gt;nvm alias default node&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then go to &lt;code&gt;https://github.com/gohugoio/hugo/releases&lt;/code&gt; to find the latest version and download:&lt;/p&gt;&#xA;&lt;p&gt;然后去&lt;code&gt;https://github.com/gohugoio/hugo/releases&lt;/code&gt;找到最新的版本号，下载&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;wget https://github.com/gohugoio/hugo/releases/download/v0.168.0/hugo_extended_0.168.0_linux-amd64.deb  &#xA;sudo dpkg -i hugo_extended_0.168.0_linux-amd64.deb&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you installed the wrong one, use &lt;code&gt;which -a hugo&lt;/code&gt; to check how many directories appear. If a wrong directory from a previous conda install shows up (let me see which AI lied to me&amp;hellip;), just &lt;code&gt;rm&lt;/code&gt; it.&lt;/p&gt;&#xA;&lt;p&gt;如果说安装错了可以用which -a hugo来看有几个目录，如果出现之前conda下载错误的目录（让我看看是哪个AI在坑我……），直接rm就可以&lt;/p&gt;&#xA;&lt;h4 id=&#34;hugo-configuration&#34;&gt;Hugo Configuration&#xA;&lt;/h4&gt;&lt;p&gt;&lt;strong&gt;Step 1: Set up local storage&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;第一步：建立本地存储区域&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;mkdir -p ~/blog &amp;amp;&amp;amp; cd ~/blog&#xA;hugo new site verifybench-blog&#xA;cd verifybench-blog&#xA;git init&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Step 2: Install a theme.&lt;/strong&gt; Browse &lt;code&gt;https://themes.gohugo.io/&lt;/code&gt; and pick one based on your language and interface needs.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;第二步：安装主题&lt;/strong&gt;，这里可以上&lt;code&gt;https://themes.gohugo.io/&lt;/code&gt;挑选一下，根据自己的语言和界面需求&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;git submodule add https://github.com/adityatelange/hugo-PaperMod themes/PaperMod  &#xA;echo &amp;#34;theme = &amp;#39;PaperMod&amp;#39;&amp;#34; &amp;gt;&amp;gt; hugo.toml&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;PaperMod is simple but sufficient for publishing a Hello World post. Switch themes later.&lt;/p&gt;&#xA;&lt;p&gt;PaperMod这个主题比较简单，但发布 Hello World! 这一条来说足够了，后续再说换主题的事情。&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Step 3: Write content.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;hugo new content posts/hello-world.md&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;第三步：编辑内容&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;hugo new content posts/hello-world.md&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Create the document. I installed the marktext editor — run &lt;code&gt;marktext content/posts/hello-world.md&lt;/code&gt; to see the contents. Change draft to false to see it on the published site (otherwise only visible in local preview). Type your article content below the &lt;code&gt;+++&lt;/code&gt; at the end.&lt;/p&gt;&#xA;&lt;p&gt;创建文档，我安装了marktext编辑器，输入&lt;code&gt;marktext content/posts/hello-world.md&lt;/code&gt;，就会看到里面的内容，draft改为false才能在发布的网站上看到，否则只能在本地预览看，在最后一行的+++下面输入自己的文章内容&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Step 4: Local preview and publish.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;After &lt;code&gt;hugo server -D&lt;/code&gt; previews successfully, run &lt;code&gt;hugo&lt;/code&gt; to build and publish. First-time publish needs Cloudflare authorization.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;第四步：本地预览和发布&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;hugo server -D&lt;/code&gt;预览顺利之后就可以构建&lt;code&gt;hugo&lt;/code&gt;和发布了，首次发布需要和Cloudflare授权。&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;npx wrangler login  &#xA;npx wrangler pages deploy ./public --project-name=verifybench&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Note: the project name here must match the test project name above. Otherwise you need to unbind the previous domain-project mapping first and redo the DNS steps.&lt;/p&gt;&#xA;&lt;p&gt;注意这里的项目和上面测试的项目名称保持一致，否则需要先解绑前面的域名-项目映射关系，再重新走DNS的流程。&lt;/p&gt;&#xA;&lt;p&gt;Now visit verifybench.top or &lt;a class=&#34;link&#34; href=&#34;https://www.verifybench.top&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;www.verifybench.top&lt;/a&gt; and you should see the hello world title.&lt;/p&gt;&#xA;&lt;p&gt;这时再登陆verifybench.top或者www.verifybench.top就能看到hello world的标题了&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Step 5: Change the theme.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Re-run the theme installation git step to download your desired theme, then edit &lt;code&gt;theme=&lt;/code&gt; in hugo.toml to your theme name.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;第五步：修改主题&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;重新执行安装主题的git一步，把需要的主题下载下来，之后编辑hugo.toml中的theme=自己的主题名称即可。&lt;/p&gt;&#xA;&lt;p&gt;I later used &lt;code&gt;theme = &#39;hugo-theme-stack&#39;&lt;/code&gt;. Unlike PaperMod, Stack has a homepage by default rather than jumping straight to the article list. You can adjust this by going to &lt;code&gt;themes/hugo-theme-stack/config/_default&lt;/code&gt;, editing &lt;code&gt;params.toml&lt;/code&gt;, and setting &lt;code&gt;mainSections = [&amp;quot;posts&amp;quot;]&lt;/code&gt; on the first line.&lt;/p&gt;&#xA;&lt;p&gt;我后面使用的是theme = &amp;lsquo;hugo-theme-stack&amp;rsquo;，对于stack这个主题来说，和PaperMod不同的是，它默认有一个主页，而不是直接进入文章列表栏，因此可以进行一些更改，进入themes/hugo-theme-stack/config/_default中，编辑params.toml文件，第一行的mainSections = [&amp;ldquo;posts&amp;rdquo;]即可&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Step 6: Maintenance.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;第六步：维护&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;cd ~/blog/verifybench-blog  &#xA;#新建文章（frontmatter 自动生成，记得把 draft = true 改成 false）  &#xA;hugo new content posts/文章名.md  &#xA;#写内容（任意编辑器），然后本地预览  &#xA;hugo server -D  &#xA;#打开 localhost:1313 看效果，Ctrl+C 退出  &#xA;#存档（后悔药 + 备份，先 commit 再发布）  &#xA;git add -A &amp;amp;&amp;amp; git commit -m &amp;#34;文章名&amp;#34;  &#xA;hugo &amp;amp;&amp;amp; npx wrangler pages deploy ./public --project-name=verifybench&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;closing&#34;&gt;Closing&#xA;&lt;/h2&gt;&lt;p&gt;Feel free to explore further. This site welcomes submissions, questions, and paid collaborations. To get in touch, email &lt;a class=&#34;link&#34; href=&#34;mailto:18613817312@sina.cn&#34; &gt;18613817312@sina.cn&lt;/a&gt; and please state your purpose.&lt;/p&gt;&#xA;&lt;p&gt;其他更多的操作大家可以尽情摸索，本站欢迎《分享投稿》、《咨询问题》、《付费交易》，如想要联系可以发邮件给18613817312@sina.cn，请表明来意。&lt;/p&gt;&#xA;</description>
        </item></channel>
</rss>
