Preparing WSL 2 for Bioinformatics: Networking, Resource Planning, Security Auditing, and Host Optimization

A newly installed WSL environment may appear ready as soon as Ubuntu opens and apt update succeeds. For bioinformatics, that is only the beginning. Long-running computational workflows place unusual demands on storage, memory, CPU scheduling, temporary-file handling, networking, and host stability. A Windows system that is perfectly adequate for interactive …

Installing WSL 2 and Ubuntu on Windows When Network Conditions Make WSL Update Unreliable

Modern WSL installation is normally simple. On a well-connected Windows 11 machine, a few commands can enable WSL, install the runtime, download a Linux distribution, and complete the first-run setup. On restricted, unstable, metered, or geographically problematic networks, however, the installation can fail at a less obvious layer: the Linux …

Building a Secure Windows OpenSSH Endpoint Behind FRP: From Feature-on-Demand Failure to Hardened Remote Access

Deploying SSH on Windows is usually straightforward: enable the built-in OpenSSH Server capability, start sshd, and configure authentication. In practice, Windows servicing failures, Feature-on-Demand dependencies, network restrictions, and remote-access constraints can turn the process into a much more involved systems-engineering exercise. This article describes a robust approach for deploying Microsoft …

清理 Windows NetworkList 中不断累积的“网络名称 2、3、4”历史记录

问题现象 一台长期使用、经历过多次系统迁移、网卡变化或连接环境变化的 Windows 电脑,可能会出现这样的网络名称: 或者: 甚至几十条。 这些记录并不一定意味着系统中保存了几十个 Wi-Fi 密码。 真正的 Wi-Fi 配置和 Windows 的 NetworkList 网络历史记录,是两个不同的系统。 这一区别非常重要。 一、Windows 实际上保存了两类网络信息 WLAN Profile Wi-Fi SSID、密码、加密方式、自动连接设置等主要由 WLAN Profile 保存。 查看: 输出类似: 这些配置包含真正的 Wi-Fi 连接参数。 删除: 会导致保存的 Wi-Fi 配置一起消失。 如果目标只是整理“网络 2、网络 3”之类的历史名称,通常不应该执行这个命令。 NetworkList Windows 还维护另一套网络识别数据库: 其中最重要的两个区域是: Profiles 负责保存 Windows 曾经识别到的网络身份。 Signatures 则负责保存识别这些网络时使用的一些特征,例如: 于是,即使 Wi-Fi …

Windows 卸载 Wacom 后仍残留控制面板项目与驱动,如何完整清理

问题现象 Windows 中卸载 Wacom 软件后,有时仍会出现以下现象: 这种情况通常并不是 Wacom 软件仍然完整安装,而是卸载程序没有把 Windows 中的注册信息、服务和 Driver Store 驱动包全部清理掉。 比较常见的残留可以分成四类: 因此,仅仅删除程序目录通常不能解决问题。 一、先确认 Wacom 软件是否真的已经卸载 首先检查 Windows 的软件卸载注册表: 如果没有结果,说明常规意义上的 Wacom 应用程序已经不存在。 接着检查程序目录: 如果这里也没有内容,而控制面板中仍存在 Wacom 项目,那么基本可以确定属于残留注册。 二、检查控制面板 CPL 残留 Windows 传统控制面板允许第三方软件通过以下位置注册控制面板组件: 读取: 典型的异常情况是: 但对应的 EXE 已经不存在。 这就是一个非常明确的失效注册项。 删除前建议备份: 然后只删除 Wacom 对应的值: 不同语言版本 Windows 中的值名称可能不同,因此实际操作前应先读取,而不是直接套用固定名称。 三、检查 Control Panel Namespace …

从 Linux 到 Windows:复现 Rime 动态日期时间输入功能的完整实践

前言 Rime 本身是一套高度可定制的输入法框架。除了常规的拼音输入、词库管理和候选排序之外,还可以通过 Lua 扩展实现动态内容生成。 一个比较实用的例子,是输入特定拼音后直接生成当前日期、当前时间、星期等内容。例如: 可以分别得到类似: 这些内容不是提前写进词典的静态词条,而是在输入时调用系统时间动态产生。 这一功能最初在 Linux 环境下完成并稳定使用。之后需要将同样的能力迁移到 Windows 上的 Rime,也就是小狼毫 Weasel。 实际迁移过程并不是简单复制一个文件即可完成。Linux 与 Windows 的 Rime 前端、用户目录以及部署行为都存在差异,尤其是在 Windows 上还遇到了重新部署后 build 内容没有正确刷新的情况。 经过多轮检查和最小化修改,最终成功在 Windows 上完整复现了 Linux 下的动态日期时间输入功能。 一、Linux 下的实现结构 Linux 环境使用 Fcitx5 + Rime。 实际生效的 Rime 用户目录位于: 动态日期时间功能主要由三个部分构成: 完整调用链可以概括为: 这说明该功能本质上是一个 Rime Lua Translator。 二、rime.lua:注册 Lua 模块 Rime …

用命令行恢复被 PE“隐藏分区”占用的 U 盘空间

制作 PE 启动盘之后,有时会遇到一种比较典型的情况:原本标称 32GB 的 U 盘,在 Windows 资源管理器中只显示二十多 GB,剩余空间既没有盘符,也无法直接访问。 一些 PE 制作工具会把这类结构称为“隐藏分区”“高端隐藏分区”或类似名称。实际上,从磁盘管理角度看,它通常只是 PE 制作工具额外创建的启动分区、隐藏分区,或者经过特殊处理的分区结构。 如果后续不再需要 PE,希望把 U 盘重新恢复成普通存储设备,可以直接使用 Windows 自带的 DiskPart 完成,不需要依赖第三方分区软件。 一、问题表现 例如,一块标称 32GB 的 U 盘: 这种情况下,问题通常不在文件系统,而在物理磁盘的分区结构。 例如: 但查看物理磁盘: 物理磁盘有 30GB,而可见卷只有 25GB,说明还有部分空间没有包含在当前可见卷中。 二、首先确认 U 盘对应的物理磁盘 这是整个操作中最重要的一步。 DiskPart clean 会直接清除目标磁盘的分区表。如果选错磁盘,可能导致系统盘或数据盘的分区全部消失。 因此不能仅凭“容量差不多”判断磁盘编号。 以管理员权限打开 Windows Terminal、PowerShell 或命令提示符: 首先查看卷: 找到 U …

Running Background Programs at Windows Startup with Task Scheduler

Windows applications do not always need to be installed as Windows Services to run continuously in the background. For lightweight command-line programs, agents, proxies, synchronization tools, and similar utilities, Task Scheduler provides a built-in and relatively clean way to achieve: This article uses a generic command-line program named agent.exe as …

Windows 11 and SSH: Understanding Remote Connections, Keys, and Authentication

Windows 11 includes native support for OpenSSH, which means it can work both as an SSH client and as an SSH server. This makes it possible to manage Linux servers directly from Windows, connect remotely to Windows from Linux, transfer files with SCP/SFTP, and use public-key authentication without installing third-party …